:root {
    --bg: #06070c;
    --panel: #06070c;
    --panel-2: #06070c;
    --text: #edf2ff;
    --muted: #a8b3cf;
    --accent: #50b0ff;
    --accent-2: #7cc8ff;
    --line: #24304a;
    --success: #1fb37a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.site-header, .site-footer { background: rgba(6, 7, 12, 0.9); border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); border-bottom: none; margin-top: 4rem; }
.nav-wrap, .footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
nav { display: flex; gap: 1rem; }
nav a, .footer-inner a { color: var(--muted); }
.brand { font-weight: 800; color: white; letter-spacing: .03em; }
.page-content { padding-top: 2rem; }

.hero { background: linear-gradient(135deg, #121a2b, #1b2942); border: 1px solid var(--line); border-radius: 24px; padding: 3rem; margin-bottom: 2rem; }
.eyebrow { display: inline-block; color: var(--accent-2); font-size: .85rem; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { margin: 0 0 .75rem; font-size: clamp(2rem, 5vw, 3.5rem); }
.hero p { color: var(--muted); max-width: 50rem; }
.hero-actions { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.hero-image {
    /* Use "linear-gradient" to add a darken background effect to the image. This will make the text easier to read */
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/images/heroimg.png");
    /* Set a specific height */
    
    /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.btn { border: 1px solid transparent; padding: .8rem 1rem; border-radius: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--accent); color: #06111f; }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--text); }
.btn-link { background: transparent; color: #ff9a9a; padding: 0; }
.full-width { width: 100%; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.product-card, .summary-card, .form-card, .confirmation-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.product-card { overflow: hidden; }
.product-content { padding: 1rem; }
.product-content h3 { margin: .7rem 0 .4rem; }
.product-content p { color: var(--muted); min-height: 3.2em; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.product-visual {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #99a0bf, #4f5678);
    display: grid;
    place-items: center;
}
.product-visual.large { border-radius: 20px; border: 1px solid var(--line); }
.product-visual img { width: 72%; height: 72%; object-fit: contain; }

.pill { display: inline-flex; padding: .35rem .7rem; border-radius: 999px; background: #1b2942; color: var(--accent-2); font-size: .85rem; }
.pill.success { background: rgba(31,179,122,.15); color: #7af3c2; }
.product-price { font-size: 1.8rem; font-weight: 800; }
.details-layout, .cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: start; }
.filters { display: flex; gap: .75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.filters input, .filters select, .form-card input, .inline-form input[type="number"] { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; }
.form-card { padding: 1.25rem; display: grid; gap: .5rem; }
.validation { color: #ff9a9a; font-size: .9rem; }
.inline-form { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.compact-form { align-items: center; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 1rem; }
.cart-item img { width: 92px; height: 92px; object-fit: contain; background: #101726; border-radius: 14px; padding: .7rem; }
.cart-item-main h3 { margin: 0 0 .25rem; }
.summary-card { padding: 1.25rem; position: sticky; top: 1rem; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.summary-row.total { font-size: 1.1rem; border-bottom: none; padding-top: 1rem; }
.empty-state, .alert { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; }
.alert { margin-bottom: 1rem; }
.confirmation-card { padding: 1.5rem; }
.order-summary { margin: 1rem 0 1.5rem; }

@media (max-width: 850px) {
  .details-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
