/* ============================================================
   CSS CUSTOM PROPERTIES — Unbreakable Her Brand System
============================================================ */
:root {
    --bg:          #FAFAF8;
    --surface:     #F2F0EC;
    --surface-2:   #E8E6E1;
    --card:        #FFFFFF;
    --border:      rgba(0, 0, 0, 0.08);
    --border-hover:rgba(139, 26, 58, 0.25);

    --gold:        #3ab8fa;
    --gold-light:  #12aaf9;
    --gold-dark:   #0e8fcc;
    --gold-rgb:    58, 184, 250;

    --crimson:     #8B1A3A;
    --crimson-lt:  #B02247;

    --text:        #1A1A1A;
    --text-muted:  #6B6B6B;
    --text-faint:  #D0D0D0;

    --font-display:'Cormorant Garamond', Georgia, serif;
    --font-body:   'Karla', sans-serif;

    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --transition:  all 0.3s var(--ease);
    --radius:      0px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}



a { color: inherit; text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
}

/* ============================================================
   UTILITIES
============================================================ */
.overline {
    font-family: var(--font-body);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--crimson);
}
.overline-light {
    font-family: var(--font-body);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.overline-line {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.overline-line::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--crimson);
    flex-shrink: 0;
}

/* Buttons */
.btn-uh-primary {
    display: inline-block;
    background: var(--gold);
    color: #1A1A1A;
    border: 1.5px solid var(--gold);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.9rem 2.4rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-uh-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: 0.6s ease;
}
.btn-uh-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: #1A1A1A; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(var(--gold-rgb), 0.25); }
.btn-uh-primary:hover::before { left: 140%; }

.btn-uh-outline {
    display: inline-block;
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(0,0,0,0.2);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.9rem 2.4rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-uh-outline:hover { border-color: var(--crimson); color: var(--crimson); }

.btn-uh-outline-gold {
    display: inline-block;
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.9rem 2.4rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-uh-outline-gold:hover { background: var(--gold); color: #1A1A1A; }
.btn-uh-outline-crimson {
    display: inline-block;
    background: transparent;
    color: var(--crimson);
    border: 1.5px solid var(--crimson);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.9rem 2.4rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-uh-outline-crimson:hover { background: var(--crimson); color: #FFFFFF; }

/* ============================================================
   NAVIGATION
============================================================ */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: padding 0.4s ease, background 0.4s ease, border-bottom 0.4s ease;
}
.site-nav.scrolled {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
    line-height: 1;
}
.nav-logo em { color: var(--gold); font-style: normal; }
.nav-logo small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.52rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 3px;
}
.navbar-nav .nav-link {
    font-family: var(--font-body);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.25s ease;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 1rem; right: 1rem;
    height: 1px;
    background: var(--crimson);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--text); }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-icon {
    background: none; border: none;
    color: var(--text-muted); font-size: 0.95rem;
    cursor: pointer; padding: 4px;
    transition: color 0.25s ease;
    position: relative;
}
.nav-icon:hover { color: var(--crimson); }
.cart-count {
    position: absolute; top: -5px; right: -7px;
    background: var(--gold); color: #1A1A1A;
    font-size: 0.5rem; font-weight: 800;
    width: 15px; height: 15px; border-radius: 50%;
    align-items: center; justify-content: center;
    text-align: center;
    line-height: 15px;
}
.navbar-toggler { border: none; background: none; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }
.ham { display: block; width: 22px; height: 1.5px; background: var(--text); margin: 5px 0; transition: var(--transition); }

/* ============================================================
   PAGE HERO (shared across sub-pages)
============================================================ */
.page-hero {
    background: var(--surface);
    padding: 8rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--crimson) 30%, var(--crimson) 70%, transparent 100%);
}
.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.08;
    margin-bottom: 0.5rem;
}
.page-hero-title em { color: var(--crimson); font-style: italic; }
.page-hero-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}
.breadcrumb-uh {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.breadcrumb-uh a { color: var(--text-muted); transition: color 0.2s ease; }
.breadcrumb-uh a:hover { color: var(--gold); }
.breadcrumb-uh .sep { color: var(--text-faint); font-size: 0.5rem; }
.breadcrumb-uh .cur { color: var(--crimson); }

/* ============================================================
   SECTION SHARED
============================================================ */
.section-pad { padding: 6rem 0; }
.section-pad-sm { padding: 4rem 0; }

.section-head { margin-bottom: 3.5rem; }
.section-title-lg {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
}
.section-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-top: 0.75rem;
}

