@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&family=Special+Elite&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg: #0b0b0b;
    --panel: #111110;
    --line: rgba(255, 255, 255, .11);
    --text: #e9e6df;
    --muted: #999791;
    --red: #8f2825;
    --white: #f3f0e9;
    --serif: Georgia, 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 14px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: .075;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* =========================================================
   TOPBAR HEADER — CENTERED NAV & RIGHT DISCOUNT BADGE
   ========================================================= */

.topbar {
    height: 68px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 max(4vw, 24px);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, .92);
    backdrop-filter: blur(14px);
    z-index: 10;
}

.nav {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    color: #aaa8a3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.nav>a:hover,
.text-link:hover {
    color: white;
}

.menu-toggle {
    display: none;
    position: absolute;
    left: 22px;
    background: none;
    border: 0;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
}

/* Position discount badge in the rightmost grid column */
.topbar-discount {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(143, 40, 37, 0.15);
    border: 1px solid rgba(178, 144, 100, 0.35);
    padding: 6px 14px;
    border-radius: 30px;
}

.discount-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #e2cca8;
    text-transform: uppercase;
}

.discount-label strong {
    color: #fff;
    font-weight: 800;
}

.discount-pulse {
    width: 6px;
    height: 6px;
    background-color: #52c41a;
    border-radius: 50%;
    box-shadow: 0 0 8px #52c41a;
    animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
    min-height: 650px;
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 35%, #191817 0%, #10100f 32%, #0b0b0b 72%);
}

.hero-inner {
    width: min(780px, 90%);
    padding: 43px 0 62px;
    position: relative;
    z-index: 1;
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 28px;
    width: min(480px, 85%);
}

.hero-logo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.95)) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
}

.intro {
    font-size: 17px;
    line-height: 1.75;
    color: #aaa9a5;
    margin: 0 auto 28px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 13px 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s, border-color .2s, background .2s;
}

.button:hover {
    transform: translateY(-2px);
    border-color: #777;
}

.button-light {
    background: #efede7;
    color: #111;
    border-color: #efede7;
}

.button-light:hover {
    background: #fff;
}

.button-dark {
    background: rgba(255, 255, 255, .015);
    color: #e7e4df;
}

.stats {
    display: flex;
    justify-content: center;
    margin: 46px auto 0;
}

.stat {
    padding: 0 28px;
    min-width: 150px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.stat:last-child {
    border: 0;
}

.stat strong {
    font-family: 'Special Elite', var(--serif);
    font-size: 28px;
    font-weight: 400;
    color: #eee9df;
}

.stat span {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #aaa69e;
}

.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .3em;
    color: #b1a28d;
    font-weight: 700;
    margin: 0 0 18px;
}

/* =========================================================
   FEATURED & NEWEST SCRIPTS — DUAL WINDOW SPOTLIGHTS
   ========================================================= */

.spotlight-section {
    padding: 85px max(4vw, 24px);
    border-bottom: 1px solid var(--line);
    background: radial-gradient(ellipse at 50% 0%, #151412 0%, #0d0d0c 50%, #0b0b0b 100%);
}

.spotlight-wrapper {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.spotlight-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 35px;
}

.spotlight-heading h2 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    line-height: .98;
    text-transform: uppercase;
    letter-spacing: -.02em;
    margin: 0;
    font-weight: 700;
}

.spotlight-heading h2 em {
    font-family: var(--serif);
    font-weight: 400;
    text-transform: none;
    letter-spacing: -.04em;
    color: #b8a58d;
}

.spotlight-number {
    color: #777167;
    font-size: 9px;
    letter-spacing: .2em;
    white-space: nowrap;
    padding-bottom: 6px;
}

.spotlight-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.spotlight-window {
    background: #0f0f0e;
    border: 1px solid rgba(177, 151, 115, .25);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    padding: 24px;
    transition: transform .25s ease, border-color .25s ease;
}

.spotlight-window:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 180, 145, .45);
}

.spotlight-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.spotlight-art {
    height: 260px;
    position: relative;
    overflow: hidden;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 3px;
}

.spotlight-content-minimal {
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.spotlight-content-minimal h3 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #f3e8d7;
}

.spotlight-content-minimal .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 15px;
    margin-top: 0;
}

