/* styles.css – Classy, Sophisticated Redesign */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
    --primary: #10212d;      /* Deep navy blue */
    --accent: #4aa8c5;       /* Cool cyan accent */
    --text: #10212d;         /* Primary text */
    --muted: #5c6e7f;        /* Cooler muted gray */
    --light: #f3f8fc;        /* Very light blue */
    --border: #dbe6ef;       /* Soft cool border */
    --white: #ffffff;
    --page-bg: #eff6fb;      /* Page background */
    --card-bg: #ffffff;      /* Card background */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}

/* -------- NAVBAR -------- */
.navbar {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.85));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(11,19,32,0.04);
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(11,19,32,0.06);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-transform: lowercase;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.25s;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
    background: var(--light);
    color: var(--accent);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}


.tags-wrapper {
  font-family: Arial, sans-serif;
  
  width: 400px;
}
.tags-inner {
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  border-radius: 4px;
}
.tag {
  display: flex;
  align-items: center;
  background-color: #e0e0e0;
  padding: 5px 10px;
  margin: 3px;
  border-radius: 3px;
  font-size: 14px;
}
.tag .remove-btn {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
  color: #666;
}
.tag .remove-btn:hover {
  color: #ff0000;
}
#tagInput {
  border: none;
  outline: none;
  flex-grow: 1;
  padding: 6px;
  font-size: 14px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    display: none;
    background: white;
    border-bottom: 1px solid var(--border);
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
}

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-list a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text);
}

/* -------- HERO -------- */
.hero {
    height: 90vh;
    min-height: 650px;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
                url('https://picsum.photos/id/1015/2000/1200') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.5;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(11,19,32,0.06);
}

.btn-primary {
    background: linear-gradient(180deg, var(--primary), rgba(11,19,32,0.9));
    color: white;
    border: 1px solid rgba(255,255,255,0.06);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #55b5d8, #2489a7);
    border-color: rgba(0,0,0,0.06);
    transform: translateY(-2px) scale(1.01);
}

.btn-outline {
    border: 1px solid rgba(11,19,32,0.06);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(11,19,32,0.03);
    color: var(--primary);
    border-color: rgba(11,19,32,0.06);
}

.hero-trust {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.85;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
}

/* -------- SHOP SECTION -------- */
.shop-section {
    padding: 6rem 0;
    background: var(--white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.section-header p {
    color: #666;
    font-weight: 300;
    font-size: 1.1rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.search-bar input {
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 2px;
    width: 320px;
    font-size: 0.95rem;
    outline: none;
    background: var(--white);
    transition: border 0.2s;
    font-family: 'Inter', sans-serif;
}

.search-bar input:focus {
    border-color: var(--accent);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-btn {
    padding: 8px 18px;
    border: none;
    background: none;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--text);
    transition: color 0.2s, background 0.2s;
    border-bottom: 2px solid transparent;
    line-height: 1;
}

.category-btn.active,
.category-btn:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: none;
}

.siz\&color-filters {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text);
}

.siz\&color-filters select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    outline: none;
}


.skeleton {
    animation: pulse 0.5s infinite ease-in-out;
}

.skeleton-img {
    height: 280px;
    background: #e5e5e5;
    border-radius: 8px;
}

.skeleton-text {
    height: 20px;
    background: #e5e5e5;
    margin: 10px 0;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.6rem;
    
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(11,19,32,0.05);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(11,19,32,0.09);
    border-color: rgba(11,19,32,0.06);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.prod-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

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

.product-card .content {
    padding: 0.85rem 1rem 1rem;
}

.product-card .category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 4px;
}

.product-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.12rem;
    font-weight: 600;
    margin: 4px 0;
    display: inline;
}

.product-card .price {
    font-size: 1.05rem;
    font-weight: 600;
    color: tomato;
    margin-top: 6px;
    display: block;
}

.actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.actions button {
    flex: 1;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid transparent;
    box-shadow: 0 6px 16px rgba(11,19,32,0.04);
}

