/*
Theme Name: NSBC Hotel Supplies
Theme URI: https://nsbc.com.sa
Author: NSBC
Author URI: https://nsbc.com.sa
Description: A premium WooCommerce theme for NSBC - Nawat Sole Business Company. Luxury hotel equipment, supermarket and restaurant supplies.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: nsbc-theme
Tags: ecommerce, woocommerce, rtl-language-support, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, theme-options, translation-ready
WC requires at least: 7.0
WC tested up to: 8.5
*/

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
    --gold: #C9A84C;
    --gold-dark: #a8863a;
    --gold-light: #e8c96a;
    --black: #1a1a1a;
    --dark: #111111;
    --gray-dark: #2d2d2d;
    --gray: #6b6b6b;
    --gray-light: #e5e5e5;
    --bg: #f8f7f4;
    --white: #ffffff;
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
    --font-arabic: 'Cairo', 'Tajawal', sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --header-height: 72px;
}

/* Dark mode */
body.dark-mode {
    --bg: #111111;
    --white: #1e1e1e;
    --black: #f0f0f0;
    --gray-dark: #cccccc;
    --gray: #999999;
    --gray-light: #333333;
    --shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg);
    color: var(--black);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

body.rtl,
body[dir="rtl"] {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 72px 0;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { color: var(--gray); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--dark);
}

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

/* ============================================================
   TOP ANNOUNCEMENT BAR
============================================================ */
.announcement-bar {
    background: var(--dark);
    color: var(--gray-light);
    text-align: center;
    padding: 10px 24px;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.announcement-bar a {
    color: var(--gold);
    font-weight: 600;
}

/* ============================================================
   HEADER
============================================================ */
#masthead {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: background 0.3s, box-shadow 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img,
.site-logo .custom-logo,
.custom-logo-link img {
    width: auto !important;
    height: 44px !important;
    max-height: 44px !important;
    object-fit: contain;
}

.site-logo .logo-text {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: 0.04em;
}

/* Primary Navigation */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.primary-nav ul li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black);
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item a {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-search {
    position: relative;
}

.header-search input[type="search"] {
    background: var(--bg);
    border: 1.5px solid var(--gray-light);
    border-radius: 50px;
    padding: 8px 16px 8px 40px;
    font-size: 0.875rem;
    width: 220px;
    color: var(--black);
    transition: var(--transition);
}

.header-search input[type="search"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
    width: 260px;
}

.header-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
}

body.rtl .header-search input[type="search"] {
    padding: 8px 40px 8px 16px;
}

body.rtl .header-search .search-icon {
    left: auto;
    right: 12px;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--black);
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    border: 1.5px solid var(--gray-light);
}

.header-icon-btn:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.625rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle {
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    background: var(--bg);
    border: 1.5px solid var(--gray-light);
    color: var(--black);
    cursor: pointer;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.login-btn {
    padding: 8px 20px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1.5px solid var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

/* Mobile Hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================================
   HERO SLIDER
============================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    height: 560px;
    direction: ltr; /* keep the slide track math correct even when the page is RTL */
}

.slider-wrapper {
    display: flex;
    height: 100%;
    direction: ltr;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    direction: rtl; /* content inside each slide still respects the page language */
}

[dir="ltr"] .slide {
    direction: ltr;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
}

.slide.active .slide-bg {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 100%);
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    color: var(--white);
}

.slide-content h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s 0.2s, transform 0.7s 0.2s;
}

.slide-content p {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 580px;
    margin-bottom: 32px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s 0.35s, transform 0.7s 0.35s;
}

.slide-content .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s 0.5s, transform 0.7s 0.5s;
}

.slide.active .slide-content h1,
.slide.active .slide-content p,
.slide.active .slide-content .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.slider-btn.prev { left: 24px; }
.slider-btn.next { right: 24px; }

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--gold);
    width: 28px;
    border-radius: 4px;
}

/* ============================================================
   SECTION HEADERS
============================================================ */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 16px;
}

.section-header .view-all {
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-header .view-all:hover {
    color: var(--gold-dark);
}

.section-subtitle {
    color: var(--gray);
    font-size: 0.9375rem;
    margin-top: 6px;
}

/* ============================================================
   CATEGORIES SECTION
============================================================ */
.categories-section {
    background: var(--bg);
}

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

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    group: true;
}