/* ============================================================
   PRODUCT CARDS (store grid)
============================================================ */
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.product-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface-2);
}
.product-img-inner {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.4rem;
    color: var(--text-faint);
    transition: transform 0.5s ease;
}
.product-img-inner i { font-size: 1.8rem; opacity: 0.25; }
.product-img-inner span { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.4; }
.product-card:hover .product-img-inner { transform: scale(1.04); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }

.product-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.04);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover .product-overlay { opacity: 1; }

.product-badge {
    position: absolute; top: 0.65rem; left: 0.65rem;
    background: var(--crimson);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.55rem; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
    padding: 0.22rem 0.55rem;
}
.product-badge.gold { background: var(--gold); color: #1A1A1A; }

.product-body { padding: 1.2rem; }
.product-cat {
    font-size: 0.63rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--crimson); margin-bottom: 0.35rem;
}
.product-name {
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 700;
    line-height: 1.2; margin-bottom: 0.45rem;
}
.product-desc {
    font-size: 0.78rem; color: var(--text-muted);
    line-height: 1.55; margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-foot {
    display: flex; align-items: center;
    justify-content: space-between;
}
.product-price {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 700;
    color: var(--crimson);
}
.product-add {
    width: 36px; height: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.82rem;
    cursor: pointer; transition: var(--transition);
}
.product-add:hover { background: var(--gold); color: #1A1A1A; border-color: var(--gold); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: #1A1A1A;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 700;
    margin-bottom: 0.5rem;
    color: #F0EDE6;
}
.footer-logo em { color: var(--gold); font-style: normal; }
.footer-tagline {
    font-size: 0.78rem; color: #888580;
    line-height: 1.7; max-width: 210px;
    margin-bottom: 1.5rem;
}
.footer-socials { display: flex; gap: 0.6rem; }
.footer-social-link {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: #888580; font-size: 0.78rem;
    transition: var(--transition);
}
.footer-social-link:hover { border-color: var(--gold); color: var(--gold); background: rgba(var(--gold-rgb), 0.06); }

.footer-col-label {
    font-family: var(--font-body);
    font-size: 0.62rem; font-weight: 800;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    font-size: 0.83rem; color: #888580;
    transition: color 0.22s ease, padding-left 0.22s ease;
}
.footer-links a:hover { color: #F0EDE6; padding-left: 4px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 4rem; padding-top: 1.5rem;
    display: flex; align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.7rem; color: #888580; letter-spacing: 0.04em; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.68rem; color: #888580; }
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   SCROLL REVEAL
============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   STORE PAGE — Sidebar Filters
============================================================ */
.store-sidebar {
    position: sticky;
    top: 100px;
}
.filter-section {
    margin-bottom: 1.75rem;
}
.filter-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.65rem 1rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn:hover {
    background: rgba(var(--gold-rgb), 0.06);
    border-color: var(--gold);
    color: var(--gold);
}
.filter-btn.active {
    background: var(--crimson);
    border-color: var(--crimson);
    color: #FFFFFF;
}
.price-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--surface-2);
    outline: none;
    -webkit-appearance: none;
    margin-top: 0.75rem;
}
.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: 2px solid var(--gold-light);
}
.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: 2px solid var(--gold-light);
}
.price-range-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text);
    font-weight: 600;
}
.uh-sort {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
}
.uh-sort:focus {
    outline: none;
    border-color: var(--gold);
}

/* ============================================================
   STORE PAGE — Product Grid Override for CMS
============================================================ */
.products-grid-wrapper .product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 1rem !important;
}
.products-grid-wrapper .product-card {
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.products-grid-wrapper .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-color: var(--border-hover);
}
.products-grid-wrapper .product-card img,
.products-grid-wrapper .product-card .product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.products-grid-wrapper .product-card .product-image-link {
    display: block;
}
.products-grid-wrapper .product-card .product-details {
    padding: 1rem;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}
.products-grid-wrapper .product-card .product-category-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: inline-block;
}
.products-grid-wrapper .product-card .product-sale-badge {
    font-size: 0.7rem;
    background: var(--crimson);
    color: #FFFFFF;
    padding: 2px 8px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.products-grid-wrapper .product-card .product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.products-grid-wrapper .product-card .product-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    flex: 1 !important;
}
.products-grid-wrapper .product-card .product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--crimson);
}
.products-grid-wrapper .product-card .product-price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.products-grid-wrapper .product-card .product-price-discounted {
    color: var(--crimson-lt);
    font-weight: 800;
}
.products-grid-wrapper .product-card .product-price-badge {
    background: var(--crimson);
    color: #FFFFFF;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}
.products-grid-wrapper .product-card .cart-add-btn,
.products-grid-wrapper .product-card .product-actions button {
    display: inline-block;
    width: auto;
    padding: 0.5rem 1.2rem;
    background: var(--gold);
    color: #1A1A1A;
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
}
.products-grid-wrapper .product-card .cart-add-btn:hover,
.products-grid-wrapper .product-card .product-actions button:hover {
    opacity: 0.9;
}
.products-grid-wrapper .product-card a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   UPSELL SECTION — Cart page product cards
   CMS renders .col-6.col-lg-3 > .product-card with .product-img,
   .product-body, .product-name, .product-desc, .product-foot, .product-price
============================================================ */
#upsellSection {
    overflow: hidden;
}
/* Override .col-6.col-lg-3 — too narrow inside col-lg-8.
   Switch to 3 per row on lg, 2 per row on sm */
#upsellSection [class*="col-"] {
    flex: 0 0 auto;
    width: 50% !important;
    max-width: 50% !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
@media (min-width: 992px) {
    #upsellSection [class*="col-"] {
        width: 33.333% !important;
        max-width: 33.333% !important;
    }
}
#upsellSection .product-card {
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
#upsellSection .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-color: var(--border-hover);
}
#upsellSection .product-card .product-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--surface);
}
#upsellSection .product-card .product-img-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#upsellSection .product-card .hp-data-image {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}
#upsellSection .product-card .product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#upsellSection .product-card:hover .product-overlay {
    opacity: 1;
}
#upsellSection .product-card .product-badge {
    display: none;
}
#upsellSection .product-card .product-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
#upsellSection .product-card .product-cat {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--crimson);
    margin-bottom: 0.3rem;
}
#upsellSection .product-card .product-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.3rem;
}
#upsellSection .product-card .product-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#upsellSection .product-card .product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
#upsellSection .product-card .product-price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}
#upsellSection .product-card .view-product-btn,
#upsellSection .product-card .cart-add-btn,
#upsellSection .product-card .btn-primary,
#upsellSection .product-card .btn-disabled {
    display: inline-block;
    width: auto;
    padding: 0.4rem 0.9rem;
    background: var(--gold) !important;
    color: #1A1A1A !important;
    border: none !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    border-radius: 0 !important;
    transition: opacity 0.3s;
}
#upsellSection .product-card .view-product-btn:hover,
#upsellSection .product-card .cart-add-btn:hover,
#upsellSection .product-card .btn-primary:hover {
    opacity: 0.85;
    color: #1A1A1A !important;
}
#upsellSection .product-card .btn-disabled {
    background: var(--surface-2) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
}

/* ============================================================
   CART PAGE
============================================================ */
.cart-items-container {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1.5rem;
}
.cart-empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.cart-summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}
.cart-summary-head {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.cart-sum-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
}
.cart-sum-row .lbl { color: var(--text-muted); }
.cart-sum-row .val { color: var(--text); font-weight: 600; }
.cart-sum-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--border);
    font-size: 1.1rem;
    font-weight: 700;
}
.cart-sum-total .val { color: var(--crimson); font-size: 1.3rem; }
.promo-wrap {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.promo-in {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.65rem 1rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
}
.promo-in:focus {
    outline: none;
    border-color: var(--gold);
}
.promo-apply {
    background: var(--gold);
    color: #1A1A1A;
    border: none;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}
.promo-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(var(--gold-rgb), 0.3);
}
#shippingProgress { margin-bottom: 1.5rem; }
#shippingProgress > div:first-child {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
#shippingProgress > div:nth-child(2) {
    background: var(--surface-2);
    height: 5px;
    overflow: hidden;
}
#shippingProgressBar {
    height: 100%;
    background: var(--gold);
    transition: width 0.5s ease;
}

/* ============================================================
   CHECKOUT PAGE
============================================================ */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
}
.checkout-section {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.checkout-section h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.checkout-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.checkout-input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: border-color 0.3s;
}
.checkout-input:focus {
    outline: none;
    border-color: var(--gold);
}
.checkout-input::placeholder {
    color: var(--text-muted);
}
.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.payment-method-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border);
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}
.payment-method-btn:hover { border-color: var(--gold); }
.payment-method-btn.active {
    border-color: var(--gold);
    background: rgba(var(--gold-rgb), 0.1);
    color: var(--gold);
}
.payment-method-btn i { font-size: 1.5rem; }
.payment-container {
    display: none;
    min-height: 200px;
    position: relative;
}
.payment-container.active { display: block; }
#card-element {
    padding: 1rem;
    border: 1px solid var(--border);
    background: #FFFFFF;
    margin-bottom: 1rem;
}
.checkout-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.checkout-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.checkout-item-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: #1A1A1A;
    font-size: 0.68rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-item-details { flex: 1; }
.checkout-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.25rem 0;
}
.checkout-item-variant {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}
.checkout-item-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
    font-size: 1.1rem;
    font-weight: 700;
}
.cart-total-row span:last-child {
    font-size: 1.1rem;
    color: var(--crimson);
}
#checkout-total { max-width: 100%; }
#promo-input-row { -webkit-text-fill-color: initial; }
#promo-code-input { max-width: 70%; }
#apply-promo-btn {
    background: var(--gold) !important;
    color: #1A1A1A !important;
    border: none;
}
.StripeElement { background-color: #fff !important; }

/* ============================================================
   ORDER CONFIRMATION PAGE
============================================================ */
.confirmation-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1.5rem;
}
.order-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.order-item-row:last-child { border-bottom: none; }
.order-item-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.order-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.order-item-details { flex: 1; }
.order-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.25rem 0;
}
.order-item-variant {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}
.order-item-qty {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.order-item-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}
.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    color: var(--text);
}
.order-summary-row span:first-child { color: var(--text-muted); }
.order-total-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
    font-size: 1rem;
    font-weight: 700;
}
.order-total-row span:last-child {
    font-size: 1.2rem;
    color: var(--crimson);
}

/* ============================================================
   CONTENT PAGES (FAQs, Privacy, Returns, Terms)
============================================================ */
.content-page {
    background: var(--bg);
    padding: 3rem 0 5rem;
}
.content-page-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.content-page-card h2,
.content-page-card h3 {
    font-family: var(--font-display);
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.content-page-card h2:first-child,
.content-page-card h3:first-child {
    margin-top: 0;
}
.content-page-card p {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1rem;
}
.content-page-card ul,
.content-page-card ol {
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.content-page-card a { color: var(--crimson); }
.content-page-card a:hover { color: var(--crimson-lt); }
.content-page-card strong { color: var(--text); }

/* ============================================================
   CMS-RENDERED ELEMENTS
   ShoppingService / CartService use Bootstrap class names
   that need Unbreakable Her theme overrides
============================================================ */

/* btn-primary → match cart-add-btn / btn-uh-primary style */
.btn-primary,
.btn-primary:not(.btn-sm):not(.btn-lg),
.btn-success,
.btn-success:not(.btn-sm):not(.btn-lg) {
    display: inline-block !important;
    background: var(--gold) !important;
    background-color: var(--gold) !important;
    color: #1A1A1A !important;
    border: 1.5px solid var(--gold) !important;
    border-color: var(--gold) !important;
    font-family: var(--font-body) !important;
    font-weight: 800 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    padding: 0.9rem 2.4rem !important;
    cursor: pointer !important;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    text-align: center;
    border-radius: 0 !important;
    line-height: 1.5 !important;
}
.btn-primary.btn-sm,
.btn-success.btn-sm {
    padding: 0.55rem 1.2rem !important;
    font-size: 0.62rem !important;
}
.btn-primary.btn-lg,
.btn-success.btn-lg {
    padding: 1.1rem 3rem !important;
    font-size: 0.78rem !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background: var(--gold-light) !important;
    background-color: var(--gold-light) !important;
    border-color: var(--gold-light) !important;
    color: #1A1A1A !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(var(--gold-rgb), 0.25);
}

/* btn-secondary */
.btn-secondary {
    display: inline-block;
    background: transparent !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 0.6rem 1.2rem !important;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-secondary:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

/* view-product-btn — compact override for product cards */
.view-product-btn {
    padding: 0.45rem 0.9rem !important;
    font-size: 0.6rem !important;
    letter-spacing: 0.14em !important;
}

/* btn-disabled */
.btn-disabled,
.btn:disabled {
    background: var(--surface-2) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border) !important;
    cursor: not-allowed;
    opacity: 0.5;
}

/* ============================================================
   CART ITEMS (rendered by CartService)
============================================================ */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}
.cart-item:hover {
    border-color: var(--border-hover);
}
.cart-item-image-wrapper {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px;
    max-width: 90px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--surface-2);
}
.cart-item-image {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    object-fit: cover !important;
    display: block;
}
.cart-item-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}
.cart-item-details {
    flex: 1;
    min-width: 0;
}
.cart-item-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}
.cart-item-type {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
}
.cart-item-price {
    font-size: 0.9rem;
    color: var(--crimson);
    font-weight: 700;
    margin: 0;
}
.cart-item-actions {
    flex-shrink: 0;
}
.cart-remove-btn {
    font-size: 0.65rem !important;
    padding: 0.5rem 1rem !important;
    border-color: var(--crimson-lt) !important;
    color: var(--crimson-lt) !important;
}
.cart-remove-btn:hover {
    background: var(--crimson-lt) !important;
    color: var(--text) !important;
    border-color: var(--crimson-lt) !important;
}

/* Cart empty state */
.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================================
   CART SUMMARY (rendered by CartService)
============================================================ */
.cart-summary {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1.5rem;
}
.cart-summary-totals {
    margin-bottom: 1.5rem;
}
.cart-summary-subtotal,
.cart-summary-tax {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    font-size: 0.88rem;
}
.cart-summary-subtotal span:first-child,
.cart-summary-tax span:first-child {
    color: var(--text-muted);
}
.cart-summary-subtotal span:last-child,
.cart-summary-tax span:last-child {
    color: var(--text);
    font-weight: 600;
}
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--border);
    font-size: 1.1rem;
    font-weight: 700;
}
.cart-summary-total span:first-child {
    color: var(--text);
}
.cart-summary-total #cart-total {
    color: var(--crimson);
    font-size: 1.3rem;
}
.cart-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.cart-continue-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.cart-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    background: var(--gold) !important;
    border-color: var(--gold) !important;
}
.cart-checkout-btn:hover {
    background: var(--gold-light) !important;
    border-color: var(--gold-light) !important;
}

/* ============================================================
   HOMEPAGE / VIEW-RENDERED PRODUCT IMAGES
   Gallery-type attributes render as .hp-data-image with
   inline styles that conflict with .product-img containers.
   Override to fill the card properly.
============================================================ */
.product-img .hp-data-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 991px) {
    .store-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .checkout-grid > :last-child {
        order: -1;
    }
    .cart-summary-card {
        position: static;
        margin-top: 2rem;
    }
}
@media (max-width: 767px) {
    .page-hero { padding: 7rem 0 2.5rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .order-item-row { flex-wrap: wrap; }
    .order-item-qty,
    .order-item-price { width: 50%; }
    .order-item-price { text-align: right; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-image-wrapper { width: 70px !important; height: 70px !important; min-width: 70px; max-width: 70px; }
    .cart-item-image { width: 70px !important; height: 70px !important; max-width: 70px !important; max-height: 70px !important; }
    .cart-item-content { flex-wrap: wrap; }
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(100px); opacity: 0; }
}
