/*
Theme Name: Gem Awards
Template: blocksy
Author: Gem Awards
Description: Lean Blocksy child theme for gemawards.com — homepage clone of the Divi design.
Version: 0.5.20
*/

/* ---------------------------------------------------------------------------
 * BRAND FONTS: all three come from the Adobe Fonts kit enqueued in
 * functions.php (wfg4xby), which carries every real Quasimoda and Alga
 * weight with italics plus Above the Beyond. Family names in the kit are
 * "quasimoda", "alga" and "above-the-beyond"; font-family matching is
 * case-insensitive, so "Quasimoda"/"Alga" references resolve to it.
 * Production moved off the Divi-uploaded TTFs in July 2026 - do not re-add
 * @font-face rules for these here, or the redesign falls back to one
 * stretched weight with synthetic bolding.
 * ------------------------------------------------------------------------- */

:root {
    --gem-navy: #020262;
    --gem-blue: #0c71c3;
    --gem-light-blue: #2ea3f2;
    --gem-maroon: #750b19;      /* header + brand band (Divi primary_nav_bg) */
    --gem-gold: #e09900;        /* CTA gold */
    --gem-gold-arrow: #fca028;  /* slider arrows (from live slider CSS) */
    --gem-menu-tint: #ffd8d8;   /* Divi menu_link color */
    --gem-full-bleed: 100vw;
}

body {
    font-family: "Quasimoda", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--gem-navy);
}

/* Full-bleed helper baked into each custom section (works in any layout ctx). */
.gem-slider,
.gem-moments,
.gem-specialize,
.gem-footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ---------------------------------------------------------------------------
 * HEADER — maroon bar + white angled logo panel
 * ------------------------------------------------------------------------- */
.ct-header [data-row],
.ct-header [data-row] > .ct-container,
header.ct-header {
    background-color: var(--gem-maroon) !important;
}
.ct-header [data-row] > .ct-container {
    align-items: stretch;
}
.ct-header .site-title,
.ct-header .site-description {
    display: none;
}
/* Live logo PNG has the white angled panel baked in (400x117) — flush left/top. */
.ct-header .site-branding {
    position: relative;
    margin-block: 0;
    padding: 0;
}
.ct-header .site-branding::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 100vw;
    background: transparent;
}
.ct-header .site-branding .custom-logo {
    height: 117px;
    max-height: 117px;
    width: auto;
}
.ct-header [data-row] {
    min-height: 117px;
}
/* Live header shows NO inline nav links — icons + hamburger only. */
.ct-header [data-column="end"] li.menu-item:not(.gem-header-account):not(.gem-header-cart):not(.gem-header-burger) {
    display: none;
}
.ct-header [data-column="end"] a {
    color: var(--gem-menu-tint);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.ct-header [data-column="end"] a:hover {
    color: var(--gem-gold);
}

/* Gold hamburger (live: #e99e00) */
.gem-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    padding: 4px;
    background: none;
    border: 0;
    cursor: pointer;
}
.gem-burger span {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    background: #e99e00;
}

/* Offcanvas drawer */
.gem-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: hidden;
}
.gem-offcanvas.is-open { visibility: visible; }
.gem-offcanvas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gem-offcanvas.is-open .gem-offcanvas-backdrop { opacity: 1; }
.gem-offcanvas-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    background: var(--gem-maroon);
    padding: 64px 28px 28px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.gem-offcanvas.is-open .gem-offcanvas-panel { transform: translateX(0); }