.category-card:first-child,
.category-card:nth-child(2) {
    grid-column: span 1;
    aspect-ratio: 4/3;
}

.categories-grid.two-column .category-card:first-child {
    grid-column: span 1;
}

.category-card img,
.category-card .cat-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .cat-bg {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%);
}

.category-name {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-count {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.category-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 0.875rem;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================
   PRODUCTS SECTION
============================================================ */
.products-section {
    background: var(--white);
}

.products-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.filter-tab {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--bg);
    color: var(--gray);
    border: 1.5px solid var(--gray-light);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

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

/* Product Card */
.product-card {
    background: var(--white);
    border: 1.5px solid var(--gray-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--gold);
}

.product-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #1a1a1a;
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.rtl .product-badge {
    left: auto;
    right: 12px;
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
}

.product-card:hover .product-wishlist {
    opacity: 1;
}

.product-wishlist:hover {
    background: #ff4444;
    color: var(--white);
}

body.rtl .product-wishlist {
    right: auto;
    left: 12px;
}

.product-info {
    padding: 16px;
}

.product-category-label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 6px;
    font-weight: 500;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--gray-light);
    font-size: 0.75rem;
}

.star.filled {
    color: var(--gold);
}

.rating-count {
    font-size: 0.75rem;
    color: var(--gray);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

.product-price .old-price {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray);
    text-decoration: line-through;
    display: block;
}

.add-to-cart-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.add-to-cart-btn:hover {
    background: var(--gold-dark);
    transform: scale(1.1);
}