.release-stamp,
.featured-stamp {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    background: rgba(10, 9, 8, .92);
    border: 1px solid rgba(178, 144, 100, .45);
    color: #c5a77e;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    z-index: 3;
    backdrop-filter: blur(4px);
}

.featured-stamp {
    color: #d2c4ad;
    border-color: rgba(210, 196, 173, .35);
}

/* =========================================================
   ALL SCRIPTS CATALOGUE GRID & FILTERS
   ========================================================= */

.section {
    padding: 90px max(4vw, 24px);
    max-width: 1480px;
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 32px;
}

.section h2 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    line-height: .98;
    text-transform: uppercase;
    letter-spacing: -.02em;
    margin: 0;
    font-weight: 700;
}

.section h2 em {
    font-family: var(--serif);
    font-weight: 400;
    text-transform: none;
    letter-spacing: -.04em;
    color: #b8a58d;
}

.catalog-total {
    color: #777167;
    font-size: 9px;
    letter-spacing: .17em;
    padding-bottom: 6px;
}

.section-description {
    max-width: 480px;
    margin: 12px 0 0;
    color: #918d84;
    font-size: 13px;
    line-height: 1.8;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter {
    border: 1px solid transparent;
    background: transparent;
    color: #8f8d87;
    border-radius: 30px;
    padding: 7px 15px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    transition: all .2s ease;
}

.filter.active,
.filter:hover {
    border-color: rgba(177, 151, 115, .4);
    color: #eee;
    background: #181715;
}

.result-count {
    font-size: 10px;
    letter-spacing: .15em;
    color: #77756f;
}

.script-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.script-card {
    border: 1px solid var(--line);
    background: #10100f;
    transition: transform .25s, border-color .25s;
    min-width: 0;
}

.script-card:hover {
    transform: translateY(-4px);
    border-color: rgba(177, 151, 115, .35);
}

.card-art {
    height: 190px;
    position: relative;
    overflow: hidden;
    background: #10100f;
}

.card-content {
    padding: 21px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 9px;
    letter-spacing: .12em;
    color: #8c8981;
}

.tag {
    color: #d4b99a;
    border: 1px solid rgba(212, 185, 154, .3);
    padding: 5px 7px;
    font-size: 8px;
}

.card-content h3 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 30px;
    text-transform: uppercase;
    margin: 15px 0 8px;
}

.card-content p {
    color: #9c9992;
    line-height: 1.7;
    font-size: 12px;
    min-height: 61px;
    margin: 0;
}

.card-footer {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    color: aliceblue;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
}

.card-footer a,
.spotlight-content-minimal .card-footer a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 15px;
    color: #c4ad8d;
    border-color: rgba(196, 173, 141, .3);
    transition: background .2s, color .2s, border-color .2s;
}

.script-card .card-footer a:hover,
.spotlight-content-minimal .card-footer a:hover {
    background: #b09a7c;
    border-color: #b09a7c;
    color: #11100e;
}

.catalog-note {
    font-size: 11px;
    color: #67655f;
    margin-top: 18px;
    line-height: 1.7;
}

/* =========================================================
   FULL-SIZE PACKAGE IMAGES (CLEAN & CONTAINED FIT)
   ========================================================= */

.card-art img.package-image,
.spotlight-art img.package-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #080808 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1 !important;
}

.card-art .art-mark,
.card-art .art-label,
.spotlight-art .art-mark {
    display: none !important;
}

.spotlight-art .art-label {
    position: absolute !important;
    left: 14px !important;
    bottom: 14px !important;
    font-size: 8px !important;
    letter-spacing: .22em !important;
    color: #c0ad90 !important;
    z-index: 3 !important;
}