.gem-offcanvas-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}
.gem-offcanvas-menu,
.gem-offcanvas-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gem-offcanvas-menu a {
    display: block;
    padding: 9px 0;
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.gem-offcanvas-menu a:hover { color: var(--gem-gold); }
.gem-offcanvas-menu .sub-menu {
    display: none;
    padding-left: 16px;
}
.gem-offcanvas-menu .menu-item-has-children.is-expanded > .sub-menu { display: block; }
.gem-offcanvas-menu .menu-item-has-children > a::after {
    content: " \25BE";
    color: var(--gem-gold);
}
.gem-header-account a,
.gem-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.gem-cart-total { font-weight: 600; }
.gem-cart-icon { position: relative; display: inline-flex; }
.gem-cart-count {
    position: absolute;
    top: -9px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gem-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* ---------------------------------------------------------------------------
 * GOLD BUTTONS
 * ------------------------------------------------------------------------- */
.gem-btn-gold,
.wp-block-button.is-style-gem-gold .wp-block-button__link {
    display: inline-block;
    background-color: var(--gem-gold);
    color: #fff !important;
    border-radius: 999px;
    padding: 0.8em 1.9em;
    font-family: "Quasimoda", sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: filter 0.2s ease;
}
.gem-btn-gold:hover,
.wp-block-button.is-style-gem-gold .wp-block-button__link:hover {
    filter: brightness(1.08);
}
.woocommerce a.button,
.woocommerce button.button,
.wc-block-components-button {
    background-color: var(--gem-gold);
    color: #fff;
}

/* ---------------------------------------------------------------------------
 * GEM SLIDER (shared) — fade slides, Divi-style bar controls + gold arrows
 * ------------------------------------------------------------------------- */
.gem-slider {
    position: relative;
    overflow: hidden;
}
.gem-slider .gem-slides {
    position: relative;
    height: 100%;
}
.gem-slider .gem-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.gem-slider .gem-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.gem-slider-bars {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 5;
}
.gem-slider-bars button {
    flex: 1;
    height: 10px;
    border: 0;
    border-right: 2px solid #fff;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
}
.gem-slider-bars button:last-child { border-right: 0; }
.gem-slider-bars button.is-active { background: var(--gem-gold); }
.gem-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: var(--gem-gold-arrow);
    color: #fff;
    font-size: 20px;
    line-height: 45px;
    text-align: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gem-slider:hover .gem-slider-arrow { opacity: 1; }
.gem-slider-prev { left: 22px; }
.gem-slider-next { right: 22px; }

/* HERO slider — 592px like live, Urbanist 700/70px headings */
.gem-hero-slider {
    height: 592px;
}
.gem-hero-slider .gem-slide-dim::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}
.gem-hero-slider .gem-slide-inner {
    position: relative;
    text-align: center;
    padding: 0 6vw;
    max-width: 1100px;
}
.gem-slide-heading {
    font-family: "Urbanist", "Quasimoda", sans-serif;
    font-size: clamp(38px, 5.5vw, 70px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 28px;
    line-height: 1.1;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.gem-slide-banner {
    align-self: flex-end;
    margin-bottom: 64px;
}

/* ---------------------------------------------------------------------------
 * MOMENTS — script heading + framed photo collage on gradient
 * ------------------------------------------------------------------------- */
.gem-moments {
    background: linear-gradient(180deg, #bdbdbd 0%, #efefef 55%, #fafafa 100%);
    padding: 56px 0 72px;
}
.gem-moments-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 46% 54%;
    gap: 36px;
}
.gem-moments-pre {
    font-size: 32px;
    color: #090960;
    margin: 0 0 4px;
}
.gem-moments-script {
    font-family: "above-the-beyond", "Above the Beyond Script", cursive;
    font-size: clamp(48px, 6vw, 69px);
    font-weight: 700;
    color: #090960;
    line-height: 1;
    margin: 0 0 22px;
}
.gem-framed {
    margin: 26px 0 0;
    border: 3px solid var(--gem-maroon);
    background: #fff;
    padding: 6px;
}
.gem-framed img {
    display: block;
    width: 100%;
    height: auto;
}
.gem-framed-tall {
    margin-top: 0;
    height: 100%;
}
.gem-framed-tall img {
    height: 100%;
    object-fit: cover;
}

/* ---------------------------------------------------------------------------
 * RELATIONSHIPS
 * ------------------------------------------------------------------------- */
.gem-relationships {
    padding: 64px 24px 56px;
}
.gem-h-quasimoda {
    font-family: "Quasimoda", sans-serif;
    font-size: 35px;
    font-weight: 400;
}

/* ---------------------------------------------------------------------------
 * SPECIALIZE — maroon band with Trophy Guy
 * ------------------------------------------------------------------------- */
.gem-specialize {
    background: var(--gem-maroon);
    margin-top: 90px;
}
.gem-specialize-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
    gap: 24px;
}
.gem-specialize-img img {
    display: block;
    max-height: 420px;
    margin: -70px auto 0;
}
.gem-specialize-text {
    padding: 48px 0;
}
.gem-specialize-text h2 {
    font-family: "Poppins", "Quasimoda", sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 20px;
    max-width: 480px;
}
.gem-specialize-text ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gem-specialize-text li {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.gem-specialize-text li::before {
    content: "\2013\00a0";
    color: var(--gem-gold);
}

/* ---------------------------------------------------------------------------
 * BEST SELLERS — Georgia heading + 5-up products, Bayon titles
 * ------------------------------------------------------------------------- */
.gem-h-georgia {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    font-weight: 400;
    color: var(--gem-navy);
    margin-top: 64px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-family: "Bayon", "Quasimoda", sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--gem-navy);
    text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
 * SHOP / CATEGORY ARCHIVE — clone of the live archive (scoped to .gem-shop-archive
 * so it never touches the homepage Best-Sellers grid, which shares ul.products).
 * Live: breadcrumb → navy Quasimoda H1 → count+sort row → minimal cards.
 * ------------------------------------------------------------------------- */
.gem-shop-archive .gem-archive-head { margin: 6px 0 2px; }
.gem-shop-archive .gem-crumbs {
    font-size: 14px;
    color: #767676;
    margin: 0 0 12px;
}
.gem-shop-archive .gem-crumbs a { color: var(--gem-blue); text-decoration: none; }
.gem-shop-archive .gem-crumbs a:hover { text-decoration: underline; }
.gem-shop-archive .gem-archive-title {
    font-family: "Quasimoda", sans-serif;
    font-size: 35px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--gem-navy);
    margin: 0 0 6px;
}
/* result-count (left) + sorting (right) on one row, like live */
.gem-shop-archive .woo-listing-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 24px;
}
.gem-shop-archive .woocommerce-result-count {
    font-size: 14px;
    color: #999;
    margin: 0;
}
/* Minimal cards: drop the category label + add-to-cart button (live shows neither) */
.gem-shop-archive ul.products li.product .entry-meta,
.gem-shop-archive ul.products li.product .ct-woo-card-actions {
    display: none;
}
/* Title: navy Quasimoda, sentence-case (override the global Bayon Best-Sellers rule) */
.gem-shop-archive ul.products li.product .woocommerce-loop-product__title,
.gem-shop-archive ul.products li.product h2 {
    font-family: "Quasimoda", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    text-transform: none;
    color: var(--gem-navy);
}
.gem-shop-archive ul.products li.product .price,
.gem-shop-archive ul.products li.product .price .amount {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}
/* struck-through original price on sale items (live shows regular ⟶ bold sale) */
.gem-shop-archive ul.products li.product .price del { color: #999; }
.gem-shop-archive ul.products li.product .price ins { text-decoration: none; font-weight: 700; color: #444; }
/* Sale badge: coral rounded like live (Blocksy defaults to blue) */
.gem-shop-archive ul.products li.product .onsale {
    background: #ef8f61;
    color: #fff;
    border-radius: 3px;
    text-transform: none;
}

/* ---------------------------------------------------------------------------
 * TESTIMONIAL SLIDER — 402px, Bayon quotes on dimmed photo
 * ------------------------------------------------------------------------- */
.gem-testimonial-slider {
    height: 402px;
    background-size: cover;
    background-position: center;
    margin-top: 72px;
}
.gem-testimonial-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(30, 10, 10, 0.55);
}
.gem-testimonial-slider .gem-slide {
    background: none;
}
.gem-quote {
    position: relative;
    max-width: 760px;
    padding: 0 7vw;
    text-align: center;
    color: #fff;
}
.gem-quote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gem-gold);
    color: #fff;
    font-size: 22px;
    margin-bottom: 18px;
}
.gem-quote p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.55;
    margin: 0 0 16px;
}
.gem-quote cite {
    font-style: normal;
    text-decoration: underline;
    font-size: 18px;
}
/* dots-style controls for the testimonial slider */
.gem-testimonial-slider .gem-slider-bars {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 18px;
    gap: 8px;
}
.gem-testimonial-slider .gem-slider-bars button {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border-right: 0;
}

