/*
Theme Name: SheWorks Premium
Theme URI: https://sheworks.in
Author: SheWorks Team
Description: A premium, modern ecommerce theme for Indian clothing brands.
Version: 1.0.0
Text Domain: sheworks
*/

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

:root {
    /* Core Luxury Palette */
    --primary: #0a0e1a;          /* Deep Midnight Blue */
    --secondary: #c5a059;        /* Brushed Gold */
    --accent: #8b0000;           /* Deep Wine */
    --bg-light: #fefcf9;
    --bg-alt: #f4f1ea;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    
    /* Layout & Spacing */
    --container-max: 1400px;
    --section-padding: 100px 5%;
    
    /* Elegant UI Tokens */
    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-lg: 40px;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.03);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.08);
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* Global Button Styles to match Home */
.btn, .button, .woocommerce-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 45px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn:hover, .button:hover, .woocommerce-button:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3);
}

/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

#main-header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 15px 5%;
    box-shadow: var(--shadow-soft);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary);
}

#main-header.scrolled .logo {
    font-size: 1.5rem;
}

/* Header Themes */
#main-header.theme-dark .logo,
#main-header.theme-dark .nav-icons a {
    color: var(--white);
}

#main-header.theme-light .logo,
#main-header.theme-light .nav-icons a {
    color: var(--primary);
}

/* Ensure icons transition colors smoothly */
.logo, .nav-icons a i {
    transition: color 0.5s ease;
}

/* When scrolled, the background is glass, so we might want a specific look */
#main-header.scrolled.theme-dark .logo,
#main-header.scrolled.theme-dark .nav-icons a,
#main-header.scrolled.theme-light .logo,
#main-header.scrolled.theme-light .nav-icons a {
    color: var(--primary); /* Force dark color on glass for readability */
}

.nav-links {
    display: flex;
    gap: 40px;
    background: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

.nav-icons {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
}

/* Hero Carousel */
.hero-slider {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 30%, transparent 70%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 5;
    padding-left: 10%;
    color: var(--white);
    max-width: 800px;
}

.slide-content h1 {
    font-size: 6rem;
    line-height: 0.9;
    margin-bottom: 20px;
    color: var(--white);
}

/* Product Collection Slider (Inside Hero) */
.hero-product-collection {
    position: absolute;
    right: 5%;
    bottom: 10%;
    z-index: 20;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.collection-title {
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s ease;
}

.slide.active .collection-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.collection-item {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    transform: translateY(-200px) scale(0.8);
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.68, -0.15, 0.32, 1.6);
}

.slide.active .collection-item {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.slide.active .collection-item:nth-of-type(1) { transition-delay: 0.5s; }
.slide.active .collection-item:nth-of-type(2) { transition-delay: 0.7s; }

.collection-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3);
}

/* Collections section */
.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 15px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    border-radius: var(--radius-sm);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.quick-add-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition-smooth);
    z-index: 10;
}

.product-card:hover .quick-add-overlay {
    transform: translateY(0);
}

.card-variations {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.size-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.size-tag {
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--bg-alt);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-muted);
}

.color-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: block;
}

.btn-quick-view {
    margin-top: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary);
    text-decoration: underline;
}

.quick-add a {
    background: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    width: 100%;
    display: block;
    text-align: center;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
    margin-top: 50px;
}

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

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

.footer-col ul li {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

/* WooCommerce Overrides */
.woocommerce-loop-product__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin: 10px 0;
}

.woocommerce-Price-amount {
    color: var(--secondary);
    font-weight: 700;
}

/* Single Product & Variations - Premium Redesign */
.single-product-main {
    margin-top: 150px;
    margin-bottom: 100px;
}

.sheworks-single-product {
    animation: fadeIn 1s ease-out;
}

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

.product-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Gallery Stylings */
.product-gallery-view {
    position: sticky;
    top: 150px;
}

.product-gallery-view .woocommerce-product-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: var(--white);
    padding: 10px;
}

.product-gallery-view img {
    border-radius: var(--radius-md);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Summary Stylings */
.product-summary-view {
    padding-top: 20px;
}

.entry-summary .brand-label {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
    display: block;
}

.entry-summary h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 25px;
    color: var(--primary);
    font-family: 'Cormorant Garamond', serif;
}

.entry-summary .price {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.entry-summary .price ins {
    text-decoration: none;
    color: var(--secondary);
}

.entry-summary .price del {
    font-size: 1.2rem;
    color: #bbb;
}

.woocommerce-product-details__short-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 45px;
    border-left: 3px solid var(--bg-alt);
    padding-left: 25px;
}

/* Variations Table - Minimalist Luxury */
.variations {
    margin-bottom: 50px;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.variations td {
    padding: 0;
}

.variations .label {
    width: 100px;
}

.variations label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
}

