/* --- Global Resets & Variables --- */
:root {
    --bg-color: #fdfdfd;
    --text-main: #111111;
    --text-muted: #666666;
    --accent: #7a6e67; /* Muted taupe/earthy luxury */
    --border-color: #e5e5e5;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}



/* --- Navigation --- */
nav{
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    background-color: rgb(40, 13, 13);
    z-index: 100;
}


.nav-bar {
    height: 100%;
    max-width: 100%;
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;

}
.nav-bar .sidebarOpen{
    color: white;
    font-size: 25px;
    padding: 5px;
    cursor: pointer;
    display: none;
}
.nav-bar .logoo a{
    font-size: 25px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}
.nav-bar .logooo a{
    font-size: 25px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}
.menu .logo-toggle{
    display: none;

}

.nav-linkss {
    display: flex;
    align-items: center;
}
.nav-linkss li{
    margin: 0 5px;
    list-style: none;
}
.nav-linkss li a{
    position: relative;
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    padding: 10px;
    text-decoration: none;
}
.nav-linkss li a::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: rgb(40, 13, 13);
    opacity: 0;
    transition: all 0.3s ease;
}
.nav-linkss li:hover a::before{
    opacity: 1;
}

@media (max-width: 790px) {
    .nav-bar .sidebarOpen{
       display: block;
    }
    .menu{
        position: fixed;
        height: 100%;
        width: 320px;
        left: -100%;
        top: 0;
        padding: 20px;
        background-color: rgb(40, 13, 13);
        z-index: 100;
        transition: all 0.4s ease;
    }
    nav.active .menu{
        left: -0%;
    }
    nav.active .nav-bar .logoo a{
        opacity: 0;
        transition: all 0.3s;
    }
    .menu .logo-toggle{
        display: block;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .logo-toggle .sbClose{
        color: #fff;
        font-size: 24px;
        cursor: pointer;
    }
    .nav-bar .nav-linkss{
        flex-direction: column;
        padding-top: 30px;
    }
    .nav-linkss li a{
        display: block;
        margin-top: 20px;
    }
}
@media (max-width: 600px) {
     .nav-bar .logoo a{
     font-size: 15px;
     font-weight: 400;
     color: #fff;
     text-decoration: none;
    }
}


.cart-toggle-btn {
    background-color: #eef2ff;
    color: #3730a3;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.cart-toggle-btn:hover {
    background-color: #e0e7ff;
}

/* --- Hero Section --- */
.hero {
    width: 100%;
    height: 235vh;
    background-image: linear-gradient(rgba(12,3,51,0.3),rgba(12,3,51,0.3));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 5%;
}
.hero-content{
    text-align: center;
}
.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 600;
    transition: 0.5s; 
}
.hero-content:hover{
    -webkit-text-stroke: 2px #fff;
    color: transparent;
}
.hero-content p {
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 300;
}

.hero-content a{
    text-decoration: none;
    display: inline-block;
    color: #fff;
    font-size: 24px;
    border: 2px solid #fff;
    padding: 14px 70px;
    border-radius: 50px;
    margin-top: 100px;
}

.back-vid{
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
}
@media (min-aspect-ratio: 16/9){
    .back-vid{
        width: 100%;
        height: auto;
    }
}
@media (max-aspect-ratio: 16/9){
    .back-vid{
        width: auto;
        height: 100%;
    }
}




/* --- Catalog & Grid Index--- */
.catalog-container {
    padding: 4rem 4%;
}



.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
    color: var(--text-muted);
}

.filter-btn.active, .filter-btn:hover {
    color: var(--text-main);
    border-bottom: 1px solid var(--text-main);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem 2rem;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-muted);
}



/* --- Product Card index--- */
.product-card {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 1rem;
    aspect-ratio: 3 / 4;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.04);
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
}

.product-price {
    font-weight: 500;
    font-size: 0.9rem;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ==========================================
   FILTER BAR STYLES
   ========================================== */
.section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.25rem;
    font-weight: 400;
    color: black;
}

.filter-bar {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.filter-btn {
    background-color: #ffffff;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.filter-btn.active {
    background-color: rgb(40, 13, 13);
    color: #ffffff;
    border-color: rgb(40, 13, 13);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}


/* --- Catalog & Grid male&female--- */

/* ==========================================
   MAIN LAYOUT & SHOP GRID
   ========================================== */
.main-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    margin-top: 2rem;
    padding: 3rem 1rem;
    flex: 1;
}

    
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 100px) {
    .products-grid { grid-template-columns: repeat(2, 1fr);}
}