/* ---------------------------------------------------------------------------
 * FOOTER — light 3-column clone (Explore / Resources / Company)
 * ------------------------------------------------------------------------- */
/* Live footer is MAROON site-wide; the homepage uses a light variant. */
.gem-footer {
    background: var(--gem-maroon);
    padding: 64px 24px 40px;
}
.gem-footer .gem-footer-col h4 { color: var(--gem-gold); }
.gem-footer .gem-footer-col a { color: #fff; }
.gem-footer .gem-footer-col a:hover { color: var(--gem-gold); }
/* Homepage light variant */
.page-id-4413930 .gem-footer { background: #fafafa; }
.page-id-4413930 .gem-footer .gem-footer-col h4 { color: var(--gem-navy); }
.page-id-4413930 .gem-footer .gem-footer-col a { color: var(--gem-navy); }
.page-id-4413930 .gem-footer .gem-footer-col a:hover { color: var(--gem-gold); }
.gem-footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.gem-footer-col h4 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gem-navy);
    margin: 0 0 16px;
}
.gem-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--gem-gold);
}
.gem-footer-col li {
    padding: 6px 0 6px 18px;
}
.gem-footer-col a {
    color: var(--gem-navy);
    text-decoration: none;
    font-size: 15px;
}
.gem-footer-col a:hover {
    color: var(--gem-gold);
}
.ct-footer {
    background-color: #fafafa;
}
.ct-footer [data-column="copyright"] {
    color: var(--gem-navy);
}

