/* Gacha Addicts storefront theme — tokens from design bundle (navy + yellow/pink/cyan accents) */
:root {
    --navy-900: #0E1633; /* page background */
    --navy-800: #141F4A; /* card background */
    --navy-700: #1F2F6B; /* brand navy, header, panels */
    --navy-600: #2A3E86; /* hover / borders */
    --nav-bg: #182552;
    --footer-bg: #0A1029;
    --yellow: #FFDE59;   /* primary CTA, prices */
    --pink: #FF7ADB;     /* secondary CTA */
    --pink-soft: #FFB6EB;/* kickers, links */
    --cyan: #2EE6F5;     /* informational */
    --red: #FF4D6D;      /* sale / errors */
    --muted: #A9B4DC;    /* secondary text */
    --text: #ffffff;
    --border: rgba(255, 255, 255, .12);
    --radius: 18px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--navy-900);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
h1 { font-size: 36px; }
h2 { font-size: 28px; }

a { color: var(--pink-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

.kicker {
    display: block;
    font-size: 12px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--pink-soft); margin-bottom: 10px;
}

.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin: 8px 0 20px;
}
.section-head h1, .section-head h2 { margin-bottom: 0; }
section { margin-bottom: 56px; }

/* ---------- header ---------- */
.announce {
    min-height: 40px; padding: 7px 16px; text-align: center;
    background: linear-gradient(90deg, #FF7ADB 0%, #FFDE59 50%, #2EE6F5 100%);
    color: var(--navy-900);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; letter-spacing: .04em;
}

.site-header {
    background: linear-gradient(180deg, var(--navy-700), #1B2A60);
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 6px 24px rgba(5, 8, 24, .45);
}
.header-inner { padding: 0; }
.header-top { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; transition: transform .15s ease; }
.logo img { height: 58px; width: 58px; border-radius: 15px; display: block; }
.logo:hover { text-decoration: none; transform: scale(1.04) rotate(-2deg); }

.search { flex: 1; display: flex; position: relative; max-width: 640px; margin: 0 auto; }
.search .search-icon {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 14px; pointer-events: none;
}
.search input {
    flex: 1; height: 46px; padding: 0 54px 0 44px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px; color: #fff; font-size: 15px; font-family: inherit;
    transition: border-color .15s ease, background .15s ease;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { background: rgba(255, 255, 255, .12); }
.search .btn-search {
    position: absolute; right: 4px; top: 4px;
    width: 38px; height: 38px; padding: 0; border-radius: 999px; font-size: 14px;
}

.header-actions { display: flex; gap: 10px; align-items: center; }
.iconbtn {
    position: relative; width: 44px; height: 44px; border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 17px; color: #fff;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.iconbtn:hover {
    background: rgba(255, 255, 255, .16); color: var(--yellow);
    text-decoration: none; transform: translateY(-1px);
}
.badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    background: var(--yellow); color: var(--navy-900);
    font-size: 11px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--navy-700);
}
.dot-online {
    position: absolute; top: 1px; right: 1px; width: 10px; height: 10px;
    border-radius: 999px; background: var(--cyan); border: 2px solid var(--navy-700);
}

/* hamburger — hidden on desktop */
.nav-toggle-input { display: none; }
.nav-toggle { display: none; }

.main-nav {
    background: var(--nav-bg);
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin: 0 -24px; padding: 0 24px;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav > ul > li { position: relative; }
.main-nav a {
    display: flex; align-items: center; gap: 7px;
    color: #D7DDF5; padding: 13px 14px;
    font-size: 14px; font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: color .12s ease;
}
.main-nav a:hover { color: var(--yellow); text-decoration: none; }
.main-nav > ul > li > a.active { color: var(--yellow); border-bottom-color: var(--yellow); }
.main-nav .caret { font-size: 9px; opacity: .55; transition: transform .15s ease; }
.main-nav li:hover .caret { transform: rotate(180deg); }
.main-nav ul.submenu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 10;
    background: var(--navy-700); min-width: 230px;
    border: 1px solid var(--border); border-top: 2px solid var(--yellow);
    border-radius: 0 0 14px 14px; padding: 8px;
    box-shadow: 0 18px 40px rgba(5, 8, 24, .6);
}
.main-nav li:hover ul.submenu { display: block; }
.main-nav ul.submenu a {
    padding: 10px 14px; border-radius: 9px; border-bottom: none;
}
.main-nav ul.submenu a:hover { background: rgba(255, 255, 255, .08); }
.main-nav ul.submenu a.active { color: var(--yellow); }

main { padding: 36px 24px 72px; min-height: 60vh; }

/* ---------- hero ---------- */
.hero {
    display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 32px;
    background:
        radial-gradient(600px 300px at 85% 20%, rgba(255, 122, 219, .25), transparent 65%),
        radial-gradient(500px 320px at 15% 90%, rgba(46, 230, 245, .18), transparent 60%),
        linear-gradient(135deg, var(--navy-700), #251d63 60%, #4a1d5e);
    border: 1px solid var(--border);
    border-radius: 24px; padding: 48px;
    margin-bottom: 40px; overflow: hidden;
}
.hero h1 { font-size: 42px; margin-bottom: 14px; }
.hero p { max-width: 46ch; margin: 0 0 24px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { text-align: center; }
.hero-art img {
    width: min(280px, 70%); border-radius: 32px;
    filter: drop-shadow(0 18px 40px rgba(255, 122, 219, .35));
}

.trust-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-bottom: 48px;
}
.trust-strip > div {
    background: var(--navy-800); border: 1px solid var(--border);
    border-radius: 14px; padding: 14px 18px;
    display: flex; flex-direction: column; font-size: 14px;
}
.trust-strip strong { font-family: 'Poppins', Arial, sans-serif; font-size: 15px; }
.trust-strip strong i { color: var(--yellow); margin-right: 6px; width: 18px; text-align: center; }
.trust-strip .muted { font-size: 13px; }

/* ---------- breadcrumb & chips ---------- */
.breadcrumb {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 13px; color: var(--muted); margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--pink-soft); }
.breadcrumb .current { color: #fff; font-weight: 600; }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
    height: 36px; padding: 0 18px; border-radius: 999px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
    color: #fff; font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center;
}
.chip:hover { border-color: var(--yellow); color: var(--yellow); text-decoration: none; }

/* ---------- flashes ---------- */
.flash { padding: 12px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; font-size: 14px; }
.flash-success { background: rgba(46, 230, 245, .12); color: var(--cyan); border: 1px solid rgba(46, 230, 245, .35); }
.flash-error { background: rgba(255, 77, 109, .12); color: var(--red); border: 1px solid rgba(255, 77, 109, .35); }

/* ---------- product grid & cards ---------- */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px;
}
.product-card {
    background: var(--navy-800);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .25);
    box-shadow: 0 18px 40px rgba(5, 8, 24, .55);
}
.thumb {
    position: relative;
    background:
        radial-gradient(220px 140px at 70% 30%, rgba(255, 222, 89, .18), transparent 70%),
        linear-gradient(135deg, var(--navy-700), #3a2a86 55%, #86286f);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
}
.product-card .thumb { height: 165px; }
.thumb-icon {
    font-size: 3rem; color: rgba(255, 255, 255, .85);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .4));
}
.thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.thumb:hover { text-decoration: none; }

.tag {
    position: absolute; top: 12px; left: 12px;
    height: 24px; padding: 0 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    display: inline-flex; align-items: center;
}
.tag-red { background: var(--red); color: #fff; }
.tag-pink { background: var(--pink); color: var(--navy-900); }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game {
    display: block;
    font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--pink-soft);
}
.product-card h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.product-card h3 a { color: #fff; }
.product-card .price-row { margin-top: auto; display: flex; align-items: baseline; gap: 10px; padding-top: 6px; }

.price {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700; font-size: 21px; color: var(--yellow);
}
.price-xl { font-size: 32px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 14px; font-weight: 400; }

.availability {
    font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
}
.availability.in_stock { color: var(--cyan); }
.availability.preorder { color: var(--pink-soft); }
.availability.unavailable { color: var(--red); }

/* ---------- buttons ---------- */
button, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 26px; border-radius: 999px;
    font-family: 'Poppins', Arial, sans-serif; font-weight: 600; font-size: 15px;
    background: var(--yellow); color: var(--navy-900);
    border: 2px solid transparent; cursor: pointer; letter-spacing: .01em;
    transition: filter .15s ease, transform .15s ease;
}
button:hover, .btn:hover { filter: brightness(1.07); transform: translateY(-1px); text-decoration: none; }
.btn-pink { background: var(--pink); color: var(--navy-900); }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; }
.btn-block { display: flex; width: 100%; margin-top: 14px; }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }

.cart-lines { display: flex; flex-direction: column; gap: 14px; }
.cart-line {
    display: grid; grid-template-columns: 64px 1fr auto auto auto;
    gap: 16px; align-items: center;
    background: var(--navy-800); border: 1px solid var(--border);
    border-radius: 16px; padding: 14px 16px;
}
.line-thumb {
    width: 64px; height: 64px; border-radius: 12px;
    background: linear-gradient(135deg, var(--navy-700), #3a2a86 55%, #86286f);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    color: rgba(255, 255, 255, .85); text-decoration: none;
}
.line-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line-title { color: #fff; font-weight: 600; line-height: 1.35; }
.line-price { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.line-qty { display: flex; gap: 8px; align-items: center; }
.line-qty input {
    width: 64px; height: 38px; padding: 0 10px; text-align: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px; color: #fff; font-family: inherit;
}
.line-total { white-space: nowrap; font-size: 18px; }
.btn-remove { width: 38px; padding: 0; }

.empty-state { text-align: center; }
.empty-state p { font-size: 18px; margin: 8px 0 20px; }

/* ---------- tables (order summary) ---------- */
.table-scroll { overflow-x: auto; }
table.cart-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--navy-800); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
.cart-table th {
    font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted);
}
.cart-table th, .cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-table td.num, .cart-table th.num { text-align: right; }

/* ---------- totals panel ---------- */
.totals {
    background: var(--navy-700); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
    position: sticky; top: 96px;
}
.totals .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; }
.totals .row.discount-row span:last-child { color: var(--cyan); font-weight: 600; }
.totals .row.total {
    border-top: 1px solid var(--border); margin-top: 10px; padding-top: 14px;
    font-family: 'Poppins', Arial, sans-serif; font-size: 20px; font-weight: 700;
}
.totals .row.total span:last-child { color: var(--yellow); }
.totals h3 { margin-top: 0; }

.coupon-form { display: flex; gap: 8px; margin-bottom: 14px; }
.coupon-form input {
    flex: 1; height: 40px; padding: 0 14px; min-width: 0;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px; color: #fff; font-family: inherit;
}

/* ---------- forms ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }

form.styled label {
    display: block; font-size: 12px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
    margin: 16px 0 8px;
}
form.styled input[type=text], form.styled input[type=email], form.styled textarea,
input[type=password], input[type=email] {
    width: 100%; height: 48px; padding: 0 16px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px; color: #fff; font-size: 15px; font-family: 'Inter', Arial, sans-serif;
}
form.styled textarea { height: auto; padding: 12px 16px; min-height: 96px; }
form.styled input:focus, form.styled textarea:focus, .search input:focus, .coupon-form input:focus {
    outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(46, 230, 245, .22);
}
form.styled ul { list-style: none; padding: 0; margin: 6px 0; color: var(--red); font-size: 13px; }

/* expanded choices (delivery/payment) — input precedes its label */
.choice-group input[type=radio] {
    accent-color: var(--yellow); width: 18px; height: 18px;
    margin: 0 10px 0 2px; vertical-align: middle;
}
.choice-group input[type=radio] + label {
    display: inline; margin: 0 18px 0 0;
    font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #fff;
}
.choice-group > div > div { padding: 6px 0; }

