@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #0A0807;
    --card-bg: #FFFFFF;
    --card-border: #E8E2D6;
    /* SIGNATURE WARM BROWN ORANGE ACCENT FROM WEBSITE DESIGN */
    --card-border-gold: #C85A17;
    --btn-light-bg: #F8F5F0;
    --btn-light-hover: #EFE9DE;
    --text-dark: #1A1612;
    --text-muted: #6B635B;
    --accent-brown-orange: #C85A17;
    --accent-brown-orange-hover: #A6450E;
    --shadow-card: 0 25px 60px rgba(0, 0, 0, 0.45);
    --shadow-orange: 0 12px 35px rgba(200, 90, 23, 0.22);
    --transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ================== MAIN STAGE WRAPPER ================== */
.card-stage {
    position: relative;
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    transition: var(--transition);
}

/* ================== THE OPENING LID ON TOP (SHAPED LIKE AN ACTUAL BOX LID!) ================== */
.black-box-lid {
    z-index: 60;
    width: 384px;
    max-width: 95%;
    background: linear-gradient(180deg, #E27B38 0%, #C85A17 65%, #994008 100%);
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.84rem;
    letter-spacing: 2.8px;
    padding: 14px 28px 18px 28px;
    border-radius: 18px 18px 6px 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 -4px 15px rgba(200, 90, 23, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    margin-bottom: -10px;
    border: 2px solid #F3985E;
    border-bottom: 4px solid #753005;
    position: relative;
}

.black-box-lid:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 -8px 25px rgba(200, 90, 23, 0.6);
}

.black-box-lid.opened {
    transform: translateY(-20px) scale(1.03);
    background: linear-gradient(180deg, #F3985E 0%, #D96B1C 50%, #C85A17 100%);
    box-shadow: 0 0 35px rgba(235, 120, 48, 0.7);
}

.lid-icon-svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* ================== 3D FLIP & EXPANDING WHITE LUXURY BOX BODY ================== */
.black-box-flipper {
    position: relative;
    width: 94vw;
    max-width: 400px;
    height: auto;
    min-height: 530px;
    transform-style: preserve-3d;
    transition: max-width 0.55s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.55s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
}

.black-box-flipper:hover,
.black-box-flipper:focus-within,
.black-box-flipper:has(.website-hover-wrapper:hover),
.black-box-flipper:has(.website-hover-wrapper:focus-within),
.black-box-flipper:has(.website-hover-card.show-preview) {
    z-index: 9999999 !important;
}

/* ABSOLUTE GUARANTEE THAT THE LID VANISHES & NEVER OVERLAPS WHEN PREVIEW CARD IS SHOWING */
#card-stage.preview-active .black-box-lid,
.black-box-lid.preview-active,
#card-stage:has(.website-hover-wrapper:hover) .black-box-lid,
#card-stage:has(.website-hover-wrapper:focus-within) .black-box-lid,
#card-stage:has(.website-hover-card.show-preview) .black-box-lid,
#card-stage:has(.website-hover-card:hover) .black-box-lid {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -99999 !important;
    transform: translateY(-50px) translateZ(-1000px) !important;
}

#card-stage:has(.website-hover-wrapper:hover) .box-face,
#card-stage:has(.website-hover-wrapper:focus-within) .box-face,
#card-stage:has(.website-hover-card.show-preview) .box-face {
    z-index: 9999999 !important;
    overflow: visible !important;
    transform-style: preserve-3d !important;
}

#card-stage:has(.website-hover-wrapper:hover) .front-info-view,
#card-stage:has(.website-hover-wrapper:focus-within) .front-info-view,
#card-stage:has(.website-hover-card.show-preview) .front-info-view {
    z-index: 9999999 !important;
    overflow: visible !important;
    transform-style: preserve-3d !important;
}

/* WHEN PREVIEWS ARE UNBOXED: BOX EXPANDS AND EASES INTO SHOWCASE VIEW! */
.black-box-flipper.expanded-showcase {
    width: 96vw;
    max-width: 580px;
    height: auto;
    min-height: 530px;
    max-height: 82vh;
}

.black-box-flipper.flipped {
    transform: rotateY(180deg);
}

.box-face {
    position: absolute;
    inset: 0;
    background: var(--card-bg);
    border: 3px solid var(--accent-brown-orange);
    border-top: 6px solid var(--accent-brown-orange);
    border-radius: 12px 12px 28px 28px;
    box-shadow: var(--shadow-card), var(--shadow-orange), inset 0 4px 18px rgba(200, 90, 23, 0.10);
    padding: 34px 26px 26px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    backface-visibility: hidden;
    overflow: hidden;
}