@media (min-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================
   PRODUCT CARD COMPONENT
   ========================================== */
.product-card {
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.card-image-wrap {
    aspect-ratio: 1 / 1;
    background-color: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgb(40, 13, 13);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-price {
    color: black;
    font-weight: 600;
}

.card-action-text {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background-color: rgb(40, 13, 13);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    width: max-content;
}

/* ==========================================
   PRODUCT DETAILS VIEW
   ========================================== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 30px;
    padding: 6px 16px 6px 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 22px;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
}

.back-button:hover {
    color: rgb(40, 13, 13);
}

.back-button span {
    margin-right: 0.5rem;
}

.product-page-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .product-page-card { grid-template-columns: repeat(2, 1fr); padding: 3rem; }
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-featured-image {
    aspect-ratio: 1 / 1;
    background-color: #f9fafb;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.main-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s ease-in-out;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumb-item {
    aspect-ratio: 1 / 1;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    overflow: hidden;
    cursor: pointer;
    transition: outline 0.1s;
}

.thumb-item:hover, .thumb-item.active {
    outline: 2px solid rgb(40, 13, 13);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-content-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-meta-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgb(40, 13, 13);
}

.product-main-title {
    font-size: 2rem;
    font-weight: 900;
    color: rgb(40, 13, 13);
    margin: 0.25rem 0 0.5rem 0;
}

.product-main-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: black;
    margin-bottom: 1.5rem;
}

.divider {
    border: 0;
    border-top: 1px solid #f3f4f6;
    margin: 1.5rem 0;
}

.desc-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.desc-text {
    color: #4b5563;
    margin-bottom: 2rem;
    white-space: pre-line;
}

.buy-now-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: rgb(40, 13, 13);
    color: #ffffff;
    font-weight: 700;
    padding: 1rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
    transition: background-color 0.2s, transform 0.1s;
}

.buy-now-btn:hover {
    background-color: rgba(12,3,51,0.3);
}

.buy-now-btn:active {
    transform: scale(0.99);
}

.redirect-notice {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.75rem;
}

/* ==========================================
   CART SYSTEM SLIDE DRAWER
   ========================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -4px 0 25px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.empty-cart-text {
    text-align: center;
    color: #9ca3af;
    margin-top: 3rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid #f9fafb;
    padding-bottom: 1rem;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
}

.cart-item-price {
    color: #4f46e5;
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: 0.15rem;
}

.cart-item-qty-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    background-color: #f3f4f6;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.qty-btn:hover {
    background-color: #e5e7eb;
}

.cart-item-remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.875rem;
    cursor: pointer;
    margin-left: auto;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #f3f4f6;
    background-color: #f9fafb;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.checkout-btn {
    display: block;
    width: 100%;
    background-color: rgb(40, 13, 13);
    color: white;
    text-align: center;
    border: none;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.checkout-btn:hover {
    background-color: rgba(12,3,51,0.3);
}

/* ==========================================
   UTILITY LOADER
   ========================================== */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 0;
}

.spinner {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    border: 4px solid rgb(40, 13, 13);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Size Selection Layout */
.size-selector-container {
    margin: 1.5rem 0;
}

.size-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.size-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-chip {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.size-chip:hover {
    border-color: rgb(40, 13, 13);
    color: rgb(40, 13, 13);
}

.size-chip.selected {
    background-color: rgb(40, 13, 13);
    border-color: rgb(40, 13, 13);;
    color: #ffffff;
    box-shadow: 0 2px 4px rgb(40, 13, 13);
}

/* Selected Size Tag in Cart Drawer */
.cart-item-size-tag {
    display: inline-block;
    font-size: 0.75rem;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Add this inside your existing style.css file */

.checkout-fields {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checkout-fields label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #4b5563;
    letter-spacing: 0.05em;
}

.checkout-fields input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.checkout-fields input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}








.footer {
    background-color: #ffffff;
    border-top: 1px solid #f3f4f6;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: auto;
}

.icon i {
    font-style: none;
    margin: 0 2px;
    color: rgb(40, 13, 13);
    font-size: 22px;
    text-decoration: none;
}

/* Global scroll behavior optimizations */
html {
    scroll-behavior: smooth;
}

