/* =========================================================
   OLYMPUS88 × GTA V Visual Theme
   Visual-only remodel — does not alter JS/controllers/forms
   ========================================================= */

:root,
[data-theme="default"],
body.gta5-theme {
    --font-family-primary: "Oswald", Impact, Haettenschweiler, sans-serif;
    --font-family-primary-semibold: "Oswald", Impact, sans-serif;
    --font-family-primary-bold: "Bebas Neue", "Oswald", Impact, sans-serif;
    --font-family-display: "Bebas Neue", Impact, Haettenschweiler, sans-serif;
    --font-family-hud: "Share Tech Mono", "Courier New", monospace;

    --gta-black: #050505;
    --gta-asphalt: #0e0e0e;
    --gta-panel: #141414;
    --gta-steel: #1c1c1c;
    --gta-border: #2a2a2a;
    --gta-yellow: #f0c400;
    --gta-yellow-hot: #ffe566;
    --gta-yellow-deep: #b89400;
    --gta-white: #f5f5f5;
    --gta-muted: #9a9a9a;
    --gta-wanted: #c41e3a;
    --gta-radar: #4ae54a;

    --color-primary-100: #fff8d6;
    --color-primary-200: #ffe99a;
    --color-primary-300: #ffdb5c;
    --color-primary-400: #f7cf2a;
    --color-primary-500: #f0c400;
    --color-primary-600: #d4a800;
    --color-primary-700: #b89400;
    --color-primary-800: #8a6f00;
    --color-primary-900: #5c4a00;
    --color-primary-500-a10: rgba(240, 196, 0, 0.1);
    --color-primary-500-a25: rgba(240, 196, 0, 0.25);
    --color-primary-500-a70: rgba(240, 196, 0, 0.7);
    --color-link-500: #f0c400;
    --color-link-600: #ffe566;
    --color-white: #f5f5f5;
    --color-black: #050505;
    --color-neutral-900: #0a0a0a;
    --color-neutral-800: #1a1a1a;
    --color-neutral-700: #2e2e2e;
}

/* ---------- Atmosphere layers ---------- */
.gta-fx {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 40;
}

.gta-fx__grain {
    position: absolute;
    inset: -20%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    opacity: 0.08;
    mix-blend-mode: overlay;
    animation: gta-grain 0.45s steps(2) infinite;
}

.gta-fx__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

.gta-fx__scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 3px,
        rgba(0, 0, 0, 0.08) 4px
    );
    opacity: 0.35;
}

.gta-fx__hud {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(240, 196, 0, 0.15);
    box-shadow: inset 0 0 80px rgba(240, 196, 0, 0.05);
}

.gta-fx__corner {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 2px solid var(--gta-yellow);
    opacity: 0.55;
}

.gta-fx__corner--tl {
    top: 12px;
    left: 12px;
    border-right: 0;
    border-bottom: 0;
}

.gta-fx__corner--tr {
    top: 12px;
    right: 12px;
    border-left: 0;
    border-bottom: 0;
}

.gta-fx__corner--bl {
    bottom: 12px;
    left: 12px;
    border-right: 0;
    border-top: 0;
}

.gta-fx__corner--br {
    bottom: 12px;
    right: 12px;
    border-left: 0;
    border-top: 0;
}

@keyframes gta-grain {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-1.5%, 1%);
    }
    100% {
        transform: translate(1%, -1%);
    }
}

@keyframes gta-pulse-yellow {
    0%,
    100% {
        text-shadow: 0 0 0 transparent, 3px 3px 0 #000;
    }
    50% {
        text-shadow: 0 0 18px rgba(240, 196, 0, 0.45), 3px 3px 0 #000;
    }
}

@keyframes gta-slide-in {
    from {
        opacity: 0;
        transform: translateY(18px) skewX(-2deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) skewX(0);
    }
}

