/* ==========================================================================
   1. GLOBAL VARIABLES, RESETS & BASE STYLES
   ========================================================================== */

:root {
    /* --- Dynamic Themes (Updated by App Scripts) --- */
    --primary-color: #f48120;
    --secondary-color: #1a1a1a;
    --bg-color: #f4f4f4;
    --band-name-font: 'Great Vibes', cursive;
    --brand-accent: #d9534f;
    --text-main: #333333;
    --band-name-scale: 1;
    --band-name-margin: -15px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    
    /* --- ADD THESE LINES: Hide by default until branded --- */
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

/* --- ADD THIS CLASS: Reveals the page instantly once variables load --- */
body.fully-branded {
    opacity: 1;
}

sup {
    font-size: 0.6em;
    vertical-align: super;
    line-height: 0; 
}

/* ==========================================================================
   2. SITE LAYOUT & STICKY NAVIGATION
   ========================================================================== */

main {
    max-width: 1200px;  
    margin: 0 auto;     
    padding: 0 1rem 4rem; 
}

.site-nav,
.footer-nav,
.powered-by {
    background-color: var(--secondary-color);
    text-align: center;
}

.site-nav {
    padding: 0.6rem 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.75rem, 3.5vw, 2.5rem);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
}

.site-nav a,
.footer-nav a {
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.site-nav a {
    color: white;
    font-size: clamp(0.85rem, 2.4vw, 1.05rem);
    white-space: nowrap;
}

.footer-nav {
    padding: 2rem 0 1rem; 
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-nav a {
    color: #FFFFFF; 
    font-size: 0.95rem; 
}

.site-nav a:hover,
.footer-nav a:hover,
.powered-by a:hover {
    color: var(--primary-color);
}

.powered-by {
    padding-bottom: 2rem; 
    font-size: 0.75rem;
    color: #888; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.powered-by a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

/* ==========================================================================
   3. HERO BANNER & IMAGE ACCENTS
   ========================================================================== */

.hero {
    position: relative; 
    text-align: center;
    padding: 1.5rem 1rem; 
    background-color: var(--hero-bg-color, #bbf7f8); 
    overflow: hidden; 
    z-index: 1;
}

/* Image layer with independent opacity */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--hero-bg-opacity, 1);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -2%; 
    width: 104%;
    height: 28px; 
    background-color: var(--bg-color);
    border-top: 2px solid #eaeaea; 
    border-radius: 50% 50% 0 0; 
    z-index: 1;
    pointer-events: none;
}

/* Ensure hero text and progress elements stay above the image layer */
.hero-sponsor-title,
.band-name,
.hero-titles,
#progress-wrapper {
    position: relative;
    z-index: 2;
}

/* Inherits the exact styling of the Secondary Subtitle Text */
.hero-sponsor-title {
    font-size: clamp(0.85rem, 2.5vw, 1.15rem);
    font-weight: 400;
    line-height: 1.3;
    opacity: 0.75;
    color: var(--secondary-color);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
    display: none; /* Hidden when empty, shown when text is supplied */
}

.band-name {
    font-family: var(--band-name-font);
    /* Lowered the middle vw value to force it to shrink more on mobile */
    font-size: calc(clamp(2.5rem, 12vw, 6.5rem) * var(--band-name-scale)); 
    white-space: nowrap; 
    font-weight: 400;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: var(--band-name-margin);
}

.hero-main-title,
.hero-sub-title {
    white-space: nowrap; /* Completely blocks text wrapping onto a second line */
    overflow: hidden; /* Clips extra text if it goes too wide */
    text-overflow: ellipsis; /* Appends ... gracefully if text hits the container edge */
    color: var(--secondary-color);
    text-transform: uppercase;
}

.hero-main-title {
    font-size: clamp(1.1rem, 4vw, 1.85rem); /* Increased fluid scaling and maximum ceiling */
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.6rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.hero-sub-title {
    font-size: clamp(0.85rem, 2.5vw, 1.15rem); /* Expanded to prevent it from looking like fine print */
    font-weight: 400; 
    line-height: 1.3;
    opacity: 0.75;
    margin-bottom: 0.5rem; 
}

.featured-image {
    text-align: center;
    padding: 3rem 1rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-image img {
    width: 100%;
    max-width: 500px; 
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

/* ==========================================================================
   4. CAMPAIGN METRICS, TIMELINES & PLAYERS
   ========================================================================== */

#progress-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.progress-pill {
    background-color: rgba(255, 255, 255, 0.6);
    /* --- UPDATED: Swapped to 135deg to lean stripes to the right --- */
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.03) 50%, rgba(0, 0, 0, 0.03) 75%, transparent 75%, transparent);
    background-size: 40px 40px;
    border-radius: 50px;
    height: 40px;
    width: 100%;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-fill {
    background-color: var(--primary-color);
    height: 100%;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Kept flex-start so text aligns next to the left edge nicely */
    color: white;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap; /* <-- ADD THIS LINE to prevent text wrap */
    transition: width 0.8s ease;
    min-width: 45px; 
}

/* Gracefully hide the stretch timeline label text on tight mobile breakpoints */
@media (max-width: 600px) {
    #bg-label-stretch {
        display: none !important;
    }
}

.campaign-stats {
    font-size: clamp(0.7rem, 3.5vw, 1.1rem); 
    white-space: nowrap; 
    font-weight: 400; 
    color: var(--secondary-color);
    margin: 0.5rem 0 1rem; 
}

.campaign-stats span {
    font-weight: 700; 
}

#funding-goal {
    font-weight: 400; 
}

.campaign-story,
.story-container {
    max-width: 800px; 
    margin: 0 auto;
}

.campaign-story {
    margin-top: 1rem;
    margin-bottom: 4rem; 
    padding: 0 1rem;
}

.campaign-story h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem; 
    text-align: center;
}

.campaign-story p {
    font-size: 1rem;
    line-height: 1.4; 
    margin-bottom: 1.5rem;
}

.story-container {
    position: relative;
}

.story-content {
    overflow: hidden;
    max-height: 120px; 
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}

.story-content.expanded {
    max-height: none; 
}

.story-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; 
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 80%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 5px;
    transition: opacity 0.3s ease;
}

.story-fade.hidden {
    opacity: 0;
    pointer-events: none; 
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.read-more-btn:hover {
    color: var(--primary-color);
    transform: translateY(2px); 
}

.audio-preview-container {
    background-color: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.audio-title {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem !important; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-audio-player {
    width: 100%;
    height: 40px; 
    outline: none;
}

/* ==========================================================================
   5. REWARDS REQUISITION TIERS & ITEM GRID
   ========================================================================== */

#album-tiers {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

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

.album-card {
    background: white;
    padding: 2.5rem 1.5rem 1.5rem; 
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; 
}

.album-card-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    container-type: inline-size; 
}

.item-title {
    font-size: clamp(1rem, 8cqi, 1.5rem); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    line-height: 1.0; 
    margin-bottom: -2px; 
}

.item-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #333;
    margin-top: -2px; 
    margin-bottom: 0.5rem; 
}

.album-card-content .description {
    line-height: 1.3; 
}

.item-image,
.image-carousel-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    display: block;
}

.item-image {
    height: auto;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.3)); 
}

.image-carousel-wrapper {
    position: relative;
}

.image-carousel-wrapper .item-image {
    margin-bottom: 0; 
    aspect-ratio: 1 / 1; 
    object-fit: contain; 
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none; 
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease;
    padding: 0;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.15); 
}

.carousel-arrow.left { left: -1rem; }
.carousel-arrow.right { right: -1rem; }

.carousel-arrow img {
    width: 20px;
    height: 20px;
}

.album-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* Specific Graphic Width Adjustments */
.img-digital, .img-autographed, .img-special-thanks { width: 75%; margin: 0 auto; display: block; }
.img-lyric-book { width: 80%; margin: 0 auto; display: block; }
.img-donate { width: 65%; }
.img-turntable-mat { width: 85%; }

.item-options-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.item-option {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-option label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.2rem;
}

.item-option-select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: #fafafa;
    cursor: pointer;
}

.cart-item-options {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 0.4rem 0;
}

/* Forces the dynamic text color mapping straight down onto the ribbon labels */
.price-ribbon {
    color: var(--price-text-color, #000000) !important;
}

/* Corner Price Badge Layouts */
.price-ribbon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3)); 
}

.price-ribbon {
    background-color: var(--primary-color);
    color: black; 
    width: 140px;
    height: 140px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    display: flex;
    align-items: flex-start;
    padding-top: 16px;
    padding-left: 16px;
    font-weight: 800;
}

.price-symbol {
    font-size: 1.4rem; 
    margin-top: 4px; 
    margin-right: 2px;
}

.price-amount {
    font-size: 2.8rem; 
    line-height: 1;
    letter-spacing: -2px;
}

/* Action Trigger Controls */
.cart-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-color); 
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.cart-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.cart-btn:disabled {
    background-color: #e0e0e0;
    color: #999;
    box-shadow: none;
    cursor: not-allowed;
}

/* ==========================================================================
   COMPACT / HALF-HEIGHT STACKED CARDS (VERTICAL PROPORTIONS)
   ========================================================================== */

.compact-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

/* Keep an orphan half-card at its true compact height */
.compact-stack.single {
    justify-content: flex-start;
}

.compact-stack.single .album-card-compact {
    flex: 0 0 auto;
}

.album-card-compact {
    flex: 1;
    background: white;
    padding: 1.5rem 1.25rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Scaled down corner price ribbon */
.album-card-compact .price-ribbon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.25));
}

.album-card-compact .price-ribbon {
    background-color: var(--primary-color);
    width: 95px;
    height: 95px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    display: flex;
    align-items: flex-start;
    padding-top: 10px;
    padding-left: 10px;
    font-weight: 800;
}

.album-card-compact .price-symbol {
    font-size: 1rem;
    margin-top: 2px;
    margin-right: 2px;
}

.album-card-compact .price-amount {
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: -1px;
}

/* Scaled image stage */
.album-card-compact .compact-img-stage {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.album-card-compact .compact-img-stage img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}

/* Content block */
.album-card-compact .album-card-content {
    flex-grow: 1;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.album-card-compact .item-title {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    line-height: 1.1;
    margin-bottom: 0.15rem;
}

.album-card-compact .item-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 0.35rem;
}