.panel {
    background: var(--navy-800); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
}

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.product-detail .thumb { border-radius: var(--radius); min-height: 340px; }
.product-detail .thumb .thumb-icon { font-size: 6rem; }
.product-detail h1 { margin: 6px 0 8px; }
.price-block { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 16px 0 8px; }
.price-block .tag { position: static; }
.qty-row { display: flex; gap: 14px; align-items: center; margin: 20px 0; }
.qty-row input {
    width: 84px; height: 48px; padding: 0 12px; text-align: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px; color: #fff; font-size: 15px;
}
.preorder-note {
    background: rgba(255, 182, 235, .1); border: 1px solid rgba(255, 182, 235, .3);
    color: var(--pink-soft); border-radius: 12px; padding: 10px 16px; font-size: 14px;
    display: inline-block;
}
.description { margin-top: 28px; }
.description h4 { margin-bottom: 8px; }
.description p { margin: 0; }

.login-box { max-width: 400px; margin: 56px auto; }
.login-box input { margin-bottom: 4px; }

/* ---------- footer ---------- */
.site-footer {
    background: var(--footer-bg); border-top: 1px solid var(--border);
    padding: 48px 0 24px; color: var(--muted); font-size: 14px; margin-top: 48px;
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
    padding-bottom: 32px;
}
.footer-brand p { margin: 12px 0 0; max-width: 34ch; }
.footer-logo { height: 72px; width: 72px; border-radius: 16px; display: block; }
.site-footer h4 {
    font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
    color: #fff; margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--pink-soft); }
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pay {
    height: 30px; padding: 0 12px; border-radius: 6px;
    background: rgba(255, 255, 255, .10);
    display: inline-flex; align-items: center;
    font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #D7DDF5;
}
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; }
.footer-bottom p { margin: 0; font-size: 13px; }

/* =====================================================================
   Mobile
   ===================================================================== */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding: 32px 24px; }
    .hero-art { font-size: 6rem; order: -1; }
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
    .totals { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    .hero h1 { font-size: 28px; }
    main { padding: 24px 16px 56px; }
    .container { padding: 0 16px; }
    .announce { font-size: 11px; min-height: 34px; }

    /* header: logo + hamburger + cart on one row, search below */
    .header-top { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
    .logo { margin-right: auto; }
    .logo img { height: 44px; width: 44px; border-radius: 11px; }
    .cart-label { display: none; }
    .search { order: 3; flex-basis: 100%; }

    .nav-toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 44px; height: 44px; border-radius: 999px;
        background: rgba(255, 255, 255, .08); cursor: pointer;
        align-items: center;
    }
    .nav-toggle span {
        display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff;
        transition: transform .2s ease, opacity .2s ease;
    }
    .nav-toggle-input:checked ~ .header-top .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle-input:checked ~ .header-top .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-toggle-input:checked ~ .header-top .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .main-nav { display: none; margin: 0 -16px; padding: 8px 16px 16px; }
    .nav-toggle-input:checked ~ .main-nav { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 15px; }
    .main-nav ul.submenu {
        display: block; position: static; border: none; box-shadow: none;
        background: transparent; border-radius: 0; padding: 0 0 0 18px; min-width: 0;
    }
    .main-nav ul.submenu a { color: var(--muted); font-size: 14px; padding: 10px 4px; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card .thumb { height: 120px; }
    .thumb-icon { font-size: 2.4rem; }
    .card-body { padding: 12px; }
    .product-card h3 { font-size: 14px; }
    .price { font-size: 18px; }
    .price-xl { font-size: 26px; }

    .product-detail { grid-template-columns: 1fr; gap: 20px; }
    .product-detail .thumb { min-height: 220px; }

    .cart-line {
        grid-template-columns: 56px 1fr auto;
        grid-template-areas:
            "thumb info remove"
            "thumb qty total";
        row-gap: 10px;
    }
    .line-thumb { grid-area: thumb; width: 56px; height: 56px; }
    .line-info { grid-area: info; }
    .line-qty { grid-area: qty; }
    .line-total { grid-area: total; justify-self: end; align-self: center; }
    .cart-line form:last-child { grid-area: remove; justify-self: end; }

    .trust-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
    .trust-strip > div { padding: 10px 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-cta .btn { height: 44px; padding: 0 20px; font-size: 14px; }
}