@keyframes gta-wanted-flash {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ---------- Base canvas ---------- */
body.gta5-theme,
html:has(body.gta5-theme) {
    background: var(--gta-black) !important;
    color: var(--gta-white);
}

body.gta5-theme #teepublic,
body.gta5-theme .main-wrapper {
    background-color: var(--gta-asphalt) !important;
    background-image:
        linear-gradient(180deg, rgba(5, 5, 5, 0.82) 0%, rgba(5, 5, 5, 0.55) 35%, rgba(5, 5, 5, 0.88) 100%),
        radial-gradient(ellipse at 70% 10%, rgba(255, 120, 40, 0.22), transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(240, 196, 0, 0.08), transparent 45%),
        url("banner-sepuh.webp") !important;
    background-size: cover, cover, cover, cover !important;
    background-position: center, center, center, center !important;
    background-attachment: fixed, fixed, fixed, fixed !important;
    min-height: 100vh;
}

body.gta5-theme a {
    color: var(--gta-yellow);
}

body.gta5-theme a:hover {
    color: var(--gta-yellow-hot);
}

/* ---------- Top banner = WANTED strip ---------- */
body.gta5-theme .m-top-banner {
    background: linear-gradient(90deg, #1a0508 0%, #c41e3a 40%, #f0c400 50%, #c41e3a 60%, #1a0508 100%) !important;
    background-size: 200% 100%;
    animation: gta-wanted-flash 6s ease-in-out infinite;
    border-bottom: 2px solid var(--gta-yellow);
}

body.gta5-theme .m-top-banner .free-shipping,
body.gta5-theme .m-top-banner strong {
    color: #fff !important;
    font-family: var(--font-family-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 1.05em;
    text-shadow: 2px 2px 0 #000;
}

/* ---------- Header HUD ---------- */
body.gta5-theme .vc-header,
body.gta5-theme header.vc-header.jsHead {
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.96), rgba(14, 14, 14, 0.92)) !important;
    border-bottom: 3px solid var(--gta-yellow);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
}

body.gta5-theme .vc-header__container {
    align-items: center;
}

body.gta5-theme .vc-header-logo__image {
    filter: drop-shadow(0 0 10px rgba(240, 196, 0, 0.45));
    animation: gta-pulse-yellow 3.2s ease-in-out infinite;
}

body.gta5-theme .vc-header__shop-button-text,
body.gta5-theme .vc-header__cart-text,
body.gta5-theme .vc-header__account-button-text,
body.gta5-theme .vc-header__link-text,
body.gta5-theme .vc-header__shop-button-text a {
    font-family: var(--font-family-display) !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gta-white) !important;
}

body.gta5-theme .m-header__search .form__control,
body.gta5-theme .m-header__search-field {
    background: var(--gta-steel) !important;
    border: 1px solid var(--gta-border) !important;
    border-left: 3px solid var(--gta-yellow) !important;
    color: var(--gta-white) !important;
    border-radius: 0 !important;
    font-family: var(--font-family-hud);
}

body.gta5-theme .m-header__search-field-placeholder,
body.gta5-theme .m-header__search-field-placeholder p {
    color: var(--gta-muted) !important;
    font-family: var(--font-family-hud);
    font-size: 0.85em;
}

/* ---------- Category / nav chips ---------- */
body.gta5-theme .m-canvas-nav,
body.gta5-theme .m-pills,
body.gta5-theme .link-collection__link {
    border-radius: 0 !important;
}

body.gta5-theme .link.gtmFooterLink .link__content,
body.gta5-theme .m-canvas-nav a,
body.gta5-theme .vc-nav a {
    font-family: var(--font-family-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- Product stage (pause-menu board) ---------- */
body.gta5-theme .m-design.jsPdpDesign {
    animation: gta-slide-in 0.7s ease-out both;
}

body.gta5-theme .m-design__product {
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.92), rgba(22, 22, 22, 0.88)) !important;
    backdrop-filter: blur(18px) saturate(1.1) !important;
    border-radius: 0 !important;
    border: 2px solid var(--gta-yellow) !important;
    box-shadow:
        0 0 0 4px rgba(0, 0, 0, 0.85),
        0 24px 60px rgba(0, 0, 0, 0.65),
        inset 0 0 40px rgba(240, 196, 0, 0.04) !important;
    position: relative;
    overflow: hidden;
}