.album-card-compact .description {
    font-size: 0.82rem;
    line-height: 1.35;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-card-compact .item-options-container {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.album-card-compact .item-option label {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
}

.album-card-compact .item-option-select {
    padding: 0.35rem;
    font-size: 0.82rem;
}

.album-card-compact .inventory-container {
    margin-bottom: 0.75rem;
}

.album-card-compact .inventory-text {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.album-card-compact .inventory-bar {
    height: 6px;
}

/* Compact full-width button */
.album-card-compact .cart-btn {
    width: 100%;
    padding: 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    margin-top: auto;
}

/* ==========================================================================
   6. STOCK LEVEL & LIVE INVENTORY LABELS
   ========================================================================== */

.inventory-container {
    margin-bottom: 1.5rem;
}

.inventory-text {
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 0.4rem;
}

.inventory-bar {
    width: 100%;
    height: 8px;
    border: 1px solid black;
    border-radius: 4px;
    background-color: white;
    overflow: hidden;
}

.inventory-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-right: 1px solid black;
    transition: width 0.5s ease;
}

.inventory-tracker {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.sold-out-text {
    color: var(--brand-accent);
}

/* ==========================================================================
   7. EXPANDABLE CART FLYOUT OVERLAYS
   ========================================================================== */

.cart-token {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #212122;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cart-token:hover {
    transform: scale(1.05);
    background-color: var(--primary-color);
}

.cart-icon {
    font-size: 1.5rem;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    line-height: 1; 
    padding-top: 2px; 
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.cart-panel {
    position: fixed;
    top: 0;
    bottom: 0; 
    right: -450px;
    width: 400px;
    max-width: 100%;
    background-color: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-panel.open {
    right: 0; 
}

.cart-header,
.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

.cart-header {
    border-bottom: 1px solid #eaeaea;
}

.cart-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.close-cart,
.close-modal-btn {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.close-cart {
    color: #888;
}

.cart-items-container {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.empty-cart-msg {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 2rem;
}

.cart-item-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #666;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    transition: background-color 0.2s ease;
}

.qty-btn:hover {
    background-color: #eee;
}

.qty-display {
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem; 
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.cart-item-remove:hover {
    opacity: 1;
}

.trash-icon {
    width: 22px;
    height: 22px;
}

.cart-footer {
    padding: 1.5rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); 
    border-top: 1px solid #eaeaea;
    background-color: #fafafa;
    flex-shrink: 0; 
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkout-btn:hover {
    background-color: var(--secondary-color);
}

.checkout-disclaimer {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

/* ==========================================================================
   8. DIALOG INTERACTION POP-UPS & EMBEDS
   ========================================================================== */

.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.info-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%); 
    width: 90%;
    max-width: 650px;
    max-height: 85vh; 
    background-color: white;
    border-radius: 12px;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.info-modal.open, 
.info-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.info-modal.open {
    transform: translate(-50%, -50%); 
}

.info-modal-header {
    background-color: var(--primary-color);
    border-top-left-radius: 12px; 
    border-top-right-radius: 12px;
}

.info-modal-header h2,
#info-modal-title {
    font-size: 1.5rem;
    color: #ffffff !important; 
    text-transform: uppercase;
}

.close-modal-btn {
    color: #ffffff !important; 
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.close-modal-btn:hover {
    opacity: 1;
}

.info-modal-content {
    padding: 1.5rem;
    overflow-y: auto; 
    color: #333;
}

.info-modal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.info-modal-content h3:first-child {
    margin-top: 0;
}

.info-modal-content p {
    margin-bottom: 1rem;
}

/* --- Responsive Aspect-Ratio Video Scaling Boxes --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   CUSTOM SYSTEM ALERT DIALOG STYLES
   ========================================================================== */

.custom-alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-alert-box {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #333;
    max-width: 450px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.2s ease;
}

.custom-alert-box h3 {
    margin-top: 0;
    color: #ffffff;
    font-family: 'Barlow', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.custom-alert-box p {
    color: #cccccc;
    margin-bottom: 2rem;
    font-family: sans-serif;
    line-height: 1.5;
    font-size: 0.95rem;
}

.custom-alert-actions {
    text-align: right;
}

.custom-alert-actions button {
    background: transparent;
    color: #6ee7b7;
    border: 2px solid #6ee7b7;
    padding: 0.6rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.custom-alert-actions button:hover {
    background: #6ee7b7;
    color: #1a1a1a;
}

/* Pre-launch Notify Bell Shake Animation */
@keyframes bellRing {
  0% { transform: rotate(0); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-8deg); }
  50% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); }
  70% { transform: rotate(1deg); }
  100% { transform: rotate(0); }
}

.bell-shake {
  display: inline-block;
  transform-origin: top center;
  animation: bellRing 1.2s ease-in-out 3; /* Shakes 3 times */
  animation-delay: 0.6s;                  /* Slight delay so the user catches it */
}

/* ==========================================================================
   COMPACT CART FOOTER LAYOUT
   ========================================================================== */
.cart-footer {
    padding: 1rem 1.25rem; /* Reduced padding from 1.5rem */
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
}

.shipping-destination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaeaea;
}

.shipping-destination-wrapper label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shipping-destination-wrapper select {
    width: 50%;
    padding: 0.3rem 0.5rem; /* Tighter padding internal */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem;
    background-color: #ffffff;
    color: #333;
    cursor: pointer;
}

.cart-math-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem; /* Slightly smaller text for compact look */
    color: #555;
    margin-bottom: 0.3rem;
}

.cart-math-row.shipping-row {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaeaea;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.cart-currency-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.cart-currency-wrapper .currency-tag {
    font-size: 0.7rem;
    color: #888;
    font-weight: 600;
}

/* Base properties for pill-button structure layout */
.checkout-btn {
    width: 100%;
    padding: 0.85rem; /* Reduced thickness */
    color: #ffffff;
    border: none;
    border-radius: 50px; /* Perfect round pill contours */
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease, filter 0.2s ease, transform 0.1s ease;
    margin-bottom: 0.5rem;
}

.checkout-btn:hover {
    filter: brightness(0.9); /* Universally darkens any background configuration safely */
}

.checkout-btn:active {
    transform: scale(0.98);
}

.checkout-disclaimer {
    font-size: 0.65rem;
    line-height: 1.3;
    color: #999;
    text-align: center;
    margin: 0;
}

.order-input::placeholder {
        color: #b0b8c1;
        opacity: 0.8;
}

/* ==========================================================================
   FAQ ACCORDION & 2-LINE CLAMP
   ========================================================================== */

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-body {
    position: relative;
    overflow: hidden;
    line-height: 1.5;
    color: #333;
    white-space: pre-line;
    transition: max-height 0.3s ease;
}

/* Clamped to exactly two lines */
.faq-body.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Toggle link / arrow */
.faq-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color, #f48120);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-toggle-btn:hover {
    filter: brightness(0.85);
}

/* ==========================================================================
   10. ORDER STATUS & LOOKUP DRAWER
   ========================================================================== */

/* Slider Track & Viewport */
.order-slider-viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
    width: 100%;
}

.order-slider-track {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.order-slide-panel {
    width: 50%;
    height: 100%;
    overflow-y: auto;
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Form & Input Elements */
.order-field-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-field-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.order-text-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fafafa;
    color: #111;
}

.order-textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fafafa;
    color: #111;
    resize: vertical;
    line-height: 1.35;
}

.order-error-banner {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fee2e2;
    border: 1px solid #f87171;
    border-radius: 6px;
    color: #b91c1c;
    font-size: 0.85rem;
    text-align: center;
}

/* Detail Display Sections */
.order-section {
    margin-bottom: 0.85rem;
}

.order-value-text {
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.35;
    margin-top: 0.1rem;
}

/* Status Pill & Hold-to-Reveal Pipeline */
.order-status-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    position: relative;
}

.order-status-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.order-status-pill {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease;
}

.order-pipeline-flyout {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    min-width: 130px;
    flex-direction: column;
    gap: 0.35rem;
}

.pipeline-step {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 9999px;
    text-align: center;
    opacity: 0.45;
}

.pipeline-step.paid { background: #dcfce7; color: #166534; }
.pipeline-step.processing { background: #fef3c7; color: #92400e; }
.pipeline-step.shipped { background: #eff6ff; color: #1e40af; }
.pipeline-step.canceled { background: #fee2e2; color: #991b1b; }

.pipeline-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.2rem 0;
}

/* Edit Address Action Buttons */
.order-section-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.order-section-header .order-field-label {
    margin-bottom: 0;
}

.edit-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.edit-icon-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.edit-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-edit-cancel {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
}

.btn-edit-save {
    background: var(--primary-color, #1a1a1a);
    color: #fff;
    border: none;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

/* Last Updated Footer Section */
.order-updated-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.4rem;
}

.order-updated-footer .order-field-label {
    margin-bottom: 0;
}

/* ==========================================================================
   9. UNBOLD HEADER & FOOTER CART ITEM COUNTS
   ========================================================================== */
.site-nav .nav-counter,
.footer-nav .nav-counter {
    font-weight: 400 !important;
    text-transform: none !important;
    display: inline-block !important;
    color: rgba(255, 255, 255, 0.8) !important; /* Matches navigation color beautifully */
}