/*
 * Furgan Theme — Main Stylesheet
 * Built for WordPress + WooCommerce
 */

/* ═══════════════════════════════════════════════
   0. CSS Custom Properties
   ═══════════════════════════════════════════════ */
:root {
    --furgan-accent:      #85B839;
    --furgan-secondary:   #333333;
    --furgan-body:        #868686;
    --furgan-border:      #e5e5e5;
    --furgan-bg:          #ffffff;
    --furgan-bg-light:    #f8f8f8;
    --furgan-dark:        #1a1a1a;
    --furgan-font:        'Josefin Sans', sans-serif;
    --furgan-transition:  0.3s ease;
    --furgan-radius:      3px;
    --furgan-shadow:      0 4px 20px rgba(0,0,0,0.08);
}

/* ═══════════════════════════════════════════════
   1. Reset & Base
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--furgan-font);
    font-size: 14px;
    line-height: 24px;
    color: var(--furgan-body);
    background: var(--furgan-bg);
    overflow-x: hidden;
}

a {
    color: var(--furgan-secondary);
    text-decoration: none;
    transition: color var(--furgan-transition);
}
a:hover { color: var(--furgan-accent); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--furgan-font);
    font-weight: 700;
    color: var(--furgan-secondary);
    line-height: 1.3;
    margin-top: 0;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin-bottom: 20px; }
img { max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

/* ═══════════════════════════════════════════════
   2. Preloader
   ═══════════════════════════════════════════════ */
/* Preloader — also hidden via noscript fallback */
.furgan-preloader {
    position: fixed; inset: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.furgan-preloader.done { opacity: 0; visibility: hidden; }
.preloader-spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--furgan-border);
    border-top-color: var(--furgan-accent);
    border-radius: 50%;
    animation: furgan-spin 0.8s linear infinite;
}
@keyframes furgan-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   3. Buttons
   ═══════════════════════════════════════════════ */
.button,
button.button,
input[type="submit"],
.btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--furgan-accent);
    color: #fff;
    font-family: var(--furgan-font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--furgan-accent);
    border-radius: var(--furgan-radius);
    cursor: pointer;
    transition: all var(--furgan-transition);
    line-height: 1.5;
}
.button:hover,
button.button:hover,
input[type="submit"]:hover {
    background: transparent;
    color: var(--furgan-accent);
}
.btn-outline {
    background: transparent;
    color: var(--furgan-accent);
    border-color: var(--furgan-accent);
}
.btn-outline:hover {
    background: var(--furgan-accent);
    color: #fff;
}
.btn-dark {
    background: var(--furgan-secondary);
    border-color: var(--furgan-secondary);
    color: #fff;
}
.btn-dark:hover {
    background: transparent;
    color: var(--furgan-secondary);
}

/* ═══════════════════════════════════════════════
   4. Forms
   ═══════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    height: 44px;
    padding: 8px 15px;
    font-family: var(--furgan-font);
    font-size: 14px;
    color: var(--furgan-secondary);
    background: var(--furgan-bg);
    border: 1px solid var(--furgan-border);
    border-radius: var(--furgan-radius);
    outline: none;
    transition: border-color var(--furgan-transition);
    -webkit-appearance: none;
}
textarea { height: auto; min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--furgan-accent); }

/* ═══════════════════════════════════════════════
   5. Header
   ═══════════════════════════════════════════════ */
#header {
    position: relative;
    z-index: 1000;
    background: #fff;
}
#header.header-sticky .header-wrap-stick {
    position: sticky;
    top: 0;
    z-index: 1000;
}
#header.header-transparent {
    position: absolute;
    width: 100%;
    background: transparent;
}
#header.header-dark { background: #1a1a1a; }
#header.header-dark a,
#header.header-dark .furgan-nav > li > a,
#header.header-dark .site-title-text { color: #fff; }

/* Top Bar */
.header-top {
    background: var(--furgan-dark);
    padding: 8px 0;
    font-size: 12px;
}
.header-top-inner { display: flex; justify-content: space-between; align-items: center; }
.header-top-links { display: flex; gap: 20px; }
.header-top-links a { color: rgba(255,255,255,0.7); font-size: 12px; }
.header-top-links a:hover { color: var(--furgan-accent); }

/* Header Middle */
.header-middle { padding: 20px 0; }
.header-middle-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.header-logo-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}
.header-logo img, .header-logo .site-title-text {
    height: 50px;
    width: auto;
    font-size: 24px;
    font-weight: 700;
    color: var(--furgan-secondary);
}

/* Main Nav */
.furgan-nav { display: flex; list-style: none; gap: 0; }
.furgan-nav > li > a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--furgan-secondary);
    transition: color var(--furgan-transition);
    white-space: nowrap;
}
.furgan-nav > li > a:hover,
.furgan-nav > li.current-menu-item > a { color: var(--furgan-accent); }

/* Dropdown */
.furgan-nav li { position: relative; }
.furgan-nav .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: var(--furgan-shadow);
    border-top: 2px solid var(--furgan-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 999;
    list-style: none;
    padding: 10px 0;
}
.furgan-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.furgan-nav .sub-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--furgan-secondary);
    transition: all var(--furgan-transition);
}
.furgan-nav .sub-menu li a:hover {
    color: var(--furgan-accent);
    padding-left: 25px;
}

/* Toggle submenu arrow */
.toggle-submenu {
    display: none;
    cursor: pointer;
}

/* Header Controls */
.header-control { display: flex; align-items: center; }
.header-control-list { display: flex; align-items: center; gap: 15px; list-style: none; }
.header-control-item a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--furgan-secondary);
    font-size: 18px;
    position: relative;
}
.header-control-item a:hover { color: var(--furgan-accent); }

/* Cart Count Badge */
.cart-count-icon, .count-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: var(--furgan-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 0 4px;
}

/* Mini Cart Dropdown */
.header-mini-cart { position: relative; }
.cart-icon-link { display: flex; align-items: center; }
.mini-cart-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 15px);
    width: 320px;
    background: #fff;
    box-shadow: var(--furgan-shadow);
    border-top: 2px solid var(--furgan-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 999;
}
.header-mini-cart:hover .mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mini-cart-inner { padding: 20px; }

/* Search */
.block-search { position: relative; }
.search-form-wrap {
    position: absolute;
    right: 0;
    top: calc(100% + 15px);
    width: 300px;
    background: #fff;
    box-shadow: var(--furgan-shadow);
    padding: 15px;
    display: none;
    z-index: 999;
}
.search-form-wrap.open { display: block; }
.search-form { display: flex; gap: 5px; }
.search-form input[type="search"] { flex: 1; }
.search-form button { padding: 0 15px; }

/* ═══════════════════════════════════════════════
   6. Mobile Menu
   ═══════════════════════════════════════════════ */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: all var(--furgan-transition);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}
.mobile-menu-overlay.active { display: block; }

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 5px 0 30px rgba(0,0,0,0.15);
}
.mobile-menu-sidebar.open { left: 0; }
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--furgan-border);
}
.mobile-menu-close { background: none; border: none; font-size: 20px; cursor: pointer; }
.mobile-menu-inner { padding: 20px 0; }
.furgan-mobile-nav { list-style: none; }
.furgan-mobile-nav li a {
    display: block;
    padding: 10px 20px;
    color: var(--furgan-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--furgan-border);
}

/* ═══════════════════════════════════════════════
   7. Page Banner / Breadcrumbs
   ═══════════════════════════════════════════════ */
.furgan-page-banner {
    background: var(--furgan-bg-light);
    padding: 40px 0;
    border-bottom: 1px solid var(--furgan-border);
    margin-bottom: 40px;
}
.furgan-page-banner .page-title {
    font-size: 28px;
    margin-bottom: 10px;
}
.furgan-breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    font-size: 13px;
}
.furgan-breadcrumb li { display: flex; align-items: center; gap: 5px; }
.furgan-breadcrumb li:not(:last-child)::after { content: '/'; color: var(--furgan-border); }
.furgan-breadcrumb a { color: var(--furgan-body); }
.furgan-breadcrumb a:hover { color: var(--furgan-accent); }

/* ═══════════════════════════════════════════════
   8. Hero Slider
   ═══════════════════════════════════════════════ */
.furgan-hero-slider { overflow: hidden; }
.hero-slider-wrap { position: relative; }
.hero-slide {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero-slide-default {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    color: #fff;
}
.hero-subtitle {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--furgan-accent);
    margin-bottom: 15px;
    font-weight: 600;
}
.hero-title {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 30px;
}
.hero-btn { padding: 14px 40px; font-size: 14px; }

/* ═══════════════════════════════════════════════
   9. Section Styles
   ═══════════════════════════════════════════════ */
.section-products,
.furgan-featured-products,
.furgan-new-arrivals { padding: 60px 0; }
.section-light { background: var(--furgan-bg-light); }

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}
.section-title {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--furgan-accent);
}
.view-all {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--furgan-secondary);
}
.view-all:hover { color: var(--furgan-accent); }

/* Category Banners */
.furgan-categories-section { padding: 60px 0; }
.category-banner-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: var(--furgan-radius);
}
.category-img-wrap {
    overflow: hidden;
    border-radius: var(--furgan-radius);
}
.category-img-wrap img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-banner-item:hover .category-img-wrap img { transform: scale(1.05); }
.category-info { padding: 15px 0 5px; }
.category-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.category-count { font-size: 12px; color: var(--furgan-body); }

/* ═══════════════════════════════════════════════
   10. Product Card
   ═══════════════════════════════════════════════ */
.furgan-product-card {
    position: relative;
    margin-bottom: 30px;
}
.product-inner {
    background: #fff;
    border: 1px solid transparent;
    transition: all var(--furgan-transition);
}
.product-inner:hover { border-color: var(--furgan-border); box-shadow: var(--furgan-shadow); }

/* Product Thumb */
.product-thumb {
    position: relative;
    overflow: hidden;
    background: var(--furgan-bg-light);
}
.product-img-link { display: block; }
.product-thumb img {
    width: 100%;
    aspect-ratio: 9/11;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.5s ease;
}
.product-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.product-thumb:hover .product-hover-img { opacity: 1; }
.product-thumb:hover img:not(.product-hover-img) { opacity: 0; }

/* Badges */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    letter-spacing: 0.5px;
}
.badge-sale { background: #e74c3c; color: #fff; }
.badge-hot  { background: var(--furgan-accent); color: #fff; }
.badge-new  { background: var(--furgan-secondary); color: #fff; }

/* Product Actions */
.product-actions {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--furgan-transition);
}
.product-thumb:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    color: var(--furgan-secondary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 14px;
    transition: all var(--furgan-transition);
}
.action-btn:hover {
    background: var(--furgan-accent);
    color: #fff;
    box-shadow: none;
}

/* Product Info */
.product-info {
    padding: 15px;
}
.product-categories {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--furgan-body);
    margin-bottom: 6px;
}
.product-categories a { color: var(--furgan-body); }
.product-categories a:hover { color: var(--furgan-accent); }

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.product-title a { color: var(--furgan-secondary); }
.product-title a:hover { color: var(--furgan-accent); }

.product-rating { margin-bottom: 8px; }
.star-rating { color: #f5a623; font-size: 12px; }

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--furgan-secondary);
    margin-bottom: 12px;
}
.product-price del { color: var(--furgan-body); font-weight: 400; font-size: 13px; margin-right: 5px; }
.product-price ins { text-decoration: none; color: #e74c3c; }

.product-add-to-cart .button {
    width: 100%;
    text-align: center;
    padding: 9px 15px;
    font-size: 12px;
}

/* ═══════════════════════════════════════════════
   11. Shop Page
   ═══════════════════════════════════════════════ */
.furgan-shop-page { padding: 0 0 60px; }

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--furgan-border);
    margin-bottom: 30px;
}
.shop-toolbar-right { display: flex; align-items: center; gap: 15px; }
.view-toggle { display: flex; gap: 5px; }
.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border: 1px solid var(--furgan-border);
    color: var(--furgan-body);
    transition: all var(--furgan-transition);
    font-size: 14px;
}
.view-btn.active, .view-btn:hover {
    background: var(--furgan-accent);
    border-color: var(--furgan-accent);
    color: #fff;
}

/* Ordering */
.woocommerce-ordering select {
    height: 36px;
    padding: 5px 30px 5px 10px;
    width: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%23868686'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

/* Products Grid */
.furgan-products-grid .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Pagination */
.furgan-pagination .page-numbers,
.woocommerce-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    list-style: none;
    margin-top: 40px;
}
.furgan-pagination .page-numbers li a,
.furgan-pagination .page-numbers li span,
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--furgan-border);
    color: var(--furgan-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--furgan-transition);
}
.woocommerce-pagination .page-numbers li a:hover,
.woocommerce-pagination .page-numbers li .current,
.furgan-pagination .page-numbers li a:hover,
.furgan-pagination .page-numbers li .current {
    background: var(--furgan-accent);
    border-color: var(--furgan-accent);
    color: #fff;
}

/* Shop Sidebar */
.shop-sidebar .widget {
    margin-bottom: 35px;
}
.shop-sidebar .widget-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--furgan-border);
    position: relative;
}
.shop-sidebar .widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--furgan-accent);
}

/* ═══════════════════════════════════════════════
   12. Single Product
   ═══════════════════════════════════════════════ */
.furgan-single-product { padding: 40px 0 60px; }
.product-detail-wrap { }

/* Gallery */
.furgan-product-gallery { }
.product-main-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--furgan-border);
}
.product-main-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    cursor: zoom-in;
}
.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.gallery-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--furgan-transition);
    overflow: hidden;
}
.gallery-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--furgan-accent); }

/* Product Summary */
.entry-summary { padding-left: 30px; }
.entry-summary .product_title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}
.entry-summary .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--furgan-secondary);
    margin-bottom: 20px;
    display: block;
}
.entry-summary .woocommerce-product-rating { margin-bottom: 20px; }
.entry-summary .woocommerce-product-details__short-description {
    color: var(--furgan-body);
    line-height: 1.8;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--furgan-border);
}
.entry-summary .quantity { display: flex; align-items: center; gap: 10px; }
.entry-summary .qty {
    width: 60px;
    height: 44px;
    text-align: center;
}
.entry-summary .single_add_to_cart_button {
    padding: 12px 35px;
    font-size: 13px;
}
.entry-summary .product_meta {
    font-size: 13px;
    color: var(--furgan-body);
    margin-top: 20px;
}
.entry-summary .product_meta span { display: block; margin-bottom: 5px; }
.entry-summary .product_meta a { color: var(--furgan-body); }
.entry-summary .product_meta a:hover { color: var(--furgan-accent); }

/* Share */
.product-share {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border: 1px solid var(--furgan-border);
    border-radius: 50%;
    color: var(--furgan-secondary);
    font-size: 13px;
    transition: all var(--furgan-transition);
}
.share-link:hover {
    background: var(--furgan-accent);
    border-color: var(--furgan-accent);
    color: #fff;
}

/* Product Tabs */
.woocommerce-tabs { margin-top: 50px; padding-top: 50px; border-top: 1px solid var(--furgan-border); }
.woocommerce-tabs .tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--furgan-border);
    list-style: none;
    margin-bottom: 30px;
}
.woocommerce-tabs .tabs li a {
    display: block;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--furgan-body);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--furgan-transition);
}
.woocommerce-tabs .tabs li.active a {
    color: var(--furgan-accent);
    border-bottom-color: var(--furgan-accent);
}

/* Related Products */
.related.products { margin-top: 60px; }
.related.products h2 {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
}

/* ═══════════════════════════════════════════════
   13. Cart Page
   ═══════════════════════════════════════════════ */
.furgan-cart-page { padding: 0 0 60px; }
.shop_table { width: 100%; border-collapse: collapse; }
.shop_table thead th {
    text-align: left;
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--furgan-bg-light);
    border-bottom: 2px solid var(--furgan-border);
}
.shop_table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
    border-bottom: 1px solid var(--furgan-border);
}
.product-thumbnail img { width: 80px; height: 80px; object-fit: cover; }
.product-remove a {
    color: var(--furgan-body);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--furgan-border);
    transition: all var(--furgan-transition);
}
.product-remove a:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.quantity input[type="number"] {
    width: 70px;
    text-align: center;
    -moz-appearance: textfield;
}
.quantity input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 20px 15px; }
.coupon { display: flex; align-items: center; gap: 10px; }
.coupon input { width: 200px; }

/* Cart Totals */
.cart_totals, .woocommerce-shipping-calculator { padding: 25px; background: var(--furgan-bg-light); }
.cart_totals h2, .woocommerce-shipping-calculator h2 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--furgan-border);
}
.cart_totals table { width: 100%; }
.cart_totals table th { padding: 10px 0; font-weight: 600; width: 45%; }
.cart_totals table td { padding: 10px 0; text-align: right; }
.cart_totals .order-total th,
.cart_totals .order-total td { font-size: 18px; font-weight: 700; padding-top: 15px; }
.checkout-button { margin-top: 20px; display: block; text-align: center; }

/* ═══════════════════════════════════════════════
   14. Checkout Page
   ═══════════════════════════════════════════════ */
.furgan-checkout-page { padding: 0 0 60px; }

/* Steps */
.checkout-steps { margin-bottom: 40px; }
.steps-list {
    display: flex;
    justify-content: center;
    gap: 0;
    list-style: none;
}
.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--furgan-body);
    background: var(--furgan-bg-light);
    border-top: 2px solid var(--furgan-border);
    position: relative;
}
.step.active { color: var(--furgan-accent); border-top-color: var(--furgan-accent); }
.step.completed { color: var(--furgan-secondary); }
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--furgan-border);
    font-size: 12px;
}
.step.active .step-num { background: var(--furgan-accent); color: #fff; }
.step.completed .step-num { background: var(--furgan-secondary); color: #fff; }

/* WC Form Fields */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--furgan-border);
}
.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row { margin-bottom: 15px; }
.woocommerce-billing-fields label,
.woocommerce-shipping-fields label { font-weight: 600; font-size: 13px; margin-bottom: 5px; display: block; }

/* Order Review */
.checkout-order-review { background: var(--furgan-bg-light); padding: 25px; }
.order-review-title { font-size: 18px; text-transform: uppercase; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--furgan-border); }
.woocommerce-checkout-review-order-table { width: 100%; }
.woocommerce-checkout-review-order-table thead th { padding: 10px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; border-bottom: 2px solid var(--furgan-border); }
.woocommerce-checkout-review-order-table tbody td { padding: 12px 0; border-bottom: 1px solid var(--furgan-border); font-size: 13px; }
.woocommerce-checkout-review-order-table tfoot tr { border-top: 1px solid var(--furgan-border); }
.woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout-review-order-table tfoot th { padding: 10px 0; font-weight: 600; }
.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td { font-size: 18px; font-weight: 700; }

/* Payment Methods */
.woocommerce-checkout-payment { margin-top: 25px; }
.payment_methods { list-style: none; padding: 0; }
.payment_methods li {
    padding: 12px 15px;
    background: #fff;
    border: 1px solid var(--furgan-border);
    margin-bottom: 8px;
    border-radius: var(--furgan-radius);
}
.payment_methods li label { cursor: pointer; font-weight: 600; }
.payment_box { padding: 10px 0 0 25px; font-size: 13px; }
.place-order { margin-top: 20px; }
#place_order { width: 100%; padding: 15px; font-size: 15px; }

/* ═══════════════════════════════════════════════
   15. Variation Attributes (dreaming-attribute.css integration)
   ═══════════════════════════════════════════════ */
.variations { display: block; border: none; margin-bottom: 0; width: 100%; }
.entry-summary .variations tr { display: block; margin-bottom: 12px; }
.variations .label {
    vertical-align: middle;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    padding: 0 10px 0 0;
    line-height: inherit;
    text-align: left;
    border: none;
    display: block;
    margin-bottom: 8px;
}
.variations td.label::after { content: ':'; }
.variations .value { padding: 0; text-align: left; border: none; display: block; }
.variations select { height: 40px; line-height: 40px; cursor: pointer; width: 160px; }
.variations select[data-attributetype="box_style"] { display: none !important; }
.variations .data-val[data-attributetype="box_style"] { display: inline-block; vertical-align: middle; }
.variations .data-val a.color {
    position: relative; display: inline-block; vertical-align: middle;
    min-width: 28px; height: 28px; line-height: 28px; border-radius: 50%;
    font-size: 10px; margin: 5px; text-transform: uppercase; text-align: center;
    cursor: pointer;
}
.variations .data-val a.color[style*="#ffffff"],
.variations .data-val a.color[style*="#FFFFFF"] {
    background-color: #f8f8f8 !important;
    border: 1px solid #e4e4e4;
}
.variations .data-val a.color:hover::before,
.variations .data-val a.color.active::before {
    content: '\f00c'; font-family: 'FontAwesome', sans-serif; color: #fff;
    display: flex; align-items: center; justify-content: center;
    position: absolute; inset: 0;
}
.variations .data-val a:not(.color) {
    display: inline-block; margin: 3px;
    border: 1px solid #a2a2a2; border-radius: 3px; padding: 5px 12px;
    font-weight: 500; transition: all var(--furgan-transition); cursor: pointer;
}
.variations .data-val a:not(.color):hover,
.variations .data-val a:not(.color).active {
    background-color: var(--furgan-accent);
    color: #fff; border-color: transparent;
}
.variations .reset_variations { margin-left: 10px; vertical-align: middle; font-size: 12px; }

/* ═══════════════════════════════════════════════
   16. Newsletter (Footer)
   ═══════════════════════════════════════════════ */
.section-footer-newsletter {
    padding: 50px 0;
    background: var(--furgan-bg-light);
    border-bottom: 1px solid var(--furgan-border);
}
.furgan-newsletter .newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.newsletter-wrap .title { font-size: 22px; margin-bottom: 5px; }
.newsletter-wrap .subtitle { color: var(--furgan-accent); font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.newsletter-form-wrap { flex: 1; min-width: 300px; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input {
    flex: 1;
    border-radius: var(--furgan-radius) 0 0 var(--furgan-radius);
    border-right: none;
}
.newsletter-form button, .newsletter-form .btn-submit {
    border-radius: 0 var(--furgan-radius) var(--furgan-radius) 0;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   17. Footer
   ═══════════════════════════════════════════════ */
#footer { background: var(--furgan-dark); color: rgba(255,255,255,0.7); }
#footer a { color: rgba(255,255,255,0.7); }
#footer a:hover { color: var(--furgan-accent); }
.footer-widgets { padding: 60px 0 40px; }
.footer-widgets .widget { margin-bottom: 0; }
.footer-widgets .widget-title {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-widgets p { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.8; }
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.copyright-text { font-size: 13px; margin: 0; }
.copyright-text a { color: var(--furgan-accent); }
.socials-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; justify-content: flex-end; }
.socials-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border-radius: 50%;
    font-size: 14px;
    transition: all var(--furgan-transition);
}
.socials-list a:hover {
    background: var(--furgan-accent);
    color: #fff;
}

/* ═══════════════════════════════════════════════
   18. Mobile Bottom Nav
   ═══════════════════════════════════════════════ */
.footer-device-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--furgan-border);
    z-index: 999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
.footer-device-mobile .wapper {
    display: flex;
    justify-content: space-around;
}
.footer-device-mobile-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 15px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--furgan-secondary);
    transition: color var(--furgan-transition);
}
.footer-device-mobile-item a:hover,
.footer-device-mobile-item.active a { color: var(--furgan-accent); }
.footer-device-mobile-item .icon { font-size: 20px; position: relative; }

/* ═══════════════════════════════════════════════
   19. Back to Top
   ═══════════════════════════════════════════════ */
.backtotop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px; height: 42px;
    background: var(--furgan-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: var(--furgan-radius);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--furgan-transition);
}
.backtotop.active {
    opacity: 1;
    visibility: visible;
}
.backtotop:hover {
    background: var(--furgan-accent);
    color: #fff;
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════
   20. WC Notices
   ═══════════════════════════════════════════════ */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--furgan-accent);
    background: #f0f8e8;
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
}
.woocommerce-error { border-left-color: #e74c3c; background: #fdf0f0; }
.woocommerce-info { border-left-color: #3498db; background: #eaf4fb; }

/* ═══════════════════════════════════════════════
   21. Quick View Modal
   ═══════════════════════════════════════════════ */
.furgan-quickview-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}
.furgan-quickview-overlay.open { display: flex; }
.furgan-quickview-modal {
    background: #fff;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}
.quickview-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    font-size: 22px; cursor: pointer;
    color: var(--furgan-secondary);
}

/* ═══════════════════════════════════════════════
   22. Responsive
   ═══════════════════════════════════════════════ */
@media ( max-width: 1199px ) {
    .furgan-products-grid .products { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 40px; }
}

@media ( max-width: 991px ) {
    .furgan-nav { display: none; }
    .furgan-products-grid .products { grid-template-columns: repeat(2, 1fr); }
    .entry-summary { padding-left: 0; margin-top: 30px; }
    .product-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .related.products ul.products { grid-template-columns: repeat(2, 1fr); }
    .header-top { display: none; }
    .box-header-nav { display: none; }
    .block-menu-bar { display: flex; }
}

@media ( max-width: 767px ) {
    .hero-slide { min-height: 400px; }
    .hero-title { font-size: 28px; }
    .footer-device-mobile { display: block; }
    #footer { padding-bottom: 70px; }
    .backtotop { bottom: 80px; right: 20px; }
    .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
    .newsletter-inner { flex-direction: column; }
    .newsletter-form-wrap { min-width: auto; width: 100%; }
    .checkout-steps .step { padding: 10px 15px; font-size: 11px; }
    .furgan-products-grid .products { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .socials-list { justify-content: flex-start; }
    .actions { flex-direction: column; align-items: flex-start; }
    .coupon { flex-wrap: wrap; }
    .coupon input { width: 100%; }
    .furgan-page-banner { padding: 25px 0; }
}

@media ( max-width: 480px ) {
    .furgan-products-grid .products { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-info { padding: 10px; }
    .product-title { font-size: 13px; }
}

/* ═══════════════════════════════════════════════
   23. WC Specific overrides
   ═══════════════════════════════════════════════ */
.woocommerce ul.products { list-style: none; padding: 0; }
.woocommerce ul.products li.product { margin-bottom: 30px; }
.woocommerce .star-rating { color: #f5a623; }
.woocommerce .price { color: var(--furgan-secondary); }
.woocommerce-loop-product__title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.woocommerce .onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 2;
    min-height: auto;
    min-width: auto;
    width: auto;
}

/* ── Preloader safety fallback (no-JS or very slow load) ── */
.furgan-preloader.done,
.furgan-preloader[style*="display: none"],
.furgan-preloader[style*="display:none"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
