/* ============================================
   Shop Section — V3 Dark Gold Theme
   ============================================ */

/* ── Navbar ── */
.shop-navbar {
    background: rgba(12,12,14,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
}

.shop-navbar .nav-link {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--gray);
    padding: 8px 14px !important;
}

.shop-navbar .nav-link:hover { color: var(--gold); }
.shop-navbar .nav-link.active { background: var(--gold-soft); border: 1px solid var(--border); color: var(--gold); }

.cart-icon { position: relative; }
.cart-count {
    position: absolute; top: 0; right: 0;
    background: var(--gold); color: var(--bg);
    font-size: 10px; width: 18px; height: 18px;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 700;
}

/* ── Hero ── */
.shop-hero {
    background: var(--card);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--white);
    padding: 55px 0;
    text-align: center;
}

.shop-hero h1 { font-family: var(--serif); font-size: 2.5rem; font-weight: 400; margin-bottom: 8px; }
.shop-hero p { color: var(--gray); font-size: 1rem; font-weight: 200; }

/* ── Breadcrumb ── */
.shop-breadcrumb { background: var(--card); padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.shop-breadcrumb .breadcrumb-item a { color: var(--gold); }
.shop-breadcrumb .breadcrumb-item.active { color: var(--gray); }

/* ── Filters ── */
.shop-filters {
    background: var(--bg-alt);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-subtle);
}

/* ── Product Cards ── */
.shop-product-card {
    background: var(--card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shop-product-card:hover { border-color: var(--border); transform: translateY(-4px); }

.shop-product-link { text-decoration: none; color: inherit; flex: 1; }
.shop-product-link:hover { color: inherit; }

.shop-product-img { position: relative; height: 200px; overflow: hidden; background: var(--bg); }

.shop-product-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}

.shop-product-card:hover .shop-product-img img { transform: scale(1.06); }

.shop-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--gold); color: var(--bg);
    padding: 3px 10px; font-size: 0.72rem; font-weight: 600;
}

.shop-product-info { padding: 16px 18px 10px; }
.shop-product-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.shop-product-rating { margin-bottom: 8px; color: var(--gold); font-size: 0.8rem; }
.shop-product-price { display: flex; align-items: baseline; gap: 8px; }
.shop-sale { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.shop-original { font-size: 0.85rem; color: var(--mid); text-decoration: line-through; }

.btn-shop-cart {
    display: block; width: 100%; padding: 12px;
    background: var(--gold); color: var(--bg);
    border: none; font-size: 0.88rem; font-weight: 600;
    cursor: pointer; transition: background 0.3s;
}

.btn-shop-cart:hover { background: var(--gold-light); }

/* ── Product Detail ── */
.shop-detail-img { background: var(--card); border: 1px solid var(--border-subtle); padding: 20px; text-align: center; }
.shop-detail-img img { max-height: 400px; object-fit: contain; }
.shop-detail-name { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--white); margin-bottom: 5px; }
.shop-detail-rating { color: var(--gold); font-size: 0.95rem; }
.shop-detail-sale { font-size: 2rem; font-weight: 700; color: var(--gold); }
.shop-detail-original { font-size: 1.1rem; color: var(--mid); text-decoration: line-through; margin-left: 10px; }
.shop-detail-discount { background: var(--gold-soft); color: var(--gold); padding: 4px 12px; font-size: 0.85rem; font-weight: 600; margin-left: 12px; }
.shop-detail-desc { color: var(--gray); line-height: 1.7; font-weight: 300; }

/* Qty Selector */
.qty-selector { display: inline-flex; border: 1px solid var(--border-subtle); overflow: hidden; }
.qty-btn { width: 42px; height: 42px; border: none; background: var(--card); color: var(--white); font-size: 1.1rem; cursor: pointer; }
.qty-btn:hover { background: var(--gold-soft); }
.qty-input {
    width: 55px; height: 42px; border: none; text-align: center;
    background: var(--bg); color: var(--white); font-size: 1rem; font-weight: 600;
    border-left: 1px solid var(--border-subtle); border-right: 1px solid var(--border-subtle);
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.shop-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.shop-detail-features span { font-size: 0.88rem; color: var(--gray); }

.shop-detail-tabs { background: var(--card); border: 1px solid var(--border-subtle); overflow: hidden; }
.shop-detail-tabs .nav-tabs { border-bottom: 1px solid var(--border-subtle); padding: 0 20px; }
.shop-detail-tabs .nav-link { border: none; font-weight: 600; color: var(--gray); padding: 15px 20px; }
.shop-detail-tabs .nav-link.active { color: var(--gold); border-bottom: 2px solid var(--gold); background: transparent; }

/* ── Cart Page ── */
.shop-cart-table { background: var(--card); border: 1px solid var(--border-subtle); overflow: hidden; }

.shop-cart-item {
    display: flex; align-items: center; gap: 18px;
    padding: 20px; border-bottom: 1px solid var(--border-subtle);
}
.shop-cart-item:last-child { border-bottom: none; }

.shop-cart-img { width: 70px; height: 70px; overflow: hidden; flex-shrink: 0; }
.shop-cart-img img { width: 100%; height: 100%; object-fit: cover; }

.shop-cart-details { flex: 1; }
.shop-cart-details h5 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.shop-cart-price { min-width: 60px; text-align: center; color: var(--gray); }
.shop-cart-total { min-width: 70px; text-align: center; color: var(--gold); }
.shop-cart-remove { background: none; border: none; color: var(--mid); font-size: 1.1rem; cursor: pointer; padding: 5px; }
.shop-cart-remove:hover { color: #e74c3c; }

.shop-cart-summary {
    background: var(--card); border: 1px solid var(--border-subtle);
    padding: 25px; position: sticky; top: 80px;
}
.shop-cart-summary h4 { font-family: var(--serif); font-weight: 600; color: var(--white); }
.shop-cart-summary span { color: var(--gray); }
.shop-cart-summary strong { color: var(--white); }
.shop-cart-summary hr { border-color: var(--border-subtle); }

/* ── Checkout ── */
.shop-checkout-form { background: var(--card); border: 1px solid var(--border-subtle); padding: 30px; }
.shop-checkout-form h4 { font-family: var(--serif); font-weight: 600; color: var(--white); }
.shop-payment-option { padding: 15px 20px; border: 1px solid var(--border-subtle); transition: border-color 0.2s; }
.shop-payment-option:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }

/* ── Info Banner ── */
.shop-info-banner { background: var(--card); padding: 50px 0; border-top: 1px solid var(--border-subtle); }
.shop-info-banner i { color: var(--gold); }
.shop-info-banner h6 { font-weight: 600; color: var(--white); margin-top: 8px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .shop-hero h1 { font-size: 1.8rem; }
    .shop-hero { padding: 40px 0; }
    .shop-detail-name { font-size: 1.4rem; }
    .shop-detail-sale { font-size: 1.6rem; }
    .shop-cart-item { flex-wrap: wrap; gap: 12px; }
    .shop-checkout-form { padding: 20px; }
}