/* ---------------------------------------------------------------------------
 * PAGE CHROME — POC/home page: no title bar, no top gap
 * ------------------------------------------------------------------------- */
.page-id-4413930 .entry-header,
.page-id-4413930 .hero-section {
    display: none;
}
.page-id-4413930 .site-main,
.page-id-4413930 #main,
.page-id-4413930 .content-area,
.page-id-4413930 #primary {
    padding-top: 0 !important;
    margin-top: 0 !important;
    --content-spacing: 0px;
    --content-vertical-spacing: 0px;
}
.page-id-4413930 article > .entry-content,
.page-id-4413930 .entry-content > *:first-child {
    margin-top: 0 !important;
}

/* ---------------------------------------------------------------------------
 * RESPONSIVE
 * ------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .gem-moments-inner,
    .gem-specialize-inner,
    .gem-footer-inner {
        grid-template-columns: 1fr;
    }
    .gem-specialize-img img {
        margin-top: -50px;
        max-height: 300px;
    }
    .gem-hero-slider { height: 480px; }
}

/* ---------------------------------------------------------------------------
 * PRODUCT PAGE — match live layout (Alga title above, gold rule, breadcrumb)
 * ------------------------------------------------------------------------- */
.gem-breadcrumb {
    font-size: 13px;
    color: var(--gem-navy);
    margin: 18px 0 6px;
}
.gem-breadcrumb a { color: var(--gem-blue); text-decoration: none; }
.gem-product-title {
    font-family: "Alga", Georgia, serif;
    font-size: 42px;
    font-weight: 500;
    color: var(--gem-navy);
    margin: 0 0 10px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gem-gold);
}
/* member pricing line (gem-awards-membership output) */
.single-product .price + p,
.gem-member-price { color: #666; }

/* ---------------------------------------------------------------------------
 * DIVI SHIM CONTENT (.gds-*) — layout for converted et_pb_* content
 * ------------------------------------------------------------------------- */
.gds-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 40px max(24px, calc(50vw - 590px));
}
.gds-row {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
}
.gds-col { flex: 1 1 0; min-width: 260px; }
.gds-image img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.gds-blurb { text-align: center; }
.gds-blurb img { max-width: 140px; margin: 0 auto 12px; }
.gds-blurb h3 { color: var(--gem-navy); font-size: 20px; margin: 8px 0; }
.gds-heading { color: var(--gem-navy); }
.gds-toggle {
    border: 1px solid #e3e3ea;
    border-radius: 6px;
    margin: 10px 0;
    background: #fff;
}
.gds-toggle summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    color: var(--gem-navy);
    list-style-position: inside;
}
.gds-toggle-body { padding: 0 18px 16px; }
.gds-divider { border: 0; border-top: 1px solid #ddd; margin: 26px 0; }
/* description section headings like live (FULL COLOR ENGRAVING etc.) */
.woocommerce-Tabs-panel h2,
.gds-section h2 {
    color: var(--gem-navy);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
/* white text inside maroon shim bands */
.gds-section[style*="#750b19"],
.gds-section[style*="750b19"] {
    color: #fff;
}
.gds-section[style*="750b19"] h1,
.gds-section[style*="750b19"] h2,
.gds-section[style*="750b19"] h3,
.gds-section[style*="750b19"] li,
.gds-section[style*="750b19"] p {
    color: #fff;
}
@media (max-width: 800px) {
    .gds-row { flex-direction: column; }
    .gem-product-title { font-size: 32px; }
}

/* Product summary: hide the duplicate title (we render it above the columns). */
.single-product .entry-summary .product_title,
.single-product .entry-summary h1.product_title {
    display: none;
}

/* Divi responsive-visibility passthrough (disabled_on) + dark shim rows */
@media (max-width: 767px)  { .gds-hide-phone   { display: none !important; } }
@media (min-width: 768px) and (max-width: 980px) { .gds-hide-tablet { display: none !important; } }
@media (min-width: 981px)  { .gds-hide-desktop { display: none !important; } }
.gds-row[style*="#5B0209"],
.gds-row[style*="5B0209"],
.gds-row[style*="750b19"] {
    color: #fff;
    padding: 26px 24px;
    border-radius: 2px;
}
.gds-row[style*="5B0209"] h1, .gds-row[style*="5B0209"] h2, .gds-row[style*="5B0209"] h3,
.gds-row[style*="5B0209"] p, .gds-row[style*="5B0209"] li {
    color: #fff;
}

/* Header: logo at native 117px, flush to the top-left corner like live. */
.ct-header [data-row] > .ct-container {
    padding-left: 0 !important;
}
.ct-header .site-branding img,
.ct-header .site-branding .custom-logo {
    height: 117px !important;
    max-height: 117px !important;
    width: auto !important;
}

/* One breadcrumb only (ours, slash-separated like live) */
.ct-breadcrumbs { display: none !important; }

/* Product head aligned to the content container */
.gem-breadcrumb,
.gem-product-title {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}
.gem-product-title { margin-bottom: 18px; }

/* Pin the logo flush to the top of the 117px bar (no vertical drift). */
.ct-header [data-row] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.ct-header [data-row] > .ct-container {
    align-items: flex-start;
}
.ct-header .site-branding { align-self: flex-start; }
.ct-header [data-column="end"] { align-self: center; }

/* ---------------------------------------------------------------------------
 * PRODUCT GALLERY — custom carousel (main image + thumbnails + arrows)
 * ------------------------------------------------------------------------- */
.gem-gallery { position: relative; }
.gem-gallery-main {
    position: relative;
    background: #fff;
    border: 1px solid #ececf1;
    border-radius: 4px;
    overflow: hidden;
}
.gem-gallery-main::before { content: ""; display: block; padding-top: 100%; } /* square stage */
.gem-gallery-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    padding: 18px;
    cursor: zoom-in;
}
.gem-gallery-slide.is-active { opacity: 1; pointer-events: auto; }
.gem-gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.gem-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
    color: var(--gem-navy);
    font-size: 18px;
    line-height: 40px;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.gem-gallery-main:hover .gem-gallery-arrow { opacity: 1; }
.gem-gallery-prev { left: 12px; }
.gem-gallery-next { right: 12px; }

.gem-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.gem-gallery-thumb {
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    padding: 4px;
    border: 2px solid #e3e3ea;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.gem-gallery-thumb.is-active { border-color: var(--gem-gold); }
.gem-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Lightbox */
.gem-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vw;
    cursor: zoom-out;
}
.gem-lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }
