/* ============================================
   LECHI Furniture - WooCommerce Stylesheet
   Styles for shop, product, cart, checkout pages
   @package lechi-furniture
============================================ */

/* ============================================
   Shop Banner
============================================ */
.shop-banner {
    position: relative;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    margin-top: 0;
}

.shop-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 100%);
}

.shop-banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-top: 90px;
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}

.shop-breadcrumb a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}
.shop-breadcrumb a:hover { color: var(--color-secondary, #c9a66b); }
.shop-breadcrumb .sep { font-size: 0.75rem; opacity: 0.6; }
.shop-breadcrumb .current { color: var(--color-secondary, #c9a66b); }

.shop-banner-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 12px;
}

.shop-banner-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 600px;
}

.shop-banner-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary, #c9a66b);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Shop Layout
============================================ */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 40px 15px 60px;
    align-items: start;
}

/* ============================================
   Shop Sidebar
============================================ */
.shop-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 1px solid var(--border-color, #e5e5e5);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.close-sidebar {
    display: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: var(--bg-light, #f5f5f5);
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-group {
    border-bottom: 1px solid var(--border-color, #e5e5e5);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    user-select: none;
}

.filter-group-title i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.filter-category-list {
    list-style: none;
}

.filter-category-list li {
    margin-bottom: 8px;
}

.filter-category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary, #6c757d);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.3s;
}

.filter-category-list li a:hover,
.filter-category-list li.active a {
    color: var(--color-secondary, #c9a66b);
}

.cat-count {
    background: var(--bg-light, #f5f5f5);
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 0.75rem;
    color: var(--text-muted, #999);
}

.filter-category-list li.active .cat-count {
    background: var(--color-secondary, #c9a66b);
    color: #fff;
}

/* Price Slider */
.price-filter { padding: 8px 0; }

.price-filter input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--color-secondary, #c9a66b) 0%, var(--border-color, #e5e5e5) 0%);
    outline: none;
    margin-bottom: 12px;
}

.price-filter input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-secondary, #c9a66b);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(201,166,107,0.4);
}

.price-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
}

/* Color Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.color-swatch:hover,
.color-swatch.active {
    border-color: var(--color-secondary, #c9a66b);
    transform: scale(1.15);
}

/* Rating Filter */
.rating-filter-list { list-style: none; }
.rating-filter-list li { margin-bottom: 10px; }

.rating-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary, #6c757d);
}

.rating-option input { cursor: pointer; }
.rating-option .stars i { color: #ffc107; font-size: 0.85rem; }

/* ============================================
   Shop Toolbar
============================================ */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    border: 1px solid var(--border-color, #e5e5e5);
}

.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-primary, #1a1a1a);
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.products-count {
    font-size: 0.9rem;
    color: var(--text-secondary, #6c757d);
}

.products-count .woocommerce-result-count {
    margin: 0;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* WooCommerce sort select override */
.woocommerce-ordering select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    background: #fff;
    color: var(--text-primary, #1a1a1a);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-secondary, #6c757d);
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
}

.view-btn.active,
.view-btn:hover {
    background: var(--color-primary, #1a1a1a);
    color: #fff;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--bg-light, #f5f5f5);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary, #6c757d);
}

.filter-tag button {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-muted, #999);
    color: #fff;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-tag button:hover { background: var(--color-primary, #1a1a1a); }

/* ============================================
   Products Grid (WooCommerce Override)
============================================ */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.shop-products-grid.list-view-active {
    grid-template-columns: 1fr;
}

.shop-products-grid.list-view-active .product-card {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.shop-products-grid.list-view-active .product-image {
    aspect-ratio: unset;
    height: 200px;
}

/* WooCommerce ul.products reset */
ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

ul.products li.product {
    margin: 0;
}

/* ============================================
   WooCommerce Pagination
============================================ */
.shop-pagination .woocommerce-pagination,
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.woocommerce-pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e5e5);
    color: var(--text-primary, #1a1a1a);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background: var(--color-primary, #1a1a1a);
    border-color: var(--color-primary, #1a1a1a);
    color: #fff;
}

/* ============================================
   No Products Found
============================================ */
.no-products-found .no-results-content {
    text-align: center;
    padding: 80px 20px;
}

.no-results-content i {
    font-size: 3rem;
    color: var(--border-color, #e5e5e5);
    margin-bottom: 20px;
    display: block;
}

.no-results-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.no-results-content p {
    color: var(--text-secondary, #6c757d);
    margin-bottom: 24px;
}

/* ============================================
   Single Product Page
============================================ */
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
    padding: 120px 0 24px;
}

.product-breadcrumb a {
    color: var(--text-secondary, #6c757d);
    transition: color 0.3s;
}

.product-breadcrumb a:hover { color: var(--color-secondary, #c9a66b); }
.product-breadcrumb .sep { font-size: 0.75rem; opacity: 0.5; }
.product-breadcrumb .current { color: var(--color-primary, #1a1a1a); font-weight: 500; }

/* WooCommerce single product layout */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 0 0 60px;
    align-items: start;
}

.woocommerce div.product .woocommerce-product-gallery {
    position: sticky;
    top: 100px;
}

.woocommerce div.product .woocommerce-product-gallery__wrapper img {
    border-radius: 12px;
}

.woocommerce div.product p.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary, #1a1a1a);
    margin-bottom: 16px;
}

.woocommerce div.product p.price del {
    color: var(--text-muted, #999);
    font-size: 1.2rem;
    margin-left: 12px;
}

.woocommerce div.product p.price ins {
    color: var(--color-secondary, #c9a66b);
    text-decoration: none;
}

/* Add to cart button */
.woocommerce .single_add_to_cart_button {
    background-color: var(--color-primary, #1a1a1a) !important;
    border-color: var(--color-primary, #1a1a1a) !important;
    border-radius: 8px !important;
    padding: 14px 32px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s !important;
    color: #fff !important;
}

.woocommerce .single_add_to_cart_button:hover {
    background-color: var(--color-secondary, #c9a66b) !important;
    border-color: var(--color-secondary, #c9a66b) !important;
}

/* Quantity */
.woocommerce div.product form.cart .quantity input {
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e5e5);
    font-family: 'Cairo', sans-serif;
    text-align: center;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid var(--border-color, #e5e5e5);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-radius: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: 'Cairo', sans-serif;
    color: var(--text-secondary, #6c757d);
    font-size: 1rem;
    padding: 12px 20px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary, #1a1a1a);
    border-bottom: 3px solid var(--color-secondary, #c9a66b);
}

/* Reviews */
.woocommerce #reviews #comments ol.commentlist li .comment-text {
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 12px;
    padding: 20px;
}

.woocommerce #reviews #reply-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* Star rating */
.woocommerce .star-rating { color: #ffc107; }

/* ============================================
   Cart Page
============================================ */
.woocommerce-cart-form__contents {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e5e5e5);
}

.woocommerce table.cart th {
    background: var(--bg-light, #f5f5f5);
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary, #6c757d);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce table.cart td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.woocommerce table.cart img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.woocommerce a.remove {
    color: #e74c3c !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(231,76,60,0.1);
    font-size: 1rem;
    line-height: 1;
    transition: all 0.3s;
}

.woocommerce a.remove:hover {
    background: #e74c3c;
    color: #fff !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid var(--border-color, #e5e5e5);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.woocommerce-cart .cart_totals h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
    font-family: 'Cairo', sans-serif;
}

/* Checkout button */
.woocommerce a.checkout-button,
.woocommerce .checkout-button {
    background-color: var(--color-primary, #1a1a1a) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 14px 28px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    display: block !important;
    text-align: center !important;
    transition: all 0.3s !important;
}

.woocommerce a.checkout-button:hover {
    background-color: var(--color-secondary, #c9a66b) !important;
}

/* ============================================
   Checkout Page
============================================ */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-secondary, #c9a66b);
}

.woocommerce-checkout .form-row label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: var(--text-primary, #1a1a1a);
    font-size: 0.95rem;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary, #1a1a1a);
    transition: border-color 0.3s;
    outline: none;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--color-secondary, #c9a66b);
    box-shadow: 0 0 0 3px rgba(201,166,107,0.1);
}

#place_order {
    background-color: var(--color-primary, #1a1a1a) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 16px 36px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    width: 100% !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
}

#place_order:hover {
    background-color: var(--color-secondary, #c9a66b) !important;
}

/* ============================================
   My Account Page
============================================ */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 120px 0 60px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e5e5e5);
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary, #6c757d);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--bg-light, #f5f5f5);
    color: var(--color-secondary, #c9a66b);
}

/* ============================================
   WooCommerce Notices
============================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
}

.woocommerce-message {
    background: #f0fff4;
    border: 1px solid #2ecc71;
    color: #27ae60;
}

.woocommerce-info {
    background: #e8f4fd;
    border: 1px solid #3498db;
    color: #2980b9;
}

.woocommerce-error {
    background: #fdf0f0;
    border: 1px solid #e74c3c;
    color: #c0392b;
}

/* ============================================
   Badge: Out of Stock
============================================ */
.badge.out-of-stock {
    background-color: var(--text-muted, #999);
}

/* ============================================
   Btn Variable Products
============================================ */
.btn-variable {
    background: var(--color-secondary, #c9a66b) !important;
}

.btn-out-of-stock {
    background: var(--text-muted, #999) !important;
    cursor: not-allowed;
}

/* ============================================
   Category Photo Grid (Customizer Sections)
============================================ */
/* (Already defined inline in front-page.php, duplicated here for completeness) */
.cat-photo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 320px 280px;
    gap: 12px;
    margin-top: 40px;
}
.cat-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    text-decoration: none;
}
.cat-photo-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.cat-photo-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.cat-photo-item:nth-child(3) { grid-column: 3; grid-row: 1; }
.cat-photo-item:nth-child(4) { grid-column: 2; grid-row: 2; }
.cat-photo-item:nth-child(5) { grid-column: 3; grid-row: 2; }
.cat-photo-item img { width:100%; height:100%; object-fit:cover; transition:transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); display:block; }
.cat-photo-item:hover img { transform: scale(1.08); }
.cat-photo-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.72) 0%,rgba(0,0,0,.1) 60%,transparent 100%); transition:background .4s ease; display:flex; flex-direction:column; justify-content:flex-end; padding:28px 24px; }
.cat-photo-item:hover .cat-photo-overlay { background:linear-gradient(to top,rgba(0,0,0,.82) 0%,rgba(0,0,0,.25) 60%,transparent 100%); }
.cat-photo-label { font-family:'Cairo',sans-serif; color:var(--color-secondary,#c9a96e); font-size:11px; font-weight:600; letter-spacing:3px; text-transform:uppercase; margin-bottom:6px; opacity:0; transform:translateY(8px); transition:all .35s ease .05s; }
.cat-photo-item:hover .cat-photo-label { opacity:1; transform:translateY(0); }
.cat-photo-name { font-family:'Playfair Display',serif; color:#fff; font-weight:700; line-height:1.2; margin-bottom:8px; transition:transform .35s ease; }
.cat-photo-item:nth-child(1) .cat-photo-name { font-size:32px; }
.cat-photo-item:nth-child(n+2) .cat-photo-name { font-size:20px; }
.cat-photo-item:hover .cat-photo-name { transform:translateY(-4px); }
.cat-photo-count { font-family:'Cairo',sans-serif; color:rgba(255,255,255,.75); font-size:13px; margin-bottom:14px; }
.cat-photo-cta { display:inline-flex; align-items:center; gap:8px; color:#fff; font-family:'Cairo',sans-serif; font-size:13px; font-weight:600; border-bottom:1px solid rgba(201,169,110,.6); padding-bottom:3px; opacity:0; transform:translateY(10px); transition:all .35s ease .1s; width:fit-content; }
.cat-photo-item:hover .cat-photo-cta { opacity:1; transform:translateY(0); border-color:var(--color-secondary,#c9a96e); color:var(--color-secondary,#c9a96e); }

/* ============================================
   Toast Notification
============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    background: var(--color-primary, #1a1a1a);
    color: #fff;
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
    min-width: 260px;
    border-right: 4px solid var(--color-secondary, #c9a66b);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 1.3rem;
    color: var(--color-secondary, #c9a66b);
    flex-shrink: 0;
}

.toast-message {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
}

/* ============================================
   Preloader
============================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--color-primary, #1a1a1a);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    margin-bottom: 30px;
}

.preloader-logo .logo-text {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 8px;
}

.preloader-logo .logo-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--color-secondary, #c9a66b);
    letter-spacing: 6px;
    text-transform: uppercase;
}

.preloader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: var(--color-secondary, #c9a66b);
    border-radius: 2px;
    animation: preloaderProgress 1.5s ease forwards;
}

@keyframes preloaderProgress {
    0%   { width: 0%; }
    50%  { width: 60%; }
    100% { width: 100%; }
}

/* ============================================
   Custom Cursor
============================================ */
.cursor-dot,
.cursor-outline {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: opacity 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-secondary, #c9a66b);
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-secondary, #c9a66b);
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: transform 0.1s ease, opacity 0.3s ease;
}

body.cursor-hover .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
}

/* ============================================
   Footer Payments Override
============================================ */
.footer-payments {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-payments .payment-icon {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-payments .payment-icon:hover {
    color: var(--color-secondary, #c9a66b);
}

/* ============================================
   Lechi Pagination
============================================ */
.lechi-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.lechi-pagination a,
.lechi-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e5e5);
    color: var(--text-primary, #1a1a1a);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.lechi-pagination a:hover,
.lechi-pagination span.current {
    background: var(--color-primary, #1a1a1a);
    border-color: var(--color-primary, #1a1a1a);
    color: #fff;
}

/* ============================================
   Mobile Responsive - WooCommerce
============================================ */
@media (max-width: 991px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        z-index: 500;
        border-radius: 0;
        overflow-y: auto;
        transition: right 0.3s ease;
        padding-top: 20px;
    }

    .shop-sidebar.open {
        right: 0;
    }

    .close-sidebar {
        display: flex;
    }

    .filter-toggle-btn {
        display: flex;
    }

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

    .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }

    .cat-photo-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 220px 220px;
    }
    .cat-photo-item:nth-child(1) { grid-column: 1/3; grid-row: 1; }
    .cat-photo-item:nth-child(2) { grid-column: 1; grid-row: 2; }
    .cat-photo-item:nth-child(3) { grid-column: 2; grid-row: 2; }
    .cat-photo-item:nth-child(4) { grid-column: 1; grid-row: 3; }
    .cat-photo-item:nth-child(5) { grid-column: 2; grid-row: 3; }
}

@media (max-width: 560px) {
    .shop-products-grid,
    ul.products {
        grid-template-columns: 1fr;
    }

    .shop-banner {
        min-height: 280px;
    }

    .shop-banner-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .cat-photo-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
    }

    .cat-photo-item:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ============================================
   SINGLE PRODUCT PAGE - FULL STYLES
   صفحة المنتج الفردي - تصميم كامل RTL
============================================ */

/* ---- Breadcrumb ---- */
.single-product-breadcrumb {
    background: var(--bg-light, #f5f5f5);
    padding: 100px 0 16px;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--text-secondary, #6c757d);
    transition: color 0.3s;
}

.breadcrumb-nav a:hover {
    color: var(--color-secondary, #c9a66b);
}

.breadcrumb-nav .sep {
    font-size: 0.7rem;
    color: var(--color-gray-400, #ced4da);
}

.breadcrumb-nav .current {
    color: var(--color-primary, #1a1a1a);
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Main Product Section ---- */
.product-main-section {
    padding: 48px 0 60px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* =============================================
   Gallery Column
============================================= */
.product-gallery-col {
    position: sticky;
    top: 100px;
}

.product-gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-light, #f5f5f5);
    aspect-ratio: 1;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.product-main-image:hover img {
    transform: scale(1.04);
}

/* Badges on single product */
.product-single-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.product-single-badges .badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.3px;
}

.badge-sale   { background: #e53935; color: #fff; }
.badge-new    { background: var(--color-secondary, #c9a66b); color: #fff; }
.badge-hot    { background: #ff6f00; color: #fff; }
.badge-custom { background: var(--color-primary, #1a1a1a); color: #fff; }

/* Zoom button */
.img-zoom-btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    color: var(--color-primary, #1a1a1a);
    font-size: 0.9rem;
    transition: all 0.3s;
    z-index: 3;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.img-zoom-btn:hover {
    background: var(--color-secondary, #c9a66b);
    color: #fff;
    transform: scale(1.1);
}

/* Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.thumb-item:hover {
    border-color: var(--color-secondary, #c9a66b);
    transform: translateY(-2px);
}

.thumb-item.active {
    border-color: var(--color-primary, #1a1a1a);
    box-shadow: 0 0 0 2px var(--color-primary, #1a1a1a);
}

/* =============================================
   Info Column
============================================= */
.product-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Category link */
.product-single-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary, #c9a66b);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.product-single-cat:hover { color: var(--color-primary, #1a1a1a); }

/* Product title */
.product-single-title {
    font-family: var(--font-secondary, 'Playfair Display', serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary, #1a1a1a);
    margin: 0;
}

/* Rating row */
.product-single-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.product-single-rating .stars {
    display: flex;
    gap: 3px;
    color: #ffc107;
    font-size: 1rem;
}

.product-single-rating .rating-val {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary, #1a1a1a);
}

.product-single-rating .rating-count {
    color: var(--text-secondary, #6c757d);
    font-size: 0.875rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s;
}

.product-single-rating .rating-count:hover {
    text-decoration-color: var(--color-secondary, #c9a66b);
    color: var(--color-secondary, #c9a66b);
}

.product-single-rating .product-sku {
    font-size: 0.8rem;
    color: var(--text-muted, #999);
    margin-right: auto;
}

/* Price */
.product-single-price {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--border-color, #e5e5e5);
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

.product-single-price .woocommerce-Price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary, #1a1a1a);
    font-family: 'Cairo', sans-serif;
}

.product-single-price del .woocommerce-Price-amount {
    font-size: 1.3rem;
    color: var(--text-muted, #999);
    font-weight: 500;
}

.product-single-price ins {
    text-decoration: none;
}

.product-single-price ins .woocommerce-Price-amount {
    color: #e53935;
}

.saving-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e53935;
}

/* Short description */
.product-short-desc {
    color: var(--text-secondary, #6c757d);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Quick features */
.product-quick-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: var(--bg-cream, #faf8f5);
    border-radius: 10px;
    border: 1px solid var(--border-color, #e5e5e5);
}

.quick-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
}

.quick-feature i {
    color: var(--color-secondary, #c9a66b);
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Stock */
.product-stock-status .stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
}

.product-stock-status .stock.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.product-stock-status .stock.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.product-stock-status .stock em {
    font-style: normal;
    font-weight: 400;
    font-size: 0.82rem;
    opacity: 0.8;
}

/* Options */
.product-option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.option-label .selected-val {
    font-weight: 400;
    color: var(--color-secondary, #c9a66b);
}

.color-option-list,
.size-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-option-btn,
.size-option-btn {
    padding: 6px 16px;
    border-radius: 6px;
    border: 2px solid var(--border-color, #e5e5e5);
    background: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.25s;
    color: var(--text-secondary, #6c757d);
}

.color-option-btn:hover,
.size-option-btn:hover {
    border-color: var(--color-secondary, #c9a66b);
    color: var(--color-secondary, #c9a66b);
}

.color-option-btn.active,
.size-option-btn.active {
    border-color: var(--color-primary, #1a1a1a);
    background: var(--color-primary, #1a1a1a);
    color: #fff;
}

/* Cart Actions */
.product-cart-actions {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

/* Quantity control */
.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color, #e5e5e5);
    border-radius: 10px;
    overflow: hidden;
    height: 54px;
    min-width: 130px;
    background: #fff;
    flex-shrink: 0;
}

.qty-btn {
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-secondary, #6c757d);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-light, #f5f5f5);
}

.qty-btn:hover {
    background: var(--color-secondary, #c9a66b);
    color: #fff;
}

.qty-input {
    width: 46px;
    height: 100%;
    text-align: center;
    border: none;
    outline: none;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary, #1a1a1a);
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to cart main button */
.btn-add-to-cart-main {
    flex: 1;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--color-primary, #1a1a1a);
    color: #fff;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--color-primary, #1a1a1a);
    letter-spacing: 0.3px;
}

.btn-add-to-cart-main:hover {
    background: var(--color-secondary, #c9a66b);
    border-color: var(--color-secondary, #c9a66b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,166,107,0.35);
}

.btn-add-to-cart-main.loading {
    opacity: 0.75;
    cursor: wait;
}

.btn-add-to-cart-main.added {
    background: #2e7d32;
    border-color: #2e7d32;
}

/* Wishlist button */
.btn-wishlist-main {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color, #e5e5e5);
    border-radius: 10px;
    color: var(--text-secondary, #6c757d);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    background: #fff;
}

.btn-wishlist-main:hover,
.btn-wishlist-main.wishlisted {
    border-color: #e53935;
    color: #e53935;
    background: #ffebee;
}

/* Buy now button */
.btn-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    background: var(--color-secondary, #c9a66b);
    color: #fff;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
    text-align: center;
}

.btn-buy-now:hover {
    background: var(--color-accent, #8b7355);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,115,85,0.35);
    color: #fff;
}

/* Out of stock */
.out-of-stock-actions .btn-notify-stock {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed var(--border-color, #e5e5e5);
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary, #6c757d);
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
}

.out-of-stock-actions .btn-notify-stock:hover {
    border-color: var(--color-secondary, #c9a66b);
    color: var(--color-secondary, #c9a66b);
}

/* Sales progress bar */
.product-sales-bar {
    padding: 14px 16px;
    background: #fffbf2;
    border: 1px solid #ffe0b2;
    border-radius: 10px;
}

.sales-bar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e65100;
}

.sales-bar-info i { color: #ff6f00; margin-left: 4px; }

.sales-progress {
    height: 6px;
    background: #ffe0b2;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.sales-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6f00, #ffa000);
    border-radius: 3px;
    transition: width 1s ease;
}

.sales-note {
    font-size: 0.8rem;
    color: #e65100;
    margin: 0;
}

/* Meta info */
.product-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.meta-label {
    color: var(--text-secondary, #6c757d);
    min-width: 90px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-label i { color: var(--color-secondary, #c9a66b); width: 16px; }

.meta-val {
    color: var(--text-primary, #1a1a1a);
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag-link {
    padding: 2px 10px;
    background: var(--bg-light, #f5f5f5);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary, #6c757d);
    transition: all 0.2s;
}

.tag-link:hover {
    background: var(--color-secondary, #c9a66b);
    color: #fff;
}

/* Social Share */
.product-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-links {
    display: flex;
    gap: 8px;
}

.share-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid var(--border-color, #e5e5e5);
    color: var(--text-secondary, #6c757d);
}

.share-links a:hover { transform: translateY(-3px); color: #fff; }
.share-fb:hover { background: #1877f2; border-color: #1877f2; }
.share-wa:hover { background: #25d366; border-color: #25d366; }
.share-tw:hover { background: #1da1f2; border-color: #1da1f2; }
.share-pi:hover { background: #e60023; border-color: #e60023; }

/* variable product add-to-cart WC override */
.variable-actions .woocommerce-variation-add-to-cart {
    display: flex;
    gap: 12px;
    align-items: center;
}

.variable-actions .single_add_to_cart_button {
    flex: 1;
}

/* =============================================
   Product Tabs Section
============================================= */
.product-tabs-section {
    padding: 0 0 60px;
}

.product-tabs-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e5e5e5);
    background: #fff;
}

.product-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color, #e5e5e5);
    background: var(--bg-light, #f5f5f5);
    padding: 0 8px;
    gap: 4px;
    flex-wrap: wrap;
}

.product-tabs-nav .tab-item {
    cursor: pointer;
}

.product-tabs-nav .tab-item button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary, #6c757d);
    background: transparent;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    white-space: nowrap;
}

.product-tabs-nav .tab-item:hover button {
    color: var(--color-primary, #1a1a1a);
}

.product-tabs-nav .tab-item.active button {
    color: var(--color-primary, #1a1a1a);
    border-bottom-color: var(--color-secondary, #c9a66b);
    background: #fff;
    border-radius: 4px 4px 0 0;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--color-secondary, #c9a66b);
    color: #fff;
    border-radius: 11px;
    font-size: 0.75rem;
    font-weight: 700;
}

.tab-pane {
    display: none;
    padding: 32px 40px;
    animation: fadeInTab 0.3s ease;
}

.tab-pane.active { display: block; }

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Description tab */
.product-description {
    color: var(--text-secondary, #6c757d);
    line-height: 1.9;
    font-size: 0.95rem;
}

.product-description h2,
.product-description h3,
.product-description h4 {
    color: var(--color-primary, #1a1a1a);
    margin: 24px 0 12px;
    font-weight: 700;
}

.product-description ul,
.product-description ol {
    padding-right: 24px;
    margin-bottom: 16px;
}

.product-description li { margin-bottom: 6px; }

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

/* Specs table */
.product-specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs-table table th,
.product-specs-table table td {
    padding: 14px 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
    text-align: right;
}

.product-specs-table table th {
    width: 35%;
    background: var(--bg-light, #f5f5f5);
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
}

.product-specs-table table td {
    color: var(--text-secondary, #6c757d);
}

.product-specs-table table tr:last-child th,
.product-specs-table table tr:last-child td {
    border-bottom: none;
}

.product-specs-table table td a {
    color: var(--color-secondary, #c9a66b);
    text-decoration: underline;
}

/* Reviews tab WC override */
#tab-reviews #comments {
    padding: 0;
}

#tab-reviews #comments ol.commentlist {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

#tab-reviews #comments ol.commentlist li {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color, #e5e5e5);
}

#tab-reviews #comments ol.commentlist li img.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

#tab-reviews #comments ol.commentlist li .comment-text {
    flex: 1;
    border: none;
    padding: 0;
    margin: 0;
}

#tab-reviews .review_form_wrapper h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

#tab-reviews .comment-form-rating {
    margin-bottom: 16px;
}

/* =============================================
   Related Products Section
============================================= */
.related-products-section {
    padding: 60px 0;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* =============================================
   Lightbox
============================================= */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.product-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 80vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    left: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

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

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

/* =============================================
   Responsive - Single Product
============================================= */
@media (max-width: 1024px) {
    .product-detail-grid {
        gap: 40px;
    }

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

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

    .product-gallery-col {
        position: static;
    }

    .product-tabs-nav .tab-item button {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .tab-pane {
        padding: 24px 20px;
    }

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

    .single-product-breadcrumb {
        padding-top: 90px;
    }

    .product-cart-actions {
        flex-wrap: wrap;
    }

    .qty-control { min-width: 120px; }

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

    .product-main-section {
        padding: 32px 0 40px;
    }
}

@media (max-width: 540px) {
    .product-single-title {
        font-size: 1.5rem;
    }

    .thumb-item {
        width: 64px;
        height: 64px;
    }

    .product-single-price .woocommerce-Price-amount {
        font-size: 1.6rem;
    }

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

    .lightbox-content img {
        max-width: 95vw;
    }

    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .lightbox-prev { right: calc(50% + 30px); }
    .lightbox-next { left: calc(50% + 30px); }
}

/* ============================================
   WooCommerce Fixes v3.0
============================================ */

/* Fix: Single product breadcrumb with fixed header */
.single-product-breadcrumb {
    padding-top: 100px !important;
}

/* Fix: Shop banner top spacing */
.shop-banner {
    margin-top: 0;
    padding-top: 80px;
}

/* Fix: Product detail grid layout */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Fix: Product main image */
.product-main-image {
    position: relative;
    background-color: var(--bg-cream, #faf8f5);
    border-radius: 12px;
    overflow: hidden;
}

.product-main-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Fix: Thumbnails row */
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}

.thumb-item.active,
.thumb-item:hover {
    border-color: var(--color-secondary, #c9a66b);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix: Zoom button */
.img-zoom-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-primary, #1a1a1a);
    cursor: pointer;
    transition: background 0.2s;
    z-index: 3;
}

.img-zoom-btn:hover {
    background-color: var(--color-secondary, #c9a66b);
    color: white;
}

/* Fix: Product info column */
.product-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Fix: Product category link */
.product-single-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary, #c9a66b);
    text-decoration: none;
}

/* Fix: Product title */
.product-single-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary, #1a1a1a);
    margin: 0;
}

/* Fix: Product rating row */
.product-single-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-single-rating .stars i {
    color: #f0a500;
    font-size: 14px;
}

.product-single-rating .rating-val {
    font-weight: 700;
    font-size: 0.95rem;
}

.product-single-rating .rating-count {
    color: var(--text-secondary, #6c757d);
    font-size: 0.875rem;
}

.product-single-rating .product-sku {
    color: var(--text-secondary, #6c757d);
    font-size: 0.8rem;
    margin-right: auto;
}

/* Fix: Product price */
.product-single-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-single-price .woocommerce-Price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary, #c9a66b);
}

.product-single-price del .woocommerce-Price-amount {
    font-size: 1.2rem;
    color: #aaa;
    font-weight: 400;
}

.saving-badge {
    background-color: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Fix: Quick features */
.product-quick-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background-color: var(--bg-light, #f5f5f5);
    border-radius: 10px;
}

.quick-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
}

.quick-feature i {
    color: var(--color-secondary, #c9a66b);
    width: 18px;
}

/* Fix: Stock status */
.product-stock-status .stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.stock.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.stock.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

/* Fix: Color & Size options */
.product-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary, #1a1a1a);
}

.selected-val {
    color: var(--color-secondary, #c9a66b);
}

.color-option-list,
.size-option-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option-btn,
.size-option-btn {
    padding: 6px 16px;
    border: 1.5px solid var(--border-color, #e5e5e5);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    font-family: var(--font-arabic, 'Cairo', sans-serif);
}

.color-option-btn.active,
.size-option-btn.active,
.color-option-btn:hover,
.size-option-btn:hover {
    border-color: var(--color-secondary, #c9a66b);
    color: var(--color-secondary, #c9a66b);
}

/* Fix: Cart actions */
.product-cart-actions {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    overflow: hidden;
    min-width: 130px;
}

.qty-btn {
    width: 40px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-primary, #1a1a1a);
    cursor: pointer;
    background: none;
    border: none;
    transition: background 0.2s;
}

.qty-btn:hover {
    background-color: var(--bg-light, #f5f5f5);
}

.qty-input {
    flex: 1;
    text-align: center;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    width: 50px;
    padding: 0;
}

.btn-add-to-cart-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--color-primary, #1a1a1a);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-add-to-cart-main:hover,
.btn-add-to-cart-main.added {
    background-color: var(--color-secondary, #c9a66b);
}

.btn-add-to-cart-main.loading {
    opacity: 0.7;
}

.btn-wishlist-main {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    font-size: 18px;
    color: var(--color-primary, #1a1a1a);
    cursor: pointer;
    background: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-wishlist-main:hover,
.btn-wishlist-main.active {
    background-color: #fff5f5;
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Fix: Buy Now button */
.btn-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--color-secondary, #c9a66b);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
    text-align: center;
}

.btn-buy-now:hover {
    background-color: var(--color-primary, #1a1a1a);
    color: white;
}

/* Fix: Social share */
.product-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color, #e5e5e5);
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
    white-space: nowrap;
}

.share-links {
    display: flex;
    gap: 8px;
}

.share-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.share-links a:hover { opacity: 0.85; }
.share-fb { background-color: #3b5998; }
.share-wa { background-color: #25d366; }
.share-tw { background-color: #1da1f2; }
.share-pi { background-color: #e60023; }

/* Fix: Product tabs */
.product-tabs-section {
    background-color: var(--color-white, #fff);
    border-top: 1px solid var(--border-color, #e5e5e5);
}

.product-tabs-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.product-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color, #e5e5e5);
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.tab-item {
    margin: 0;
}

.tab-item button {
    padding: 16px 28px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary, #6c757d);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-item.active button,
.tab-item button:hover {
    color: var(--color-primary, #1a1a1a);
    border-bottom-color: var(--color-secondary, #c9a66b);
}

.tab-count {
    background-color: var(--color-secondary, #c9a66b);
    color: white;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.product-tabs-content {
    padding: 40px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Fix: Related products grid */
.related-products-section {
    border-top: 1px solid var(--border-color, #e5e5e5);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

@media (max-width: 600px) {
    .related-products-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Fix: Lightbox */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.lightbox-prev { right: calc(100% + 16px); }
.lightbox-next { left: calc(100% + 16px); }

/* Fix: Product meta info */
.product-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--bg-light, #f5f5f5);
}

.meta-label {
    color: var(--text-secondary, #6c757d);
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-val {
    color: var(--color-primary, #1a1a1a);
    font-weight: 500;
}

.tag-link {
    display: inline-block;
    padding: 2px 10px;
    background: var(--bg-light, #f5f5f5);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary, #6c757d);
    margin: 2px;
    text-decoration: none;
}

.tag-link:hover {
    background: var(--color-secondary, #c9a66b);
    color: white;
}

/* Fix: sales bar */
.product-sales-bar {
    background: var(--bg-light, #f5f5f5);
    border-radius: 10px;
    padding: 14px 16px;
}

.sales-bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.sales-bar-info i {
    color: #e74c3c;
}

.bar-pct {
    font-weight: 700;
    color: var(--color-primary, #1a1a1a);
}

.sales-progress {
    height: 6px;
    background: var(--border-color, #e5e5e5);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.sales-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--color-secondary, #c9a66b), #e74c3c);
    border-radius: 3px;
}

.sales-note {
    font-size: 0.75rem;
    color: var(--text-secondary, #6c757d);
    margin: 0;
}

/* Fix: variable product WC form inside single product */
.variable-actions .woocommerce-variation-add-to-cart {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.variable-actions table.variations {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.variable-actions table.variations td,
.variable-actions table.variations th {
    padding: 8px 0;
    text-align: right;
}

.variable-actions table.variations select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
}

.variable-actions table.variations select:focus {
    border-color: var(--color-secondary, #c9a66b);
}

/* Fix: out of stock actions */
.out-of-stock-actions .btn-notify-stock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background-color: var(--bg-light, #f5f5f5);
    color: var(--color-primary, #1a1a1a);
    border: 1.5px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    font-family: var(--font-arabic, 'Cairo', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.out-of-stock-actions .btn-notify-stock:hover {
    background-color: var(--color-primary, #1a1a1a);
    color: white;
    border-color: var(--color-primary, #1a1a1a);
}

