/* ============================================================
   AURALUNA THEME CLONE (Navy, White, Pill Buttons)
   ============================================================ */

:root {
    --color-bg: #ffffff;
    --color-text-main: #1a233a; /* Navy blue */
    --color-text-light: #5c6a82;
    --color-header-bg: #000000;
    --color-header-text: #ffffff;
    --color-border: #1a233a;
    --color-border-light: #e2e8f0;
    --color-btn-solid-bg: #3b5bdb; /* Royal blue for Acheter Maintenant */
    --color-btn-solid-text: #ffffff;
    
    --font-main: 'Inter', sans-serif;
    --page-width: 1200px;
    --radius-card: 12px;
    --radius-pill: 50px;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================
   HEADER & ANNOUNCEMENT
   ============================================================ */
.announcement-bar {
    background-color: var(--color-header-bg);
    color: var(--color-header-text);
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 500;
}

.header {
    background-color: var(--color-header-bg);
    color: var(--color-header-text);
    padding: 20px 40px;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--page-width);
    margin: 0 auto;
}

.header__icon-left, .header__icons-right {
    display: flex;
    gap: 20px;
    align-items: center;
    cursor: pointer;
}

.hamburger-icon {
    display: none;
}

.header__logo h2 {
    font-family: serif; /* Auraluna logo uses a serif */
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 1px;
}

.header__nav {
    margin-top: 20px;
}

.header__nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
}

.header__nav a {
    font-size: 14px;
    color: #a0a0a0;
    transition: color 0.2s;
}

.header__nav a:hover {
    color: #ffffff;
}

/* ============================================================
   MAIN CONTENT & COLLECTION HEADER
   ============================================================ */
.main-content {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.collection-header {
    margin-bottom: 30px;
}

.collection-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text-main);
}

.collection-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--color-text-light);
}

.filters-left, .filters-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-dropdown {
    position: relative;
    cursor: pointer;
}

.filter-dropdown summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-dropdown summary::-webkit-details-marker {
    display: none;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    border: none;
    background: transparent;
    font-family: inherit;
    color: var(--color-text-main);
    cursor: pointer;
    outline: none;
}

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

.product-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-card__link {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.product-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f1f5f9;
    color: var(--color-text-main);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-card__info {
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.product-card__prices {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-old {
    font-size: 13px;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.price-new {
    font-size: 15px;
    color: var(--color-text-main);
    font-weight: 600;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn--outline:hover {
    background: var(--color-border);
    color: #fff;
}

.btn--solid {
    background: var(--color-btn-solid-bg);
    border: 1px solid var(--color-btn-solid-bg);
    color: var(--color-btn-solid-text);
}

.btn--solid:hover {
    opacity: 0.9;
}

.btn--full {
    width: 100%;
    margin-bottom: 10px;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.product-detail__media img {
    width: 100%;
    border-radius: var(--radius-card);
    object-fit: cover;
}

.product-detail__info {
    padding-top: 20px;
}

.breadcrumb {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.product-detail__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.product-detail__price-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.product-detail__price-container .price-old {
    font-size: 16px;
}

.product-detail__price-container .price-new {
    font-size: 20px;
}

.product-detail__quantity {
    margin-bottom: 30px;
}

.product-detail__quantity label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--color-text-light);
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    color: var(--color-text-main);
    cursor: pointer;
}

.quantity-selector input {
    width: 40px;
    height: 40px;
    border: none;
    text-align: center;
    font-family: inherit;
    font-size: 16px;
    color: var(--color-text-main);
    background: transparent;
}

.quantity-selector input:focus {
    outline: none;
}

.product-detail__share {
    margin-top: 30px;
}

.btn-share {
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--color-text-main);
    cursor: pointer;
}

/* ============================================================
   HOMEPAGE (Hero & Collections)
   ============================================================ */
.homepage-content {
    padding: 0;
    max-width: 100%;
}

.hero-banner {
    width: 100%;
    margin-bottom: 60px;
}

.hero-banner__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px;
}

.collections-section {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 80px;
}

.section-heading {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 40px;
}

.collection-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: transform 0.2s;
    text-align: center;
}

.collection-card:hover {
    transform: translateY(-2px);
}

.collection-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.collection-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.collection-card__image-wrapper img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.collection-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: var(--color-text-main);
    padding: 4px 12px;
    border: 1px solid var(--color-text-main);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-red {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.collection-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-main);
}

/* ============================================================
   CROSS-SELL SECTION
   ============================================================ */
.cross-sell-section {
    padding-top: 40px;
    border-top: 1px solid var(--color-border-light);
}

.cross-sell-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--color-header-bg);
    color: var(--color-header-text);
    padding: 60px 20px 20px;
    text-align: center;
}

.footer__logo h2 {
    font-family: serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.footer__socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 12px;
    color: #a0a0a0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-form-container {
    margin-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    background-color: transparent;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-text-main);
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 10px;
}
/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #000000;
    color: #ffffff;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-nav__header {
    padding: 20px 30px;
}

.mobile-nav__close {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.mobile-nav__menu {
    flex-grow: 1;
    padding: 20px 30px;
}

.mobile-nav__menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav__menu a {
    font-size: 16px;
    font-weight: 500;
}

.mobile-nav__footer {
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__login {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin-bottom: 25px;
}

.mobile-nav__socials {
    display: flex;
    gap: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .hamburger-icon {
        display: block;
    }
    
    .header__nav {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card, .collection-card {
        padding: 10px;
    }

    .product-card__title, .collection-card__title {
        font-size: 13px;
    }

    .price-new {
        font-size: 13px;
    }

    .header {
        padding: 15px 20px;
    }
    
    .collection-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ============================================================
   CART DRAWER & OVERLAY
   ============================================================ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: var(--color-bg);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.cart-drawer__header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-main);
}

.cart-drawer__close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer__close:hover {
    color: var(--color-text-main);
}

/* Empty State */
.cart-drawer__empty {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
}

.cart-drawer__empty h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-text-main);
}

.btn--blue {
    background-color: #4b7bec;
    border-color: #4b7bec;
    color: white;
    width: auto;
    padding: 12px 30px;
}

.btn--blue:hover {
    background-color: #3867d6;
    border-color: #3867d6;
}

.cart-drawer__login {
    margin-top: 60px;
}

.cart-drawer__login h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-drawer__login p {
    font-size: 14px;
    color: var(--color-text-light);
}

.cart-drawer__login a {
    color: var(--color-text-main);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Filled State */
.cart-drawer__filled {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
}

.cart-table-headers {
    display: flex;
    justify-content: space-between;
    padding: 10px 30px;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--color-text-light);
}

.cart-item {
    display: flex;
    padding: 20px 30px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.cart-item__media {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.cart-item__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item__details {
    flex-grow: 1;
}

.cart-item__details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    padding-right: 20px;
}

.cart-item__price {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.cart-item__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-selector--small {
    height: 32px;
}

.quantity-selector--small .qty-btn {
    width: 30px;
    height: 32px;
    font-size: 14px;
}

.quantity-selector--small input {
    width: 30px;
    height: 32px;
    font-size: 14px;
}

.cart-item__remove {
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
}

.cart-item__remove:hover {
    color: var(--color-text-main);
}

.cart-drawer__footer {
    padding: 30px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border-light);
    margin-top: auto;
}

.cart-totals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-totals__price {
    font-size: 18px;
}

.cart-taxes {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.4;
}