.box-front {
    z-index: 2;
}

.box-back {
    transform: rotateY(180deg);
    z-index: 1;
    background: #FFFFFF;
    overflow: hidden;
}

/* Ensure website preview hover card is never clipped by card overflow on mobile devices */
.box-face:has(.website-hover-card.show-preview),
.box-face:has(.website-hover-wrapper:hover),
.box-face:has(.website-hover-wrapper:focus-within) {
    overflow: visible !important;
}

/* ================== FRONT FACE CONTENT VIEWS (INFO vs SHOWCASE) ================== */
.front-info-view,
.front-showcase-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Default state: Info view is visible, Showcase view is hidden */
.front-info-view {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    position: relative;
    z-index: 20;
}

.front-showcase-view {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.94);
    position: absolute;
    inset: 0;
    padding: 16px 14px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
}

/* When Expanded State is active: Replace Info view with Showcase view! */
.black-box-flipper.expanded-showcase .front-info-view {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.94);
    position: absolute;
}

.black-box-flipper.expanded-showcase .front-showcase-view {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Top Left Flip QR Button (SVG Icon) */
.btn-flip-qr {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--btn-light-bg);
    border: 1px solid var(--card-border);
    color: var(--accent-brown-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 100 !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-flip-qr:hover,
.btn-flip-qr:active {
    border-color: var(--accent-brown-orange);
    background: #EFE9DE;
    transform: scale(1.08);
}

/* Top Right Install PWA Button (opposite to QR code) */
.btn-install-pwa {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--btn-light-bg);
    border: 1px solid var(--card-border);
    color: var(--accent-brown-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 100 !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-install-pwa:hover,
.btn-install-pwa:active {
    border-color: var(--accent-brown-orange);
    background: #EFE9DE;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(200, 90, 23, 0.2);
}

/* WHEN PRODUCT PREVIEW IS SHOWING OR WEBSITE PREVIEW IS HOVERED/OPEN: HIDE QR CODE FLIP AND PWA BUTTONS SO PREVIEW IS NEVER OVERLAPPED */
.black-box-flipper.expanded-showcase .btn-flip-qr,
.black-box-flipper.expanded-showcase .btn-install-pwa,
.box-front:has(.website-hover-wrapper:hover) .btn-flip-qr,
.box-front:has(.website-hover-wrapper:hover) .btn-install-pwa,
.box-front:has(.website-hover-wrapper:focus-within) .btn-flip-qr,
.box-front:has(.website-hover-wrapper:focus-within) .btn-install-pwa,
.box-front:has(.website-hover-card.show-preview) .btn-flip-qr,
.box-front:has(.website-hover-card.show-preview) .btn-install-pwa {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.8);
}

/* Brand Logo Header */
.brand-logo-container {
    width: 175px;
    margin: 6px 0 14px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

.brand-tag-line {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2.8px;
    text-transform: uppercase;
    margin-top: 10px;
    text-align: center;
}

/* ================== EXECUTIVE COMPACT INFO BUTTONS ================== */
.box-buttons-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 8px 0;
    position: relative;
    z-index: 80;
}

.clean-btn {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.94rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.clean-btn.gold-primary {
    background: linear-gradient(135deg, #E27B38 0%, #C85A17 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 22px rgba(200, 90, 23, 0.32);
}

.clean-btn.gold-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(200, 90, 23, 0.48);
    background: linear-gradient(135deg, #F3985E 0%, #D96B1C 100%);
}

.clean-btn.dark-sleek {
    background: var(--btn-light-bg);
    border: 1px solid var(--card-border);
    color: var(--text-dark);
}

.clean-btn.dark-sleek:hover {
    border-color: var(--accent-brown-orange);
    background: #EFE9DE;
    transform: translateY(-2px);
}

.btn-icon-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 2.2;
}

/* ================== HOVER PREVIEW DESIGN FOR VISIT WEBSITE ================== */
/* ================== HOVER PREVIEW DESIGN FOR VISIT WEBSITE ================== */
.website-hover-wrapper {
    position: relative;
    width: 100%;
    z-index: 99999999 !important;
    transform-style: preserve-3d;
    transform: translateZ(300px);
}

.website-hover-card {
    position: absolute;
    top: calc(100% + 10px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #15120F;
    border: 2px solid var(--accent-brown-orange);
    border-radius: 20px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.98), 0 0 50px rgba(200, 90, 23, 0.55);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-15px) scale(0.95) translateZ(1200px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999999999 !important;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.website-hover-wrapper:hover .website-hover-card,
.website-hover-wrapper:focus-within .website-hover-card,
.website-hover-card.show-preview {
    opacity: 1;
    transform: translateY(0) scale(1) translateZ(1200px) !important;
    pointer-events: auto;
    z-index: 999999999 !important;
}

.hover-card-img-box {
    width: 100%;
    height: 130px;
    background: #000;
    overflow: hidden;
    position: relative;
}

.hover-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.website-hover-card:hover .hover-card-img-box img {
    transform: scale(1.08);
}

.hover-card-content {
    padding: 16px 18px;
    text-align: left;
    background: linear-gradient(180deg, #181512 0%, #0F0D0B 100%);
}

.hover-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #F3985E;
    margin-bottom: 4px;
}

.hover-brand-desc {
    font-size: 0.78rem;
    color: #A39B93;
    line-height: 1.45;
    margin-bottom: 10px;
}

.hover-brand-url {
    font-family: 'Outfit', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

/* ================== SOCIAL / LOCATION ICON BUTTONS UNDER IT ================== */
.box-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}

.social-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E27B38 0%, #C85A17 100%);
    border: 2px solid #C85A17;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 5px 16px rgba(200, 90, 23, 0.28);
}

.social-icon-btn:hover {
    border-color: #F3985E;
    background: linear-gradient(135deg, #F3985E 0%, #D96B1C 100%);
    transform: scale(1.14) translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 90, 23, 0.48);
}

.social-svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
    color: #FFFFFF;
}

/* ================== EXPANDED SHOWCASE VIEW INSIDE THE WHITE BOX ================== */
.showcase-in-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--card-border);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.showcase-in-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.showcase-grid-in-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    margin-bottom: 14px;
}

