/* assets/css/style.css - BB Kozmetik Premium Cosmetics Theme */

:root {
    --primary-color: #c2185b;
    --primary-rose: #d81b60;
    --soft-rose: #fce4ec;
    --accent-gold: #d4af37;
    --secondary-color: #7b1fa2;
    --dark-color: #1a1a2e;
    --light-bg: #fffbfd;
    --whatsapp-color: #25D366;
    --whatsapp-hover: #1da851;
    --card-shadow: 0 5px 20px rgba(194, 24, 91, 0.06);
    --hover-shadow: 0 10px 30px rgba(194, 24, 91, 0.18);
    --border-radius: 16px;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: #2c2c36;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

main {
    flex: 1;
}

.text-rose {
    color: var(--primary-rose) !important;
}

.bg-rose {
    background-color: var(--primary-rose) !important;
    color: #fff;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #2a0845 100%);
    color: #f3e5f5;
    font-size: 0.85rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
    color: #e1bee7;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--accent-gold);
}

/* Header & Search */
.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(194, 24, 91, 0.08);
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--soft-rose);
}

/* Dropdown Hover Opening on Desktop */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0;
        animation: fadeIn 0.2s ease-in-out;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-input-group .form-control {
    border-color: #f48fb1;
    font-size: 0.9rem;
}

.search-input-group .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(216, 27, 96, 0.15);
    border-color: var(--primary-rose);
}

.btn-search {
    background-color: var(--primary-rose);
    color: #fff;
    border-color: var(--primary-rose);
}

.btn-search:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fff0f5 0%, #f3e5f5 100%);
    padding: 70px 0;
    border-bottom: 1px solid rgba(194, 24, 91, 0.1);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.25;
}

.hero-title span {
    color: var(--primary-rose);
    font-style: italic;
}

/* Category Cards */
.cat-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 22px 15px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark-color);
    display: block;
    border: 1px solid rgba(216, 27, 96, 0.08);
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-rose);
    color: var(--primary-rose);
}

.cat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0 auto 14px;
    box-shadow: 0 4px 10px rgba(194, 24, 91, 0.12);
}

/* Product Cards */
.product-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(216, 27, 96, 0.3);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f4f4f8;
}

.product-img-wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.product-img-wrapper img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-img-wrapper a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hit-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26, 26, 46, 0.88);
    color: #fff;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.discount-badge, .product-img-wrapper .badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 10 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 10px rgba(216, 27, 96, 0.3) !important;
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-title {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--dark-color);
    margin-bottom: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.product-title:hover {
    color: var(--primary-rose);
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: auto;
    margin-bottom: 14px;
}

.old-price {
    font-size: 0.88rem;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

/* WhatsApp Buttons */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    padding: 9px 20px;
    transition: all 0.25s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #1da851 0%, #0d6e63 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.12);
    color: #fff;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #11031d 100%);
    color: #b0bec5;
    padding-top: 60px;
    padding-bottom: 24px;
    margin-top: 70px;
    border-top: 3px solid var(--primary-rose);
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 22px;
}

footer a {
    color: #cfd8dc;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-gold);
}

/* Admin Panel Specific */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #1e1e2d 0%, #151521 100%);
    color: #9899ac;
}

.admin-sidebar .nav-link {
    color: #9899ac !important;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background-color: rgba(216, 27, 96, 0.18);
    color: var(--primary-rose) !important;
}

.stat-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 26px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-upload-box {
    border: 2px dashed var(--primary-rose);
    background: rgba(216, 27, 96, 0.03);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ai-upload-box:hover {
    background: rgba(216, 27, 96, 0.08);
}

/* Hero Slider Responsive Height */
.hero-slider-img {
    width: 100%;
    height: 570px;
    object-fit: cover;
}

@media (max-width: 991px) {
    .hero-slider-img {
        height: 320px;
    }
}

@media (max-width: 576px) {
    .hero-slider-img {
        height: 170px;
    }
}

/* Premium Hero Slider Arrows */
.slider-arrow-btn {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #212529;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-control-prev:hover .slider-arrow-btn,
.carousel-control-next:hover .slider-arrow-btn {
    background: #d81b60;
    color: #ffffff;
    border-color: #d81b60;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(216, 27, 96, 0.4);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.9;
}

@media (max-width: 576px) {
    .slider-arrow-btn {
        width: 32px;
        height: 32px;
        font-size: 11px;
        background: rgba(255, 255, 255, 0.75);
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}

/* Desktop Kategoriler Dropdown: Üzerine Gelince Otomatik Aç (Hover) */
@media (min-width: 992px) {
    .nav-hover-dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: dropdownFadeIn 0.2s ease;
    }
    .nav-hover-dropdown > .dropdown-toggle::after {
        transition: transform 0.2s ease;
    }
    .nav-hover-dropdown:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

