/* ================= ROOT ================= */
:root {
    --gold-1:#d6b629;
    --gold-2:#e1c45b;
    --gold-3:#f3d86d;
    --gold-4:#f7e7a1;
    --gold-5:#f8f1c4;

    --dark:#111;
    --cream:#faf9f6;
    --gray:#666;
}

/* ================= RESET ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f9f9f9;
    color: #1c1c1c;
    line-height: 1.6;
}

/* ================= HEADER ================= */
/* .header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 */

/* HEADER — styles handled by shared stylesheet.css */

/* ================= HERO ================= */
.products-hero {
    text-align: center;
    padding: 70px 20px 50px;
}

.products-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 10px;
}

.products-hero p {
    color: #666;
    max-width: 600px;
    margin: auto;
}

/* ================= LAYOUT ================= */
.products-wrapper {
    max-width: 1300px;
    margin: auto;
    padding: 40px 20px 80px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

/* ================= FILTERS ================= */
.filters {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    height: fit-content;
}

.filters h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.filter-group h4 {
    margin: 18px 0 6px;
    font-size: 14px;
}

.filters select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* ================= PRODUCT SECTIONS ================= */
#gemGrid,
#jewelryGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    margin-bottom: 70px;
}

/* ================= CARD ================= */
.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 4px;
}

.card-body p {
    font-size: 13px;
    color: #777;
}

.price {
    font-weight: 600;
    margin: 10px 0;
}

.stock {
    font-size: 12px;
    color: #888;
}

.view-btn {
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #d6b629;
    color: #333;
    cursor: pointer;
    transition: background .2s ease;
}

.view-btn:hover {
    background: #f8f1c4;
}

/* ================= POPUP ================= */
#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup {
    background: #fff;
    max-width: 820px;
    width: 90%;
    border-radius: 18px;
    padding: 30px;
    position: relative;
}

#closePopup {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 22px;
    cursor: pointer;
}

.popup-img {
    height: 260px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 18px;
}

.popup h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 12px;
}

.details {
    list-style: none;
}

.details li {
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .products-wrapper {
        grid-template-columns: 1fr;
    }
}


/* #gemGrid,
#jewelryGrid {
    grid-column: 2;
} */






/* ================= PRODUCT TYPE TOGGLE ================= */
/* .product-type-toggle {
    display: inline-flex;
    gap: 10px;
    margin-top: 30px;
    padding: 6px;
    border-radius: 40px;
    background: #fff;
    border: 1px solid #e6e6e6;
}

.toggle-btn {
    font-family: 'Inter', sans-serif;
    padding: 10px 26px;
    border-radius: 30px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #333;
    transition: all .25s ease;
}

.toggle-btn:hover {
    background: #f8f1c4;
}

.toggle-btn.active {
    background: linear-gradient(
        135deg,
        #d6b629,
        #f3d86d
    );
    color: #1c1c1c;
    box-shadow: 0 6px 14px rgba(214,182,41,.35);
} */


/* ================= PRODUCT TYPE TOGGLE ================= */
.product-type-toggle {
    display: inline-flex;
    gap: 10px;
    margin-top: 30px;
    padding: 6px;
    border-radius: 40px;
    background: #fff;
    border: 1px solid #e6e6e6;
}

.toggle-btn {
    font-family: 'Inter', sans-serif;
    padding: 10px 26px;
    border-radius: 30px;
    border: 1px solid #ccc;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #333;
    transition: all .25s ease;
}

/* Hover color (only shows when mouse is over button) */
.toggle-btn:hover {
    background: #f8f1c4;
    color: #1c1c1c;
}

/* Active button stays transparent by default */
.toggle-btn.active {
    background: transparent;
    color: #333;
    box-shadow: none;
}

/* Active button hover effect */
.toggle-btn.active:hover {
    background: linear-gradient(135deg, #d6b629, #f3d86d);
    color: #1c1c1c;
    box-shadow: 0 6px 14px rgba(214,182,41,.35);
}













/* ================= FULL-WIDTH PRODUCT GRID FIX ================= */

#gemGrid,
#jewelryGrid {
    max-width: 1300px;
    margin: 40px auto 80px;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

/* Larger screens get slightly wider cards */
@media (min-width: 1200px) {
    #gemGrid,
    #jewelryGrid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}












/* ================= POPUP LAYOUT FIX ================= */

/* .popup {
    max-width: 900px;
    width: 92%;
    max-height: 90vh;
    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
} */

/* Image container */
/* .popup-img {
    height: auto;
    min-height: 320px;

    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;

    border: 1px solid #eee;
    background-color: #fafafa;
} */

/* Content area */
/* #popupContent {
    display: contents;
}
 */
/* Details list scrolls nicely */
/* .details {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
} */

/* Elegant scrollbar (subtle) */
/* .details::-webkit-scrollbar {
    width: 4px;
} */
/* 
.details::-webkit-scrollbar-thumb {
    background: #e1c45b;
    border-radius: 4px;
} */

/* ================= MOBILE POPUP ================= */

/* @media (max-width: 768px) { */
    /* .popup {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px;
    } */

    /* .popup-img {
        min-height: 220px;
    }

    .details {
        max-height: none;
    }
} */






/* ================= POPUP STRUCTURE FIX ================= */

.popup {
    max-width: 900px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
}

/* Popup content layout */
#popupContent {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Image block */
.popup-img {
    flex: 0 0 40%;
    min-height: 320px;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    border-radius: 12px;
    border: 1px solid #eee;
    background-color: #fafafa;
}

/* Text content */
#popupContent > h2,
#popupContent > .details {
    flex: 1;
}

/* Title spacing */
#popupContent h2 {
    margin-top: 0;
}