.showcase-card-item {
    background: var(--btn-light-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.showcase-card-item:hover {
    border-color: var(--accent-brown-orange);
    background: #EFE9DE;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(200, 90, 23, 0.20);
}

.showcase-card-img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
    transition: var(--transition);
}

.showcase-card-item:hover .showcase-card-img {
    transform: scale(1.08);
}

.showcase-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.25;
}

.showcase-card-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-brown-orange);
}

/* ================== BACK FACE: COVER-FLOW QR CODE CAROUSEL (MAIN LARGE + BLURRED SIDES!) ================== */
.qr-back-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E5DCCB;
    padding-bottom: 12px;
}

.qr-back-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* CAROUSEL CONTAINER */
.qr-carousel-container {
    width: 100%;
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}

.qr-nav-arrow {
    background: var(--btn-light-bg);
    border: 1px solid var(--card-border);
    color: var(--accent-brown-orange);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 30;
    flex-shrink: 0;
}

.qr-nav-arrow:hover {
    background: var(--accent-brown-orange);
    color: #FFFFFF;
    transform: scale(1.1);
}

.qr-carousel-track {
    position: relative;
    width: 210px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-slide {
    position: absolute;
    width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
}

/* MAIN CENTER QR CODE: LARGE & CRYSTAL CLEAR */
.qr-slide.active {
    z-index: 20;
    transform: translateX(0) scale(1.05);
    opacity: 1;
    filter: blur(0px);
}

/* TWO OTHER SIDES: SMALLER & BLURRED EDGES SO THEY DON'T STEAL ATTENTION! */
.qr-slide.side-left {
    z-index: 10;
    transform: translateX(-110px) scale(0.75);
    opacity: 0.42;
    filter: blur(4px);
}

.qr-slide.side-right {
    z-index: 10;
    transform: translateX(110px) scale(0.75);
    opacity: 0.42;
    filter: blur(4px);
}

.qr-img-box-large {
    background: #FFFFFF;
    padding: 10px;
    border-radius: 18px;
    width: 155px;
    height: 155px;
    margin-bottom: 10px;
    border: 2px solid var(--accent-brown-orange);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-img-box-large img {
    width: 100% !important;
    height: 100% !important;
}

.qr-slide-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.qr-slide-sub {
    font-size: 0.73rem;
    color: var(--text-muted);
}

/* CAROUSEL INDICATOR DOTS */
.qr-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.qr-dot {
    background: var(--btn-light-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.qr-dot:hover {
    border-color: var(--accent-brown-orange);
    color: var(--text-dark);
}

.qr-dot.active {
    background: var(--accent-brown-orange);
    border-color: var(--accent-brown-orange);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(200, 90, 23, 0.35);
}

/* ================== CLEAN LUXURY WHITE MODALS & CUSTOM INPUTS ================== */
.card-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 3, 0.82);
    backdrop-filter: blur(14px);
    z-index: 9999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-modal {
    background: #FFFFFF;
    border: 2px solid var(--accent-brown-orange);
    border-radius: 26px;
    width: 100%;
    max-width: 440px;
    padding: 32px 26px;
    box-shadow: var(--shadow-card), 0 0 50px rgba(200, 90, 23, 0.22);
    text-align: center;
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.close-modal-btn {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal-btn:hover {
    color: var(--text-dark);
}

.modal-title-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.modal-desc-text {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-pill-btn {
    width: 100%;
    padding: 15px 18px;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.94rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.modal-pill-btn.dark-btn {
    background: var(--btn-light-bg);
    border: 1px solid var(--card-border);
    color: var(--text-dark);
}

.modal-pill-btn.dark-btn:hover {
    border-color: var(--accent-brown-orange);
    background: #EFE9DE;
    transform: translateY(-2px);
}

.modal-pill-btn.gold-btn {
    background: linear-gradient(135deg, #E27B38 0%, #C85A17 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(200, 90, 23, 0.30);
}

.modal-pill-btn.gold-btn:hover {
    background: linear-gradient(135deg, #F3985E 0%, #D96B1C 100%);
    transform: translateY(-2px);
}

/* CUSTOM LUXURY INPUT FIELD */
.custom-luxury-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid var(--card-border);
    background: var(--btn-light-bg);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
    margin-bottom: 14px;
}

.custom-luxury-input:focus {
    border-color: var(--accent-brown-orange);
    background: #FFFFFF;
    box-shadow: 0 0 15px rgba(200, 90, 23, 0.2);
}

/* Product Detail Modal */
.product-modal-card {
    max-width: 480px;
    text-align: left;
}

.prod-status-badge {
    background: rgba(200, 90, 23, 0.15);
    border: 1px solid var(--accent-brown-orange);
    color: var(--accent-brown-orange);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prod-detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.prod-detail-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-brown-orange);
    margin-bottom: 16px;
}

.prod-detail-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 22px;
    padding: 16px;
    background: var(--btn-light-bg);
    border-radius: 14px;
    border: 1px solid var(--card-border);
}

.prod-note-box {
    background: var(--btn-light-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.prod-note-icon {
    width: 40px;
    height: 40px;
    background: rgba(200, 90, 23, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-brown-orange);
}

.prod-note-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-brown-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prod-note-val {
    font-size: 0.82rem;
    color: var(--text-dark);
    margin-top: 2px;
}

/* Toast */
.card-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #E27B38, #C85A17);
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    z-index: 100000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.card-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   COMPREHENSIVE ALL-SCREEN-SIZE OPTIMIZATION SUITE
   (4K Monitors, Wide Desktops, Tablets, Standard Mobile, Compact SE, Short Viewports)
   ========================================================================== */

/* 1. WIDE DESKTOPS & HIGH-RES SCREENS (min-width: 1024px) */
@media (min-width: 1024px) {
    .black-box-flipper.expanded-showcase {
        max-width: 620px;
        height: 575px;
    }
    .showcase-grid-in-card {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        padding: 4px 0;
    }
    .showcase-card-item:hover {
        transform: translateY(-5px) scale(1.03);
    }
}

/* 2. TABLETS & MID-SIZED SCREENS (max-width: 768px) */
@media (max-width: 768px) {
    body {
        padding: 25px 12px;
    }
    .black-box-lid {
        width: 360px;
        max-width: 93vw;
    }
    .black-box-flipper {
        max-width: 360px;
        width: 93vw;
    }
    .black-box-flipper.expanded-showcase {
        max-width: 460px;
        width: 95vw;
        height: 560px;
    }
    .showcase-grid-in-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .qr-slide.side-left {
        transform: translateX(-85px) scale(0.70);
    }
    .qr-slide.side-right {
        transform: translateX(85px) scale(0.70);
    }
    .card-modal {
        width: 92vw;
        max-width: 460px;
        padding: 24px 20px;
    }
}

/* 3. STANDARD MOBILE PHONES (iPhone 13/14/15, Galaxy S series -> max-width: 480px) */
@media (max-width: 480px) {
    body {
        padding: 16px 8px;
    }
    .black-box-lid {
        width: 92vw;
        max-width: 340px;
        font-size: 0.80rem;
        padding: 12px 18px 16px 18px;
    }
    .black-box-flipper {
        width: 92vw;
        max-width: 340px;
        height: 495px;
    }
    .black-box-flipper.expanded-showcase {
        width: 94vw;
        max-width: 350px;
        height: auto;
        min-height: 500px;
        max-height: 82vh;
    }
    .box-face {
        padding: 20px 16px;
    }
    /* Top header buttons scaled & spaced to never touch the brand logo */
    .btn-flip-qr,
    .btn-install-pwa {
        width: 38px;
        height: 38px;
        top: 14px;
        border-radius: 10px;
        z-index: 100 !important;
    }
    .btn-flip-qr {
        left: 14px;
    }
    .btn-install-pwa {
        right: 14px;
    }
    .brand-logo-container {
        width: 150px;
        margin: 4px 0 10px 0;
    }
    .clean-btn {
        padding: 14px 16px;
        font-size: 0.90rem;
        border-radius: 12px;
    }
    .showcase-grid-in-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .showcase-card-img {
        height: 95px;
    }
    .showcase-card-title {
        font-size: 0.80rem;
    }
    .qr-slide.side-left {
        transform: translateX(-75px) scale(0.68);
    }
    .qr-slide.side-right {
        transform: translateX(75px) scale(0.68);
    }
    .qr-img-box-large {
        width: 200px;
        height: 200px;
    }
    .box-social-icons {
        gap: 15px;
        margin-top: 6px;
    }
    .social-icon-btn {
        width: 44px;
        height: 44px;
    }
    .social-svg {
        width: 20px;
        height: 20px;
    }
    .card-modal {
        width: 94vw;
        max-width: 350px;
        padding: 20px 16px;
    }
    .prod-detail-img {
        height: 170px;
    }
    /* OPTIMIZED WEBSITE HOVER PREVIEW FOR PHONES (OPENS BELOW VISIT WEBSITE BUTTON TO NEVER CUT OFF AT TOP OR COVER LOGO) */
    .website-hover-card {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: calc(100% + 10px) !important;
        bottom: auto !important;
        border-radius: 16px !important;
        box-shadow: 0 25px 75px rgba(0, 0, 0, 0.98), 0 0 45px rgba(200, 90, 23, 0.7) !important;
        transform: translateY(-12px) scale(0.95) translateZ(800px) !important;
    }
    .website-hover-wrapper:hover .website-hover-card,
    .website-hover-wrapper:focus-within .website-hover-card,
    .website-hover-card.show-preview {
        transform: translateY(0) scale(1) translateZ(800px) !important;
    }
    .hover-card-img-box {
        height: 105px !important;
    }
    .hover-card-content {
        padding: 12px 14px !important;
    }
    .hover-brand-title {
        font-size: 1.05rem !important;
        margin-bottom: 3px !important;
    }
    .hover-brand-desc {
        font-size: 0.77rem !important;
        margin-bottom: 8px !important;
        line-height: 1.35 !important;
    }
    .hover-brand-url {
        font-size: 0.73rem !important;
    }
}

/* 4. EXTRA COMPACT MOBILE PHONES (iPhone SE, Galaxy Z Flip cover, small screens -> max-width: 374px) */
@media (max-width: 374px) {
    .black-box-lid {
        width: 94vw;
        max-width: 300px;
        padding: 10px 14px 14px 14px;
        font-size: 0.74rem;
        letter-spacing: 2px;
    }
    .black-box-flipper {
        width: 94vw;
        max-width: 300px;
        height: 465px;
    }
    .black-box-flipper.expanded-showcase {
        width: 96vw;
        max-width: 310px;
        height: auto;
        min-height: 470px;
        max-height: 82vh;
    }
    .box-face {
        padding: 16px 12px;
    }
    .btn-flip-qr,
    .btn-install-pwa {
        width: 34px;
        height: 34px;
        top: 10px;
        z-index: 100 !important;
    }
    .btn-flip-qr {
        left: 10px;
    }
    .btn-install-pwa {
        right: 10px;
    }
    .brand-logo-container {
        width: 130px;
        margin: 2px 0 8px 0;
    }
    .brand-tag-line {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }
    .clean-btn {
        padding: 11px 12px;
        font-size: 0.82rem;
        gap: 8px;
    }
    .showcase-grid-in-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .showcase-card-img {
        height: 85px;
    }
    .showcase-card-title {
        font-size: 0.75rem;
    }
    .showcase-card-price {
        font-size: 0.72rem;
    }
    .qr-slide.side-left {
        transform: translateX(-60px) scale(0.60);
    }
    .qr-slide.side-right {
        transform: translateX(60px) scale(0.60);
    }
    .qr-img-box-large {
        width: 175px;
        height: 175px;
    }
    .box-social-icons {
        gap: 12px;
        margin-top: 4px;
    }
    .social-icon-btn {
        width: 38px;
        height: 38px;
    }
    .social-svg {
        width: 18px;
        height: 18px;
    }
    .card-modal {
        width: 95vw;
        padding: 18px 14px;
    }
    .prod-detail-img {
        height: 150px;
    }
    /* EXTRA COMPACT WEBSITE HOVER PREVIEW FOR SMALL PHONES (OPENS BELOW BUTTON) */
    .website-hover-card {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        top: calc(100% + 8px) !important;
        bottom: auto !important;
        border-radius: 14px !important;
    }
    .hover-card-img-box {
        height: 85px !important;
    }
    .hover-card-content {
        padding: 10px 12px !important;
    }
    .hover-brand-title {
        font-size: 0.95rem !important;
    }
    .hover-brand-desc {
        font-size: 0.72rem !important;
        margin-bottom: 6px !important;
    }
}

/* 5. SHORT HEIGHT VIEWPORTS (Landscape Phones, Small Netbooks -> max-height: 680px) */
@media (max-height: 680px) {
    body {
        align-items: flex-start;
        padding-top: 15px;
        padding-bottom: 30px;
    }
    .black-box-flipper {
        height: 440px;
    }
    .black-box-flipper.expanded-showcase {
        height: 470px;
    }
    .showcase-grid-in-card {
        max-height: 300px;
        overflow-y: auto;
    }
    .qr-img-box-large {
        width: 180px;
        height: 180px;
    }
}

/* =========================================
   SAME LOADING SCREEN (OVERLAY) AS MAIN WEBSITE
   ========================================= */
#loader-container {
    position: fixed;
    inset: 0;
    background-color: #fffdfa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    transition: opacity 1s ease-out, visibility 1s;
}

.logo-wrapper {
    position: relative;
    width: 90%;
    max-width: 450px;
    padding: 20px;
}

.logo-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: 
        introReveal 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
        cinematicPulse 3.5s ease-in-out infinite 1.5s;
    opacity: 0;
}

@keyframes introReveal {
    0% { transform: scale(0.8) translateY(20px); filter: blur(10px); opacity: 0; }
    100% { transform: scale(1) translateY(0px); filter: blur(0px); opacity: 1; }
}

@keyframes cinematicPulse {
    0% { transform: scale(1); filter: drop-shadow(0px 5px 15px rgba(83, 43, 22, 0.1)); }
    50% { transform: scale(1.03); filter: drop-shadow(0px 15px 30px rgba(255, 176, 58, 0.5)); }
    100% { transform: scale(1); filter: drop-shadow(0px 5px 15px rgba(83, 43, 22, 0.1)); }
}

.progress-container {
    width: 250px;
    height: 2px;
    background: rgba(83, 43, 22, 0.1);
    margin-top: 40px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInProgress 1s ease-in forwards 1s;
}

@keyframes fadeInProgress {
    to { opacity: 1; }
}

.progress-bar {
    position: absolute;
    top: 0;
    left: -50%;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, transparent, #532b16, #ffb03a, #532b16, transparent);
    animation: indeterminateSlide 1.5s infinite cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 4px;
}

@keyframes indeterminateSlide {
    0% { left: -50%; }
    100% { left: 100%; }
}


/* === MOBILE FIX === */
.black-box-flipper, .black-box-flipper.expanded-showcase { height: auto !important; min-height: 85vh !important; width: 94vw !important; max-width: 420px !important; }
.box-face { padding: 20px 15px !important; }
.brand-tag-line { font-size: 3.5vw !important; }
.box-buttons-group { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: 15px; }
@media (min-width: 768px) { .black-box-flipper { max-width: 420px !important; width: 100% !important; min-height: 580px !important; } .black-box-flipper.expanded-showcase { max-width: 680px !important; width: 100% !important; } .brand-tag-line { font-size: 0.85rem !important; } .box-face { padding: 34px 26px !important; } }
