/* WooCommerce Overrides - Novalight SA */

/* ── Single Product Layout ── */
.nl-single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.nl-product-gallery {}
.nl-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    background: #F4F7FB;
    border: 2px solid #D1DBE8;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.nl-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .3s; }
.nl-gallery-main img:hover { transform: scale(1.03); }
.nl-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-gallery-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #D1DBE8;
    cursor: pointer;
    transition: all .3s;
    flex-shrink: 0;
}
.nl-gallery-thumb:hover, .nl-gallery-thumb.active { border-color: #1B3F8B; transform: scale(1.05); }

/* Single Product Details */
.nl-product-cats { font-size: .78rem; font-weight: 700; color: #4A9FD4; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.nl-single-title { font-size: 1.8rem; font-weight: 900; color: #0D1B2A; margin-bottom: 16px; line-height: 1.3; }
.nl-single-price { font-size: 1.5rem; font-weight: 900; color: #1B3F8B; margin-bottom: 16px; }
.nl-single-price del { color: #999; font-size: 1rem; font-weight: 400; margin-left: 8px; }
.nl-single-price ins { text-decoration: none; color: #EF4444; }
.nl-product-short-desc { color: #627385; font-size: .95rem; line-height: 1.8; margin-bottom: 20px; border-right: 3px solid #C4923A; padding-right: 14px; }

/* Product Attributes */
.nl-product-attrs { margin-bottom: 20px; }
.nl-product-attrs h4 { font-size: .88rem; color: #1E2D40; margin-bottom: 10px; font-weight: 700; }
.nl-attrs-grid { display: flex; flex-direction: column; gap: 0; border: 1px solid #D1DBE8; border-radius: 8px; overflow: hidden; }
.nl-attr-row { display: flex; font-size: .88rem; }
.nl-attr-row:not(:last-child) { border-bottom: 1px solid #D1DBE8; }
.nl-attr-name { background: #F4F7FB; padding: 9px 14px; font-weight: 700; color: #1E2D40; width: 160px; flex-shrink: 0; }
.nl-attr-val { padding: 9px 14px; color: #627385; flex: 1; }

/* Wholesale Badge */
.nl-wholesale-badge {
    background: linear-gradient(135deg, rgba(196,146,58,.1), rgba(196,146,58,.05));
    border: 1px solid rgba(196,146,58,.3);
    color: #a87d2e;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.nl-wholesale-badge a { color: #1B3F8B; text-decoration: underline; }

/* Quick Order Panel */
.nl-quick-order-panel {
    display: flex;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid #D1DBE8;
    border-bottom: 1px solid #D1DBE8;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.nl-qop-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .88rem;
    font-weight: 600;
    color: #627385;
}
.nl-qop-item svg { width: 16px; height: 16px; color: #1B3F8B; flex-shrink: 0; }
.nl-qop-item a { color: #1B3F8B; }
.nl-qop-item a:hover { color: #C4923A; }

/* Qty Control */
.nl-qty-control {
    display: flex;
    align-items: center;
    border: 2px solid #D1DBE8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.nl-qty-minus, .nl-qty-plus {
    width: 38px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1B3F8B;
    cursor: pointer;
    transition: all .3s;
    background: #F4F7FB;
    border: none;
    flex-shrink: 0;
}
.nl-qty-minus:hover, .nl-qty-plus:hover { background: #1B3F8B; color: #fff; }
.nl-qty-input {
    width: 60px;
    text-align: center;
    border: none;
    border-right: 1px solid #D1DBE8;
    border-left: 1px solid #D1DBE8;
    font-size: .95rem;
    font-weight: 700;
    color: #1E2D40;
    outline: none;
    padding: 8px 0;
    -moz-appearance: textfield;
}
.nl-qty-input::-webkit-outer-spin-button,
.nl-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Product Rating */
.nl-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .88rem; color: #627385; }
.nl-product-rating .star-rating { color: #F59E0B; }

/* Product Full Description */
.nl-product-full-desc { margin-bottom: 48px; }
.nl-tabs {}
.nl-tab-header { display: flex; gap: 4px; border-bottom: 2px solid #D1DBE8; margin-bottom: 24px; }
.nl-tab-btn {
    padding: 12px 24px;
    font-family: 'Cairo', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: #627385;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all .3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.nl-tab-btn.active { color: #1B3F8B; border-bottom-color: #1B3F8B; }
.nl-tab-btn:hover { color: #1B3F8B; }
.nl-tab-content { display: block; }
.nl-tab-content.nl-hidden { display: none; }
.nl-product-desc-content { color: #627385; line-height: 1.85; }
.nl-product-desc-content p { margin-bottom: 14px; }
.nl-product-desc-content ul { margin: 14px 0 14px 20px; }
.nl-product-desc-content li { margin-bottom: 6px; }

/* Related Products */
.nl-related-products { padding-bottom: 48px; }

/* WooCommerce Messages */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background: #F4F7FB;
    border-right: 4px solid #1B3F8B;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: .9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
}
.woocommerce-message { border-right-color: #10B981; }
.woocommerce-error { border-right-color: #EF4444; background: #FEF2F2; }

/* Shop Toolbar */
.nl-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: #F4F7FB;
    border-radius: 12px;
    border: 1px solid #D1DBE8;
}
.nl-shop-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-cat-filter {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 700;
    color: #1E2D40;
    background: #fff;
    border: 1px solid #D1DBE8;
    transition: all .3s;
    text-decoration: none;
}
.nl-cat-filter:hover, .nl-cat-filter.active { background: #1B3F8B; color: #fff; border-color: #1B3F8B; }

.woocommerce-ordering select {
    font-family: 'Cairo', sans-serif;
    border: 1px solid #D1DBE8;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: .88rem;
    color: #1E2D40;
    background: #fff;
    cursor: pointer;
    direction: rtl;
}

/* Shop Grid */
.nl-shop-grid { margin-bottom: 32px; }

/* Form Note */
.nl-form-note { font-size: .78rem; color: #627385; text-align: center; margin-top: 12px; }

/* Responsive */
@media (max-width: 900px) {
    .nl-single-product-layout { grid-template-columns: 1fr; gap: 28px; }
    .nl-gallery-main { aspect-ratio: 4/3; }
}
@media (max-width: 600px) {
    .nl-quick-order-panel { flex-direction: column; gap: 10px; }
    .nl-tab-header { overflow-x: auto; }
    .nl-tab-btn { padding: 10px 16px; font-size: .82rem; white-space: nowrap; }
}