/* Details list */
.details {
    margin-top: 10px;
}

/* ================= MOBILE FIX ================= */

@media (max-width: 768px) {
    #popupContent {
        flex-direction: column;
        gap: 20px;
    }

    .popup-img {
        width: 100%;
        min-height: 220px;
    }
}





/* ================= CARD SIZE & REFINEMENT ================= */

#gemGrid,
#jewelryGrid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

/* Card refinement */
.card {
    border-radius: 18px;
}

/* Image slightly taller */
.card-img {
    height: 250px;
}

/* Better spacing */
.card-body {
    padding: 22px;
}

/* Product name */
.card-body h3 {
    font-size: 19px;
    line-height: 1.3;
}

/* Variety text */
.card-body p {
    font-size: 14px;
    margin-bottom: 6px;
}

/* Price emphasis */
.price {
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* Button refinement */
.view-btn {
    padding: 12px;
    font-size: 14px;
}




@media (max-width: 600px) {
    .card-img {
        height: 220px;
    }
}




@media (max-width: 768px) {
    .details li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .details li strong {
        font-size: 13px;
        color: #777;
    }
}










/* ================= POPUP DETAILS REFINEMENT ================= */

.details {
    margin-top: 14px;
    padding: 0;
}

/* Each row */
.details li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;

    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

/* Labels */
.details li strong {
    font-weight: 500;
    color: #555;
}

/* Values */
.details li span,
.details li {
    color: #222;
}
















/* ================= COMPACT POPUP FIX ================= */

.popup {
    padding: 20px;
    max-width: 880px;
        padding-top: 48px; /* creates safe space */
    position: relative;
}

/* Content layout */
#popupContent {
    gap: 18px; /* reduced */
}

/* Image takes less space */
.popup-img {
    flex: 0 0 38%;
    min-height: 280px;
}

/* Title tighter */
#popupContent h2 {
    margin-bottom: 8px;
}








/* ================= DENSE DETAILS ================= */

.details {
    margin-top: 6px;
}

/* Each detail row */
.details li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;

    padding: 6px 0;           /* reduced */
    font-size: 13.5px;
    border-bottom: 1px solid #eee;
}

/* Labels */
.details li strong {
    font-weight: 500;
    color: #555;
}

/* Remove extra spacing on last item */
.details li:last-child {
    border-bottom: none;
}





@media (max-width: 768px) {
    #popupContent {
        gap: 14px;
    }

    .popup-img {
        min-height: 220px;
    }

    .details li {
        grid-template-columns: 100px 1fr;
        padding: 5px 0;
        font-size: 13px;
    }
}






/* ================= CARD DENSITY ================= */

#gemGrid,
#jewelryGrid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px; /* reduced gap */
}

.card-img {
    height: 235px;
}

.card-body {
    padding: 18px;
}

.card-body p {
    margin-bottom: 4px;
}

.view-btn {
    margin-top: 10px;
}




/* ================= CARD DENSITY ================= */

#gemGrid,
#jewelryGrid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px; /* reduced gap */
}

.card-img {
    height: 235px;
}

.card-body {
    padding: 18px;
}

.card-body p {
    margin-bottom: 4px;
}

.view-btn {
    margin-top: 10px;
}








/* ================= FOOTER ================= */
.site-footer {
    background:#111;
    color:#ccc;
    padding:80px 40px 30px;
}

.footer-inner {
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:70px;
}

/* BRAND */
.footer-logo {
    width:140px;
    margin-bottom:22px;
}

.footer-about {
    font-size:14px;
    line-height:1.7;
    color:#aaa;
}

/* HEADINGS */
.footer-col h4 {
    font-size:13px;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:22px;
    color:var(--gold-2);
}

/* LINKS */
.footer-links {
    list-style:none;
    padding:0;
}

.footer-links li {
    margin-bottom:14px;
}

.footer-links a {
    text-decoration:none;
    font-size:14px;
    color:#ccc;
    transition:color 0.4s ease;
}

.footer-links a:hover {
    color:var(--gold-2);
}

/* SOCIALS */
.footer-socials {
    display:flex;
    gap:20px;
}

.footer-socials img {
    width:32px;
    opacity:0.85;
    transition:transform 0.4s ease, opacity 0.4s ease;
}

.footer-socials img:hover {
    transform:translateY(-4px);
    opacity:1;
}

/* BOTTOM */
.footer-bottom {
    margin-top:40px;
    border-top:1px solid rgba(255,255,255,0.08);
    padding-top:20px;
    text-align:center;
    font-size:13px;
    color:#777;
}