/* ============================================================
   FEATURES / HIGHLIGHTS STRIP
============================================================ */
.features-strip {
    background: var(--dark);
    padding: 48px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    color: var(--white);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.15);
    border: 1.5px solid rgba(201, 168, 76, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    margin: 0 auto 16px;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

/* ============================================================
   TESTIMONIALS / REVIEWS SECTION
============================================================ */
.reviews-section {
    background: var(--bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

.review-card {
    background: var(--white);
    border: 1.5px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
    transform: translateY(-4px);
}

.review-quote {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.2;
    line-height: 1;
    font-family: serif;
}

body.rtl .review-quote {
    right: auto;
    left: 24px;
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.review-stars .star {
    font-size: 1rem;
}

.review-text {
    font-size: 0.9375rem;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.reviewer-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--black);
}

.reviewer-position {
    font-size: 0.8rem;
    color: var(--gray);
}

.reviewer-verified {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #22c55e;
    margin-top: 4px;
}

/* ============================================================
   BRANCHES MAP SECTION (above footer)
============================================================ */
.branches-map-section {
    background: var(--white);
    padding: 72px 0;
}

.branches-map-inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    min-height: 480px;
}

body.rtl .branches-map-inner {
    grid-template-columns: 1fr 340px;
}

.branches-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 480px;
    padding-right: 8px;
}

body.rtl .branches-list {
    padding-right: 0;
    padding-left: 8px;
}

.branch-card {
    background: var(--bg);
    border: 1.5px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.branch-card:hover,
.branch-card.active {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.branch-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
}

.branch-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.branch-detail:last-child {
    margin-bottom: 0;
}

.branch-detail-icon {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

#nsbc-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--gray-light);
    z-index: 1;
}

/* ============================================================
   GALLERY SECTION (on homepage)
============================================================ */
.gallery-section {
    background: var(--dark);
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 8px;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:first-child {
    grid-row: span 2;
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ============================================================
   ABOUT SECTION (on homepage)
============================================================ */
.about-section-mini {
    background: var(--bg);
}

.about-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-mini-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-mini-content .section-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.value-item {
    background: var(--white);
    border: 1.5px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
}

.value-item h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ============================================================
   FOOTER
============================================================ */
#colophon {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding-top: 64px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 280px 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-brand .footer-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand .footer-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.footer-col h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 4px;
}

body.rtl .footer-col ul li a:hover {
    padding-left: 0;
    padding-right: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.footer-contact-item .icon {
    color: var(--gold);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.4);
    font-size: 0.8125rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* ============================================================
   FLOATING BUTTONS
============================================================ */
.floating-actions {
    position: fixed;
    bottom: 32px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

/* Contact/WhatsApp buttons always stay on the left, in both languages */
body.rtl .floating-actions:not(.floating-actions-right) {
    left: 24px;
    right: auto;
}

.floating-actions-right {
    left: auto;
    right: 24px;
}

body.rtl .floating-actions-right {
    left: auto;
    right: 24px;
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
    text-decoration: none;
    color: var(--white);
    border: none;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.phone {
    background: #007AFF;
}

.floating-btn.scroll-top {
    background: var(--gold, #C9A84C);
}

/* ============================================================
   PAGE TEMPLATES
============================================================ */

/* Products Archive Page */
.shop-header {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 48px;
}

.shop-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.shop-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.shop-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.shop-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1.5px solid var(--gray-light);
    border-radius: 50px;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--black);
    transition: var(--transition);
}

.shop-search input:focus {
    border-color: var(--gold);
}

.shop-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

/* About Page */
.about-hero {
    background: var(--dark);
    padding: 80px 0;
    text-align: center;
}

.about-hero h1 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.about-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    padding: 80px 0;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 64px;
    text-align: center;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.vmv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.vmv-card {
    background: var(--bg);
    border: 1.5px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.vmv-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.vmv-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--black);
}

.vmv-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Branches Page */
.branches-page {
    padding: 72px 0;
}

.branches-page h1 {
    text-align: center;
    margin-bottom: 12px;
}

.branches-page .lead {
    text-align: center;
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Gallery Page */
.gallery-page {
    padding: 72px 0;
}

.gallery-masonry {
    columns: 3;
    column-gap: 16px;
}

.gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-masonry-item:hover img {
    transform: scale(1.04);
}

/* Contact Page */
.contact-page {
    padding: 72px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-form-wrap h2 {
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--black);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Single Product */
.single-product-layout {
    padding: 64px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.product-gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
}

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

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.product-gallery-thumbs img {
    border-radius: var(--radius);
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
    border-color: var(--gold);
}

.single-product-info .product-category-label {
    font-size: 0.8125rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.single-product-info h1 {
    font-size: 1.875rem;
    margin-bottom: 16px;
}

.single-product-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 24px;
}

.product-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-dark);
    margin-bottom: 32px;
}

.qty-add-cart {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.qty-input {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gray-light);
    border-radius: 50px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    cursor: pointer;
    background: var(--bg);
    color: var(--black);
    transition: var(--transition);
    border: none;
}

.qty-btn:hover {
    background: var(--gold);
    color: var(--dark);
}

.qty-number {
    width: 52px;
    text-align: center;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--black);
}

/* ============================================================
   CART / CHECKOUT
============================================================ */
.woocommerce-cart-form,
.woocommerce-checkout {
    padding: 64px 0;
}

/* ============================================================
   BREADCRUMBS
============================================================ */
.breadcrumb-wrap {
    background: var(--white);
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-light);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--gray);
    list-style: none;
}

.breadcrumb a {
    color: var(--gray);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb-sep {
    opacity: 0.4;
}

/* ============================================================
   ALERTS & NOTIFICATIONS
============================================================ */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.woocommerce-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.woocommerce-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

/* ============================================================
   PAGINATION
============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-numbers {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1.5px solid var(--gray-light);
    color: var(--black);
    transition: var(--transition);
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

/* ============================================================
   MOBILE NAVIGATION
============================================================ */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    pointer-events: none;
}

.mobile-nav.open {
    display: block;
    pointer-events: all;
}

.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.mobile-nav-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    padding: 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
}

body.rtl .mobile-nav-panel {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

.mobile-nav.open .mobile-nav-panel {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.mobile-nav-close {
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--black);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav ul li a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-nav ul li a:hover,
.mobile-nav ul li.current-menu-item a {
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 991px) {
    .primary-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-search input[type="search"] {
        width: 160px;
    }

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

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

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

    .branches-map-inner {
        grid-template-columns: 1fr;
    }

    #nsbc-map {
        height: 380px;
    }

    .about-mini-grid {
        grid-template-columns: 1fr;
    }

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

    .single-product-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 767px) {
    :root {
        --header-height: 60px;
    }

    .hero-slider {
        height: 420px;
    }

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

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

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

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

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

    .gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    .header-search {
        display: none;
    }

    .section-padding {
        padding: 48px 0;
    }
}

@media (max-width: 479px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 0.8125rem;
    }

    .slider-btn {
        display: none;
    }
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: none; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: none; }