.actions button:first-child {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.actions button:first-child:hover {
    background: var(--primary);
    color: white;
}

.actions button:last-child {
        background: linear-gradient(180deg, #55b5d8, #2489a7);
        color: white;
    }


/* -------- MODALS -------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}


#product-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.modal-content {
    background: linear-gradient(180deg, #ffffff, #fbfaf8);
    max-width: 1100px;
    width: 92%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(11,19,32,0.12);
    font-family: 'Inter', system-ui, sans-serif;
}

/* Right side – product info (compact to favor image) */
.modal-info {
    flex: 1 1 15%;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    background: white;
    min-width: 140px;
}
/* ===== CART MODAL – COMPLETE REVISED STYLES ===== */

/* Modal container */
#cart-modal .modal-content.cart-modal-content {
    max-width: 560px;
    width: 90%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    background: white;
    border-radius: 28px;
    position: relative;
}

/* Heading */
#cart-modal .cart-modal-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

/* Cart items container – takes most vertical space */
#cart-modal .cart-items {
    flex: 1;
    overflow-y: auto;
    margin: 0.5rem 0 1rem 0;
    padding-right: 0.5rem;
}

/* Individual cart item */
#cart-modal .cart-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

#cart-modal .cart-item:last-child {
    border-bottom: none;
}

/* Product image – larger for better visibility */
#cart-modal .cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* Product details block */
#cart-modal .cart-item div:first-of-type {
    flex: 1;
}

#cart-modal .cart-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

#cart-modal .cart-item p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

/* Right side (price + remove) */
#cart-modal .cart-item > div:last-child {
    text-align: right;
    flex-shrink: 0;
}

#cart-modal .cart-item .item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
}

/* Remove button */
#cart-modal .remove-item-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
    transition: background 0.2s;
}

#cart-modal .remove-item-btn:hover {
    background: #fee2e2;
}

/* Total section – fixed at bottom */
#cart-modal .cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1rem 0 .5rem 0;
    padding-top: 1rem;
    border-top: 2px solid var(--accent);
    flex-shrink: 0;
}

/* Action buttons */
#cart-modal .cart-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

#cart-modal .cart-actions .btn {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Cart note */
#cart-modal .cart-note {
    font-size: 0.7rem;
    text-align: center;
    color: #888;
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--border);
    flex-shrink: 0;
}

/* ===== Order By Dropdown (Classy + Responsive) ===== */
.orderby-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
}
.orderby-label {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.6px;
}
.select-wrapper {
    position: relative;
    display: inline-block;
}
.orderby-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 36px 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(16,33,45,0.08);
    background: linear-gradient(180deg,#ffffff,#fbfdff);
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 6px 18px rgba(16,33,45,0.06);
    transition: box-shadow .15s, transform .12s;
    cursor: pointer;
    min-width: 180px;
}
.orderby-select:focus{
    outline: none;
    box-shadow: 0 8px 30px rgba(74,168,197,0.14);
    transform: translateY(-1px);
}
.select-wrapper .chev{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    fill: var(--muted);
    pointer-events: none;
    opacity: 0.9;
}

@media (max-width: 760px) {
    .orderby-container{ width: 100%; justify-content: space-between; }
    .orderby-select{ min-width: 120px; }
    .orderby-label{ font-size: 0.9rem; }
    /* ensure order on small screens keeps tags visible */
    .tags-inner{ order: 2; }
    .orderby-container{ order: 1; }
}

/* Close button inside cart modal */
#cart-modal .modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

#cart-modal .modal-close:hover {
    background: var(--accent);
    color: white;
}

/* Mobile adjustments – even more breathing room on small screens */
@media (max-width: 600px) {
    #cart-modal .modal-content.cart-modal-content {
        padding: 1rem;
        max-height: 90vh;
    }
    #cart-modal .cart-item {
        gap: 1rem;
        padding: 1rem 0;
    }
    #cart-modal .cart-item img {
        width: 70px;
        height: 70px;
    }
    #cart-modal .cart-item h4 {
        font-size: 0.95rem;
    }
    #cart-modal .cart-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    #cart-modal .cart-total { 
        margin-bottom: 0rem; 
    }

}
.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    background: rgba(0,0,0,0.08);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.modal-close:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.02);
}

/* Modal body – split layout */
.modal-body {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

/* Ensure the modal image div fills its container */

.modal-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
}

#modal-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.2;
    color: #1a1a1a;
}

#modal-description {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #5a5a5a;
    margin-bottom: 12px;
    border-left: 2px solid var(--accent);
    padding-left: 10px;
}

