/* ============================================================
   LUMANI eCOMMERCE — SINGLE PRODUCT PAGE
   ============================================================ */

.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

@media (min-width: 768px) {
    .product-detail { grid-template-columns: 1fr 1fr; gap: 60px; }
}

/* ── Gallery ─────────────────────────────────────────── */

.product-gallery {
    position: relative;
}

.product-gallery-main {
    aspect-ratio: 1;
    border-radius: var(--shop-radius);
    overflow: hidden;
    background: #111;
    border: 1px solid var(--border, rgba(116,134,108,.15));
    margin-bottom: 12px;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.product-gallery-thumbs button {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--shop-radius);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: var(--bg-card, #1a1a1a);
    transition: border-color var(--shop-transition);
}

.product-gallery-thumbs button.active,
.product-gallery-thumbs button:hover {
    border-color: var(--shop-accent);
}

.product-gallery-thumbs button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Product Info ────────────────────────────────────── */

.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-breadcrumb {
    font-size: 13px;
    color: var(--shop-text-light);
}

.product-breadcrumb a {
    color: var(--shop-text-light);
    text-decoration: none;
    transition: color var(--shop-transition);
}

.product-breadcrumb a:hover { color: var(--shop-accent); }
.product-breadcrumb span { margin: 0 8px; }

.product-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--shop-text);
}

.product-price-display {
    font-size: 24px;
    font-weight: 700;
}

.product-price-display .original {
    text-decoration: line-through;
    color: var(--shop-text-light);
    font-weight: 500;
    font-size: 18px;
    margin-right: 8px;
}

.product-price-display .sale { color: var(--shop-error); }

.product-short-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--shop-text-light);
}

/* ── Option Selectors ────────────────────────────────── */

.product-options { display: flex; flex-direction: column; gap: 20px; }

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

.option-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.option-btn {
    padding: 10px 20px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    background: var(--bg-card, #1a1a1a);
    color: var(--cream, #f5f0e8);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--shop-transition);
    font-family: var(--shop-font);
}

.option-btn:hover { border-color: var(--shop-accent); }
.option-btn.selected {
    background: var(--shop-accent);
    color: #fff;
    border-color: var(--shop-accent);
}

.option-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.colour-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--shop-border);
    cursor: pointer;
    transition: all var(--shop-transition);
    padding: 0;
}

.colour-swatch:hover,
.colour-swatch.selected {
    border-color: var(--shop-accent);
    box-shadow: 0 0 0 2px var(--shop-accent);
}

/* ── Quantity + Add to Cart ──────────────────────────── */

.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    overflow: hidden;
}

.quantity-control button {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-elevated, #161616);
    font-size: 18px;
    cursor: pointer;
    transition: background var(--shop-transition);
    font-family: var(--shop-font);
    color: var(--shop-text);
}

.quantity-control button:hover { background: var(--bg-card, #1a1a1a); }

.quantity-control input {
    width: 56px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--shop-border);
    border-right: 1px solid var(--shop-border);
    text-align: center;
    font-size: 15px;
    font-family: var(--shop-font);
    background: var(--bg, #0e0e0e);
    color: var(--cream, #f5f0e8);
    -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.btn-add-to-cart {
    flex: 1;
    padding: 14px 32px;
    background: var(--shop-accent);
    color: #fff;
    border: none;
    border-radius: var(--shop-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--shop-transition);
    font-family: var(--shop-font);
}

.btn-add-to-cart:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-add-to-cart:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-add-to-cart.loading {
    pointer-events: none;
    opacity: 0.7;
}

.stock-indicator {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-indicator.in-stock { color: var(--shop-success); }
.stock-indicator.low-stock { color: var(--shop-warning); }
.stock-indicator.out-of-stock { color: var(--shop-error); }

/* ── Product Tabs (Description / Additional Info) ────── */

.product-tabs {
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--shop-border);
}

.product-tabs-nav button {
    padding: 14px 24px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--shop-text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--shop-transition);
    font-family: var(--shop-font);
}

.product-tabs-nav button:hover { color: var(--shop-text); }
.product-tabs-nav button.active {
    color: var(--shop-accent);
    border-bottom-color: var(--shop-accent);
}

.product-tab-content { display: none; padding: 32px 0; }
.product-tab-content.active { display: block; }

.product-tab-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--shop-text);
}

.product-description p { margin-bottom: 16px; }

/* Additional Info Table */
.custom-fields-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-fields-table tr { border-bottom: 1px solid var(--shop-border); }
.custom-fields-table td { padding: 12px 16px; font-size: 14px; }
.custom-fields-table td:first-child {
    font-weight: 600;
    color: var(--shop-text);
    width: 200px;
}
.custom-fields-table td:last-child { color: var(--shop-text-light); }

/* ── Customer Input Fields ───────────────────────────── */

.customer-inputs { display: flex; flex-direction: column; gap: 16px; }

.customer-input-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.customer-input-field input,
.customer-input-field textarea,
.customer-input-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    font-size: 14px;
    font-family: var(--shop-font);
    background: var(--bg-elevated, #161616);
    color: var(--cream, #f5f0e8);
}

.customer-input-field .required { color: var(--shop-error); }

/* ── Related Products ────────────────────────────────── */

.related-products {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--shop-border);
}

.related-products h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
}