body.gta5-theme .m-design__product::before {
    content: "MISSION";
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 2;
    font-family: var(--font-family-hud);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--gta-yellow);
    opacity: 0.7;
}

body.gta5-theme .m-design__product::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gta-yellow), transparent);
    opacity: 0.8;
}

body.gta5-theme .m-design-details__title .h__h1--sm,
body.gta5-theme .m-design-details__title h1 {
    font-family: var(--font-family-display) !important;
    font-size: clamp(2.4rem, 4.5vw, 4.2rem) !important;
    line-height: 0.95 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff !important;
    text-shadow:
        3px 3px 0 #000,
        0 0 24px rgba(240, 196, 0, 0.25);
    animation: gta-pulse-yellow 4s ease-in-out infinite;
}

body.gta5-theme .m-design__price--sale {
    font-family: var(--font-family-display) !important;
    color: var(--gta-yellow) !important;
    font-size: 2.4rem !important;
    text-shadow: 2px 2px 0 #000;
}

body.gta5-theme .m-design__price--regular {
    color: var(--gta-muted) !important;
    text-decoration: line-through;
}

body.gta5-theme .m-product-preview,
body.gta5-theme .m-product-preview__main {
    border: 1px solid var(--gta-border);
    background: rgba(0, 0, 0, 0.35);
}

body.gta5-theme .m-product-preview__thumb {
    border: 2px solid transparent !important;
    border-radius: 0 !important;
}

body.gta5-theme .m-product-preview__thumb.on,
body.gta5-theme .m-product-preview__thumb:hover {
    border-color: var(--gta-yellow) !important;
    box-shadow: 0 0 12px rgba(240, 196, 0, 0.35);
}