.modal-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.modal-actions {
    margin-top: auto;
}

.modal-actions .btn {
    background: var(--primary);
    width: 100%;
    padding: 6px 8px;
    font-weight: 600;
    border-radius: 34px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 0.72rem;
}

.modal-actions .btn:hover {
    background: var(--accent);
}


/* Cart modal specifics */
.cart-items {
    max-height: 380px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0;
    font-family: 'Inter', sans-serif;
}

/* Cart action buttons within modal are already styled via .btn classes */

/* -------- CATEGORIES SECTION -------- */
.categories-section {
    padding: 5rem 0;
    background: var(--light);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.3px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem 1rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.category-icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.category-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.category-card p {
    font-size: 0.85rem;
    color: #888;
}

/* -------- SELL SECTION -------- */
.sell-section {
    background: linear-gradient(150deg, #1f1f1f 0%, #2c2c2c 100%);
    color: white;
    padding: 5rem 0;
}

.sell-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.sell-text {
    flex: 1;
}

.sell-text h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sell-text p {
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.sell-text .btn {
    background: var(--accent);
    color: var(--primary);
    border: none;
    font-weight: 600;
}

.sell-text .btn:hover {
    background: #d4af6e;
}

.stats {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 300;
}

.sell-image {
    font-size: 8rem;
    opacity: 0.6;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -------- ABOUT SECTION -------- */
.about-section {
    padding: 5rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--light);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: border 0.2s;
}

.about-card:hover {
    border-color: var(--accent);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.about-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* -------- FOOTER -------- */
.footer {
    background: var(--primary);
    color: #e6e6e6;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}

.footer a {
    display: block;
    color: #dcdcdc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.18s ease;
}

.footer a:hover {
    color: var(--accent);
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: white;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}


@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        min-height: 0;
    }
    .modal-image-area {
        flex: 0 0 auto;
        width: 100%;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid rgba(11,19,32,0.08);
        padding: 14px;
        overflow: visible;
    }
    .modal-info {
        flex: 1;
        padding: 16px;
        overflow-y: visible;
        min-height: 0;
    }
    .modal-info h2 {
        font-size: 1.4rem;
    }
    .modal-info p {
        font-size: 0.95rem;
    }
    .modal-actions .btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    .zoom-controls {
        flex-wrap: wrap;
        gap: 10px;
        padding: 8px 12px;
    }
    .zoom-slider {
        width: 130px;
    }
    .zoom-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    .zoom-reset-btn {
        padding: 6px 12px;
        font-size: 0.72rem;
    }
    .zoom-percent {
        font-size: 0.78rem;
        padding: 3px 8px;
    }
}

@media (max-width: 520px) {
    .zoom-percent,
    .zoom-reset-btn {
        display: none;
    }
    .zoom-slider {
        width: 100px;
    }
    .zoom-controls {
        gap: 6px;
        padding: 6px 8px;
    }
    .modal-image {
        min-height: 52vh;
        background-size: contain;
    }
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .mobile-menu.active {
        display: block;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .sell-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }
    .product-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .product-card img {

        transform: scale(2.0);
        width: 100%;
        height: auto;
        max-height: 240px;
        object-fit: contain;
        aspect-ratio: 3 / 2;
        background: transparent;
        padding: 0;
        border-radius: 14px;
        box-shadow: 0 16px 32px rgba(0,0,0,0.08);
    }
    .product-card .content {
        padding: 0.75rem 0.85rem 0.9rem;
    }
    .product-card h3 {
        font-size: 1rem;
    }
    .product-card .actions {
        gap: 6px;
    }
    .product-card .actions button {
        padding: 7px 10px;
        font-size: 0.72rem;
    }
}

@media (max-width: 520px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .product-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .product-card img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
        aspect-ratio: 4 / 3;
        background: transparent;
        padding: 0;
        border-radius: 14px;
        box-shadow: 0 14px 28px rgba(0,0,0,0.08);
    }
}

/* ========= HERO SLIDESHOW ========= */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slideshow .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 24s infinite;
}

#slide-1 { animation-delay:  0s; }
#slide-2 { animation-delay:  3s; }
#slide-3 { animation-delay:  6s; }
#slide-4 { animation-delay:  9s; }
#slide-5 { animation-delay: 12s; }
#slide-6 { animation-delay: 15s; }
#slide-7 { animation-delay: 18s; }
#slide-8 { animation-delay: 21s; }

@keyframes heroFade {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    20%  { opacity: 1; }
    25%  { opacity: 0; }
    100% { opacity: 0; }
}

/* Ensure overlay stays above slideshow */
.hero-overlay {
    z-index: 1;
}

/* ========= SHOP LAYOUT (left sidebar + main) ========= */
.shop-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.filter-sidebar {
    max-height: 80vh;
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding-right: 1.5rem;
    top: 0px;
    position: sticky;
    overflow-y: auto;
}



.accordion-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}