/* ============================================================
   WOOCOMMERCE OVERRIDES
============================================================ */
.woocommerce .woocommerce-ordering select,
.woocommerce .woocommerce-result-count {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--black);
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
    background: var(--gold) !important;
    color: var(--dark) !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
    border: none !important;
    padding: 12px 28px !important;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background: var(--gold-dark) !important;
    color: var(--dark) !important;
}

.woocommerce-loop-product__title {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.woocommerce ul.products li.product .price {
    color: var(--gold) !important;
    font-weight: 700 !important;
}

/* Stars */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
    color: var(--gold) !important;
}

/* ============================================================
   LEAFLET MAP OVERRIDES
============================================================ */
.leaflet-container {
    font-family: var(--font-primary) !important;
    border-radius: var(--radius-lg) !important;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-md) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 16px !important;
}

.map-popup-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
}

.map-popup-detail {
    font-size: 0.8125rem;
    color: var(--gray);
    margin-bottom: 4px;
}

/* ============================================================
   UTILITY CLASSES
============================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-gray { color: var(--gray); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* ============================================================
   PRODUCT STATS (Views & Comments) — Added for bilingual build
============================================================ */
.product-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: rgba(201,168,76,0.07);
    border-top: 1px solid var(--gray-light);
}

.product-stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--gray);
    font-weight: 500;
}

.product-stat-item i {
    color: var(--gold);
    font-size: 0.75rem;
}

/* ============================================================
   LOGO SIZE — Header & Footer (high-quality, larger)
============================================================ */
.site-logo img,
.nsbc-header-logo img {
    width: auto !important;
    height: 72px !important;
    max-width: 220px !important;
    object-fit: contain !important;
}

.site-logo svg {
    flex-shrink: 0;
}

.footer-brand .footer-logo img {
    width: auto !important;
    height: 64px !important;
    max-width: 200px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
}

.footer-brand .footer-logo svg {
    flex-shrink: 0;
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .site-logo img,
    .nsbc-header-logo img {
        height: 52px !important;
    }
}

/* ============================================================
   LIGHTBOX (gallery popup)
============================================================ */
.nsbc-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.nsbc-lightbox.active {
    display: flex;
}

.nsbc-lightbox-img {
    max-width: 88vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.nsbc-lightbox-close,
.nsbc-lightbox-prev,
.nsbc-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.nsbc-lightbox-close:hover,
.nsbc-lightbox-prev:hover,
.nsbc-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nsbc-lightbox-close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    line-height: 1;
}

.nsbc-lightbox-prev,
.nsbc-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
}

.nsbc-lightbox-prev { left: 24px; }
.nsbc-lightbox-next { right: 24px; }

@media (max-width: 600px) {
    .nsbc-lightbox-prev, .nsbc-lightbox-next { width: 40px; height: 40px; }
    .nsbc-lightbox-close { top: 12px; right: 12px; }
}

/* ============================================================
   WOOCOMMERCE CLASSIC CART / CHECKOUT FORMS
   (WooCommerce's own default CSS is disabled by this theme, so
   these rules provide consistent spacing/alignment instead of
   relying on browser defaults, which caused uneven gaps and
   misaligned fields on the checkout page)
============================================================ */
.woocommerce-checkout .col2-set,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    max-width: 640px;
}

.woocommerce-checkout .form-row,
.nsbc-cart-wrap .form-row {
    margin-bottom: 18px;
    clear: both;
}

.woocommerce-checkout .form-row label,
.nsbc-cart-wrap .form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
}

.woocommerce-checkout .form-row .required {
    color: #ef4444;
    text-decoration: none;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.nsbc-cart-wrap input.input-text,
.nsbc-cart-wrap select,
.nsbc-cart-wrap textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-light, #ddd);
    border-radius: var(--radius, 8px);
    font-family: inherit;
    font-size: 0.9375rem;
    background: var(--white, #fff);
    box-sizing: border-box;
}

.woocommerce-checkout textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.6;
    padding-top: 12px;
}