.variations select {
    background: #fdfdfd !important;
    border: 1px solid #eee !important;
    height: 55px !important;
    padding: 0 20px !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    min-width: 300px !important;
    transition: var(--transition-smooth) !important;
    appearance: auto !important;
}

.variations select:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1) !important;
}

.single_variation_wrap {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-top: 30px;
}

.woocommerce-variation-price .price {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Add to Cart Group */
.cart {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.quantity {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 50px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
}

.quantity input {
    border: none !important;
    background: transparent !important;
    width: 50px !important;
    text-align: center;
    font-weight: 700;
}

.single_add_to_cart_button {
    flex: 1;
    min-width: 250px;
    height: 65px !important;
    background: var(--primary) !important;
    color: var(--white) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    border-radius: 50px !important;
    cursor: pointer;
    transition: var(--transition-smooth) !important;
}

.single_add_to_cart_button:hover {
    background: var(--secondary) !important;
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.2);
}

/* Meta & Trust Badges */
.product_meta {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed #ddd;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product_meta span {
    display: block;
    margin-bottom: 8px;
}

.trust-badges {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.trust-item {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tabs & Related */
.woocommerce-tabs {
    margin-top: 100px;
}

.wc-tabs {
    border: none !important;
    padding: 0 !important;
    display: flex;
    gap: 40px;
    margin-bottom: 40px !important;
    justify-content: center;
}

.wc-tabs li {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.wc-tabs li a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem !important;
    color: #ccc !important;
    padding: 0 0 10px 0 !important;
    border-bottom: 2px solid transparent !important;
}

.wc-tabs li.active a {
    color: var(--primary) !important;
    border-bottom-color: var(--secondary) !important;
}

.woocommerce-Tabs-panel {
    max-width: 800px;
    margin: 0 auto;
    line-height: 2;
    color: var(--text-muted);
}

.upsells, .related {
    margin-top: 120px;
}

.upsells h2, .related h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
}

@media (max-width: 991px) {
    .product-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .entry-summary h1 {
        font-size: 2.8rem;
    }
}

/* Mobile Drawer & Shopify Features */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

@media (max-width: 991px) {
    .mobile-only { display: block; }
    .desktop-only { display: none; }
    #main-header { padding: 15px 0 !important; }
}

/* Drawer Component */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transform: translateX(-100%);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 50px rgba(0,0,0,0.1);
}

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

#drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1999;
    display: none;
}

#drawer-overlay.active {
    display: block;
}

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

.drawer-content {
    padding: 30px;
    overflow-y: auto;
}

.mobile-search {
    position: relative;
    margin-bottom: 40px;
}

.mobile-search input {
    height: 45px;
    padding-right: 40px;
    border-radius: 12px;
}

.mobile-search button {
    position: absolute;
    right: 15px;
    top: 10px;
    background: none;
    border: none;
    color: var(--secondary);
}

.mobile-nav ul li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-categories {
    margin-top: 50px;
}

.mobile-categories h4 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.mobile-categories ul li {
    margin-bottom: 12px;
    font-weight: 400;
}

/* Shop Archive & Filter Bar Redesign */
.sheworks-shop-archive {
    margin-top: 120px;
}

.woocommerce-products-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 60px 0;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
}

.woocommerce-products-header__title {
    font-size: 5rem;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 20px;
}

.woocommerce-archive-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Luxury Filter Bar */
.shop-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
    z-index: 100;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--primary);
}

.filter-btn i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.product-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.sort-select select {
    border: none !important;
    background: transparent !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0 10px !important;
}

/* Archive Grid */
.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

@media (max-width: 768px) {
    .products.columns-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .woocommerce-products-header__title { font-size: 3rem; }
}

/* Pagination - Branded */
.woocommerce-pagination {
    margin-top: 80px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 15px;
    border: none !important;
}

.woocommerce-pagination ul li {
    border: none !important;
    overflow: visible !important;
}

.woocommerce-pagination ul li a, 
.woocommerce-pagination ul li span {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid #eee !important;
    color: var(--primary) !important;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.woocommerce-pagination ul li span.current {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.woocommerce-pagination ul li a:hover {
    background: var(--secondary) !important;
    color: var(--white) !important;
}

.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: var(--white);
    z-index: 2005;
    transform: translateX(100%);
    transition: var(--transition-smooth);
    padding: 40px;
    box-shadow: -10px 0 50px rgba(0,0,0,0.1);
}

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

.filter-group {
    margin-bottom: 40px;
}

.filter-group h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bg-alt);
    padding-bottom: 10px;
}

.budget-slider {
    padding: 10px 0;
}

.swatch-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.swatch-item {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #eee;
    cursor: pointer;
}

.swatch-item.active {
    border-color: var(--secondary);
}