.shop-main {
    flex: 1;
    min-width: 0;

}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.accordion-title {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    transition: color 0.2s;
}

.accordion-title::-webkit-details-marker {
    display: none;
}

.accordion-title::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.2s;
}

details .accordion-title::after {
    content: '−';
}

.accordion-title:hover {
    color: var(--accent);
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.accordion-content > div {
    overflow: hidden;
    /* Add padding/margin inside this inner div, not on accordion-content */
    padding: 0 0 0 0;
}

.accordion-item[open] .accordion-content {
    grid-template-rows: 1fr;
}

/* Force reflow on open/close – sometimes needed */
.accordion-item {
    transition: all 0.01s;
}
.accordion-content label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #444;
    cursor: pointer;
}

.accordion-content input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--accent);
}

.price-range {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.price-range input[type="number"] {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
}

.price-range input:focus {
    border-color: var(--accent);
}

.filter-btn{
    bottom: 0px;
    left: 0px;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid transparent;
    box-shadow: 0 6px 16px rgba(17, 17, 18, 0.04);
    margin-top: 5px;
}

.reset-btn{
    bottom: 0px;
    left: 0px;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid transparent;
    box-shadow: 0 6px 16px rgba(17, 17, 18, 0.04);
    margin-top: 5px;
}
/* ========= PRODUCT CARD CHANGES ========= */
.product-card .content {
    padding: 1rem 1.25rem 1.25rem;  /* reduced from 1.25rem 1.5rem 1.5rem */
}

.product-card .category {
    display: inline;                 /* inline with h3 */
    margin-right: 6px;
    font-size: 0.7rem;
    vertical-align: baseline;
}

.product-card h3 {
    display: inline;
    font-size: 1.15rem;             /* slightly smaller to fit inline */
    margin: 0;
}

/* Remove quick view button (hide via class; ensure your JS adds this class) */
.quick-view-btn {
    display: none !important;
}

/* Adjust remaining button so only "Add to Cart" is visible and fills the row */
.product-card .actions button:not(.quick-view-btn) {
    flex: 1;
}


/* Pagination — paste into your stylesheet */
:root {
  --pagination-primary: #10212d;
  --pagination-border: #e6eef5;
  --pagination-light: #f3f8fc;
  --pagination-bg: #ffffff;
}

.collection__pagination.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 2rem 0 1rem;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

/* Buttons / items */
.collection__pagination .pagination__item,
.collection__pagination .pagination__prev,
.collection__pagination .pagination__next {
  background: var(--pagination-bg);
  border: 1px solid var(--pagination-border);
  padding: 10px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
  line-height: 0;
}

/* Disabled state */
.collection__pagination .pagination__item[disabled],
.collection__pagination .pagination__item.pagination__item--disabled {
  opacity: 0.45;
  cursor: default;
}

/* Hover */
.collection__pagination .pagination__item:not([disabled]):hover {
  background: var(--pagination-light);
  transform: translateY(-2px);
}

/* Current page indicator */
.collection__pagination .pagination__current {
  font-weight: 700;
  color: var(--pagination-primary);
  padding: 6px 10px;
  user-select: none;
}

/* Arrow visual (simple chevron using borders) */
.collection__pagination .animated-arrow {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-right: 2px solid var(--pagination-primary);
  border-top: 2px solid var(--pagination-primary);
  transform: rotate(45deg);
  margin: 0 2px;
}

/* Reverse (left) arrow */
.collection__pagination .animated-arrow--reverse {
  transform: rotate(-135deg);
}

/* Small-screen tweaks */
@media (max-width: 640px) {
  .collection__pagination.pagination { gap: 8px; margin: 1rem 0; }
  .collection__pagination .pagination__item { padding: 8px; border-radius: 6px; }
}

@media (max-width: 768px) {
    .shop-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        width: 100%;
    }
    .product-card {
        min-height: auto;
    }
    .product-card img {
        width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: contain;
        aspect-ratio: 3 / 2;
        background: var(--light);
        padding: 6px;
        border-radius: 10px;
    }
    .product-card .content {
        padding: 0.8rem 1rem 1rem;
    }
    .product-card h3 {
        font-size: 1rem;
    }
    .product-card .actions {
        gap: 8px;
    }
    .product-card .actions button {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    .accordion-item {
        padding: 10px;
    }
    .zoom-controls {
        gap: 10px;
        padding: 9px 14px;
        width: auto;
        max-width: 100%;
    }
    .zoom-slider {
        width: 130px;
    }
    .zoom-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    .zoom-reset-btn {
        padding: 6px 12px;
        font-size: 0.72rem;
    }
    .zoom-percent {
        font-size: 0.78rem;
        padding: 3px 8px;
    }
}

@media (max-width: 620px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.9rem;
    }
}