/* Order notes field specifically: force full width so the placeholder text
   wraps normally instead of squeezing into a narrow box, and keep the native
   resize handle from sitting on top of the text in RTL layouts. */
#order_comments,
.woocommerce-additional-fields textarea {
    width: 100% !important;
    max-width: 100%;
    min-height: 100px;
    padding-bottom: 22px; /* room for the resize handle so it never overlaps the placeholder */
    white-space: pre-wrap;
    word-break: break-word;
    box-sizing: border-box;
}

.woocommerce-additional-fields,
.woocommerce-additional-fields__field-wrapper {
    width: 100%;
}

/* Consistent, breathing-room spacing between all checkout fields */
.woocommerce-checkout .form-row {
    margin-bottom: 18px;
}

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-direction: column;
}

/* Two-column rows (city / state, etc.) lay out evenly instead of stacking with uneven gaps */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 48%;
    display: inline-block;
    vertical-align: top;
}

.woocommerce-checkout .form-row-first {
    float: right; /* RTL: first field starts on the right */
}
.woocommerce-checkout .form-row-last {
    float: left;
}

[dir="ltr"] .woocommerce-checkout .form-row-first { float: left; }
[dir="ltr"] .woocommerce-checkout .form-row-last  { float: right; }

.woocommerce-checkout .form-row-wide {
    clear: both;
    width: 100%;
}

/* Coupon notice box */
.woocommerce-form-coupon-toggle .woocommerce-info,
.checkout_coupon.woocommerce-form-coupon {
    background: #eef4ff;
    border: 1px solid #cfe0ff;
    border-radius: var(--radius, 8px);
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 0.9375rem;
}

.checkout_coupon.woocommerce-form-coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.checkout_coupon.woocommerce-form-coupon .form-row {
    margin-bottom: 0;
    flex: 1 1 220px;
}

.woocommerce-form-coupon-toggle .showcoupon {
    color: var(--gold, #C9A84C);
    font-weight: 600;
    text-decoration: underline;
}

/* Order review table */
.woocommerce-checkout-review-order-table,
.nsbc-cart-wrap table.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td,
.cart-collaterals table.shop_table th,
.cart-collaterals table.shop_table td {
    padding: 14px 4px;
    text-align: right;
    border-bottom: 1px solid var(--gray-light, #eee);
    vertical-align: middle;
}

[dir="ltr"] .cart_totals table.shop_table th,
[dir="ltr"] .cart_totals table.shop_table td {
    text-align: left;
}

.cart_totals h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid var(--gray-light, #eee);
    border-bottom: none;
}

.cart_totals .wc-proceed-to-checkout {
    margin-top: 20px;
}

.cart_totals .wc-proceed-to-checkout a.checkout-button {
    display: block;
    text-align: center;
    width: 100%;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--gray-light, #eee);
    text-align: right;
}

[dir="ltr"] .woocommerce-checkout-review-order-table th,
[dir="ltr"] .woocommerce-checkout-review-order-table td {
    text-align: left;
}

.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th {
    font-weight: 700;
    font-size: 1.05rem;
    border-top: 2px solid var(--gray-light, #eee);
    border-bottom: none;
}

/* Payment methods box */
ul.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

ul.wc_payment_methods li.wc_payment_method {
    border: 1.5px solid var(--gray-light, #eee);
    border-radius: var(--radius, 8px);
    padding: 14px 16px;
    margin-bottom: 10px;
}

ul.wc_payment_methods li.wc_payment_method label {
    font-weight: 600;
    display: inline-block;
    margin-inline-start: 8px;
}

ul.wc_payment_methods .payment_box {
    margin-top: 10px;
    padding: 12px;
    background: var(--bg, #f7f7f7);
    border-radius: var(--radius, 8px);
    font-size: 0.875rem;
    color: var(--gray, #666);
}

#place_order {
    width: 100%;
    padding: 16px;
    font-size: 1.0625rem;
    font-weight: 700;
    border-radius: var(--radius, 8px);
    border: none;
    background: var(--gold, #C9A84C);
    color: #fff;
    cursor: pointer;
    margin-top: 16px;
}

@media (max-width: 700px) {
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100%;
        float: none;
        display: block;
    }
}