/* MOBILE */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns:1fr;
        gap:50px;
        text-align:center;
    }

    .footer-socials {
        justify-content:center;
    }
}










.active-page {
    font-weight:600;
    color:var(--gold-2);
}

.active-page::after {
    width:100%;
}







/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width:28px;
    height:22px;
    cursor:pointer;
}

.mobile-menu-toggle span {
    display:block;
    height:3px;
    background:var(--dark);
    border-radius:2px;
    transition:0.4s;
}

/* MOBILE NAVIGATION */
@media (max-width: 991px) {

      .mobile-menu-toggle {
        display: flex;
    }

    /* Show hamburger only on mobile */
    .mobile-menu-toggle {
        display:flex;
    }

    /* Mobile nav layout */
    .nav {
        position: fixed;
        top:0;
        right: -100%; /* hidden initially */
        width: 100%;  /* full screen width */
        max-width:320px;
        height:100%;
        background:white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px 30px; /* enough top padding for header */
        gap:20px;
        transition: right 0.5s ease, opacity 0.5s ease;
        z-index: 30;
        opacity:0;
        box-shadow: -8px 0 30px rgba(0,0,0,0.08);
        overflow-x: hidden; /* prevent horizontal scroll */
        box-sizing: border-box; /* includes padding in width */
    }

    /* When active (menu open) */
    .nav.active {
        right:0;
        opacity:1;
    }

    /* Nav links proper spacing */
    .nav a {
        font-size: 20px;
        display: block;
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(214,182,41,0.1);
        text-align: left;
        box-sizing: border-box;
        white-space: normal; /* prevents long text from overflowing */
        word-break: break-word; /* ensures text wraps inside menu */
    }

    .nav a.nav-cta {
        width: 90%;
        text-align: center;
        border-radius: 40px;
        border: none;
        padding: 12px 0;
        background: var(--gold-2);
        color: white;
        margin-top: 10px;
    }

     /* Close button only on mobile */
    .nav-close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 32px;
        cursor: pointer;
        color: var(--dark);
        font-weight: bold;
    }

    /* Make sure all children fit inside nav */
    .nav * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Hide close button on desktop */
@media (min-width: 992px) {
    .nav-close {
        display: none;
    }
}

/* Prevent body horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Hamburger animation when open */
.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity:0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}



/* Header */
.reviews-header {
    max-width:600px;
    margin-bottom:80px;
}

.reviews-eyebrow {
    display:inline-block;
    font-size:12px;
    letter-spacing:3px;
    text-transform:uppercase;
    color:var(--gold-1);
    margin-bottom:18px;
}

.reviews-header h2 {
    font-family:'Playfair Display', serif;
    font-size:44px;
    line-height:1.2;
}

/* Grid */
.reviews-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:60px;
}

/* Review Card */
.review-card {
    position:relative;
    padding:50px 45px;
    background:#fafafa;
    border-radius:18px;
    box-shadow:0 30px 60px rgba(0,0,0,0.05);
    border:1px solid rgba(214,182,41,0.15);
}

/* Decorative Quote */
.review-card::before {
    content:'“';
    position:absolute;
    top:-30px;
    left:20px;
    font-family:'Playfair Display', serif;
    font-size:100px;
    color:rgba(214,182,41,0.25);
    line-height:1;
}

/* Review Text */
.review-card p {
    font-family:'Playfair Display', serif;
    font-size:20px;
    line-height:1.5;
    margin-bottom:30px;
}

/* Author */
.review-card span {
    display:block;
    font-size:14px;
    font-weight:500;
    letter-spacing:1px;
}

/* Location */
.review-card em {
    display:block;
    font-size:13px;
    font-style:normal;
    color:#777;
    margin-top:6px;
}




















/* ==========================================================
   Home nav compatibility for Products.css (prevents `.nav a` overriding `.nav__link`)
   ========================================================== */
.header .nav a{
  margin:0 !important;
  display:inline-block !important;
  width:auto !important;
  padding:10px 2px !important;
  border:0 !important;
  background:transparent !important;
  text-decoration:none !important;
  white-space:nowrap;
}

.header .nav a.nav__link{
  font-size:12px !important;
  letter-spacing:2px !important;
  text-transform:uppercase !important;
  color:#1b1d25 !important;
  opacity:.86 !important;
  position:relative !important;
}

.header .nav a.nav__link:hover{ opacity:1 !important; }

.header .nav a.nav__link::after{
  content:"" !important;
  position:absolute !important;
  left:0 !important; right:0 !important;
  bottom:4px !important;
  height:1px !important;
  background:linear-gradient(to right, transparent, rgba(201,162,39,0.75), transparent) !important;
  transform:scaleX(0) !important;
  transform-origin:center !important;
  transition:transform .6s cubic-bezier(.18,.9,.22,1) !important;
}
.header .nav a.nav__link:hover::after{ transform:scaleX(1) !important; }
.header .nav a.nav__link.is-active::after{ transform:scaleX(1) !important; }