@media (max-width: 520px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.85rem;
    }
    .product-card img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: contain;
        aspect-ratio: 4 / 3;
        background: var(--light);
        padding: 4px;
        border-radius: 10px;
        box-shadow: 0 10px 18px rgba(0,0,0,0.08);
    }
}


/* ===== MOBILE FILTER OVERLAY ===== */
@media (max-width: 768px) {
    /* Sidebar overlay hidden by default and animated into view */
    .filter-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 10000;
        overflow-y: auto;
        padding: 1rem;
        margin: 0;
        border-right: none;
        box-shadow: none;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    }
    /* When open class is added */
    .filter-sidebar.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    /* Close button inside sidebar (mobile only) */
    .mobile-close-btn {
        display: block;
        position: sticky;
        top: 0.5rem;
        left: auto;
        right: 0.5rem;
        float: right;
        background: #e0e0e0;
        border: none;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10001;
        margin-bottom: 0.5rem;
    }
    /* Mobile filter button (visible only on mobile) */
    .mobile-filter-btn {
        display: block;
        position: fixed;
        left: 50%;
        transform: translateX(-50%) translateY(12px);
        bottom: 1rem;
        width: auto;
        min-width: 220px;
        max-width: calc(100% - 2rem);
        background: var(--primary);
        color: white;
        border: none;
        padding: 12px 20px;
        font-size: 0.95rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-radius: 999px;
        margin: 0;
        cursor: pointer;
        transition: background 0.2s, transform 0.25s ease, opacity 0.25s ease;
        z-index: 1000;
        box-shadow: 0 10px 24px rgba(16,33,45,0.18);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .mobile-filter-btn.visible {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }
    .mobile-filter-btn:hover {
        background: var(--accent);
        transform: translateX(-50%) translateY(-1px);
    }
    /* Adjust the accordion bar inside the overlay */
    .filter-sidebar .accordion {
        top: 0;  /* sticky inside overlay, not page */
    }
}

/* On desktop, hide the mobile-only buttons */
@media (min-width: 769px) {
    .mobile-filter-btn,
    .mobile-close-btn {
        display: none;
    }
}

/* Override any inline style – force proper layout */
.magnifier-container {
    position: relative;
    width: 100%;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    cursor: zoom-in;
}

/* Ensure modal image fills the container */


/* Magnifier lens – larger and more visible */
.magnifier-lens {
    position: absolute;
    width: 200px;          /* bigger lens */
    height: 200px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background-repeat: no-repeat;
    pointer-events: none;
    display: none;
    z-index: 100;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    color: #2c2c2c;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-nav:hover {
    background: var(--accent);
    color: white;
}

.prev-btn { left: 16px; }
.next-btn { right: 16px; }


/* Optional: hide buttons if only one image */
.modal-nav.hide {
    display: none;
}

