:root {
    --bg: #040404;
    --surface: #121212;
    --surface-strong: #1a1a1a;
    --text: #f6f1e7;
    --muted: #b8ad9a;
    --accent: #c59e33;
    --accent-soft: #d4b270;
    --white: #ffffff;
    --black: #000000;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, rgba(197, 158, 51, .15), transparent 35%),
        linear-gradient(180deg, #020202 0%, #080808 100%);
    color: var(--text);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(6, 6, 6, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 1.05rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--white);
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.15rem 0.5rem;
    margin-left: 0.35rem;
    border-radius: 999px;
    background: rgba(197, 158, 51, 0.16);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
}

.site-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.hero {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.575), rgba(6, 6, 6, 0.877)),
        url("images/hero_bg.jpeg") center center / cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 222, 134, 0.18), transparent 35%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin: 0;
    color: var(--white);
}

.hero-subtitle {
    margin: 1.5rem auto 2rem;
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #c59e33, #f4d38f);
    color: #050505;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-1px);
    opacity: 0.95;
}

.button-secondary {
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.section {
    padding: 3.5rem 0;
}

.section-title {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    margin: 0 0 1rem;
}

.section-copy {
    max-width: 740px;
    color: var(--muted);
    line-height: 1.8;
}

.section-image {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 445px;
    margin-top: 1.5rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    border-radius: 18px;
}

.grid {
    display: grid;
    gap: 1.6rem;
}

.products-grid,
.feature-grid,
.card-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card,
.feature-card,
.shipping-card,
.summary-card,
.order-summary {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h3,
.feature-card h3,
.shipping-card h3,
.summary-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--white);
}

.main-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* or 4 / 5 for product style */
    object-fit: contain;
    background: #111;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-lightbox.hidden {
    display: none;
}

.lightbox-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2rem;
    max-width: 100%;
}

.lightbox-track img {
    max-height: 90vh;
    max-width: 95vw;
    object-fit: contain;
    scroll-snap-align: center;
    border-radius: 10px;
}