.spotlight-art::after {
    content: "";
    position: absolute !important;
    inset: 8px !important;
    border: 1px solid rgba(201, 180, 145, .15) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

/* =========================================================
   TERMS & CONDITIONS / REFUND POLICY
   ========================================================= */

.terms-section {
    padding: 85px max(4vw, 24px);
    background: #0d0d0c;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.terms-container {
    max-width: 1480px;
    margin: 0 auto;
}

.terms-section h2 em {
    font-family: var(--serif);
    font-weight: 400;
    color: #b8a58d;
}

.terms-intro {
    color: #9e9b94;
    font-size: 13px;
    line-height: 1.8;
    max-width: 600px;
    margin: 12px 0 38px;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.term-card {
    background: #111110;
    border: 1px solid var(--line);
    padding: 26px 28px;
    position: relative;
    transition: border-color .2s;
}

.term-card:hover {
    border-color: rgba(177, 151, 115, .3);
}

.term-card-wide {
    grid-column: span 2;
}

.term-num {
    font-family: 'Special Elite', var(--serif);
    font-size: 12px;
    color: #b09a7c;
    letter-spacing: .1em;
    display: block;
    margin-bottom: 8px;
}

.term-card h4 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 20px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #e9e6df;
    margin: 0 0 10px;
}

.term-card p {
    color: #8c8981;
    font-size: 12px;
    line-height: 1.75;
    margin: 0;
}

/* =========================================================
   COMMUNITY & FOOTER
   ========================================================= */

.community {
    position: relative;
    padding: 80px max(8vw, 24px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: radial-gradient(ellipse at 15% 50%, #171512 0%, #0b0b0b 68%);
}

.community h2 em {
    color: #b09a7c;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 25px max(7.5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 9px;
    letter-spacing: .14em;
    color: #77746d;
}

/* =========================================================
   PACKAGE DETAIL MODAL OVERLAY STYLES
   ========================================================= */

.modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-wrapper.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    z-index: 2;
    background: #111110;
    border: 1px solid rgba(177, 151, 115, 0.4);
    max-width: 860px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 35px;
    border-radius: 4px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.modal-art {
    background: #080808;
    border: 1px solid var(--line);
    padding: 10px;
    border-radius: 3px;
}

.modal-art img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.modal-details h2 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 38px;
    text-transform: uppercase;
    margin: 10px 0 15px;
    color: #f3e8d7;
    line-height: 1.1;
}

.modal-price-row {
    margin-bottom: 20px;
}

.modal-description {
    color: #a09a8f;
    font-size: 13px;
    line-height: 1.8;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

/* =========================================================
   RESPONSIVE LAYOUT (MOBILE & TABLET)
   ========================================================= */

@media (max-width: 980px) {
    .spotlight-dual-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .spotlight-art {
        height: 210px;
    }

    .terms-grid {
        grid-template-columns: 1fr;
    }

    .term-card-wide {
        grid-column: span 1;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 880px) {
    .topbar {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
    }

    .nav {
        display: none;
    }

    .topbar-discount {
        font-size: 9px;
        padding: 4px 10px;
    }
}

@media (max-width: 760px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 67px;
        left: 0;
        right: 0;
        background: #0c0c0b;
        border-bottom: 1px solid var(--line);
        padding: 20px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .nav.open {
        display: flex;
    }

    .hero {
        min-height: 610px;
    }

    .hero-inner {
        padding-top: 70px;
    }

    .intro {
        font-size: 14px;
    }

    .stats {
        margin-top: 36px;
    }

    .stat {
        padding: 0 13px;
        min-width: 0;
        flex: 1;
    }

    .stat strong {
        font-size: 21px;
    }

    .stat span {
        font-size: 10px;
    }

    .section {
        padding: 55px 22px;
    }

    .section-heading,
    .spotlight-heading {
        align-items: start;
        flex-direction: column;
    }

    .script-grid {
        grid-template-columns: 1fr;
    }

    .card-art {
        height: 180px;
    }

    .card-content p {
        min-height: 0;
    }

    .spotlight-section {
        padding: 40px 22px;
    }

    .community {
        padding: 65px 22px;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer {
        gap: 20px;
        flex-wrap: wrap;
    }

    .footer-copy {
        order: 3;
        width: 100%;
    }
}

/* Intense / Prominent Previous Page Button */
.nav a.btn-previous {
    background: rgba(177, 151, 115, 0.15);
    border: 1px solid rgba(177, 151, 115, 0.6);
    color: #f3e8d7 !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 10px rgba(177, 151, 115, 0.1);
}

.nav a.btn-previous:hover {
    background: rgba(177, 151, 115, 0.3);
    border-color: #f3e8d7;
    box-shadow: 0 0 15px rgba(177, 151, 115, 0.3);
    transform: translateY(-1px);
}

.catalog-search-wrapper {
    flex: 1.5;
    /* Increased flex weight to expand further */
    max-width: 400px;
    /* Increased max-width from 280px to 400px */
    min-width: 240px;
}

.catalog-search-wrapper input {
    width: 100%;
    background: #10100f;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 10px 18px;
    /* Slightly increased padding for a bigger feel */
    color: var(--text);
    font-size: 12px;
    /* Slightly larger text */
    font-family: inherit;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}


.catalog-search-wrapper input:focus {
    border-color: rgba(177, 151, 115, 0.5);
    background: #181715;
}

.catalog-search-wrapper input::placeholder {
    color: #67655f;
}

@media (max-width: 880px) {
    .catalog-search-wrapper {
        max-width: 100%;
        width: 100%;
    }
}

.add-to-cart-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 13px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(177, 151, 115, 0.5);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}


.script-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.card-action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.script-card .catalog-add-to-cart-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 4px;
    transition: all .2s ease;
}

.script-card .catalog-add-to-cart-btn:hover {
    border-color: rgba(177, 151, 115, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* =========================================================
   CATALOG CARD FOOTER & ACTION BUTTONS STYLING
   ========================================================= */

/* =========================================================
   CATALOG CARD FOOTER & ACTION BUTTONS STYLING
   ========================================================= */

   /* =========================================================
   STACKED CARD FOOTER & ACTION BUTTONS
   ========================================================= */

   .script-card .card-footer {
       display: flex;
       flex-direction: column;
       gap: 12px;
       margin-top: 15px;
       padding-top: 12px;
       border-top: 1px solid var(--line);
   }

   .card-footer-top {
       display: flex;
       justify-content: space-between;
       align-items: center;
       width: 100%;
   }

   /* Detail arrow styling */
   .script-card .card-footer-top .card-detail-arrow {
       width: 32px;
       height: 32px;
       display: grid;
       place-items: center;
       border: 1px solid rgba(196, 173, 141, .3);
       border-radius: 50%;
       font-size: 15px;
       color: #c4ad8d;
       text-decoration: none;
       transition: background .2s, color .2s, border-color .2s;
   }

   .script-card .card-footer-top .card-detail-arrow:hover {
       background: #b09a7c;
       border-color: #b09a7c;
       color: #11100e;
   }

   /* Full-width stacked buttons container */
   .card-action-buttons-stacked {
       display: grid;
       grid-template-columns: 1fr 1fr;
       gap: 8px;
       width: 100%;
   }

   /* Action Buttons Styling */
   .script-card .catalog-btn {
       width: 100%;
       background: rgba(255, 255, 255, 0.03);
       border: 1px solid var(--line);
       color: var(--text);
       font-weight: 700;
       font-size: 10px;
       letter-spacing: 0.5px;
       padding: 8px 10px;
       line-height: 1.2;
       border-radius: 4px;
       white-space: nowrap;
       cursor: pointer;
       text-align: center;
       text-decoration: none;
       display: inline-flex;
       justify-content: center;
       align-items: center;
       gap: 6px;
       box-sizing: border-box;
       transition: all 0.2s ease;
   }

   .script-card .catalog-btn svg {
       opacity: 0.8;
       transition: opacity 0.2s ease;
       flex-shrink: 0;
   }

   /* Hover States */
   .script-card .catalog-btn-buy:hover {
       border-color: rgba(177, 151, 115, 0.7);
       background: rgba(177, 151, 115, 0.1);
       color: #fff;
       transform: translateY(-1px);
   }

   .script-card .catalog-btn-cart:hover {
       border-color: rgba(255, 255, 255, 0.3);
       background: rgba(255, 255, 255, 0.08);
       color: #fff;
       transform: translateY(-1px);
   }

   .script-card .catalog-btn:hover svg {
       opacity: 1;
   }

   /* =========================================================
   REFINED TITANS CART DRAWER STYLES
   ========================================================= */

   .cart-drawer-wrapper {
       position: fixed;
       inset: 0;
       z-index: 1000;
       display: none;
       justify-content: flex-end;
   }

   .cart-drawer-wrapper.active {
       display: flex;
   }

   .cart-drawer-overlay {
       position: absolute;
       inset: 0;
       background: rgba(0, 0, 0, 0.8);
       backdrop-filter: blur(6px);
   }

   .cart-drawer-panel {
       position: relative;
       z-index: 2;
       width: 100%;
       max-width: 420px;
       background: #111110;
       border-left: 1px solid rgba(177, 151, 115, 0.25);
       display: flex;
       flex-direction: column;
       height: 100%;
       box-shadow: -15px 0 40px rgba(0, 0, 0, 0.9);
       transform: translateX(100%);
       animation: slideInRight 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
   }

   @keyframes slideInRight {
       to {
           transform: translateX(0);
       }
   }

   .cart-drawer-header {
       padding: 24px;
       border-bottom: 1px solid var(--line);
       display: flex;
       align-items: center;
       justify-content: space-between;
       background: #0f0f0e;
   }

   .cart-drawer-header h3 {
       font-family: 'Barlow Condensed', Impact, sans-serif;
       font-size: 24px;
       letter-spacing: 0.08em;
       margin: 0;
       color: #f3e8d7;
   }

   .cart-drawer-close {
       background: transparent;
       border: none;
       color: var(--muted);
       font-size: 26px;
       cursor: pointer;
       transition: color 0.2s;
       line-height: 1;
   }

   .cart-drawer-close:hover {
       color: #fff;
   }

   .cart-drawer-body {
       flex: 1;
       overflow-y: auto;
       padding: 24px;
       display: flex;
       flex-direction: column;
       gap: 12px;
   }

   .cart-empty-text {
       color: var(--muted);
       font-size: 13px;
       text-align: center;
       margin-top: 60px;
       letter-spacing: 0.05em;
   }

   .cart-item-card {
       display: flex;
       justify-content: space-between;
       align-items: center;
       background: rgba(255, 255, 255, 0.015);
       border: 1px solid var(--line);
       padding: 14px 16px;
       border-radius: 4px;
       transition: border-color 0.2s;
   }

   .cart-item-card:hover {
       border-color: rgba(177, 151, 115, 0.4);
   }

   .cart-item-info h4 {
       font-family: 'Barlow Condensed', Impact, sans-serif;
       font-size: 16px;
       font-weight: 600;
       margin: 0 0 4px;
       color: #f3e8d7;
       letter-spacing: 0.03em;
       text-transform: uppercase;
   }

   .cart-item-info span {
       font-size: 12px;
       color: #b8a58d;
       font-weight: 700;
   }

   .cart-drawer-footer {
       padding: 24px;
       border-top: 1px solid var(--line);
       background: #0d0d0c;
   }

   .cart-total-row {
       display: flex;
       justify-content: space-between;
       align-items: center;
       font-size: 15px;
       font-weight: 700;
       margin-bottom: 18px;
       color: #f3e8d7;
       letter-spacing: 0.05em;
   }

   #cart-drawer-total {
       color: #fff;
       font-family: 'Barlow Condensed', Impact, sans-serif;
       font-size: 20px;
   }

   /* Styled Checkout button inside the drawer footer */
   .cart-drawer-footer .catalog-btn-buy {
       width: 100% !important;
       background: rgba(177, 151, 115, 0.15) !important;
       border: 1px solid rgba(177, 151, 115, 0.5) !important;
       color: #f3e8d7 !important;
       padding: 14px !important;
       font-size: 11px !important;
       letter-spacing: 0.1em !important;
       font-weight: 800 !important;
       border-radius: 4px !important;
       display: inline-flex !important;
       justify-content: center !important;
       align-items: center !important;
       gap: 8px !important;
       cursor: pointer !important;
       transition: all 0.2s ease !important;
   }

   .cart-drawer-footer .catalog-btn-buy:hover {
       background: rgba(177, 151, 115, 0.3) !important;
       border-color: #f3e8d7 !important;
       color: #fff !important;
       transform: translateY(-1px);
   }

   /* =========================================================
   CATALOG ACTION BUTTONS (CONSISTENT DARK FRONTIER STYLING)
   ========================================================= */
   /* =========================================================
   ABSOLUTE ISOLATION FOR CART & BUY CARD BUTTONS
   ========================================================= */

   .script-card .card-action-buttons-stacked {
       display: grid;
       grid-template-columns: 1fr 1fr;
       gap: 8px;
       width: 100%;
   }

   .script-card .script-action-btn {
       width: 100% !important;
       border-radius: 4px !important;
       font-weight: 700 !important;
       font-size: 10px !important;
       letter-spacing: 0.5px !important;
       padding: 8px 10px !important;
       line-height: 1.2 !important;
       cursor: pointer !important;
       text-align: center !important;
       text-decoration: none !important;
       display: inline-flex !important;
       justify-content: center !important;
       align-items: center !important;
       gap: 6px !important;
       box-sizing: border-box !important;
       transition: all 0.2s ease !important;
   }

   /* BUY NOW Button */
   .script-card .script-buy-btn {
       background: rgba(177, 151, 115, 0.12) !important;
       border: 1px solid rgba(177, 151, 115, 0.4) !important;
       color: #f3e8d7 !important;
   }

   .script-card .script-buy-btn:hover {
       background: rgba(177, 151, 115, 0.25) !important;
       border-color: #f3e8d7 !important;
       color: #fff !important;
       transform: translateY(-1px);
   }

   /* ADD TO CART Button (Guaranteed Dark Charcoal, Never White) */
   .script-card .script-cart-btn {
       background: rgba(255, 255, 255, 0.03) !important;
       border: 1px solid var(--line) !important;
       color: var(--text) !important;
   }

   .script-card .script-cart-btn:hover {
       background: rgba(255, 255, 255, 0.08) !important;
       border-color: rgba(177, 151, 115, 0.4) !important;
       color: #fff !important;
       transform: translateY(-1px);
   }

   .script-card .script-action-btn svg {
       opacity: 0.8;
       transition: opacity 0.2s ease;
       flex-shrink: 0;
   }

   .script-card .script-action-btn:hover svg {
       opacity: 1;
   }

   /* Ultimate dark override for cart buttons */
   button.script-cart-btn,
   .script-card button.script-cart-btn,
   .script-card .script-cart-btn {
       background: rgba(255, 255, 255, 0.03) !important;
       background-color: rgba(255, 255, 255, 0.03) !important;
       color: #e9e6df !important;
       border-color: rgba(255, 255, 255, 0.11) !important;
   }

   button.script-cart-btn:hover,
   .script-card button.script-cart-btn:hover,
   .script-card .script-cart-btn:hover {
       background: rgba(255, 255, 255, 0.08) !important;
       background-color: rgba(255, 255, 255, 0.08) !important;
       color: #fff !important;  }
           /* =========================================================
           HEADER CART TOGGLE BUTTON STYLING
           ========================================================= */
    
           .cart-toggle-btn {
               background: rgba(255, 255, 255, 0.03) !important;
               border: 1px solid var(--line) !important;
               color: var(--text) !important;
               font-family: inherit !important;
               font-size: 11px !important;
               font-weight: 700 !important;
               letter-spacing: 0.1em !important;
               padding: 6px 14px !important;
               border-radius: 4px !important;
               cursor: pointer !important;
               display: inline-flex !important;
               align-items: center !important;
               gap: 6px !important;
               transition: all 0.2s ease !important;
           }
    
           .cart-toggle-btn:hover {
               background: rgba(177, 151, 115, 0.15) !important;
               border-color: rgba(177, 151, 115, 0.4) !important;
               color: #fff !important;
               transform: translateY(-1px);   }

               /* Style for the Buy Now button to make it visible and styled */
.buy-now-btn, 
button[onclick*="buy"], 
.product-actions button:first-child {
    background-color: #c5a059 !important; /* Matches your gold/bronze branding */
    color: #1a1a1a !important;            /* Dark readable text */
    border: none !important;
    font-weight: bold !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease;
}

.buy-now-btn:hover, 
button[onclick*="buy"]:hover {
    opacity: 0.85 !important;
}

.package-info-box a {
    color: #3b82f6;
    /* Bright blue */
    text-decoration: underline;
    transition: color 0.2s ease;
}

.package-info-box a:hover {
    color: #60a5fa;
    /* Lighter blue on hover */
}