/*
Theme Name: Khati Fashion
Theme URI: https://timitask.com
Author: Khati Team
Author URI: https://timitask.com
Description: A premium ecommerce theme by Timi Task.
Version: 1.2
Text Domain: khati_fashion
*/

:root {
    --primary-cyan: #24E5FF;
    --logo-black: #000000;
    --bg-white: #FFFFFF;
    --light-gray: #F4F4F4;
    --text-charcoal: #333333;

    /* Theme Mappings */
    --primary-red: var(--primary-cyan);
    --primary-gold: var(--logo-black);
    --dark-text: var(--text-charcoal);
    --light-text: #666666;
    --white: var(--bg-white);
    --off-white: var(--light-gray);
    --border: #EAEAEA;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

a, button, input, select, textarea {
    outline: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Global Breadcrumb */
.khati-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 5px 0 35px;
    font-size: 14px;
    color: var(--light-text);
    font-family: 'Hind Siliguri', sans-serif;
}

.khati-breadcrumb a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.khati-breadcrumb a:hover {
    color: var(--primary-red);
}

.khati-breadcrumb .sep {
    color: #ccc;
    font-size: 12px;
}

.khati-breadcrumb .current {
    color: #888;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background: var(--dark-text);
    color: var(--primary-gold);
    text-align: center;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

/* Header */
header {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    margin: 0 !important;
    width: 100% !important;
    display: block;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, padding, background-color, box-shadow;
}

header.is-sticky {
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    animation: smoothStickySlide 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes smoothStickySlide {
    0% {
        transform: translateY(-100%);
        opacity: 0.8;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Perfect Adjustments for WP Admin Bar on All Devices */
.admin-bar header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar header {
        top: 46px !important;
    }
}

@media screen and (max-width: 600px) {

    /* WordPress admin bar becomes absolute on very small screens, 
       so header should stick to the very top (0) */
    .admin-bar header {
        top: 0 !important;
    }
}

/* Ensure no gap on mobile/tablet when scrolling */
@media (max-width: 768px) {
    header {
        top: 0;
        padding: 10px 0;
    }
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.desktop-nav {
    display: flex;
    list-style: none;
    gap: 25px;
    margin-left: 20px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s ease;
}

.desktop-nav a:hover {
    color: var(--primary-red);
}

/* Desktop Dropdown Sub-menu */
.desktop-nav li {
    position: relative;
}

.desktop-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    border-radius: 8px;
    z-index: 100;
}

.desktop-nav li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-nav .sub-menu li {
    padding: 0;
}

.desktop-nav .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-text);
}

.desktop-nav .sub-menu a:hover {
    background: var(--off-white);
    padding-left: 25px;
    color: var(--primary-red);
}

.desktop-nav li.menu-item-has-children > a::after {
    content: '\f107'; /* FontAwesome angle-down */
    font-family: 'Font Awesome 7 Free';
    font-weight: 900;
    font-size: 12px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}

.search-box {
    flex: 1;
    max-width: 450px;
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 20px;
    border: 1px solid var(--border);
    border-radius: 25px;
    outline: none;
    background: var(--off-white);
    font-size: 14px;
    transition: 0.3s ease;
}

.search-box input:focus {
    border-color: #24E5FF;
    background: var(--white);
    box-shadow: 0 0 10px rgba(36, 229, 255, 0.1);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #888;
    cursor: default;
    pointer-events: none; /* Make it unclickable on PC */
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--dark-text);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons svg {
    cursor: pointer;
    transition: 0.3s;
    color: var(--dark-text);
}

.header-icons svg:hover {
    color: var(--primary-red);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary-red);
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Hero Section */
.hero-section {
    background: #fffcf5;
    padding: 70px 0;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-text h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.hero-text h1 span {
    color: var(--primary-red);
}

.hero-text p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 90%;
}

.btn {
    background: var(--primary-red);
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: var(--logo-black);
    color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(36, 229, 255, 0.15);
}

/* Mobile Nav */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 1001;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 25px 20px;
    overflow-y: auto;
}

/* Adjust mobile nav for Admin Bar */
.admin-bar .mobile-nav-panel {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .mobile-nav-panel {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .mobile-nav-panel {
        top: 0;
    }
}

.mobile-nav-panel.active {
    left: 0;
}

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

.mobile-nav-panel ul {
    list-style: none;
}

.mobile-nav-panel ul li {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-panel ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 16px;
    display: block;
    padding-bottom: 15px;
    transition: 0.3s;
}

.mobile-nav-panel ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

/* Mobile Dropdown */
.mobile-nav-panel ul li.menu-item-has-children {
    position: relative;
}

.mobile-nav-panel .dropdown-toggle {
    position: absolute;
    right: 0;
    top: -5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    transition: transform 0.3s ease;
    z-index: 10;
}

.mobile-nav-panel .dropdown-toggle i {
    pointer-events: none;
    font-family: 'Font Awesome 7 Free';
    font-weight: 900;
}

.mobile-nav-panel .dropdown-toggle.active {
    transform: rotate(180deg);
    color: var(--primary-red);
}

.mobile-nav-panel .sub-menu {
    display: none;
    padding-left: 15px;
    margin-top: 0;
    margin-bottom: 15px;
    border-left: 2px solid var(--primary-red);
}

.mobile-nav-panel .sub-menu li {
    border-bottom: none;
    margin-bottom: 0;
}

.mobile-nav-panel .sub-menu li a {
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-panel .sub-menu li:last-child a {
    border-bottom: none;
    padding-bottom: 0;
}

.overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Category Section */
.category-section {
    padding: 15px 0 5px;
}

.section-header {
    margin-bottom: 25px;
}

.view-all-btn {
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(36, 229, 255, 0.05);
}

.view-all-btn:hover {
    background: rgba(36, 229, 255, 0.1);
    transform: translateX(5px);
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cat-item {
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    width: 130px;
    text-align: center;
}

.cat-item:hover {
    transform: translateY(-8px);
}

.cat-img-box {
    width: 100px;
    height: 100px;
    background: var(--off-white);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.cat-item:hover .cat-img-box {
    border-color: var(--primary-red);
    box-shadow: 0 10px 25px rgba(36, 229, 255, 0.15);
    background: #fff;
}

.cat-img-box img {
    width: 55%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.cat-item:hover .cat-img-box img {
    transform: scale(1.15);
}

.cat-item p {
    font-weight: 600;
    font-size: 15px;
    margin-top: 5px;
    color: var(--dark-text);
}

/* Product Grid */
.section-title {
    text-align: center;
    margin: 20px 0 15px;
    font-size: clamp(24px, 4vw, 30px);
    font-weight: 700;
    color: var(--dark-text);
}

/* Breadcrumbs & Minimal Header */
.khati-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent !important;
    box-shadow: none !important;
    position: static !important;
    /* Ensure it is not sticky */
}

.khati-breadcrumb a {
    color: var(--primary-red);
    text-decoration: none;
}

.khati-breadcrumb .sep {
    color: #ccc;
    font-size: 12px;
}

.khati-breadcrumb .current {
    font-weight: 500;
    color: #333;
}

/* Product Card Variations & Buttons */
.product-variation-selector {
    padding: 0 10px;
    margin-bottom: 12px;
}

.modern-variation-wrapper {
    position: relative;
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-variation-wrapper:hover {
    border-color: var(--primary-red);
    background: #fff;
    box-shadow: 0 4px 12px rgba(36, 229, 255, 0.08);
}

.variation-select {
    width: 100%;
    padding: 10px 35px 10px 15px;
    background: transparent;
    border: none;
    outline: none !important;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.3s;
}

.modern-variation-wrapper:hover .select-icon {
    color: var(--primary-red);
}

.product-card .btn.custom-ajax-add-to-cart {
    border-radius: 12px;
    font-size: 14px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card .btn.custom-ajax-add-to-cart:hover {
    background: var(--logo-black);
    transform: translateY(-3px) scale(1.02);
}

.product-card .btn.khati-buy-now {
    width: 100%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 12px;
    font-size: 14px;
    padding: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 0;
}

.product-card .btn.khati-buy-now:hover {
    background: #222 !important;
    color: var(--primary-cyan) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card .btn.khati-buy-now i {
    color: white !important;
    transition: color 0.3s ease;
}

.product-card .btn.khati-buy-now:hover i {
    color: var(--primary-cyan) !important;
}

/* Hide View Cart Button globally from product cards */
.product-card .added_to_cart,
.added_to_cart.wc-forward {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Cart Drawer Styles - Using high specificity to avoid checkout page conflicts */
body .cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

body .cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

body .cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: #fff !important;
    z-index: 10001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
}

body .cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff !important;
}

body .cart-drawer-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    border: none !important;
}

.close-cart-drawer {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart-drawer:hover {
    color: var(--primary-red);
}

body .cart-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px !important;
    background: #fff !important;
}

.cart-drawer-loader {
    display: flex;
    justify-content: center;
    padding: 50px 0;
    color: var(--primary-red);
    font-size: 24px;
}

.cart-drawer-empty {
    text-align: center;
    padding: 50px 0;
}

.cart-drawer-empty i {
    font-size: 50px;
    color: #e2e8f0;
    margin-bottom: 20px;
    display: block;
}

.cart-drawer-empty p {
    color: #64748b;
    margin-bottom: 25px;
}

.cart-drawer-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f8fafc;
    position: relative;
}

.cart-drawer-item-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

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

.cart-drawer-item-info {
    flex: 1;
}

.cart-drawer-item-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    margin-bottom: 8px;
    line-height: 1.4;
}

.cart-drawer-item-title:hover {
    color: var(--primary-red);
}

.cart-drawer-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-item-price {
    font-weight: 700;
    color: var(--primary-red);
}

.cart-drawer-qty {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 2px;
}

.drawer-qty-btn {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer-qty input {
    width: 30px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.remove-drawer-item {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 1px solid #fee2e2;
    border-radius: 50%;
    color: #ef4444;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.remove-drawer-item:hover {
    color: #fff;
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
}

body .cart-drawer-footer {
    padding: 25px !important;
    background: #f8fafc !important;
    border-top: 1px solid #f1f5f9;
}

.cart-drawer-totals {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
}

.total-row.discount {
    color: #10b981;
}

.total-row.grand-total {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    margin-top: 5px;
}

.total-row .total-amount {
    color: #1e293b;
}

.total-row.discount .total-amount,
.total-row.grand-total .total-amount {
    color: var(--primary-red);
}

.cart-drawer-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-drawer {
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-drawer.secondary {
    background: #fff;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
}

.btn-drawer.secondary:hover {
    border-color: #1e293b;
}

.btn-drawer.primary {
    background: var(--logo-black);
    color: #fff;
}

.btn-drawer.primary:hover {
    background: #222;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

.cart-drawer-empty-wrapper .timi-task-fashion-empty-cart-premium {
    margin: 0 !important;
    padding: 30px 0 !important;
}

.cart-drawer-empty-wrapper .main-icon-circle {
    width: 60px;
    height: 60px;
}

.cart-drawer-empty-wrapper .empty-cart-title {
    font-size: 18px;
}

.cart-drawer-empty-wrapper .premium-button {
    background: var(--logo-black);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
}

/* Cart Drawer Coupon Styling */
.cart-drawer-coupon-wrapper {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.drawer-coupon-input-group {
    display: flex;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-coupon-input-group:focus-within {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 4px rgba(36, 229, 255, 0.1);
}

.drawer-coupon-code {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 15px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
}

.apply-drawer-coupon {
    background: var(--logo-black);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.apply-drawer-coupon:hover {
    background: var(--primary-cyan);
    color: #000;
}

.drawer-coupon-msg {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 600;
}

.drawer-coupon-msg.success { color: #10b981; }
.drawer-coupon-msg.error { color: #ef4444; }

.drawer-applied-coupons {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-coupon-tag {
    display: flex;
    align-items: center;
    background: #f0fdf4;
    border: 1px dashed #22c55e;
    padding: 8px 12px;
    border-radius: 10px;
    gap: 10px;
}

.coupon-code-label {
    font-size: 12px;
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
}

.coupon-discount-val {
    font-size: 13px;
    font-weight: 800;
    color: #15803d;
    margin-left: auto;
}

.remove-drawer-coupon {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.remove-drawer-coupon:hover {
    transform: scale(1.1);
}

/* Thankyou Page Modern Design */
.khati-thankyou-wrapper {
    padding: 60px 20px;
    background: #f8fafc;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thankyou-card {
    background: #fff;
    width: 100%;
    max-width: 650px;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.thankyou-card.failed .icon-circle {
    background: #fef2f2;
    color: #ef4444;
}

.thankyou-card.success .icon-circle {
    background: #f0fdf4;
    color: #22c55e;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px;
}

.thankyou-card h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.thankyou-card .subtitle {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 40px;
}

.order-quick-meta {
    display: flex;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    margin-bottom: 40px;
}

.meta-item {
    flex: 1;
    padding: 15px;
}

.meta-item.border-x {
    border-left: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
}

.meta-item .label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.meta-item .val {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.order-details-modern {
    text-align: left;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.order-details-modern h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.modern-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #64748b;
}

.modern-item .item-name {
    font-weight: 600;
    color: #1e293b;
}

.modern-item .qty {
    color: #94a3b8;
    margin-left: 5px;
}

.modern-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #f1f5f9;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    color: #64748b;
}

.total-row.order-total {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 10px;
}

.total-row.order-total span:last-child {
    color: var(--primary-red);
}

.thankyou-footer p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 25px;
}

.thankyou-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-modern {
    padding: 14px 30px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-modern.primary {
    background: var(--logo-black);
    color: #fff;
}

.btn-modern.primary:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-modern.secondary {
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.btn-modern.secondary:hover {
    background: #fff;
    border-color: #1e293b;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .thankyou-card {
        padding: 30px 20px;
    }
    .order-quick-meta {
        flex-direction: column;
    }
    .meta-item.border-x {
        border-left: none;
        border-right: none;
        border-top: 1px solid #f1f5f9;
        border-bottom: 1px solid #f1f5f9;
    }
    .thankyou-actions {
        flex-direction: column;
    }
    .btn-modern {
        width: 100%;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* WooCommerce Cart Page Custom Styles */
.woocommerce-cart .entry-content {
    padding: 0 !important;
}

.khati-custom-cart-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Product name in black - targeting all possible selectors */
.woocommerce-cart .product-name a,
.woocommerce-cart table.cart td.product-name a,
.woocommerce-cart .cart_item .product-name a {
    color: var(--logo-black) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: 0.3s;
}

.woocommerce-cart .product-name a:hover {
    color: var(--primary-red) !important;
}

/* Proceed to Checkout Button - Black Theme */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .checkout-button,
.woocommerce-cart a.checkout-button.button.alt {
    background-color: var(--logo-black) !important;
    color: var(--bg-white) !important;
    padding: 16px 30px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 12px !important;
    border: none !important;
    display: block !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    margin-top: 10px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--primary-cyan) !important;
    color: var(--logo-black) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Cart Totals Refinement */
.woocommerce-cart .cart-collaterals .cart_totals {
    background: #fff !important;
    padding: 30px !important;
    border-radius: 20px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02) !important;
}

/* Hide default cart table if our custom one is active */
.woocommerce-cart .woocommerce-cart-form>.shop_table.cart {
    /* display: none !important; */
}

/* Adjustments for WooCommerce notices on cart page */
.woocommerce-cart .woocommerce-notices-wrapper {
    margin-bottom: 30px;
}

/* Mobile Adjustments for Cart */
@media (max-width: 768px) {
    .khati-custom-cart-container {
        padding: 0 10px;
    }

    .woocommerce-cart .cart-collaterals .cart_totals {
        padding: 20px !important;
    }
}

.product-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    background: var(--bg-white);
}

.product-card img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 10px;
    transition: transform 0.5s ease;
    border: none;
    background: #ffffff;
}

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

.product-card h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-charcoal);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.6em;
    padding: 0 4px;
}

.price {
    color: var(--logo-black);
    font-weight: 700;
    font-size: 14px;
    margin-top: auto;
    margin-bottom: 10px;
}

.price ins {
    text-decoration: none;
    font-size: 14px;
    color: var(--logo-black);
}

.price del {
    color: #888888;
    font-size: 11px;
    font-weight: 400;
    margin-right: 4px;
}

.product-card:hover .price,
.product-card:hover .price ins {
    color: var(--primary-cyan);
}

.product-card .price {
    font-size: 14px;
    margin-bottom: 12px;
}

.product-card .price ins {
    font-size: 14px;
}

.product-card .price del {
    font-size: 11px;
}

@media (max-width: 768px) {
    .product-card .price {
        font-size: 13px;
    }

    .product-card .price ins {
        font-size: 13px;
    }

    .product-card .price del {
        font-size: 10px;
    }
}

.product-card .btn {
    width: 100%;
    font-size: 13px;
    padding: 10px;
    border-radius: 8px;
    background: var(--primary-cyan);
    color: var(--logo-black) !important;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.product-card .btn i,
.product-card .btn svg {
    color: var(--logo-black) !important;
    fill: var(--logo-black) !important;
}

.product-card .btn:hover {
    background: var(--logo-black);
    color: var(--primary-cyan) !important;
    border-color: var(--logo-black);
    transform: translateY(-2px);
}

.product-card .btn:hover i,
.product-card .btn:hover svg {
    color: var(--primary-cyan) !important;
    fill: var(--primary-cyan) !important;
}


/* Skeleton Preloader */
.skeleton {
    background: #f0f0f0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1/1;
    margin-bottom: 15px;
    border-radius: 12px;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    margin: 0 auto 10px;
}

.skeleton-price {
    height: 24px;
    width: 40%;
    margin: 0 auto 15px;
}

.skeleton-btn {
    height: 40px;
    width: 100%;
    border-radius: 8px;
}

/* Archive Toolbar & WooCommerce Styles */
.archive-toolbar {
    background: var(--off-white);
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.archive-title-wrapper {
    flex: 0 0 auto;
}

.archive-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text);
}

.woocommerce-ordering-wrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select {
    padding: 8px 35px 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--dark-text);
    background: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23222222" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 16px auto;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.woocommerce-ordering select:hover {
    border-color: var(--primary-red);
}

.woocommerce-ordering select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(36, 229, 255, 0.1);
}

@media (max-width: 600px) {
    .archive-toolbar {
        padding: 10px 15px;
    }

    .archive-title {
        font-size: 16px;
    }

    .woocommerce-ordering select {
        padding: 6px 30px 6px 10px;
        font-size: 13px;
    }
}

/* Pagination */
.woocommerce-pagination {
    margin-top: 50px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 8px;
    border: none !important;
}

.woocommerce-pagination ul li {
    border: none !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    transition: 0.3s;
    background: white;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* Modern Discount Badge Styles */
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-cyan);
    color: var(--logo-black);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discount-badge i {
    font-size: 10px;
}

/* Single Product Page Styles */
.single-product-container .product {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

/* Industry Standard WooCommerce Variations Design */
.variations_form {
    width: 100%;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

.single-product-container .variations {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
    margin-bottom: 0;
}

.single-product-container .variations td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
}

.single-product-container .variations td.label {
    margin-bottom: 8px;
}

.single-product-container .variations label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: block;
}

.single-product-container .variations td.value {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-product-container .variations select {
    flex: 1;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    outline: none !important;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23888" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.single-product-container .variations select:hover {
    border-color: var(--primary-red);
}

.single-product-container .variations select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(36, 229, 255, 0.05);
}

/* Integrated Price Layout */
.single_variation_wrap {
    width: 100%;
    margin-top: 15px;
}

.woocommerce-variation.single_variation {
    padding: 20px 0;
    border-top: 1px solid #f5f5f5;
    margin-bottom: 20px;
    display: none !important;
    /* Will be shown via JS/Woo when active */
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* When WooCommerce shows it */
.variations_form .woocommerce-variation.single_variation[style*="display: block"] {
    display: flex !important;
}

.woocommerce-variation-price {
    flex: 1;
}

.woocommerce-variation-price .price {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--primary-red) !important;
    margin: 0 !important;
    display: block !important;
}

.woocommerce-variation-availability {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2ecc71;
    padding: 5px 12px;
    background: #f1fcf5;
    border-radius: 6px;
}

/* Stock Status Styling */
.khati-stock-status,
.woocommerce-variation-availability {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.stock.in-stock {
    color: #27ae60 !important;
    background: #f0fdf4 !important;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
}

.stock.out-of-stock {
    color: #e74c3c !important;
    background: #fef2f2 !important;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* Quantity & Add to Cart Action Row - Ultra Compact & Full Width */
.variations_form.cart {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 10px;
    box-shadow: none !important;
}

.single-product-container table.variations .label {
    display: none !important;
}

.single-product-container table.variations td.value {
    padding: 5px 0;
    width: 100%;
}

.cart-action-row,
.woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 5px !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.single_variation_wrap {
    width: 100%;
    margin-top: 0 !important;
}

/* Reset Variations Icon inside the section */
.reset_variations {
    display: inline-block;
    margin-left: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.reset_variations:hover {
    color: var(--primary-red);
}

.single-product-container .quantity {
    display: flex !important;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    height: 50px;
    padding: 0 4px;
    width: 120px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.single-product-container .quantity:focus-within {
    border-color: var(--primary-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(36, 229, 255, 0.05);
}

.qty-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    font-size: 13px;
    transition: all 0.2s ease;
    border-radius: 10px;
}

.qty-btn:hover {
    background: #ffffff;
    color: var(--primary-red);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.single-product-container .quantity input.qty {
    width: 40px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
}

.single-product-container button.single_add_to_cart_button {
    height: 50px !important;
    flex: 1;
    border-radius: 12px !important;
    background: var(--primary-red) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 20px rgba(36, 229, 255, 0.15) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-product-container button.single_add_to_cart_button:hover {
    background: #00d4f5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(36, 229, 255, 0.25) !important;
}

/* Variable Product Specific Fixes */
.variations_button {
    width: 100%;
}

.woocommerce-variation-price {
    margin-bottom: 15px;
}

.woocommerce-variation-price .price {
    font-size: 24px !important;
    margin-bottom: 0 !important;
}

.single-product-container .product_title {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.2;
}

.single-product-container .price {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--primary-red) !important;
    margin-bottom: 15px;
    display: block;
}

.single-product-container .woocommerce-product-details__short-description {
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.single-product-container .summary {
    flex: 1;
    min-width: 300px;
    padding-left: 15px;
}

@media (max-width: 991px) {
    .single-product-container .summary {
        padding-left: 0;
    }
}

/* Product Image Gallery - 1:1 Square Premium Slider */
.single-product-container .woocommerce-product-gallery {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    position: relative;
    margin-bottom: 30px;
}

.single-product-container .woocommerce-product-gallery .flex-viewport,
.single-product-container .woocommerce-product-gallery__image {
    aspect-ratio: 1/1 !important;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    background: #fff;
}

.single-product-container .woocommerce-product-gallery img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px;
}

/* Custom Slider Controls */
.single-product-container .flex-control-nav {
    display: flex !important;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 15px 0 0 !important;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.single-product-container .flex-control-nav li {
    margin: 0;
}

.single-product-container .flex-control-nav li img {
    width: 70px !important;
    height: 70px !important;
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2.5px solid transparent;
    padding: 2px;
}

.single-product-container .flex-control-nav li img.flex-active {
    opacity: 1;
    border-color: var(--primary-red);
    transform: scale(1.05);
}

/* Variations */
.single-product-container table.variations {
    width: 100%;
    margin-bottom: 5px;
    border-spacing: 0;
}

.single-product-container table.variations td {
    padding: 5px 0;
}

.single-product-container table.variations td.label {
    padding-right: 15px;
    font-weight: 700;
    color: #1e293b;
    width: 100px;
    vertical-align: middle;
}

.single-product-container table.variations select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    background: #f8fafc;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.3s ease;
    cursor: pointer;
}

.single-product-container table.variations select:focus {
    border-color: var(--primary-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(36, 229, 255, 0.05);
}

/* Product Tabs - Compact Premium UI with Custom Background */
.woocommerce-tabs {
    margin-top: 60px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.03);
    clear: both;
    width: 100% !important;
    display: block !important;
}

.woocommerce-tabs ul.tabs {
    display: flex !important;
    list-style: none !important;
    padding: 10px !important;
    margin: 0 !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #f0f0f0 !important;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 10px !important;
    width: 100% !important;
}

.woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
}

.woocommerce-tabs ul.tabs li {
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 !important;
    text-align: center !important;
    border-radius: 14px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 15px 20px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    color: #555 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    border-radius: 14px !important;
    border: none !important;
}

.woocommerce-tabs ul.tabs li:hover:not(.active) {
    background: rgba(36, 229, 255, 0.05) !important;
}

.woocommerce-tabs ul.tabs li.active {
    background: var(--primary-red) !important;
    box-shadow: 0 8px 20px rgba(36, 229, 255, 0.2) !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #fff !important;
}

/* Premium Reviews & Tab Content UI */
.woocommerce-Tabs-panel {
    padding: 40px !important;
    width: 100% !important;
    display: none;
    animation: slideUpFade 0.5s ease-out;
    background: #ffffff;
}

.woocommerce-Tabs-panel h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    margin-bottom: 30px !important;
    color: var(--dark-text);
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Reviews List Refinement */
#reviews #comments ol.commentlist {
    margin: 0;
    padding: 0;
    list-style: none;
}

#reviews #comments ol.commentlist li {
    padding: 30px;
    background: #ffffff;
    border-radius: 20px;
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

#reviews #comments ol.commentlist li:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-red);
}

#reviews #comments ol.commentlist li img.avatar {
    border-radius: 12px;
    width: 54px;
    height: 54px;
    border: 2px solid #f8f9fa;
}

.comment-text {
    margin-left: 70px;
    border: none !important;
    padding: 0 !important;
}

.comment-text .meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.comment-text .meta strong {
    color: var(--dark-text);
    font-size: 16px;
    font-weight: 700;
}

.comment-text .description {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.star-rating {
    float: right;
    color: var(--primary-gold);
    font-size: 14px;
}

/* No Reviews Yet State */
.woocommerce-noreviews {
    padding: 40px;
    background: #fcfcfc;
    border: 1px dashed #eee;
    border-radius: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
    font-size: 15px;
    margin-bottom: 30px;
}

/* Modern Review Form Design */
#review_form_wrapper {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 24px;
    margin-top: 50px;
    border: 1px solid #f0f0f0;
}

#review_form_wrapper .comment-reply-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    display: block;
    color: var(--dark-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.comment-form-rating {
    grid-column: span 2;
    margin-bottom: 15px;
    padding: 15px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eee;
}

.comment-form-comment {
    grid-column: span 2;
}

.comment-form-author {
    grid-column: span 1;
}

.comment-form-email {
    grid-column: span 1;
}

.comment-form-cookies-consent {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #777;
}

.comment-form-cookies-consent input {
    margin: 0;
}

.form-submit {
    grid-column: span 2;
    margin-top: 10px;
}

.comment-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid #eee;
    border-radius: 14px;
    outline: none !important;
    background: #ffffff;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 10px 25px rgba(36, 229, 255, 0.08);
}

.comment-form textarea {
    min-height: 160px;
}

/* Custom Star Rating UI */
.comment-form .stars {
    margin-top: 5px;
}

.comment-form .stars span {
    display: flex;
    gap: 5px;
}

.comment-form .stars a {
    color: #ddd;
    font-size: 20px;
    transition: all 0.2s ease;
}

.comment-form .stars a:hover,
.comment-form .stars a.active,
.comment-form .stars a:focus {
    color: var(--primary-gold);
    transform: scale(1.1);
}

.comment-form input[type="submit"] {
    background: var(--primary-red);
    color: #fff;
    padding: 0 45px;
    height: 56px;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(36, 229, 255, 0.2);
}

.comment-form input[type="submit"]:hover {
    background: #00d4f5;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(36, 229, 255, 0.3);
}

@media (max-width: 768px) {
    .comment-form {
        grid-template-columns: 1fr;
    }

    .comment-form-author,
    .comment-form-email {
        grid-column: span 1;
    }

    #review_form_wrapper {
        padding: 25px;
    }

    #reviews #comments ol.commentlist li {
        padding: 20px;
    }

    .comment-text {
        margin-left: 0;
        margin-top: 15px;
    }

    .comment-text .star-rating {
        float: none;
        margin-bottom: 10px;
        display: block;
    }
}

section.related,
section.upsells {
    margin-top: 80px;
    padding-top: 0;
    border: none;
    width: 100% !important;
}

section.related h2,
section.upsells h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    color: var(--dark-text);
    position: relative;
}

section.related h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 10px;
}

/* Force grid layout for related products to match global design */
section.related .product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 25px !important;
}

/* Ensure no WooCommerce default styles interfere */
section.related.products ul.products,
section.related.products ul.products::before,
section.related.products ul.products::after {
    display: none !important;
}

/* Premium Card Style for Tabs Panel */
.woocommerce-Tabs-panel {
    padding: 40px;
    background: #fff;
    border-radius: 0 0 24px 24px;
}

.woocommerce-Tabs-panel h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--dark-text);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Additional Info Table Styling */
.shop_attributes {
    width: 100%;
    border-collapse: collapse;
}

.shop_attributes th {
    text-align: left;
    padding: 15px;
    background: #f9f9f9;
    width: 200px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #eee;
}

.shop_attributes td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-style: italic;
}

/* Review Form Styling */
#review_form_wrapper {
    background: #fafafa;
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
}

#review_form_wrapper .comment-reply-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    display: block;
}

#review_form_wrapper input[type="text"],
#review_form_wrapper input[type="email"],
#review_form_wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    margin-bottom: 15px;
}

#review_form_wrapper input[type="submit"] {
    background: var(--primary-red);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

#review_form_wrapper input[type="submit"]:hover {
    background: #00d4f5;
}

/* Overall Single Product Polish */
.single-product-container .summary .stock {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.single-product-container .summary .in-stock {
    color: #2ecc71;
}

.single-product-container .summary .out-of-stock {
    color: #e74c3c;
}

@media (max-width: 768px) {
    section.related .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .shop_attributes th {
        width: 120px;
        padding: 10px;
    }

    .shop_attributes td {
        padding: 10px;
    }

    .woocommerce-Tabs-panel {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    section.related .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .woocommerce-Tabs-panel h2 {
        font-size: 20px;
    }
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: var(--primary-gold);
    margin-bottom: 15px;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-card p {
    color: var(--light-text);
    font-size: 15px;
    font-style: italic;
}

.reviewer-name {
    font-weight: 700;
    margin-top: 20px;
    display: block;
    color: var(--dark-text);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(36, 229, 255, 0.85), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1506368249639-73a05d6f6488?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-top: 80px;
}

.cta-section h2 {
    font-size: 40px;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 600px;
    margin-inline: auto;
}

.btn-white {
    background: white;
    color: var(--primary-red);
    padding: 14px 45px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-white:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer Updated with Golden Theme */
footer {
    background-color: #0f1113; /* Deeper dark for premium feel */
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(36, 225, 255, 0.1) 0%, transparent 70%), 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); /* Subtle fabric weave pattern */
    color: #ffffff;
    padding: 80px 0 30px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(36, 225, 255, 0.3), transparent);
}




footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

footer h4 {
    color: #ffffff; /* ফুটার হেডিং সাদা */
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 700;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 15px;
    font-size: 15px;
    color: #ffffff;
    display: block; /* Changed to block to allow sub-menus below */
}

/* Specific styling for Contact Section where we need icons inline */
footer .footer-grid div:last-child ul li {
    display: flex;
    align-items: center;
    gap: 12px;
}

footer ul li svg {
    color: #ffffff; /* আইকন সাদা */
    flex-shrink: 0;
}

footer a {
    color: #ffffff; /* লিংক সাদা */
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Footer Sub-menu Logic */
footer .sub-menu {
    display: none;
    padding-left: 20px;
    list-style: none !important;
    margin-top: 10px;
    border-left: 1px solid #333; /* Vertical line for hierarchy */
}

footer .sub-menu li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

footer .sub-menu li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #666;
    font-size: 12px;
}

footer .menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from space-between */
    width: 100%;
    font-weight: 600;
}

.footer-menu-toggle {
    transition: transform 0.3s ease;
    padding: 5px;
    margin-left: 10px; /* Space between text and icon */
}

.footer-menu-toggle.active {
    transform: rotate(180deg);
}

/* Footer Socials Hover */
.footer-socials a:hover {
    color: #24E5FF !important;
    transform: translateY(-3px);
}

/* Responsive Fine-Tuning */
@media (max-width: 991px) {
    .hero-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-image {
        text-align: center;
    }

    .hero-image img {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-wrap: nowrap;
        /* এক লাইনে রাখার জন্য */
        gap: 10px;
    }

    .khati-breadcrumb {
        margin-bottom: 25px;
        font-size: 13px;
        gap: 6px;
    }

    .logo-nav-wrapper {
        order: 1;
        gap: 8px;
    }

    .logo {
        font-size: 22px;
    }

    /* মোবাইলে লোগো একটু ছোট করা হয়েছে */

    .search-box {
        order: 2;
        /* মাঝখানে পজিশন */
        flex: 1;
        max-width: none;
        margin-top: 0;
    }

    .search-box input {
        padding: 8px 35px 8px 12px;
        font-size: 13px;
    }

    .header-icons {
        order: 3;
        gap: 12px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-image img {
        max-width: 100%;
    }

    .section-title {
        font-size: 26px;
        margin: 15px 0 10px;
    }

    .category-section {
        padding: 10px 0 5px;
    }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cat-item {
        width: auto;
    }

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

    .product-card {
        padding: 10px;
    }

    .product-card h4 {
        font-size: 13px;
        min-height: 2.6em;
    }

    .price {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .product-card .btn {
        font-size: 12px;
        padding: 8px;
        border-radius: 4px;
    }

    .discount-badge {
        top: 8px;
        left: 8px;
        padding: 2px 6px;
        font-size: 10px;
    }

    .cart-action-row,
    .woocommerce-variation-add-to-cart {
        flex-direction: row; /* Keep them in line if possible, stack if needed */
        gap: 10px;
    }

    .single-product-container .quantity {
        width: 110px;
    }

    .cta-section {
        padding: 50px 15px;
        margin-top: 30px;
    }

    .cta-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .header-main {
        gap: 5px;
    }

    .header-icons {
        gap: 8px;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .hero-text p {
        font-size: 15px;
    }

    .product-grid {
        gap: 10px;
    }

    .cat-img-box {
        width: 70px;
        height: 70px;
    }

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

/* Custom View Cart Button (added_to_cart) */
.product-card a.added_to_cart.wc-forward {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 8px 15px;
    background: #27ae60;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.15);
}

.product-card a.added_to_cart.wc-forward::before {
    content: "\f07a"; /* Font Awesome shopping bag icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
}

.product-card a.added_to_cart.wc-forward:hover {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.25);
    color: #ffffff !important;
}

/* Adjust mobile view for View Cart button */
@media (max-width: 768px) {
    .product-card a.added_to_cart.wc-forward {
        padding: 6px 10px;
        font-size: 12px;
        margin-top: 8px;
        border-radius: 4px;
    }
}

/* Category Slider Custom Styles */
.wc-category-slider-wrapper {
    padding: 30px 0;
}

@media (max-width: 768px) {
    .wc-category-slider-wrapper {
        padding: 10px 0;
    }
}

.wc-category-slider {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.wc-category-slider.loaded {
    opacity: 1;
}

.wc-category-slider .swiper-slide {
    text-align: center;
    border-radius: 10px;
    background: transparent;
    opacity: 0.5;
    padding: 12px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.wc-category-slider .swiper-slide-active,
.wc-category-slider .swiper-slide-next,
.wc-category-slider .swiper-slide-prev {
    opacity: 1;
}

/* ✅ Category Image with 5px radius */
.wc-category-slider .cat-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 5px;
}

.wc-category-slider .cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

.wc-category-slider .cat-title {
    margin: 12px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.2;
}

/* ✅ Green navigation buttons */
.swiper-button-prev-outside,
.swiper-button-next-outside {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
}

.swiper-button-prev-outside { left: -20px; }
.swiper-button-next-outside { right: -20px; }

@media (max-width: 767px) {
    .swiper-button-prev-outside,
    .swiper-button-next-outside {
        display: none;
    }

    .wc-category-slider .cat-title {
        font-size: 12px;
        margin: 5px 0;
    }

    .wc-category-slider .swiper-slide {
        padding: 5px 0;
    }

    .hero-slider-main {
        margin-bottom: 0 !important;
    }
}