:root {
    --navy: #061735;
    --blue: #1269e8;
    --blue-hover: #0b54c7;
    --light: #f4f7fb;
    --line: #dbe4ef;
    --text: #12213b;
    --text-muted: #64748b;
    --white: #ffffff;
    --danger: #dc2626;
    --success: #16a34a;
    --font-sans: Arial, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    display: block;
}

/* Header */
.site-header {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 16px 4vw;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 100;
}

.brand {
    font-size: 26px;
    font-weight: 900;
    color: var(--navy);
    flex-shrink: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search {
    display: flex;
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.search:focus-within {
    border-color: var(--blue);
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.btn {
    border: 0;
    background: var(--blue);
    color: var(--white);
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn:hover {
    background: var(--blue-hover);
}

.btn-secondary {
    background: #e9f2ff;
    color: var(--blue);
    border: 1px solid var(--line);
}

.btn-secondary:hover {
    background: #dbe8fa;
}

.btn-compare {
    background: #f1f5f9;
    color: var(--text);
    border: 1px solid var(--line);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    width: 100%;
}

.btn-compare:hover {
    background: #e2e8f0;
}

.btn-remove {
    background: #fee2e2;
    color: var(--danger);
    border: 1px solid #fecaca;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-remove:hover {
    background: #fca5a5;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.currency-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.currency-form select {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-weight: 600;
    background: var(--white);
    color: var(--text);
    font-family: inherit;
}

/* Nav */
.site-nav {
    display: flex;
    gap: 24px;
    background: #0b54c7;
    color: var(--white);
    padding: 12px 4vw;
    font-weight: 700;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    color: var(--white);
    padding: 4px 0;
}

.site-nav a:hover {
    opacity: 0.9;
}

#main-content {
    flex: 1;
}

/* Hero */
.hero {
    margin: 0 4vw;
    padding: 50px 40px;
    border-radius: 0 0 20px 20px;
    background: radial-gradient(circle at 75% 30%, #174b8a, #061735 45%, #020817);
    color: var(--white);
}

.hero-content {
    max-width: 680px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero p {
    font-size: 18px;
    color: #c5d4ea;
}

/* Sections */
.section {
    padding: 48px 4vw;
}

.section.light {
    background: var(--light);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-head h1,
.section-head h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.empty-state p {
    margin-bottom: 16px;
    font-size: 16px;
}

/* Categories grid */
.categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 18px;
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.category-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(18, 105, 232, 0.08);
}

.category-card strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
    margin-bottom: 4px;
}

.category-card span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
}

/* Products grid */
.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.product-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.photo {
    height: 200px;
    background: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
}

.photo a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 38px;
    margin-bottom: 8px;
}

.product-name a {
    color: var(--text);
}

.product-name a:hover {
    color: var(--blue);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-stock.in-stock {
    color: var(--success);
    font-weight: 600;
}

.product-stock.out-of-stock {
    color: var(--danger);
    font-weight: 600;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    margin-top: auto;
}

.product-pricing .price {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
}

.product-pricing .original-price {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: line-through;
}

/* Detail page */
.detail {
    padding: 48px 4vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-image-wrap {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb-button {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
}

.thumb-button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.thumbs img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    background: var(--white);
    padding: 2px;
}

.thumbs img:hover,
.thumbs img:focus,
.thumb-button:hover img,
.thumb-button:focus-visible img {
    border-color: var(--blue);
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-category {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

.detail-short-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

.detail-price-box {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-price-box .price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.detail-price-box .price {
    font-size: 32px;
    font-weight: 900;
    color: var(--navy);
}

.detail-price-box .original-price {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-price-box .base-price {
    font-size: 14px;
    color: var(--text-muted);
}

.detail-meta-list {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 16px;
    font-size: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.detail-meta-list dt {
    color: var(--text-muted);
    font-weight: 600;
}

.detail-meta-list dd {
    margin: 0;
    color: var(--text);
}

.detail-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.detail-desc {
    margin-top: 16px;
    line-height: 1.7;
    color: var(--text);
}

.detail-desc h3 {
    margin-bottom: 8px;
    color: var(--navy);
}

/* Compare table */
.compare-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-top: 20px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compare-table th,
.compare-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.compare-table th {
    background: var(--light);
    color: var(--navy);
    font-weight: 700;
    width: 160px;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
    border-bottom: 0;
}

.compare-table th:last-child,
.compare-table td:last-child {
    border-right: 0;
}

/* Pagination (Laravel default without Tailwind) */
.pagination-wrap {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.pagination-wrap nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 24px auto 0 auto;
    font-size: 14px;
}

ul.pagination {
    display: flex;
    list-style: none;
    gap: 6px;
    margin: 0 auto;
    padding: 0;
}

ul.pagination li a,
ul.pagination li span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    text-decoration: none;
}

ul.pagination li.active span {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    font-weight: 700;
}

ul.pagination li.disabled span {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Footer */
.site-footer {
    background: #020817;
    color: #8c9aae;
    padding: 36px 4vw;
    text-align: center;
    margin-top: 60px;
}

.footer-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

.footer-details a {
    color: #c5d4ea;
    text-decoration: underline;
}

.footer-copy {
    margin-top: 16px;
    color: #526175;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        padding: 36px 24px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .site-header {
        position: static;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 12px;
    }

    .main-image-wrap {
        height: 280px;
    }

    .brand {
        font-size: 22px;
        word-break: break-word;
    }

    .search {
        width: 100%;
        display: flex;
    }

    .search input {
        min-width: 0;
        flex: 1;
    }

    .search .btn {
        flex-shrink: 0;
    }

    .header-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-actions .btn,
    .header-actions a,
    .header-actions button {
        white-space: nowrap;
    }

    .currency-form {
        width: 100%;
    }

    .hero {
        margin: 0;
        padding: 28px 16px;
        border-radius: 0;
    }

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

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

    .detail-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Alerts */
.alert {
    padding: 14px 20px;
    margin: 16px 4vw 0 4vw;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
}

.alert-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Cart & Buttons */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.input-qty {
    width: 65px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.qty-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-page {
    padding: 32px 4vw;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.cart-page h1 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--navy);
}

.cart-issues {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    color: #b45309;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.cart-issues h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.cart-issues ul {
    margin-left: 20px;
}

.cart-table-wrap {
    overflow-x: auto;
    margin-bottom: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cart-table th {
    background: var(--light);
    padding: 14px 16px;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.cart-item-name {
    font-weight: 600;
    color: var(--navy);
    display: block;
    margin-bottom: 4px;
}

.cart-item-sku {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-summary-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.cart-subtotal {
    font-size: 20px;
    display: flex;
    gap: 16px;
    align-items: baseline;
}

.subtotal-amount {
    font-size: 24px;
    color: var(--navy);
}

.cart-actions {
    display: flex;
    gap: 12px;
}

.cart-empty {
    padding: 48px 0;
    text-align: center;
}

/* Checkout Page */
.checkout-page, .order-page {
    padding: 32px 4vw;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.checkout-page h1, .order-header h1 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--navy);
}

.checkout-layout, .order-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
}

.form-control:focus {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 13px;
    margin-top: 4px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.order-summary-box, .order-items-box, .payment-instructions-box, .customer-details-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: var(--light);
}

.summary-lines, .order-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-line, .order-item-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.summary-line-info, .item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-line-name, .item-name {
    font-weight: 600;
    color: var(--navy);
}

.summary-line-meta, .item-sku, .item-qty-price {
    font-size: 13px;
    color: var(--text-muted);
}

.summary-subtotal, .order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 20px;
    font-size: 18px;
}

.summary-subtotal strong, .display-total {
    font-size: 22px;
    color: var(--navy);
}

.usd-equivalent {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 6px;
}

.btn-place-order {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
}

/* Order Page */
.order-header {
    margin-bottom: 32px;
}

.order-number-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
}

.order-section {
    margin-bottom: 32px;
}

.order-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--navy);
}

.instruction-text {
    margin-bottom: 16px;
    line-height: 1.6;
}

.payment-details-list, .customer-info-list {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 16px;
    margin-bottom: 20px;
}

.payment-details-list dt, .customer-info-list dt {
    font-weight: 600;
    color: var(--text-muted);
}

.wallet-address-wrap {
    background: #0f172a;
    color: #38bdf8;
    padding: 14px 18px;
    border-radius: 6px;
    margin: 12px 0 20px 0;
}

.network-notice {
    font-weight: 600;
    margin-bottom: 8px;
}

.closing-instructions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-link-wrap {
    margin-top: 8px;
}

@media (max-width: 800px) {
    .checkout-layout, .order-layout {
        grid-template-columns: 1fr;
    }

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


