/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #F8C8DC;
    --secondary: #FFB6C1;
    --accent: #FF69B4;
    --bg-light: #FFF5F7;
    --text-dark: #4A4A4A;
    --muted-pink: #D4A0A0;
    --shadow: 0 8px 30px rgba(244, 150, 180, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.pink-text {
    color: var(--accent);
}

.bg-light-pink {
    background: var(--bg-light);
}

.section-title {
    font-weight: 700;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 4px;
}

/* ===== NAVBAR ===== */
#mainNav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

#mainNav .navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

#mainNav .nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--accent);
    background: rgba(255, 105, 180, 0.08);
}

.cart-badge {
    background: var(--accent);
    font-size: 0.6rem;
    padding: 3px 7px;
    position: absolute;
    top: -8px;
    right: -10px;
    border: 2px solid white;
}

/* ===== HERO ===== */
.hero-section {
    min-height: 80vh;
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF5F7 0%, #FFE8EE 100%);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #6a6a6a;
    margin: 20px 0 30px;
    max-width: 450px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--accent);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.45);
    background: #e85a9e;
    color: white;
}

.btn-outline-secondary {
    border-color: var(--muted-pink);
    color: var(--text-dark);
}

.btn-outline-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    cursor: pointer;
    transition: var(--transition);
    padding: 15px;
    border-radius: 20px;
}

.category-card:hover {
    transform: translateY(-8px);
}

.category-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.05);
    border-color: var(--accent);
}

.category-card h5 {
    font-weight: 600;
    margin-top: 10px;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(244, 150, 180, 0.25);
}

.product-card .product-img {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.product-card .product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-card .product-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: translateX(0);
}

.product-card .product-overlay button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-overlay button:hover {
    background: var(--accent);
    color: white;
}

.product-card .product-body {
    padding: 16px 18px 20px;
}

.product-card .product-body h6 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.product-card .product-body .price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
}

.product-card .badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== FILTER SIDEBAR ===== */
.filter-sidebar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.filter-sidebar .form-check,
.filter-sidebar .form-check-input {
    cursor: pointer;
}

/* ===== SINGLE PRODUCT ===== */
.product-gallery .thumb-img {
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.product-gallery .thumb-img:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

.size-btn {
    min-width: 40px;
    border-radius: 8px !important;
    font-weight: 600;
}

.size-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.color-dot:hover,
.color-dot.active {
    border-color: var(--accent);
    transform: scale(1.1);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

/* ===== CONTACT ===== */
.contact-info {
    background: white;
    box-shadow: var(--shadow);
}

.contact-info .social-links a {
    color: var(--text-dark);
    transition: var(--transition);
}

.contact-info .social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer-section {
    background: #2d2d2d;
    color: #ddd;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-section .form-control {
    background: rgba(255,255,255,0.08);
    border: none;
    color: white;
}

.footer-section .form-control::placeholder {
    color: #999;
}

/* ===== BACK TO TOP ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.5);
}

/* ===== PAGE TRANSITIONS ===== */
.page-section {
    /* display: none; */
    animation: fadeIn 0.5s ease;
}

.page-section.active-page {
    display: block;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .hero-section {
        min-height: 60vh;
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .filter-sidebar {
        position: relative;
        top: 0;
    }
    .testimonial-card {
        padding: 20px;
    }
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.7rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .btn-primary {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
}