#close-lightbox {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.badge {
    display: inline-flex;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(197, 158, 51, 0.18);
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.price {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.product-copy,
.feature-copy,
.shipping-copy {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.quantity-input,
select,
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1a1a;
    color: white;
    font-size: 1rem;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.quantity-input:focus,
select:focus,
input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(197, 158, 51, 0.12);
}

/* ── Addon Button UI ────────────────────────────────────── */
.addon-option {
    background: #ffffff;
    color: #000000;
    border: 2px solid #ffffff;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
}

.addon-option input[type="checkbox"] {
    display: none;
}

.addon-option.active,
.addon-option:has(input:checked) {
    background: var(--accent);
    border-color: var(--accent);
    color: #050505;
}

.add-to-cart {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 14px;
    background: white;
    color: black;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.add-to-cart:hover:not(:disabled) {
    background: var(--accent);
    color: var(--black);
}

.add-to-cart:disabled {
    background: #333;
    color: #777;
    cursor: not-allowed;
}

.out-of-stock {
    background: #7a0000;
    color: white;
    padding: 0.7rem;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
}

.out-of-stock-card {
    opacity: 0.6;
}

/* ── Cart Items ─────────────────────────────────────────── */
.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-quantity {
    width: 70px;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-total {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ── Modals ─────────────────────────────────────────────── */
.product-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-content {
    background: #111;
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#close-product-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: white;
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
}

.modal-gallery {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    padding: 1.5rem;
}

.modal-gallery img {
    width: 100%;
    min-width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 18px;
    scroll-snap-align: center;
}

.modal-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-info label {
    font-size: 0.95rem;
    color: var(--muted);
}

/* ── Client Admin Stock Management UI ───────────────────── */
.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.stock-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.stock-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--white);
}

.stock-toggle-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-in-stock {
    background: #2e7d32;
    color: white;
}

.btn-out-stock {
    background: #c62828;
    color: white;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.95rem 0.85rem;
    text-align: left;
    font-size: 0.95rem;
}

.admin-table th {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.85rem;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(197, 158, 51, 0.18);
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.alert {
    background: rgba(197, 158, 51, 0.12);
    border: 1px solid rgba(197, 158, 51, 0.2);
    padding: 1rem 1.2rem;
    border-radius: 18px;
    color: var(--text);
}

.hidden {
    display: none !important;
}

footer {
    padding: 2rem 0 3rem;
    color: var(--muted);
    text-align: center;
}

footer a {
    color: var(--accent);
}

/* ──────────────────────────────────────────────────────── */
/* MOBILE OPTIMIZATIONS (iPad & tablets) */
/* ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

    .navbar,
    .site-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
        padding: 1rem 0;
    }
}

/* ──────────────────────────────────────────────────────── */
/* AGGRESSIVE MOBILE OPTIMIZATIONS (iPhone 12 Pro & smaller) */
/* ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Header & Navigation */
    .navbar {
        padding: 0.75rem 0.75rem;
    }

    .brand {
        font-size: 0.9rem;
        letter-spacing: 0.15em;
    }

    .menu-btn {
        display: block;
        font-size: 1.25rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 55px;
        left: 0;
        width: 100%;
        background: rgba(6, 6, 6, 0.98);
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.6rem 1rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero {
        min-height: 50vh;
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin: 1rem auto 1.5rem;
    }

    .hero-actions {
        gap: 0.5rem;
    }

    /* Main Content */
    .site-main {
        padding: 0 0.75rem 2rem;
    }

    .section {
        padding: 1.5rem 0;
    }

    .section-title {
        font-size: clamp(1.3rem, 4vw, 2rem);
        margin: 0 0 0.75rem;
    }

    .section-copy {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0 0 1rem;
    }

    .section-image {
        max-height: 250px;
        margin-top: 1rem;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .product-card {
        padding: 0.6rem;
        gap: 0.5rem;
        border-radius: 12px;
    }

    .product-card h3 {
        font-size: 0.8rem;
        margin: 0;
    }

    .main-product-image {
        height: 140px;
        border-radius: 10px;
    }

    .price {
        font-size: 0.95rem;
        margin: 0.25rem 0;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    /* Labels & Inputs */
    .product-card label {
        font-size: 0.75rem;
        margin: 0;
        font-weight: 600;
    }

    .quantity-input {
        padding: 0.5rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .addon-option {
        padding: 0.5rem;
        font-size: 0.75rem;
        border-radius: 8px;
        border-width: 1.5px;
    }

    .addon-option input[type="checkbox"] {
        transform: scale(1);
    }

    .add-to-cart,
    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 8px;
        min-height: 36px;
    }

    .button-secondary {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }

    /* Cart Page */
    .cart-item-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .item-actions {
        justify-content: space-between;
        gap: 0.4rem;
    }

    .cart-quantity {
        width: 60px;
        padding: 0.4rem;
        font-size: 0.85rem;
    }

    .cart-item-row strong {
        font-size: 0.9rem;
    }

    .product-copy {
        font-size: 0.8rem;
    }

    /* Summary */
    .summary-row,
    .order-summary,
    .summary-card {
        padding: 0.8rem;
    }

    .summary-total {
        font-size: 1rem;
    }

    /* Feature Grid */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-copy {
        font-size: 0.85rem;
    }

    /* Shipping Cards */
    .shipping-card {
        padding: 1.2rem 1rem;
    }

    .shipping-card h3 {
        font-size: 1rem;
        margin: 0 0 0.5rem;
    }

    .shipping-copy {
        font-size: 0.85rem;
    }

    /* Modal */
    .product-modal {
        padding: 0.5rem;
    }

    .modal-content {
        max-width: 100%;
        border-radius: 16px;
    }

    #close-product-modal {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .modal-gallery {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .modal-gallery img {
        height: 250px;
        border-radius: 12px;
    }

    .modal-info {
        padding: 1rem;
        gap: 0.8rem;
    }

    .modal-info label {
        font-size: 0.85rem;
    }

    .modal-info select,
    .modal-info input[type="number"] {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    /* Admin Tables */
    .admin-table th,
    .admin-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }

    .admin-table th {
        font-size: 0.7rem;
    }

    /* Stock Grid */
    .stock-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .stock-card {
        padding: 0.8rem;
        gap: 0.6rem;
    }

    .stock-card h4 {
        font-size: 0.9rem;
    }

    .stock-toggle-btn {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* Alert */
    .alert {
        padding: 0.75rem 1rem;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    footer {
        padding: 1.5rem 0 2rem;
        font-size: 0.8rem;
    }
}

/* ── Checkout Form Fields ───────────────────────────────── */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.field-group label {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 600;
}

.form-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.form-grid-2 {
    grid-template-columns: 1fr 1fr;
}

/* ──────────────────────────────────────────────────────── */
/* ULTRA-AGGRESSIVE (iPhone SE & smaller screens) */
/* ──────────────────────────────────────────────────────── */
@media (max-width: 375px) {
    .navbar {
        padding: 0.5rem 0.5rem;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .brand {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    .menu-btn {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 45vh;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin: 0.8rem auto 1.2rem;
    }

    .site-main {
        padding: 0 0.5rem 1.5rem;
    }

    .section {
        padding: 1rem 0;
    }

    .section-title {
        font-size: clamp(1.1rem, 3.5vw, 1.6rem);
        margin: 0 0 0.6rem;
    }

    .section-copy {
        font-size: 0.8rem;
    }

    .products-grid {
        gap: 0.5rem;
    }

    .product-card {
        padding: 0.5rem;
    }

    .product-card h3 {
        font-size: 0.75rem;
    }

    .main-product-image {
        height: 120px;
    }

    .price {
        font-size: 0.85rem;
    }

    .quantity-input {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .addon-option {
        padding: 0.4rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }

    .add-to-cart {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        min-height: 32px;
    }

    .cta-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    .modal-gallery img {
        height: 200px;
    }

    .modal-info {
        padding: 0.75rem;
    }

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

    footer {
        font-size: 0.7rem;
        padding: 1rem 0 1.5rem;
    }
}