/* ===== FONTS ===== */
@font-face {
    font-family: 'AkzidenzGrotesk';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/AkzidenzGrotesk-Light.woff2') format('woff2');
}
@font-face {
    font-family: 'AkzidenzGrotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/AkzidenzGrotesk-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'AkzidenzGrotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/AkzidenzGrotesk-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'AkzidenzGrotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/AkzidenzGrotesk-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Rongel';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Rongel-Regular.woff2') format('woff2');
}

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

/* ===== VARIABLES ===== */
:root {
    --primary: #087dd1;
    --text: #5c5c5c;
    --text-light: #939393;
    --border: #e7e7e7;
    --bg: #fff;
    --bg-light: #fafafa;
    --sticky-header-height: 190px;
}

/* ===== BASE ===== */
html {
    font-size: 15px;
}

body {
    font-family: 'AkzidenzGrotesk', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'AkzidenzGrotesk', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: 'AkzidenzGrotesk', sans-serif;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* ===== STICKY HEADER BLOCK ===== */
.sticky-header-block {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: #d9acac;
    color: #fff;
    text-align: center;
    padding: 10px 24px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.announcement-bar p {
    margin: 0;
}

/* ===== HEADER ===== */
.header {
    background: var(--bg);
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
    position: relative;
}

.logo {
    text-align: center;
    flex: 1;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    margin: 0 auto 40px;
    object-fit: contain;
}

.tagline {
    font-size: 0.75rem;
    color: #bbb;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.tagline-sub {
    font-size: 0.65rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    position: absolute;
    right: 24px;
}

.icon-btn {
    padding: 8px;
    position: relative;
    transition: opacity 0.3s;
}

.icon-btn:hover {
    opacity: 0.7;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background: #8a2f42;
    border-color: #8a2f42;
    color: #fff;
}

.btn-secondary {
    color: var(--text-light);
    border-color: var(--border);
    background: transparent;
}

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

.btn-full {
    width: 100%;
}

.btn-text {
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: underline;
    padding: 10px 0;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    background: white;
}

.filter-bar-inner {
    height: 60px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    background: var(--bg-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    display: none;
}

.search-bar.active {
    display: block;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-light);
    transition: color 0.3s;
}

.search-clear:hover {
    color: var(--text);
}

/* ===== FILTER SIDEBAR ===== */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 199;
}

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

.filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg);
    z-index: 200;
    overflow-y: auto;
    transition: left 0.5s;
}

.filter-sidebar.active {
    left: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.filter-header h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.filter-close {
    font-size: 2rem;
    color: var(--text);
    padding: 0 10px;
}

.filter-content {
    padding: 24px;
}

.filter-group {
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    cursor: pointer;
}

.filter-group-header svg {
    transition: transform 0.3s;
}

.filter-group-header.active svg {
    transform: rotate(180deg);
}

.filter-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s;
}

.filter-group-content.active {
    max-height: 500px;
    margin-bottom: 20px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
}

/* ===== PRODUCTS ===== */
.products-section {
    padding: 50px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 15px;
}

.product-card {
    cursor: pointer;
    grid-column: span 2;
}

.product-card.sold-out {
    cursor: not-allowed;
    opacity: 0.6;
}

.product-card .product-image-wrapper {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 3/4;
    background: transparent;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s;
}

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

.product-card.sold-out:hover .product-image {
    transform: none;
}

.product-card.sold-out .product-image {
    filter: grayscale(80%);
}

.sold-out-badge {
    position: absolute;
    top: 11px;
    left: 11px;
    background: var(--text);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.53rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.featured-badge {
    position: absolute;
    top: 11px;
    right: 11px;
    background: var(--primary);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.53rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.product-card-info {
    text-align: left;
}

.product-collection {
    font-size: 0.53rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.product-card-name {
    font-size: 0.77rem;
    font-weight: 400;
    margin-bottom: 6px;
}

.product-card-price {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 400;
}

.no-results {
    text-align: center;
    padding: 80px 24px;
}

.no-results p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 299;
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--bg);
    z-index: 300;
    display: flex;
    flex-direction: column;
    transition: right 0.5s;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.cart-close {
    font-size: 2rem;
    color: var(--text);
    padding: 0 10px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

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

.cart-item-image {
    width: 100px;
    height: 130px;
    object-fit: cover;
    background: var(--bg-light);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.cart-item-options {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: auto;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.cart-qty-controls {
    display: flex;
    border: 1px solid var(--border);
}

.cart-qty-btn {
    padding: 5px 12px;
    font-size: 1rem;
    color: var(--text);
}

.cart-qty-value {
    padding: 5px 12px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    min-width: 40px;
    text-align: center;
}

.cart-remove {
    font-size: 0.8rem;
    color: var(--text-light);
    text-decoration: underline;
}

.cart-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: var(--text-light);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cart-total {
    font-weight: 600;
    color: var(--primary);
}

.cart-note {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    background: white;
}

.breadcrumb a, .breadcrumb span {
    color: var(--text-light);
    font-size: 0.85rem;
}

.breadcrumb span {
    margin: 0 10px;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    padding: 0 0 50px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.product-images {
    position: -webkit-sticky;
    position: sticky;
    top: 250px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: fit-content;
    max-height: calc(100vh - 270px);
    z-index: 50;
}

.main-image-wrapper {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    transition: transform 0.3s;
}

.zoom-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 10;
    transform: translate(-50%, -50%);
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    width: 60px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail:hover, .thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
}

.product-name {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 400;
}

.product-option {
    margin-bottom: 25px;
}

.option-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    font-weight: 600;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 10px 20px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    transition: all 0.3s;
    background: var(--bg);
}

.option-btn:hover, .option-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 25px 0;
}

.product-share span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-share a {
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.product-share a:hover {
    opacity: 1;
}

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

.product-description h3, .product-measurements h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}

.product-description p {
    line-height: 1.8;
}

.product-details-section {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.detail-item strong {
    min-width: 120px;
    font-weight: 600;
}

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

.measurement-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.measurement-item strong {
    min-width: 120px;
    font-weight: 600;
}

.related-section {
    margin-top: 80px;
}

.related-section h2 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 50px;
    text-align: center;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text);
    color: #fff;
    padding: 50px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.footer-section ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.social-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .filter-bar-inner {
        padding: 0 20px;
    }

    .header-links {
        display: none;
    }

    .header-top {
        flex-direction: column;
        padding: 20px 0 10px;
        gap: 15px;
    }

    .header-icons {
        position: static;
        justify-content: center;
    }

    .logo-img {
        height: 66px;
    }

    .tagline {
        font-size: 0.65rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px 15px;
    }

    .product-card {
        grid-column: span 1;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-images {
        position: static;
    }

    .product-name {
        font-size: 1.5rem;
    }

    .cart-sidebar, .filter-sidebar {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (min-width: 641px) and (max-width: 1007px) {
    .products-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .product-card.category-dresses {
        grid-column: span 2;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-images {
        position: static;
    }
}

@media (min-width: 1240px) {
    .container {
        padding: 0 50px;
    }

    .filter-bar-inner {
        padding: 0 50px;
    }

    .products-grid {
        grid-template-columns: repeat(9, 1fr);
    }

    .product-card {
        grid-column: span 3;
    }
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.modal-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}
