/* ── Catalogue ── */
.catalogue-header {
    margin-bottom: 2.5rem;
}

.catalogue-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 0.4rem;
}

.catalogue-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 1.5rem;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: rgba(59,130,246,0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.12);
}

.product-card-img-wrap {
    background: rgba(15,23,42,0.5);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    min-height: 180px;
}

.product-card-img {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
}

.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 0.5rem;
}

.product-card-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-card-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f1f5f9;
}

.product-card-cta {
    font-size: 0.85rem;
    color: #3b82f6;
    font-weight: 600;
}

/* ── Product Page ── */
.shop-page {
    min-height: 80vh;
    padding: 4rem 1rem;
    background: #0f172a;
}

.shop-container {
    max-width: 1100px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-image-wrap {
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image-wrap img {
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-badge {
    display: inline-block;
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    width: fit-content;
}

.product-name {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
    margin: 0;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.product-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f1f5f9;
}

.product-price-note {
    font-size: 0.85rem;
    color: #64748b;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-features li {
    color: #cbd5e1;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.product-features li::before {
    content: '✓';
    color: #4ade80;
    font-weight: 700;
    flex-shrink: 0;
}

.product-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin: 0;
}

/* Quantity selector */
.qty-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: rgba(59,130,246,0.1);
    border: none;
    color: #e2e8f0;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover { background: rgba(59,130,246,0.25); }

.qty-value {
    width: 56px;
    text-align: center;
    background: rgba(15,23,42,0.8);
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-left: 1px solid rgba(59,130,246,0.2);
    border-right: 1px solid rgba(59,130,246,0.2);
    padding: 0;
    height: 44px;
    -moz-appearance: textfield;
}

.qty-value::-webkit-outer-spin-button,
.qty-value::-webkit-inner-spin-button { -webkit-appearance: none; }

/* CTA buttons */
.btn-add-cart {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: #3b82f6;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.02em;
}

.btn-add-cart:hover { background: #2563eb; transform: translateY(-1px); }
.btn-add-cart:active { transform: translateY(0); }

.btn-buy-now {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: transparent;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.btn-buy-now:hover {
    border-color: rgba(59,130,246,0.5);
    background: rgba(59,130,246,0.07);
}

.btn-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── Cart Icon in header ── */
.cart-trigger {
    position: relative;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e2e8f0;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.cart-trigger:hover { background: rgba(59,130,246,0.22); }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #3b82f6;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-badge.visible { display: flex; }

/* ── Cart Sidebar ── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 420px;
    max-width: 100vw;
    background: #1e293b;
    border-left: 1px solid rgba(59,130,246,0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    line-height: 1;
    font-size: 1.4rem;
}

.cart-close:hover { color: #f1f5f9; }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.cart-empty svg { opacity: 0.4; }

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 1rem;
    align-items: center;
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0.85rem;
}

.cart-item-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(30,41,59,0.8);
    padding: 4px;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #94a3b8;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.cart-qty-btn:hover { background: rgba(59,130,246,0.28); }

.cart-qty-num {
    width: 28px;
    text-align: center;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    align-self: start;
    line-height: 1;
}

.cart-item-remove:hover { color: #f87171; }

.cart-item-total {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1f5f9;
    align-self: end;
    text-align: right;
    white-space: nowrap;
}

/* Cart footer */
.cart-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
    font-size: 1rem;
}

.cart-subtotal-label { color: #94a3b8; }
.cart-subtotal-value { font-weight: 700; font-size: 1.2rem; }

.cart-note {
    font-size: 0.78rem;
    color: #475569;
    text-align: center;
}

.btn-checkout {
    width: 100%;
    padding: 0.95rem;
    background: #3b82f6;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-checkout:hover { background: #2563eb; }
.btn-checkout:disabled { background: #334155; color: #64748b; cursor: not-allowed; }

/* ── Variant cards ── */
.variant-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.variant-card {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 0.75rem;
    align-items: start;
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.variant-card:hover {
    border-color: rgba(59,130,246,0.35);
    background: rgba(59,130,246,0.05);
}

.variant-card.selected {
    border-color: #3b82f6;
    background: rgba(59,130,246,0.08);
}

.variant-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #475569;
    border-radius: 50%;
    margin-top: 2px;
    flex-shrink: 0;
    transition: border-color 0.15s;
}

.variant-card.selected .variant-radio {
    border-color: #3b82f6;
    background: radial-gradient(circle, #3b82f6 45%, transparent 46%);
}

.variant-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.variant-tag {
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(59,130,246,0.2);
    color: #93c5fd;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.variant-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.variant-features {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.variant-features li {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    gap: 0.4rem;
}

.variant-features li::before {
    content: '·';
    color: #3b82f6;
    flex-shrink: 0;
}

.variant-price {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    padding-top: 2px;
}

/* ── Checkout page ── */
.checkout-page {
    min-height: 80vh;
    padding: 3rem 1rem;
    background: #0f172a;
}

.checkout-container {
    max-width: 1100px;
    margin: 0 auto;
}

.checkout-header {
    margin-bottom: 2rem;
}

.checkout-back {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
    transition: color 0.15s;
}

.checkout-back:hover { color: #e2e8f0; }

.checkout-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.checkout-section {
    background: rgba(30,41,59,0.5);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.checkout-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.form-group:last-child { margin-bottom: 0; }

.form-lbl {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
}

.form-lbl.required::after {
    content: ' *';
    color: #f87171;
}

.form-input {
    background: rgba(15,23,42,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    color: #e2e8f0;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus { border-color: #3b82f6; }
.form-input option { background: #1e293b; }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    display: flex;
    gap: 1rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #94a3b8;
    cursor: pointer;
    margin-top: 1rem;
}

.form-checkbox input { accent-color: #3b82f6; width: 16px; height: 16px; cursor: pointer; }
.form-checkbox a { color: #3b82f6; }

/* Payment options */
.payment-option {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 0.85rem;
    align-items: center;
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    margin-bottom: 0.6rem;
    transition: border-color 0.15s;
}

.payment-option:last-child { margin-bottom: 0; }
.payment-option.selected { border-color: #3b82f6; background: rgba(59,130,246,0.07); }
.payment-option:hover { border-color: rgba(59,130,246,0.35); }

.payment-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #475569;
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color 0.15s;
}

.payment-radio.selected-radio {
    border-color: #3b82f6;
    background: radial-gradient(circle, #3b82f6 45%, transparent 46%);
}

.payment-name { font-size: 0.9rem; font-weight: 600; color: #e2e8f0; }
.payment-desc { font-size: 0.8rem; color: #64748b; margin-top: 0.15rem; }

.btn-place-order {
    width: 100%;
    padding: 1rem;
    background: #3b82f6;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.02em;
}

.btn-place-order:hover:not(:disabled) { background: #2563eb; }
.btn-place-order:disabled { background: #334155; color: #64748b; cursor: not-allowed; }

/* Order summary */
.order-summary {
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 1.5rem;
}

.summary-items {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.summary-totals {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #94a3b8;
}

.summary-total {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-top: 0.4rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .form-row-2 { grid-template-columns: 1fr; }
}

/* ── Flash feedback ── */
.btn-add-cart.added {
    background: #16a34a;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cart-sidebar { width: 100vw; }
    .shop-page { padding: 2rem 1rem; }
}