/* On small screens, make buttons slightly smaller */
@media (max-width: 768px) {
    .modal-nav {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    .prev-btn { left: 8px; }
    .next-btn { right: 8px; }
}


.zoom-controls {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,0.92);
    padding: 8px 12px;
    border-radius: 40px;
    backdrop-filter: blur(6px);
    border: 1px solid #eee;
    flex-wrap: wrap;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

/* Final responsive override for product grid spacing */
.product-grid {
    grid-auto-rows: auto;
    justify-items: stretch;
    align-items: stretch;
}
.product-card {
    width: 100%;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.9rem;
    }
    .shop-layout {
        gap: 1.2rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 0.95rem;
    }
}

@media (max-width: 620px) {
    .container {
        padding: 0 0.8rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.85rem;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 0.65rem;
    }
    .shop-layout {
        gap: 1rem;
    }
    .shop-main {
        width: 100%;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
        justify-items: stretch;
    }
    .product-card {
        min-width: 0;
    }
    .product-card img {
        width: 100%;
        height: auto;
        max-height: 180px;
        object-fit: contain;
        aspect-ratio: 4 / 3;
        background: var(--light);
        padding: 6px;
        border-radius: 10px;
    }
}

/* Strongest final grid override to ensure column auto-sizing at all breakpoints */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    }
}

@media (max-width: 620px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 0.9rem !important;
    }
}

@media (max-width: 520px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 420px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 0.6rem !important;
    }
}

@media (max-width: 768px) {
    .product-card img {
        width: 100% !important;
        height: auto !important;
        max-height: 240px !important;
        object-fit: contain !important;
        aspect-ratio: 3 / 2 !important;
        background: var(--light) !important;
        padding: 4px !important;
        border-radius: 10px !important;
        box-shadow: 0 10px 22px rgba(0,0,0,0.08) !important;
    }
    .product-card .content {
        padding: 0.75rem 0.85rem 0.9rem !important;
    }
    .product-card .actions {
        gap: 6px !important;
        margin-top: 0.75rem !important;
    }
    .product-card .actions button {
        padding: 7px 10px !important;
        font-size: 0.72rem !important;
    }
}

@media (max-width: 520px) {
    .product-card img {
        width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
        object-fit: contain !important;
        aspect-ratio: 4 / 3 !important;
        background: var(--light) !important;
        padding: 4px !important;
        border-radius: 10px !important;
        box-shadow: 0 10px 18px rgba(0,0,0,0.08) !important;
    }
    .product-card .content {
        padding: 0.65rem 0.75rem 0.8rem !important;
    }
    .product-card .actions {
        gap: 5px !important;
        margin-top: 0.65rem !important;
    }
    .product-card .actions button {
        padding: 6px 8px !important;
        font-size: 0.68rem !important;
    }
}

.zoom-btn {
    background: #2c2c2c;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.zoom-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(74,168,197,0.28);
}

.zoom-reset-btn {
    background: #e6e0d5;
    border: none;
    padding: 6px 12px;
    border-radius: 32px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    color: #2c2c2c;
    transition: all 0.15s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.zoom-reset-btn:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(74,168,197,0.28);
}

.zoom-slider {
    width: 140px;
    accent-color: var(--accent);
    height: 5px;
    border-radius: 4px;
}

.zoom-percent {
    font-size: 0.75rem;
    font-family: monospace;
    background: #f0ede8;
    padding: 3px 10px;
    border-radius: 24px;
    color: #3a3a3a;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

/* Container that will hold the zoomable image */
.magnifier-container {
    position: relative;
    overflow: auto;           /* allow scrollbars if zoomed beyond view */
    cursor: grab;
}

/* The image div itself – zoom is applied here */
.modal-image {
    width: 100%;
    height: auto;
    min-height: 380px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.modal-image-area {
    flex: 0 0 80%;
    background: linear-gradient(135deg, #ffffff 0%, #fbfaf8 100%);
    padding: 10px 12px 10px 12px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(11,19,32,0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 36px rgba(11,19,32,0.07);
    align-items: center;
}

.modal-image-area img {
    transition: transform 0.3s ease;
    transform: scale(1.5);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* .modal-image-area:hover img{
    transform: scale(1.5);
} */

/* Optionally, if you want to hide scrollbars when zoomed out */
.magnifier-container {
    overflow: auto;         /* no scrollbars, but zoomed parts get cropped */
    /* or use 'auto' to enable panning (advanced) */
}

