/* ============================================
   PARFYUM STORE — Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1a1a1a;
    --secondary: #555;
    --accent: #c9a96e;
    --accent-dark: #a8893e;
    --bg: #ffffff;
    --bg-warm: #faf8f5;
    --bg-card: #ffffff;
    --text: #2c2c2c;
    --text-muted: #999;
    --border: #ebebeb;
    --border-light: #f5f5f5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-warm);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    font-size: 1.15rem;
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -14px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero {
    position: relative;
    height: 520px;
    overflow: hidden;
    margin-bottom: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.35) 100%);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 65px;
    left: 8%;
    color: #fff;
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px 36px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-content h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.hero-arrows {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 3;
}

.arrow {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    font-size: 0.9rem;
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 0;
    padding: 20px 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.filter-select {
    padding: 11px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 500;
    background: var(--bg);
    min-width: 220px;
    cursor: pointer;
    outline: none;
    color: var(--text);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.filter-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 11px 18px 11px 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 400;
    outline: none;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 32px 0;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Card Image Slider */
.card-slider {
    position: relative;
    overflow: hidden;
}

.card-slides {
    position: relative;
    aspect-ratio: 1/1;
}

.card-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-slide-img.active {
    opacity: 1;
    position: relative;
}

.card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.card-slider:hover .card-arrow {
    opacity: 1;
}

.card-prev {
    left: 8px;
}

.card-next {
    right: 8px;
}

.card-arrow:hover {
    background: #fff;
}

.card-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.card-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.product-info {
    padding: 14px 16px 16px;
}

.product-info h3 a {
    color: var(--primary);
    text-decoration: none;
}

.product-brand {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 4px;
}

.product-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary);
    line-height: 1.4;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
    margin-bottom: 2px;
}

/* Size Buttons */
.size-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0;
}

.size-tag {
    font-size: 0.68rem;
    font-weight: 500;
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--secondary);
    background: var(--bg-warm);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
    line-height: 1.3;
}

.size-tag:hover {
    border-color: var(--primary);
}

.size-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-card {
    width: 100%;
    padding: 9px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    margin-top: 6px;
    display: block;
    cursor: pointer;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.btn-card:hover {
    opacity: 0.85;
}

/* ============================================
   LOAD MORE
   ============================================ */
.load-more-container {
    text-align: center;
    padding: 1rem 0 3rem;
}

#load-more {
    padding: 14px 48px;
    background: transparent;
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    text-transform: uppercase;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
}

#load-more:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER
   ============================================ */
footer h3,
footer h4 {
    font-family: var(--font-display);
}

/* ============================================
   PAGE LAYOUTS (Cart, Checkout)
   ============================================ */
@media (min-width: 769px) {
    .cart-layout {
        grid-template-columns: 1fr 350px !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    /* --- Header --- */
    header {
        padding: 0.8rem 0;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    /* --- Hero --- */
    .hero {
        height: 320px;
    }

    .slide-content {
        bottom: 30px;
        left: 5%;
        right: 5%;
        padding: 16px 20px;
        border-radius: 12px;
    }

    .slide-content h1 {
        font-size: 1.6rem;
    }

    .slide-content p {
        font-size: 0.85rem;
    }

    .arrow {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .hero-arrows {
        padding: 0 10px;
    }

    /* --- Filter --- */
    .filter-bar {
        flex-direction: column;
        padding: 14px 16px;
        gap: 10px;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
        padding: 10px 14px;
    }

    .search-box input {
        padding: 10px 14px 10px 40px;
    }

    /* --- Product Grid --- */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 16px 0;
    }

    .product-info {
        padding: 10px 12px 12px;
    }

    .product-info h3 {
        font-size: 0.8rem;
    }

    .product-brand {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .product-price {
        font-size: 0.88rem;
    }

    .size-tag {
        font-size: 0.6rem;
        padding: 2px 7px;
    }

    .btn-card {
        padding: 7px;
        font-size: 0.72rem;
    }

    /* Card slider arrows smaller on mobile */
    .card-arrow {
        width: 24px;
        height: 24px;
        font-size: 0.5rem;
    }

    .card-dot {
        width: 5px;
        height: 5px;
    }

    /* --- Container --- */
    .container {
        padding: 0 12px;
    }

    /* --- Product Detail Page --- */
    .product-details {
        padding: 0 !important;
    }

    /* --- Cart Page --- */
    .cart-item {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .cart-item img {
        width: 80px !important;
        height: 80px !important;
    }

    /* --- Load More --- */
    #load-more {
        padding: 12px 36px;
        font-size: 0.78rem;
    }

    /* --- Footer --- */
    footer {
        padding: 2rem 0 !important;
        margin-top: 2rem !important;
    }

    footer .container {
        gap: 24px !important;
    }

    footer h3 {
        font-size: 1.1rem;
    }

    footer h4 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 260px;
    }

    .slide-content h1 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.78rem;
    }

    .product-info h3 {
        font-size: 0.75rem;
    }

    .product-price {
        font-size: 0.82rem;
    }

    .size-tag {
        font-size: 0.58rem;
        padding: 2px 6px;
    }
}