/* Size / config radios — GTA interaction menu */
body.gta5-theme .radio-selector__select {
    background: var(--gta-steel) !important;
    border: 1px solid var(--gta-border) !important;
    border-radius: 0 !important;
    font-family: var(--font-family-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.gta5-theme .radio-selector__radio:checked + .radio-selector__select,
body.gta5-theme label:has(.radio-selector__radio:checked) .radio-selector__select {
    background: var(--gta-yellow) !important;
    color: #000 !important;
    border-color: var(--gta-yellow-hot) !important;
    box-shadow: 0 0 16px rgba(240, 196, 0, 0.4);
}

/* ---------- Buttons / CTAs ---------- */
body.gta5-theme .btn,
body.gta5-theme .tp-btn--medium,
body.gta5-theme .tp-btn--large,
body.gta5-theme .tp-btn--big {
    border-radius: 0 !important;
    font-family: var(--font-family-display) !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.gta5-theme .btn--cta .button__content,
body.gta5-theme .link__cta .link__content {
    border-bottom-color: var(--gta-yellow) !important;
}

body.gta5-theme .m-design__buy-ctas .btn,
body.gta5-theme .m-cart-config .btn,
body.gta5-theme button[type="submit"],
body.gta5-theme .jsAddToCart,
body.gta5-theme .btn--primary,
body.gta5-theme .tp-btn--primary,
body.gta5-theme a.btn.btn--cta {
    background: linear-gradient(180deg, #ffe566 0%, #f0c400 45%, #b89400 100%) !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    box-shadow: 4px 4px 0 #000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.gta5-theme .m-design__buy-ctas .btn:hover,
body.gta5-theme .m-cart-config .btn:hover,
body.gta5-theme button[type="submit"]:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
    filter: brightness(1.05);
}

/* ---------- Additional info / copy ---------- */
body.gta5-theme .m-design__additional-info-container {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
    padding-top: 2rem;
    padding-bottom: 3rem;
}

body.gta5-theme .m-design__additional-info-container .h__h2--secondary,
body.gta5-theme .m-design__h2 {
    font-family: var(--font-family-display) !important;
    color: var(--gta-yellow) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 #000;
    font-size: clamp(2rem, 3.5vw, 3.2rem) !important;
}

body.gta5-theme .m-design__additional-info-container p {
    color: #e8e8e8 !important;
    font-family: var(--font-family-primary);
    font-weight: 400;
    line-height: 1.75;
}

body.gta5-theme .m-design__additional-info-container a {
    color: var(--gta-yellow) !important;
    font-weight: 600;
    border-bottom: 1px solid rgba(240, 196, 0, 0.4);
}

/* FAQ / testimonials block */
body.gta5-theme .OLYMPUS88-4d-container {
    background: linear-gradient(160deg, #0a0a0a, #161616) !important;
    border: 2px solid var(--gta-yellow) !important;
    border-radius: 0 !important;
    box-shadow: 8px 8px 0 #000, 0 0 40px rgba(240, 196, 0, 0.12) !important;
    color: var(--gta-white) !important;
    font-family: var(--font-family-primary) !important;
}

body.gta5-theme .OLYMPUS88-4d-container h2 {
    font-family: var(--font-family-display) !important;
    color: var(--gta-yellow) !important;
    text-shadow: 2px 2px 0 #000, 0 0 12px rgba(240, 196, 0, 0.35) !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.gta5-theme .OLYMPUS88-4d-container details {
    background: var(--gta-steel) !important;
    border: 1px solid var(--gta-border) !important;
    border-left: 4px solid var(--gta-yellow) !important;
    border-radius: 0 !important;
    color: var(--gta-white);
}

body.gta5-theme .OLYMPUS88-4d-container summary {
    color: var(--gta-yellow) !important;
    font-family: var(--font-family-display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.gta5-theme .OLYMPUS88-4d-container details p {
    color: #ddd !important;
}

body.gta5-theme .OLYMPUS88-4d-container blockquote {
    background: #111 !important;
    border-left: 5px solid var(--gta-yellow) !important;
    border-radius: 0 !important;
    color: #eee !important;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8) !important;
}

body.gta5-theme .OLYMPUS88-4d-container cite {
    color: var(--gta-yellow) !important;
    font-family: var(--font-family-hud);
    font-style: normal;
}

/* ---------- Footer ---------- */
body.gta5-theme .m-footer,
body.gta5-theme footer,
body.gta5-theme .m-foot,
body.gta5-theme .m-footer-links {
    background: #050505 !important;
    color: #ccc !important;
    border-top: 3px solid var(--gta-yellow);
}

body.gta5-theme .link-collection__header,
body.gta5-theme .m-footer h4,
body.gta5-theme .h__h4 {
    font-family: var(--font-family-display) !important;
    color: var(--gta-yellow) !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.gta5-theme .link-collection__link .link__content {
    color: #cfcfcf !important;
}

body.gta5-theme .link-collection__link:hover .link__content {
    color: var(--gta-yellow) !important;
}

/* ---------- Drawers / trays ---------- */
body.gta5-theme .drawer,
body.gta5-theme .m-tray,
body.gta5-theme menu.drawer {
    background: #0a0a0a !important;
    color: var(--gta-white);
    border-left: 3px solid var(--gta-yellow);
}

body.gta5-theme .drawer h3,
body.gta5-theme .m-tray-shop-secondary h3 {
    font-family: var(--font-family-display);
    color: var(--gta-yellow);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Forms ---------- */
body.gta5-theme .form__control,
body.gta5-theme select.select,
body.gta5-theme input[type="text"],
body.gta5-theme input[type="number"] {
    background: var(--gta-steel) !important;
    color: var(--gta-white) !important;
    border: 1px solid var(--gta-border) !important;
    border-radius: 0 !important;
}

body.gta5-theme .form__control:focus,
body.gta5-theme select.select:focus {
    border-color: var(--gta-yellow) !important;
    outline: 2px solid rgba(240, 196, 0, 0.35);
}

body.gta5-theme .label--heavy,
body.gta5-theme label {
    font-family: var(--font-family-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gta-muted);
}

/* ---------- Tabs ---------- */
body.gta5-theme .m-tab-nav__tab,
body.gta5-theme [data-utilities--tab-target="tab"] {
    border-radius: 0 !important;
    font-family: var(--font-family-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---------- Scrollbar ---------- */
body.gta5-theme::-webkit-scrollbar {
    width: 10px;
}
body.gta5-theme::-webkit-scrollbar-track {
    background: #0a0a0a;
}
body.gta5-theme::-webkit-scrollbar-thumb {
    background: var(--gta-yellow);
    border: 2px solid #0a0a0a;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .gta-fx__corner {
        width: 28px;
        height: 28px;
        opacity: 0.4;
    }

    body.gta5-theme .m-design-details__title .h__h1--sm,
    body.gta5-theme .m-design-details__title h1 {
        font-size: 2.2rem !important;
    }

    body.gta5-theme .m-design__product::before {
        font-size: 9px;
        top: 6px;
        right: 8px;
    }

    body.gta5-theme .main-wrapper {
        background-attachment: scroll, scroll, scroll, scroll !important;
    }
}

/* ---------- Explore nav = map categories ---------- */
body.gta5-theme .m-explore-nav,
body.gta5-theme section.m-explore-nav,
body.gta5-theme .m-explore-nav__link,
body.gta5-theme .m-explore-nav__cta {
    border-radius: 0 !important;
}

body.gta5-theme .m-explore-nav__link,
body.gta5-theme .m-explore-nav__cta {
    background: linear-gradient(180deg, #ffe566 0%, #f0c400 45%, #c9a000 100%) !important;
    border: 2px solid #000 !important;
    box-shadow: 3px 3px 0 #000;
    color: #000 !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.gta5-theme .m-explore-nav__link:hover,
body.gta5-theme .m-explore-nav__cta:hover {
    background: linear-gradient(180deg, #fff1a0 0%, #ffd84d 45%, #f0c400 100%) !important;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #000;
    color: #000 !important;
}

body.gta5-theme .m-explore-nav__link,
body.gta5-theme .m-explore-nav__link *,
body.gta5-theme .m-explore-nav__link .link__content,
body.gta5-theme .m-explore-nav__link.link--1,
body.gta5-theme .m-explore-nav__link.link--default,
body.gta5-theme .m-explore-nav__cta,
body.gta5-theme .m-explore-nav__cta *,
body.gta5-theme .m-explore-nav__cta .link__content {
    color: #000 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #000 !important;
}

body.gta5-theme .m-explore-nav__link .link__content,
body.gta5-theme .m-explore-nav__cta .link__content {
    font-family: var(--font-family-display) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

/* Yellow buttons everywhere: force dark text for contrast */
body.gta5-theme .btn,
body.gta5-theme .btn *,
body.gta5-theme .btn .button__content,
body.gta5-theme .btn .link__content,
body.gta5-theme a.btn,
body.gta5-theme a.btn * {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

body.gta5-theme .btn--no-background,
body.gta5-theme .btn--no-background *,
body.gta5-theme .btn--cta--on-dark .button__content {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.gta5-theme .btn--cta--on-dark .button__content {
    border-bottom-color: var(--gta-yellow) !important;
}

/* ---------- Quantity stepper ---------- */
body.gta5-theme .quantity-stepper__container,
body.gta5-theme .quantity-stepper__controls button {
    border-radius: 0 !important;
    border-color: var(--gta-border) !important;
}

/* ---------- Prefer reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .gta-fx__grain,
    body.gta5-theme .m-top-banner,
    body.gta5-theme .vc-header-logo__image,
    body.gta5-theme .m-design-details__title h1,
    body.gta5-theme .m-design.jsPdpDesign {
        animation: none !important;
    }
}
