/*
Theme Name: Parapharmacy Theme
Author: Copilot
Description: A modern, professional WooCommerce theme for a pharmacy.
Version: 1.0
*/

:root {
    --primary-color: #e12d39;
    --primary-dark: #b01b25;
    --primary-light: #fef2f2;
    --secondary-color: #2c3e50;
    --text-color: #555555;
    --heading-color: #222222;
    --light-gray: #f9f9f9;
    --border-color: #eeeeee;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
    --font-main: 'Jost', sans-serif;
}

/* ---------------------------------------------------------
   1. Reset & Typography
--------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    font-size: 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-color);
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color) !important;
}

/* ---------------------------------------------------------
   2. Header Styling
--------------------------------------------------------- */

/* === New Attractive Top Menu Bar === */
.header-topmost {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 13px;
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}

.header-topmost::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-topmost .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.topmost-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon svg {
    fill: #fff;
}

.top-promo {
    font-weight: 500;
    letter-spacing: 0.3px;
    animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.topmost-right .top-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.topmost-right .top-menu-list li {
    position: relative;
}

.topmost-right .top-menu-list li::after {
    content: '|';
    margin-left: 15px;
    opacity: 0.4;
}

.topmost-right .top-menu-list li:last-child::after {
    display: none;
}

.topmost-right .top-menu-list a {
    color: #fff;
    font-weight: 500;
    padding: 5px 10px;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.topmost-right .top-menu-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.topmost-right .top-menu-list a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.topmost-right .top-menu-list a:hover::before {
    width: 80%;
}

/* Top Bar */
.header-top {
    background-color: #f5f5f5;
    font-size: 13px;
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    font-weight: 500;
}

/* Main Header */
.header-main {
    padding: 25px 0;
    background: #fff;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Logo */
.site-branding {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-title {
    font-size: 32px;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.site-title a {
    color: #222;
}

.site-title span {
    color: var(--primary-color);
}

/* Custom Logo */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Site Description/Tagline */
.site-description {
    font-size: 12px;
    color: #777;
    margin: 0;
    font-style: italic;
}

/* Search Bar */
.header-search {
    flex: 1;
    margin: 0 40px;
    max-width: 500px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-field {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-field:focus {
    border-color: var(--primary-color);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0 25px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}

/* Header Icons (Account, Wishlist, Cart) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.header-action-item svg {
    width: 26px;
    height: 26px;
    fill: #333;
    margin-bottom: 4px;
    transition: var(--transition);
}

.header-action-item:hover svg,
.header-action-item:hover span {
    fill: var(--primary-color);
    color: var(--primary-color);
}

/* Bottom Header (Navigation) */
.header-bottom {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.header-bottom .container {
    display: flex;
    align-items: center;
}

/* ================================================
   VERTICAL CATEGORIES MENU - Enhanced Styling
   ================================================ */

.vertical-menu-wrapper {
    position: relative;
    z-index: 1001;
}

/* Trigger Button */
.vertical-menu-trigger {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 280px;
    border-radius: 4px 4px 0 0;
    margin-top: -1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Trigger Button Hover Effect */
.vertical-menu-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.vertical-menu-trigger:hover::before {
    left: 100%;
}

.vertical-menu-trigger:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.vertical-menu-trigger:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.vertical-menu-trigger svg {
    fill: #fff;
    transition: all 0.3s ease;
}

.vertical-menu-trigger:hover svg:first-child {
    transform: scale(1.1);
}

.vertical-menu-trigger .arrow-icon {
    margin-left: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vertical-menu-wrapper:hover .vertical-menu-trigger .arrow-icon,
.vertical-menu-wrapper.active .vertical-menu-trigger .arrow-icon {
    transform: rotate(180deg);
}

/* Vertical Menu Dropdown */
.vertical-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* overflow must NOT be set here — it would clip the flyout submenus */
    overflow: visible;
}

/* Custom Scrollbar for Dropdown */
.vertical-menu-dropdown::-webkit-scrollbar {
    width: 6px;
}

.vertical-menu-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 8px 0;
}

.vertical-menu-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.vertical-menu-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.vertical-menu-wrapper:hover .vertical-menu-dropdown,
.vertical-menu-wrapper.active .vertical-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu List — overflow must stay visible so flyout submenus are not clipped.
   Any overflow-y: auto here would also force overflow-x: auto (CSS spec),
   making the list a scroll container that clips left:100% submenus. */
.vertical-menu-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    overflow: visible;
}

.vertical-menu-list .menu-item {
    position: relative;
    transform-origin: left center;
}

.vertical-menu-list .menu-item>a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 12px;
    position: relative;
    overflow: hidden;
}

/* Hover Slide Effect */
.vertical-menu-list .menu-item>a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.vertical-menu-list .menu-item>a:hover::before {
    transform: scaleY(1);
}

.vertical-menu-list .menu-item>a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Category Icons */
.vertical-menu-list .menu-item .cat-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.vertical-menu-list .menu-item>a:hover .cat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vertical-menu-list .menu-item .cat-icon-placeholder {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.vertical-menu-list .menu-item>a:hover .cat-icon-placeholder {
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.1);
}

.vertical-menu-list .menu-item .cat-icon-placeholder svg {
    /* fill is set inline per-category; no override here */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.vertical-menu-list .menu-item>a:hover .cat-icon-placeholder svg {
    transform: scale(1.15);
    opacity: 0.85;
}

.vertical-menu-list .menu-item .cat-name {
    flex: 1;
    transition: all 0.3s ease;
}

.vertical-menu-list .menu-item .arrow-right {
    fill: #999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.vertical-menu-list .menu-item:hover .arrow-right {
    fill: var(--primary-color);
    transform: translateX(5px);
    opacity: 1;
}

/* Staggered Animation Effect */
.vertical-menu-wrapper:hover .vertical-menu-list .menu-item {
    animation: slideInLeft 0.3s ease forwards;
}

.vertical-menu-list .menu-item:nth-child(1) { animation-delay: 0.05s; }
.vertical-menu-list .menu-item:nth-child(2) { animation-delay: 0.08s; }
.vertical-menu-list .menu-item:nth-child(3) { animation-delay: 0.11s; }
.vertical-menu-list .menu-item:nth-child(4) { animation-delay: 0.14s; }
.vertical-menu-list .menu-item:nth-child(5) { animation-delay: 0.17s; }
.vertical-menu-list .menu-item:nth-child(6) { animation-delay: 0.20s; }
.vertical-menu-list .menu-item:nth-child(7) { animation-delay: 0.23s; }
.vertical-menu-list .menu-item:nth-child(8) { animation-delay: 0.26s; }
.vertical-menu-list .menu-item:nth-child(9) { animation-delay: 0.29s; }
.vertical-menu-list .menu-item:nth-child(10) { animation-delay: 0.32s; }
.vertical-menu-list .menu-item:nth-child(11) { animation-delay: 0.35s; }
.vertical-menu-list .menu-item:nth-child(12) { animation-delay: 0.38s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Submenu Dropdown (Mega Menu Style) - Enhanced */
.submenu-dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 300px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    max-height: 500px;
    overflow-y: auto;
    margin-left: 0;
    pointer-events: none;
}

/* Bridge gap between menu item and submenu for smooth hovering */
.submenu-dropdown::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    width: 20px;
    height: 100%;
    background: transparent;
}

/* Show submenu on hover */
.vertical-menu-list .menu-item.has-children:hover .submenu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Keep submenu open when hovering over it */
.submenu-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Ensure parent item stays highlighted when hovering submenu */
.vertical-menu-list .menu-item.has-children:hover > a {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.submenu-inner {
    padding: 20px;
}

.submenu-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
    display: inline-block;
}

.submenu-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--primary-dark);
}

.submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.submenu-list li {
    transition: transform 0.2s ease;
}

.submenu-list li:hover {
    transform: translateX(3px);
}

.submenu-list li a {
    display: block;
    padding: 8px 12px;
    color: #555;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.submenu-list li a::before {
    content: '›';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.2s ease;
    color: var(--primary-color);
    font-weight: bold;
}

.submenu-list li a:hover::before {
    opacity: 1;
    left: 8px;
}

.submenu-list li a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 20px;
}

.submenu-list li a .count {
    color: #999;
    font-size: 11px;
    margin-left: 5px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.submenu-list li a:hover .count {
    opacity: 1;
    color: var(--primary-color);
}

.view-all {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.view-all:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.view-all:active {
    transform: translateY(0);
}

.main-navigation ul {
    display: flex;
    gap: 30px;
    margin-left: 30px;
    list-style: none;
}

.main-navigation .primary-menu-list {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-navigation .primary-menu-list > li {
    position: relative;
}

.main-navigation a {
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    padding: 15px 20px;
    display: block;
    color: #222;
    position: relative;
    transition: all 0.3s ease;
}

.main-navigation .primary-menu-list > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-navigation .primary-menu-list > li > a:hover,
.main-navigation .primary-menu-list > li.current-menu-item > a,
.main-navigation .primary-menu-list > li.current-menu-ancestor > a {
    color: var(--primary-color);
}

.main-navigation .primary-menu-list > li > a:hover::after,
.main-navigation .primary-menu-list > li.current-menu-item > a::after,
.main-navigation .primary-menu-list > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* Dropdown indicator for items with submenus */
.main-navigation .menu-item-has-children > a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.main-navigation .menu-item-has-children:hover > a::before {
    transform: rotate(180deg);
}

/* Dropdown Menu Styling */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 3px solid var(--primary-color);
}

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

.main-navigation .sub-menu li {
    display: block;
    position: relative;
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
    font-size: 14px;
    text-transform: none;
    color: #555;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu li.current-menu-item > a {
    background: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 25px;
}

/* Third level dropdown (if needed) */
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: -1px;
    border-radius: 8px;
    border-top: 3px solid var(--primary-color);
}

.main-navigation .sub-menu .menu-item-has-children > a::after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
}

/* ---------------------------------------------------------
   3. Hero Slider
--------------------------------------------------------- */
.hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 0px;
    padding: 0;
    /* Remove padding, slider handles height */
    background: transparent;
    /* Remove solid background */
}

/* Remove old abstract circle if it interferes, or keep if transparent slides */
.hero-section::after {
    display: none;
}

.hero-slider {
    width: 100%;
    height: 265px;
    /* Explicit height for the slider */
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    /* Vertically center content */
    background-color: #f4f9f7;
    /* Fallback color */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: 0 15px;
    /* Animation initial states */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Animate content when slide is active (managed by Swiper) */
.swiper-slide-active .hero-content {
    opacity: 1;
    transform: translateY(0);
    padding-top: 12px;
}

.hero-content .subtitle {
    display: block;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 14px;
}

.hero-content h2 {
    font-size: 56px;
    color: #222;
    line-height: 1.1;
    font-weight: 700;
}

.hero-content p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* Swiper Navigation Customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Swiper Pagination Customization */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider {
        height: 500px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
        /* Hide arrows on mobile */
    }
}


/* ---------------------------------------------------------
   4. Features Bar
--------------------------------------------------------- */
.features-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px;
    margin-bottom: 60px;
    padding: 25px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
}

.feature-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    text-align: left;
    padding: 0 10px;
    border-right: 1px solid var(--border-color);
}

.feature-item:last-child {
    border-right: none;
}

.feature-icon {
    flex-shrink: 0;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
}

.feature-text {
    flex-shrink: 0;
}

.feature-text h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.feature-text p {
    margin: 0;
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   5. WooCommerce Products Grid
--------------------------------------------------------- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-title p {
    color: #888;
}

/* ---------------------------------------------------------
   Search Results Page
--------------------------------------------------------- */
.search-results-page {
    padding: 40px 15px 60px;
}

.search-results-header {
    text-align: center;
    margin-bottom: 35px;
}

.search-results-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 20px;
}

.search-results-title span {
    color: var(--primary-color);
}

.search-results-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.search-results-form .search-field {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-results-form .search-field:focus {
    border-color: var(--primary-color);
}

.search-results-form .search-submit {
    padding: 12px 28px;
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-results-form .search-submit:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.search-result-count {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Non-product search results */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.search-result-item:hover {
    box-shadow: var(--shadow-hover);
}

.search-result-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 6px;
}

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

.search-result-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.search-result-content h3 a:hover {
    color: var(--primary-color);
}

.search-result-content p {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

/* No results state */
.no-results-wrapper {
    text-align: center;
    padding: 60px 20px;
}

.no-results-wrapper h2 {
    font-size: 22px;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.no-results-wrapper p {
    color: #888;
    margin-bottom: 25px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .search-results-page {
        padding: 25px 15px 40px;
    }
    .search-results-title {
        font-size: 20px;
    }
    .search-result-item {
        flex-direction: column;
        gap: 12px;
    }
    .search-result-thumb {
        width: 100%;
        height: 180px;
    }
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
    /* remove clearfix */
}

.woocommerce ul.products li.product {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    float: none;
    /* override WP default */
    width: auto;
    /* override WP default */
    margin: 0;
    overflow: hidden;
    padding: 15px;
    text-align: center;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
    transform: translateY(-5px);
}

.woocommerce ul.products li.product img {
    margin-bottom: 15px;
    border-radius: 4px;
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 16px;
    padding: 0;
    margin: 0 0 10px 0;
    font-weight: 500;
    color: #333;
}

.woocommerce ul.products li.product .price {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.woocommerce ul.products li.product .button {
    margin-top: auto;
    background-color: #f5f5f5;
    color: #333;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.woocommerce ul.products li.product .added_to_cart {
    margin-top: 10px;
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
}

/* Badge (Sale/New) — scoped so it can never escape its product card */
.onsale {
    /* Safe default: renders inline when outside a positioned product card */
    position: static;
    display: inline-block;
    background: #ff4747;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

/* Only go absolute when properly contained inside a product card */
li.product .onsale,
.product .onsale,
.woocommerce-loop-product .onsale {
    position: absolute;
    top: 15px;
    left: 15px;
}

/* Guarantee every product card creates a positioning context */
ul.products li.product,
.woocommerce ul.products li.product,
.products-grid .product,
.recently-viewed-section .product {
    position: relative !important;
    overflow: hidden;
}

/* ---------------------------------------------------------
   6. Footer
--------------------------------------------------------- */
.site-footer {
    background-color: #1a1a2e;
    color: #ccc;
    padding-top: 0;
    border-top: none;
    margin-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 60px;
    padding: 60px 0;
}

.footer-brand h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
}

.footer-brand p {
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-widget h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: #aaa;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #aaa;
}

.contact-info svg {
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-radius: 12px;
    margin: 0 0 40px;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.newsletter-content svg {
    color: var(--primary-color);
}

.newsletter-content h4 {
    color: #fff;
    margin: 0 0 5px;
    font-size: 18px;
}

.newsletter-content p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 450px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-payments span {
    color: #888;
    font-size: 14px;
}

.payment-icons {
    display: flex;
    gap: 15px;
}

.payment-icon {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    background: transparent;
    border-top: none;
    text-align: left;
    color: #888;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: #888;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* ---------------------------------------------------------
   7. Responsiveness
--------------------------------------------------------- */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

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

    .header-main .container {
        flex-direction: column;
        gap: 20px;
    }

    .header-search {
        order: 2;
        margin: 0;
        width: 100%;
    }

    .header-actions {
        order: 1;
        margin-left: auto;
    }

    .site-title {
        order: 0;
        margin-right: auto;
    }

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

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

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

    .newsletter-content {
        flex-direction: column;
    }

    .newsletter-form {
        width: 100%;
        max-width: none;
    }
}

@media (min-width: 600px) {
    .features-bar {
        flex-direction: row !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    .feature-item {
        flex: 1 !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-payments {
        flex-wrap: wrap;
    }
}

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

    .features-bar {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .feature-item {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }

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

    .newsletter-form {
        flex-direction: column;
    }
}

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

    .hero-content h2 {
        font-size: 32px;
    }
}

/* ---------------------------------------------------------
   8. Single Product Page
--------------------------------------------------------- */

/* Product Page - Enhanced Layout */
.single-product-page {
    background: #f8f9fa;
    padding: 4px 0 60px;
}

.product-breadcrumb {
    margin-bottom: 4px;
}

.woocommerce-breadcrumb {
    font-size: 14px;
    color: #666;
}

.woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

/* Product Wrapper */
.product-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

/* Product Layout: Grid for Image and Summary */
.single-product div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Gallery (Left Column) */
.product-gallery-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.onsale-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #e74c3c;
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.single-product .woocommerce-product-gallery {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box;
}

.single-product .woocommerce-product-gallery.images {
    width: 100% !important;
    max-width: 100% !important;
}

.single-product .woocommerce-product-gallery img {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image:hover img {
    transform: scale(1.02);
}

.single-product .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.single-product .flex-control-thumbs li {
    width: 80px;
    height: 80px;
    margin: 0;
    list-style: none;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.single-product .flex-control-thumbs li:hover,
.single-product .flex-control-thumbs li.flex-active {
    border-color: var(--primary-color);
}

.single-product .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Summary (Right Column) */
.single-product .summary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.single-product .summary.entry-summary {
    box-sizing: border-box;
    padding: 0;
}

.single-product h1.product_title {
    font-size: 32px;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.3;
    font-weight: 700;
}

.single-product .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.single-product .star-rating {
    font-size: 16px;
}

.single-product .woocommerce-review-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.single-product .woocommerce-review-link:hover {
    color: var(--primary-color);
}

.single-product .price {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
}

.single-product .price del {
    color: #999;
    font-size: 24px;
    margin-right: 10px;
}

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

.single-product .woocommerce-product-details__short-description {
    margin-bottom: 25px;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Stock Status */
.product-stock-status {
    margin-bottom: 25px;
}

.product-stock-status span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

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

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

/* Add to Cart Area */
.single-product form.cart {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
}

.single-product .quantity {
    position: relative;
}

.single-product .quantity input {
    width: 120px;
    height: 54px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333 !important;
    background-color: #fff !important;
    padding: 0 40px;
    transition: border-color 0.3s;
}

.single-product .quantity input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.single-product button.single_add_to_cart_button {
    background: linear-gradient(135deg, var(--secondary-color), #1a5490);
    color: #fff;
    border: none;
    padding: 0 50px;
    height: 54px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 87, 153, 0.3);
    flex: 1;
}

.single-product button.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 87, 153, 0.4);
}

/* Meta Data (SKU, Categories) */
.single-product .product_meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.single-product .product_meta>span {
    display: block;
    margin-bottom: 8px;
    line-height: 1.8;
}

.single-product .product_meta>span:last-child {
    margin-bottom: 0;
}

.single-product .product_meta a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
}

.single-product .product_meta a:hover {
    color: var(--primary-color);
}

.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in,
.single-product .product_meta .tagged_as {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.single-product .product_meta .sku,
.single-product .product_meta .posted_in a,
.single-product .product_meta .tagged_as a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Product Share */
.product-share {
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
}

.product-share label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn.facebook {
    background: #3b5998;
    color: #fff;
}

.share-btn.twitter {
    background: #1da1f2;
    color: #fff;
}

.share-btn.pinterest {
    background: #bd081c;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Trust Badges */
.product-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 8px;
}

.product-trust-badges .badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.product-trust-badges .badge-item svg {
    color: var(--primary-color);
}

.product-trust-badges .badge-item span {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* Tabs */
.woocommerce-tabs {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    padding: 0;
    margin: 0 0 30px 0 !important;
    list-style: none !important;
    gap: 5px;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 15px 30px;
    font-weight: 600;
    color: #888;
    position: relative;
    text-decoration: none !important;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--primary-color);
    background: #f8f9fa;
}

.woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.woocommerce-tabs .panel {
    background: #fff;
    padding: 20px 0;
    color: #666;
    line-height: 1.8;
}

.woocommerce-tabs .panel h2 {
    font-size: 24px;
    margin-bottom: 20px;
    display: none;
}

.woocommerce-tabs .panel p {
    margin-bottom: 15px;
}

/* Reviews */
.woocommerce-tabs #reviews {
    padding: 20px 0;
}

.woocommerce-tabs #reviews .comment-form-rating {
    margin-bottom: 20px;
}

.woocommerce-tabs #reviews .stars {
    display: flex;
    gap: 5px;
}

/* Related Products */
.related.products {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.related.products>h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 15px;
}

.related.products>h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.related.products ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}

/* Larger product images and text */
.related.products ul.products li.product img {
    margin-bottom: 16px;
    border-radius: 10px;
    width: 120px !important;
    height: 120px !important;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.35;
    font-weight: 600;
    min-height: 48px;
}

.related.products ul.products li.product .price {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 700;
}

.related.products ul.products li.product .button {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-radius: 8px;
    font-weight: 600;
}

/* Related Products Responsive */
@media (max-width: 992px) {
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }

    .related.products ul.products li.product img {
        width: 100px !important;
        height: 100px !important;
    }

    .related.products ul.products li.product .woocommerce-loop-product__title {
        font-size: 16px;
        min-height: 40px;
    }

    .related.products ul.products li.product .price {
        font-size: 18px;
    }

    .related.products ul.products li.product .button {
        font-size: 14px;
        padding: 12px 0;
    }
}

@media (max-width: 768px) {
    .related.products {
        margin-top: 40px;
        padding-top: 30px;
    }

    .related.products>h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }

    .related.products ul.products li.product {
        padding: 12px;
    }

    .related.products ul.products li.product img {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 10px;
    }

    .related.products ul.products li.product .woocommerce-loop-product__title {
        font-size: 14px;
        min-height: 36px;
        margin-bottom: 7px;
    }

    .related.products ul.products li.product .price {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .related.products ul.products li.product .button {
        font-size: 13px;
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .related.products {
        margin-top: 30px;
        padding-top: 25px;
    }

    .related.products>h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

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

    .related.products ul.products li.product {
        padding: 10px;
    }

    .related.products ul.products li.product img {
        width: 65px !important;
        height: 65px !important;
        margin-bottom: 8px;
    }

    .related.products ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px;
        min-height: 28px;
    }

    .related.products ul.products li.product .price {
        font-size: 14px;
        margin-bottom: 7px;
    }

    .related.products ul.products li.product .price del {
        display: block;
        font-size: 10px;
    }

    .related.products ul.products li.product .button {
        padding: 8px 0;
        font-size: 12px;
    }

    .related.products ul.products li.product .onsale,
    .related.products ul.products li.product .badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* Responsive Single Product */
@media (max-width: 1024px) {
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .single-product-page {
        padding: 20px 0 40px;
    }

    .product-wrapper {
        padding: 25px 20px;
    }

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

    .single-product h1.product_title {
        font-size: 24px;
    }

    .single-product .price {
        font-size: 28px;
    }

    .single-product form.cart {
        flex-wrap: wrap;
    }

    .single-product .quantity input {
        width: 100px;
        height: 48px;
    }

    .single-product button.single_add_to_cart_button {
        width: 100%;
        padding: 0 30px;
        height: 48px;
    }

    .product-trust-badges {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-trust-badges .badge-item {
        flex-direction: row;
        justify-content: center;
    }

    .woocommerce-tabs {
        padding: 20px 15px;
    }

    .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
    }

    .woocommerce-tabs ul.tabs li a {
        padding: 12px 20px;
        font-size: 14px;
    }

    .related.products {
        padding: 30px 20px;
    }

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

    .share-buttons {
        justify-content: center;
    }
}

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

    .single-product h1.product_title {
        font-size: 20px;
    }

    .single-product .price {
        font-size: 24px;
    }
}


/* ---------------------------------------------------------
   9. My Account Page (Medilazar Style)
--------------------------------------------------------- */

.woocommerce-account .woocommerce {
    display: flow-root;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}

/* Login / Register Split */
#customer_login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    /* More breathing room */
    width: 100%;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Titles */
#customer_login h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 35px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.woocommerce-form-row {
    margin-bottom: 25px;
}

.woocommerce-form-row label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.woocommerce-form-row label .required {
    color: #d92626;
    margin-left: 2px;
}

/* Wrapper for clean block formatting */
.woocommerce-input-wrapper {
    width: 100%;
    display: block;
}

/* Input Fields - Login & Password (Medilazar Style) */
.woocommerce-form-row input.input-text {
    width: 100%;
    padding: 0 20px;
    height: 50px;
    border: 1px solid #e5e5e5;
    background-color: #fff;
    color: #333;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: none;
    outline: none;
}

.woocommerce-form-row input.input-text:focus {
    border-color: #333;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Buttons - Black Pills */
.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
    width: auto;
    display: inline-block;
    min-width: 130px;
    margin-top: 20px;
    background-color: #1a1a1a;
    color: #fff;
    height: 48px;
    padding: 0 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce-form-login__submit:hover,
.woocommerce-form-register__submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Extras: Remember Me & Lost Password */
.woocommerce-form-login__rememberme {
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 14px;
    color: #444;
    font-weight: 500;
    display: block;
}

.woocommerce-LostPassword {
    margin-top: 18px;
    font-size: 14px;
    display: block;
}

.woocommerce-LostPassword a {
    color: #20a0a0;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.woocommerce-LostPassword a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Account Dashboard Layout */
.woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
}

.woocommerce-MyAccount-content {
    flex: 1;
    background: #fff;
    padding: 0;
    /* Removed redundant border/padding, let content breathe or box it internally if needed */
}

/* Navigation Links - Sidebar Style with Icons (Medilazar Clone) */
.woocommerce-MyAccount-navigation {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 16px 0;
    font-weight: 500;
    font-size: 15px;
    color: #666;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

/* Hover & Active State: Green Text only, no background change */
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Icons via CSS Pseudo-elements (Simplified Background Image) */
.woocommerce-MyAccount-navigation ul li a::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover::before,
.woocommerce-MyAccount-navigation ul li.is-active a::before {
    opacity: 1;
    filter: invert(47%) sepia(61%) saturate(1634%) hue-rotate(125deg) brightness(96%) contrast(89%);
    /* Approx Green */
}

/* Icons Definitions (SVG Data URI - Black/Grey Base) */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23555"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/></svg>');
}

.woocommerce-MyAccount-navigation-link--orders a::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23555"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"/></svg>');
}

.woocommerce-MyAccount-navigation-link--downloads a::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23555"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>');
}

.woocommerce-MyAccount-navigation-link--edit-address a::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23555"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23555"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23555"><path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg>');
}

/* Dashboard User Info (Optional Enhancement) */
.woocommerce-MyAccount-navigation::before {
    content: 'My Account';
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    color: #222;
}

/* Content Area Styling */
.woocommerce-MyAccount-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

/* Addresses */
.woocommerce-Address-title h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.woocommerce-Address {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Orders Table */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.woocommerce-orders-table th {
    background-color: #f5f5f5;
    font-weight: 700;
    color: #333;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.woocommerce-orders-table td {
    border-bottom: 1px solid #eee;
    padding: 20px;
    color: #555;
    background: #fff;
    font-size: 14px;
}

.woocommerce-orders-table tr:last-child td {
    border-bottom: none;
}

.woocommerce-button.button {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: var(--transition);
}

.woocommerce-button.button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Responsive Account */
@media (max-width: 900px) {
    #customer_login {
        grid-template-columns: 1fr;
    }

    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation {
        flex: auto;
        width: 100%;
        margin-bottom: 30px;
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        white-space: nowrap;
        padding-bottom: 10px;
        /* Scrollbar space */
    }

    .woocommerce-MyAccount-navigation ul li {
        margin: 0;
        flex: 0 0 auto;
    }

    .woocommerce-MyAccount-navigation ul li a {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ---------------------------------------------------------
   10. Cart Page
--------------------------------------------------------- */
.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.woocommerce-cart-form {
    flex: 2;
    min-width: 60%;
}

.cart-collaterals {
    flex: 1;
    min-width: 300px;
}

/* Cart Table Styling */
.shop_table.cart {
    border: none;
    border-collapse: separate;
    border-spacing: 0 15px;
    /* Spacing between rows */
}

.shop_table.cart thead th {
    background-color: transparent;
    border: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    color: #999;
}

.shop_table.cart .cart_item td {
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 10px;
    vertical-align: middle;
}

.shop_table.cart .cart_item td:first-child {
    border-left: 1px solid #eee;
    border-radius: 8px 0 0 8px;
}

.shop_table.cart .cart_item td:last-child {
    border-right: 1px solid #eee;
    border-radius: 0 8px 8px 0;
}

.product-thumbnail img {
    border-radius: 4px;
    width: 80px;
}

.product-name a {
    font-weight: 600;
    color: #333;
}

.product-remove a.remove {
    color: #ff4747 !important;
    background: rgba(255, 71, 71, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.product-remove a.remove:hover {
    background: #ff4747;
    color: #fff !important;
}

/* Actions */
.actions button.button {
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    padding: 12px 25px;
    border: none;
}

/* Cart Totals */
.cart_totals {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

.cart_totals h2 {
    font-size: 20px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cart_totals table.shop_table {
    width: 100%;
    border: none;
    margin-bottom: 20px;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.wc-proceed-to-checkout a.checkout-button {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--primary-dark);
}

/* ---------------------------------------------------------
   11. Checkout Page
--------------------------------------------------------- */
.woocommerce-checkout .col2-set {
    float: left;
    width: 100%;
    margin-right: 0%;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    float: left;
    width: 38%;
    clear: right;
}

.woocommerce-checkout #order_review {
    background: #fff;
    padding: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

.woocommerce-billing-fields h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.woocommerce-checkout-payment {
    background: transparent !important;
}

.woocommerce-checkout-payment ul.payment_methods {
    border-bottom: 1px solid #eee !important;
}

#place_order {
    background-color: var(--primary-color);
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 50px;
    margin-top: 20px;
}


/* ---------------------------------------------------------
   12. Hot Deals Section
--------------------------------------------------------- */
.hot-deals-section {
    position: relative;
    margin: 20px 0;
    overflow: hidden;
}

.hot-deals-section .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-light);
    border-radius: 12px;
    padding: 60px;
}

.deal-content {
    flex: 1;
    padding-right: 40px;
    z-index: 2;
}

.deal-tag {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 15px;
}

.deal-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.deal-desc {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 35px;
    max-width: 500px;
}

.deal-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}

.deal-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* Deal Navigation Arrows */
.deal-nav-prev,
.deal-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.deal-nav-prev {
    left: 20px;
}

.deal-nav-next {
    right: 20px;
}

.deal-nav-prev:hover,
.deal-nav-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.deal-nav-prev::before,
.deal-nav-next::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid var(--secondary-color);
    border-right: 3px solid var(--secondary-color);
    transition: border-color 0.3s ease;
}

.deal-nav-prev::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.deal-nav-next::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

.deal-nav-prev:hover::before,
.deal-nav-next:hover::before {
    border-color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hot-deals-section .swiper-slide {
        flex-direction: column-reverse;
        padding: 40px 20px;
        text-align: center;
    }

    .deal-content {
        padding-right: 0;
        margin-top: 40px;
    }

    .deal-content h2 {
        font-size: 32px;
    }

    .countdown-timer {
        justify-content: center;
    }

    .deal-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .deal-nav-prev,
    .deal-nav-next {
        width: 40px;
        height: 40px;
    }

    .deal-nav-prev {
        left: 10px;
    }

    .deal-nav-next {
        right: 10px;
    }

    .deal-nav-prev::before,
    .deal-nav-next::before {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
}

/* ---------------------------------------------------------
   13. ADVANCED FEATURES STYLING
--------------------------------------------------------- */

/* Product Action Buttons */
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
}

.product:hover .product-actions {
    opacity: 1;
}

.product-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-actions button:hover {
    background: var(--primary-color);
    color: #fff;
}

.product-actions button svg {
    fill: currentColor;
}

.product-actions button.active {
    background: var(--primary-color);
    color: #fff;
}

/* Sticky Header */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.quick-view-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-container {
    position: relative;
    background: #fff;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 30px;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: #333;
}

.quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.quick-view-details h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.quick-view-details .price {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.quick-view-details .description {
    margin-bottom: 25px;
    color: var(--text-color);
    line-height: 1.8;
}

.quick-view-details .cart {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.quick-view-details .quantity {
    flex: 0 0 100px;
}

.quick-view-details button {
    flex: 1;
}

.view-full-details {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
}

/* ---------------------------------------------------------
   Promotion Banner (Replaces Newsletter Popup)
--------------------------------------------------------- */
.promo-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.promo-banner.promo-banner-top {
    top: 0;
    transform: translateY(-100%);
}

.promo-banner.promo-banner-bottom {
    bottom: 0;
    transform: translateY(100%);
}

.promo-banner.active.promo-banner-top {
    transform: translateY(0);
}

.promo-banner.active.promo-banner-bottom {
    transform: translateY(0);
}

.promo-banner-link,
.promo-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.promo-banner-link:hover {
    opacity: 0.9;
}

.promo-banner-text {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
    text-align: center;
}

.promo-banner-arrow {
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.promo-banner-link:hover .promo-banner-arrow {
    transform: translateX(5px);
}

.promo-banner-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    padding: 5px;
    transition: opacity 0.2s ease;
}

.promo-banner-close:hover {
    opacity: 1;
}

/* Responsive Promotion Banner */
@media (max-width: 768px) {
    .promo-banner {
        padding: 12px 50px 12px 15px;
    }
    
    .promo-banner-text {
        font-size: 13px;
    }
    
    .promo-banner-arrow {
        font-size: 16px;
    }
}

/* Old Newsletter Popup Styles - Kept for newsletter widget compatibility */
.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

.newsletter-popup.active {
    display: flex;
}

.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.newsletter-container {
    position: relative;
    background: #fff;
    max-width: 500px;
    width: 90%;
    padding: 50px 40px;
    border-radius: 12px;
    text-align: center;
    z-index: 1;
}

.newsletter-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.newsletter-container h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.newsletter-container p {
    margin-bottom: 30px;
    color: var(--text-color);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 15px;
}

.newsletter-form button {
    padding: 14px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* Search Results Dropdown */
.header-search {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--light-gray);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.search-result-info .price {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Notification Toast */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px 0;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
}

.trust-badge svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.trust-badge span {
    font-size: 14px;
    font-weight: 500;
    color: var(--heading-color);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 8px 0;
    z-index: 998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-nav .nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-color);
    font-size: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-bottom-nav .nav-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary-color);
}

.mobile-bottom-nav .nav-item .badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Wishlist & Compare Counters in Header */
.wishlist-count,
.compare-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design for Features */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 72px; /* clearance for fixed mobile-bottom-nav */
    }

    .quick-view-content {
        grid-template-columns: 1fr;
    }

    .newsletter-container {
        padding: 40px 25px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .modal-container {
        width: 95%;
        padding: 20px;
    }
}

/* ---------------------------------------------------------
   15. BACK TO TOP BUTTON
--------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ---------------------------------------------------------
   16. QUANTITY BUTTONS
--------------------------------------------------------- */
.qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
}

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

.qty-wrapper input[type="number"] {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 0 !important;
    color: #333 !important;
    background-color: #fff !important;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-wrapper input[type="number"]::-webkit-outer-spin-button,
.qty-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---------------------------------------------------------
   17. ADD TO CART ANIMATION
--------------------------------------------------------- */
.add_to_cart_button.added {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

.add_to_cart_button.added::after {
    content: '✓';
    margin-left: 8px;
}

.cart-icon.bounce {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* ---------------------------------------------------------
   18. COUNTDOWN TIMER
--------------------------------------------------------- */
.sale-countdown {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.countdown-item {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    min-width: 50px;
}

.countdown-item .count {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.countdown-item .label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.9;
}

.sale-countdown .expired {
    color: #dc3545;
    font-weight: 600;
}

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

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

.product-lightbox .lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.product-lightbox .lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.product-lightbox .lightbox-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.product-lightbox .lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------------------------------------------------------
   20. MINI CART DROPDOWN
--------------------------------------------------------- */
.header-cart {
    position: relative;
}

.mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.mini-cart-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Invisible bridge fills the gap between cart icon and dropdown */
.mini-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.mini-cart-items {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

/* Custom scrollbar for mini cart items */
.mini-cart-items::-webkit-scrollbar {
    width: 5px;
}

.mini-cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mini-cart-items::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.mini-cart-items::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark, #2a7a5e);
}

.mini-cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.mini-cart-item:last-child {
    border-bottom: none;
}

.mini-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.mini-cart-item-info h4 {
    font-size: 14px;
    margin: 0 0 5px;
}

.mini-cart-item-info .price {
    color: var(--primary-color);
    font-weight: 600;
}

.mini-cart-total {
    padding: 15px 0;
    border-top: 2px solid var(--border-color);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.mini-cart-buttons {
    display: flex;
    gap: 10px;
}

.mini-cart-buttons a {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 13px;
}

.mini-cart-buttons .view-cart {
    background: #f5f5f5;
    color: #333;
}

.mini-cart-buttons .checkout {
    background: var(--primary-color);
    color: #fff;
}

/* ---------------------------------------------------------
   21. PRODUCT BADGES
--------------------------------------------------------- */

/* Safe default: no escaping outside a product card */
.product-badges {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

/* Only go absolute when properly contained inside a product card */
li.product .product-badges,
.product .product-badges,
.woocommerce-loop-product .product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
}

.badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.badge-sale {
    background: #dc3545;
    color: #fff;
}

.badge-new {
    background: #0ea5e9;
    color: #fff;
}

.badge-new {
    background: var(--primary-color);
    color: #fff;
}

.badge-hot {
    background: #fd7e14;
    color: #fff;
}

.badge-out-of-stock {
    background: #6c757d;
    color: #fff;
}

/* ---------------------------------------------------------
   22. LOADING SKELETON
--------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

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

.skeleton-product {
    height: 350px;
    border-radius: 8px;
}

.skeleton-text {
    height: 20px;
    border-radius: 4px;
    margin: 10px 0;
}

/* ---------------------------------------------------------
   23. CATEGORY CARDS
--------------------------------------------------------- */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}

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

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

.category-card:hover img {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
}

.category-card h3 {
    font-size: 18px;
    margin: 0 0 5px;
}

.category-card span {
    font-size: 13px;
    opacity: 0.8;
}

/* ---------------------------------------------------------
   24. PROMO BANNER
--------------------------------------------------------- */
.inline-promo-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.inline-promo-banner h2 {
    font-size: 32px;
    margin: 0 0 10px;
}

.inline-promo-banner p {
    font-size: 18px;
    margin: 0 0 20px;
    opacity: 0.9;
}

.inline-promo-banner .promo-copy-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.inline-promo-banner .promo-code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
}

.inline-promo-banner .btn-secondary {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 18px;
    font-size: 14px;
}

.inline-promo-banner .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------------------------
   25. TESTIMONIALS
--------------------------------------------------------- */
.testimonials {
    background: #f9f9f9;
    padding: 60px 0;
    margin: 40px 0;
}

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

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.testimonial-card .stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 15px;
    margin: 0;
}

.testimonial-author span {
    font-size: 13px;
    color: #888;
}

/* ---------------------------------------------------------
   26. BRANDS SLIDER
--------------------------------------------------------- */
.brands-slider {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.brands-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brands-slider img {
    max-width: 120px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brands-slider img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---------------------------------------------------------
   27. EMPTY STATES
--------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    width: 100px;
    height: 100px;
    fill: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 22px;
    margin: 0 0 10px;
    color: #333;
}

.empty-state p {
    color: #888;
    margin-bottom: 20px;
}

/* ---------------------------------------------------------
   28. PRICE FILTER SLIDER
--------------------------------------------------------- */
.price-slider-wrapper {
    padding: 20px 0;
}

.price-slider {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    position: relative;
}

.price-slider-range {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

.price-slider-handle {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-weight: 500;
}

/* ---------------------------------------------------------
   29. WOOCOMMERCE MY ACCOUNT
--------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 250px;
    float: left;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: calc(100% - 280px);
    float: right;
}

.woocommerce-MyAccount-navigation ul {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

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

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.woocommerce-MyAccount-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------
   30. WOOCOMMERCE CHECKOUT
--------------------------------------------------------- */
.woocommerce-checkout .woocommerce {
    display: flex;
    grid-template-columns: 1.5fr 0fr;
    gap: 40px;
    align-items: start;
}

.woocommerce-checkout #customer_details {
    grid-column: 1;
}

.woocommerce-checkout .woocommerce-checkout-review-order {
    grid-column: 2;
    position: sticky;
    top: 120px;
}

.woocommerce-checkout h3 {
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.woocommerce form .form-row {
    padding: 0;
    margin-bottom: 20px;
}

.woocommerce form .form-row label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row .select2-container .select2-selection {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.woocommerce-checkout-review-order {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.woocommerce #payment {
    background: transparent;
    border-radius: 0;
}

.woocommerce #payment ul.payment_methods {
    padding: 0;
    margin-bottom: 20px;
    border-bottom: none;
}

.woocommerce #payment ul.payment_methods li {
    background: var(--light-bg);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.woocommerce #payment #place_order {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.woocommerce #payment #place_order:hover {
    background: var(--primary-dark);
}

/* ---------------------------------------------------------
   31. WOOCOMMERCE CART PAGE
--------------------------------------------------------- */
.woocommerce-cart .woocommerce {
    display: flex;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.woocommerce-cart .woocommerce-cart-form {
    grid-column: 1;
}

.woocommerce-cart .cart-collaterals {
    grid-column: 2;
}

.woocommerce table.shop_table {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.woocommerce table.shop_table th {
    background: var(--light-bg);
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

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

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

.woocommerce table.shop_table .product-name a {
    font-weight: 600;
    color: #333;
}

.woocommerce table.shop_table .product-remove a {
    color: #999;
    font-size: 20px;
    transition: color 0.3s ease;
}

.woocommerce table.shop_table .product-remove a:hover {
    color: #e74c3c;
}

.cart_totals {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.cart_totals h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.cart_totals .wc-proceed-to-checkout a {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
}

/* ---------------------------------------------------------
   32. SHOP PAGE IMPROVEMENTS
--------------------------------------------------------- */
.woocommerce .woocommerce-ordering {
    margin-bottom: 30px;
}

.woocommerce .woocommerce-ordering select {
    padding: 12px 40px 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.woocommerce .woocommerce-result-count {
    margin-bottom: 30px;
    color: #888;
}

.woocommerce nav.woocommerce-pagination {
    margin-top: 40px;
}

.woocommerce nav.woocommerce-pagination ul {
    border: none;
    display: flex;
    justify-content: center;
    gap: 8px;
}

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

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #333;
    background: #fff;
}

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

/* ---------------------------------------------------------
   33. WOOCOMMERCE MESSAGES
--------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px 15px 50px;
    margin-bottom: 30px;
    border-radius: 8px;
    position: relative;
}

.woocommerce-message {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.woocommerce-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.woocommerce-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive for checkout/cart */
@media (max-width: 992px) {

    .woocommerce-checkout .woocommerce,
    .woocommerce-cart .woocommerce {
        grid-template-columns: 1fr;
    }

    .woocommerce-checkout .woocommerce-checkout-review-order {
        position: static;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 30px;
    }
}

/* ---------------------------------------------------------
   34. TOAST NOTIFICATIONS
--------------------------------------------------------- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 45px 15px 20px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    background: #27ae60;
}

.toast-notification.error {
    background: #e74c3c;
}

.toast-notification.info {
    background: #3498db;
}

.toast-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

.toast-close:hover {
    opacity: 1;
}

/* ---------------------------------------------------------
   35. LOADING SPINNER
--------------------------------------------------------- */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------------------
   36. COPY COUPON BUTTON
--------------------------------------------------------- */
.copy-coupon {
    padding: 8px 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s ease;
}

.copy-coupon:hover {
    background: var(--primary-dark);
}

.copy-coupon.copied {
    background: #27ae60;
}

/* ---------------------------------------------------------
   37. SCROLL PROGRESS BAR
--------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-color);
    z-index: 10001;
    transition: width 0.1s ease;
}

/* ---------------------------------------------------------
   38. PRODUCT BADGES ADDITIONAL
--------------------------------------------------------- */
.product-badge.bestseller {
    background: #f39c12;
    color: #fff;
}

.product-badge.limited {
    background: #9b59b6;
    color: #fff;
}

.product-badge.eco {
    background: #2ecc71;
    color: #fff;
}

/* ---------------------------------------------------------
   39. REVIEW HELPFUL VOTING
--------------------------------------------------------- */
.review-helpful {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-helpful span {
    font-size: 13px;
    color: #888;
}

.review-helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.review-helpful-btn:hover,
.review-helpful-btn.voted {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ---------------------------------------------------------
   40. SOCIAL SHARE BUTTONS
--------------------------------------------------------- */
.social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.social-share span {
    font-weight: 600;
    color: #333;
}

.social-share a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-share a.facebook {
    background: #3b5998;
    color: #fff;
}

.social-share a.twitter {
    background: #1da1f2;
    color: #fff;
}

.social-share a.pinterest {
    background: #bd081c;
    color: #fff;
}

.social-share a.whatsapp {
    background: #25d366;
    color: #fff;
}

.social-share a:hover {
    transform: scale(1.1);
}

/* =========================================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
========================================================= */

/* ---------------------------------------------------------
   TABLET LANDSCAPE (max-width: 1200px)
--------------------------------------------------------- */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .hero-content h2 {
        font-size: 46px;
    }

    .vertical-menu-wrapper {
        display: none;
    }

    .main-navigation ul {
        margin-left: 0;
    }
}

/* ---------------------------------------------------------
   TABLET PORTRAIT (max-width: 992px)
--------------------------------------------------------- */
@media (max-width: 992px) {

    /* Top Menu Responsive */
    .header-topmost .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .topmost-left {
        flex-direction: column;
        gap: 10px;
    }

    /* Header adjustments */
    .header-main .container {
        flex-wrap: wrap;
        gap: 4px;
    }

    .header-search {
        order: 3;
        margin: 0px 0 0 0;
        max-width: 75%;
        flex: 0 0 100%;
    }

    .header-actions {
        gap: 15px;
    }

    .header-action-item span:not(.wishlist-count):not(.compare-count) {
        display: none;
    }

    .header-action-item svg {
        width: 28px;
        height: 28px;
    }

    /* Navigation */
    .main-navigation {
        display: none;
    }

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

    .header-bottom .container {
        justify-content: space-between;
    }

    /* Hero slider */
    .hero-slider {
        height: 450px;
    }

    .hero-content {
        padding: 0 30px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* Products grid */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Features bar */
    .features-bar {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
        padding: 25px 20px !important;
    }

    .feature-item {
        flex: 0 0 45% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 15px !important;
        min-width: 45% !important;
    }

    .feature-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .feature-icon {
        width: 55px !important;
        height: 55px !important;
        min-width: 55px !important;
    }

    .feature-icon svg {
        width: 30px !important;
        height: 30px !important;
    }

    .feature-text h4 {
        font-size: 16px !important;
    }

    .feature-text p {
        font-size: 13px !important;
    }

    /* Footer */
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Section titles */
    .section-title h3 {
        font-size: 26px;
    }

    /* Single product */
    .single-product .product {
        flex-direction: column;
    }

    .single-product .woocommerce-product-gallery,
    .single-product .summary {
        width: 100%;
        max-width: 100%;
    }
}

/* ---------------------------------------------------------
   MOBILE LANDSCAPE (max-width: 768px)
--------------------------------------------------------- */
@media (max-width: 768px) {

    /* Top Menu Responsive */
    .header-topmost {
        padding: 8px 0;
    }
    
    .topmost-right .top-menu-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }
    
    .topmost-right .top-menu-list li::after {
        margin-left: 8px;
    }
    
    .topmost-right .top-menu-list a {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    .top-promo {
        font-size: 11px;
    }
    
    .top-promo svg {
        display: none;
    }
    
    .social-icon {
        width: 24px;
        height: 24px;
    }

    /* Top header */
    .header-top {
        display: none;
    }

    /* Main header */
    .header-main {
        padding: 9px 0;
    }

    .site-title {
        font-size: 24px;
    }

    /* Header actions */
    .header-actions {
        gap: 12px;
    }

    .header-action-item svg {
        width: 24px;
        height: 24px;
    }

    /* Mini cart dropdown */
    .mini-cart-dropdown {
        right: -50px;
        width: 300px;
    }

    /* Hero slider */
    .hero-slider {
        height: 400px;
    }

    .hero-content h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* Features bar */
    .features-bar {
        padding: 20px 15px !important;
        margin-bottom: 30px;
    }

    .feature-item {
        flex: 0 0 100% !important;
        justify-content: flex-start !important;
    }

    .feature-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .feature-icon svg {
        width: 28px !important;
        height: 28px !important;
    }

    .feature-text h4 {
        font-size: 15px !important;
    }

    .feature-text p {
        font-size: 13px !important;
    }

    /* Products - New Arrivals Section */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 30px;
    }

    .woocommerce ul.products li.product {
        padding: 10px;
        margin: 0 !important;
        width: 100% !important;
    }

    .woocommerce ul.products li.product img {
        margin-bottom: 10px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.3;
        margin-bottom: 5px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 34px;
    }

    .woocommerce ul.products li.product .price {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .woocommerce ul.products li.product .price del {
        font-size: 11px;
    }

    .woocommerce ul.products li.product .price ins {
        text-decoration: none;
    }

    .woocommerce ul.products li.product .button {
        padding: 8px 12px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }

    /* Section title responsive */
    .section-title {
        margin-bottom: 20px !important;
        padding: 0 10px;
    }

    .section-title h3 {
        font-size: 22px !important;
    }

    .section-title p {
        font-size: 13px !important;
    }

    /* Product actions */
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }

    .product-actions .action-btn {
        width: 32px;
        height: 32px;
    }

    /* Section spacing */
    .products-section {
        margin-bottom: 30px;
    }

    .section-title h3 {
        font-size: 22px;
    }

    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
        border-radius: 8px;
    }

    .newsletter-form button {
        width: 100%;
        border-radius: 8px;
    }

    /* WooCommerce pages */
    .woocommerce-cart table.shop_table {
        display: block;
        overflow-x: auto;
    }

    .woocommerce table.shop_table td,
    .woocommerce table.shop_table th {
        padding: 12px 10px;
    }

    .woocommerce table.shop_table .product-thumbnail img {
        width: 60px;
        height: 60px;
    }

    /* Checkout */
    .woocommerce-checkout #customer_details .col-1,
    .woocommerce-checkout #customer_details .col-2 {
        width: 100%;
        float: none;
    }

    /* Compare/Wishlist tables */
    .compare-table,
    .wishlist-table {
        display: block;
        overflow-x: auto;
    }

    /* Modal adjustments */
    .quick-view-modal .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Back to top */
    .back-to-top {
        right: 15px;
        /* bottom: 15px; */
        width: 40px;
        height: 40px;
    }

    /* Toast notifications */
    .toast-notification {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
    }
}

/* ---------------------------------------------------------
   MOBILE PORTRAIT (max-width: 576px)
--------------------------------------------------------- */
@media (max-width: 576px) {

    /* Header */
    .header-main .container {
        padding: 0 10px;
    }

    .site-title {
        font-size: 20px;
    }

    .search-field {
        padding: 10px 15px;
        font-size: 14px;
    }

    .search-submit {
        padding: 0 15px;
        font-size: 13px;
    }

    /* Hero */
    .hero-slider {
        height: 350px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-content .subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .hero-content h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 13px;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-primary {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Products - New Arrivals on small screens */
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 0;
    }

    .woocommerce ul.products li.product {
        padding: 8px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .woocommerce ul.products li.product img {
        margin-bottom: 8px;
        border-radius: 6px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        margin-bottom: 4px !important;
        line-height: 1.3;
        min-height: 32px;
    }

    .woocommerce ul.products li.product .price {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .woocommerce ul.products li.product .price del {
        font-size: 10px;
        display: block;
    }

    .woocommerce ul.products li.product .button {
        padding: 6px 10px !important;
        font-size: 11px !important;
        width: 100%;
    }

    /* Product badges on small screens */
    .woocommerce ul.products li.product .onsale,
    .woocommerce ul.products li.product .badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
        top: 5px !important;
        left: 5px !important;
    }

    /* Hide some product elements on small screens */
    .woocommerce ul.products li.product .product-actions {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 8px;
        justify-content: center;
        flex-direction: row;
        gap: 5px;
    }

    .woocommerce ul.products li.product .product-actions .action-btn {
        width: 28px;
        height: 28px;
    }

    /* Categories horizontal scroll */
    .categories-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .categories-slider::-webkit-scrollbar {
        display: none;
    }

    /* Section titles */
    .section-title {
        margin-bottom: 15px !important;
    }

    .section-title h3 {
        font-size: 20px !important;
        margin-bottom: 5px !important;
    }

    .section-title p {
        font-size: 12px !important;
    }

    /* Products section spacing */
    .products-section {
        margin-bottom: 25px;
    }

    /* Features bar compact */
    .features-bar {
        border-radius: 0 !important;
        margin: 0 -10px 20px !important;
    }

    .feature-icon {
        width: 45px !important;
        height: 45px !important;
    }

    .feature-text h4 {
        font-size: 14px !important;
    }

    .feature-text p {
        font-size: 12px !important;
    }

    /* Footer */
    .footer-widget h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-widget ul li {
        margin-bottom: 8px;
    }

    /* Badges */
    .badge,
    .product-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* Quick view disable on mobile */
    .quick-view-btn {
        display: none;
    }

    /* Pagination */
    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Account page */
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 12px 15px;
        font-size: 14px;
    }

    /* Forms */
    .woocommerce form .form-row {
        width: 100% !important;
        float: none !important;
    }

    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last {
        width: 100% !important;
    }
}

/* ---------------------------------------------------------
   MOBILE MENU STYLES
--------------------------------------------------------- */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--primary-dark);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
}

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

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-color);
    color: #fff;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    transition: background 0.3s ease;
}

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

.mobile-menu-nav {
    padding: 15px 0;
}

.mobile-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-nav>ul>li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-nav>ul>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.mobile-menu-nav>ul>li>a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.mobile-menu-nav .sub-menu {
    display: none;
    background: #f9f9f9;
    padding: 10px 0;
}

.mobile-menu-nav .sub-menu li a {
    padding: 10px 20px 10px 35px;
    font-size: 14px;
    color: #555;
    display: block;
}

.mobile-menu-nav .sub-menu li a:hover {
    color: var(--primary-color);
}

.mobile-menu-nav li.open>.sub-menu {
    display: block;
}

.mobile-menu-nav .menu-toggle-arrow {
    width: 24px;
    height: 24px;
    fill: #999;
    transition: transform 0.3s ease;
}

.mobile-menu-nav li.open>a .menu-toggle-arrow {
    transform: rotate(180deg);
}

/* Mobile Menu Categories — matches desktop vertical-menu-dropdown */
.mobile-menu-categories {
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.mobile-menu-categories h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: #888;
    margin: 0 20px 10px;
    letter-spacing: 1px;
}

/* Mobile vertical menu list */
.mobile-vertical-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    position: relative;
}

/* Row containing the link + toggle button */
.mobile-cat-row {
    display: flex;
    align-items: center;
}

.mobile-cat-link {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.mobile-cat-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-cat-link:hover::before,
.mobile-menu-item.open > .mobile-cat-row .mobile-cat-link::before {
    transform: scaleY(1);
}

.mobile-cat-link:hover,
.mobile-menu-item.open > .mobile-cat-row .mobile-cat-link {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Category icon */
.mobile-menu-categories .cat-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.mobile-cat-link:hover .cat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-categories .cat-icon-placeholder {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mobile-cat-link:hover .cat-icon-placeholder {
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.1);
}

/* Cat name */
.mobile-cat-link .cat-name {
    flex: 1;
}

/* Cat count badge */
.mobile-cat-link .cat-count {
    font-size: 11px;
    background: #f0fdf4;
    color: #059669;
    border-radius: 20px;
    padding: 1px 7px;
    font-weight: 600;
    margin-left: auto;
}

/* Subcategory toggle button */
.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    min-height: 48px;
    background: none;
    border: none;
    border-left: 1px solid #f0f0f0;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-submenu-toggle:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.mobile-submenu-toggle .mobile-arrow-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-item.open > .mobile-cat-row .mobile-submenu-toggle .mobile-arrow-icon {
    transform: rotate(180deg);
}

.mobile-menu-item.open > .mobile-cat-row .mobile-submenu-toggle {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Submenu dropdown (accordion) */
.mobile-submenu-dropdown {
    max-height: 0;
    overflow: hidden;
    background: #fafafa;
    border-top: 1px solid transparent;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s ease;
}

.mobile-menu-item.open > .mobile-submenu-dropdown {
    max-height: 600px;
    border-top-color: #f0f0f0;
}

.mobile-submenu-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.mobile-submenu-list li a {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 56px;
    color: #555;
    font-size: 13px;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-submenu-list li a::before {
    content: '\203A';
    position: absolute;
    left: 40px;
    color: var(--primary-color);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mobile-submenu-list li a:hover::before {
    opacity: 1;
}

.mobile-submenu-list li a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 62px;
}

.mobile-submenu-list li a .count {
    font-size: 11px;
    color: #999;
    margin-left: 6px;
}

/* View All link */
.mobile-view-all {
    display: block;
    padding: 10px 20px 10px 56px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color) !important;
    border-top: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.mobile-view-all:hover {
    background: var(--primary-light);
    padding-left: 62px;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: #f9f9f9;
}

.mobile-menu-footer .contact-info {
    margin-bottom: 15px;
}

.mobile-menu-footer .contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.mobile-menu-footer .contact-info svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
}

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

.mobile-menu-footer .social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
}

/* ---------------------------------------------------------
   RESPONSIVE UTILITIES
--------------------------------------------------------- */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none !important;
}

/* Vertical category toggle button — hidden on desktop, shown on mobile */
.vertical-cat-toggle {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }

    /* ---- Vertical category menu: mobile submenu ---- */

    /* Show the toggle arrow button */
    .vertical-cat-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin-left: auto;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        border-radius: 50%;
        transition: background 0.2s;
    }

    .vertical-cat-toggle:hover {
        background: var(--primary-light, #fde8e8);
    }

    .vertical-cat-toggle svg {
        fill: #555;
        transition: transform 0.3s ease;
    }

    .menu-item.has-children.open > a .vertical-cat-toggle svg {
        transform: rotate(180deg);
    }

    /* Hide the normal right-pointing arrow — replaced by toggle button */
    .vertical-menu-list .menu-item .arrow-right {
        display: none;
    }

    /* Submenu: collapse by default, expand on .open */
    .vertical-menu-list .menu-item.has-children .submenu-dropdown {
        position: static;
        transform: none;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        background: #f9f9f9;
        min-width: 0;
        pointer-events: none;
        margin-left: 0;
    }

    .vertical-menu-list .menu-item.has-children.open > .submenu-dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        pointer-events: auto;
    }
}

/* Print styles */
@media print {

    .header-top,
    .header-bottom,
    .back-to-top,
    .mobile-menu-panel,
    .mobile-menu-overlay,
    .product-actions,
    .mini-cart-dropdown {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .container {
        max-width: 100%;
    }
}

/* ---------------------------------------------------------
   ADDITIONAL RESPONSIVE FIXES
--------------------------------------------------------- */

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll on mobile */
html,
body {
    overflow-x: hidden;
}

/* Container responsive padding */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
}

/* Header bottom responsive — hamburger aligned with logo row */
@media (max-width: 1200px) {

    /* Make site-header the positioning reference */
    .site-header {
        position: relative;
        overflow: visible;
    }

    /*
     * Pull header-bottom out of normal flow and overlay it on top of
     * header-main so the toggle button appears at the same visual row
     * as the site logo. header-topmost & header-top are both hidden on
     * mobile, so top:0 of .site-header equals the top of .header-main.
     */
    .header-bottom {
        position: absolute !important;
        top: 0 !important;
        right: auto !important;
        left:  0 !important;
        width: auto !important;
        /* zero layout height — children overflow visibly */
        height: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        z-index: 500;
        pointer-events: none; /* clicks pass through to header-main below */
    }

    /*
     * The container stretches to match header-main's mobile height
     * (logo 60px + 15px top padding + 15px bottom padding = 90px).
     * The toggle is pushed to the far-right end.
     */
    .header-bottom .container {
        height: 275px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 0 16px 0 0 !important;
        max-width: none !important;
        width: auto !important;
        pointer-events: none;
    }

    /* Toggle itself must receive clicks */
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        pointer-events: all;
    }

    /* Give header-actions a right gap so its icons don't slide under the toggle */
    .header-main .header-actions {
        padding-right: 56px; /* 44px toggle button + 12px breathing room */
    }

    /* Hide nav elements that have no place on mobile */
    .vertical-menu-wrapper {
        display: none !important;
    }

    .main-navigation {
        display: none !important;
    }
}

/* Search results responsive */
@media (max-width: 768px) {
    .header-actions {
        display: none !important;
    }

    .search-results {
        left: 0;
        right: 0;
        width: auto;
    }

    .search-results-list .search-result-item {
        padding: 10px;
    }

    .search-results-list .search-result-item img {
        width: 50px;
        height: 50px;
    }
}

/* Categories slider responsive */
@media (max-width: 768px) {
    .categories-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .categories-grid::-webkit-scrollbar {
        height: 4px;
    }

    .categories-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }

    .category-card {
        flex: 0 0 150px;
    }
}

/* Product card badges responsive */
@media (max-width: 576px) {

    .woocommerce ul.products li.product .onsale,
    .woocommerce ul.products li.product .badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Mini cart responsive */
@media (max-width: 576px) {
    .mini-cart-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        border-radius: 15px 15px 0 0;
    }
}

/* Single product responsive */
@media (max-width: 768px) {

    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100%;
        float: none;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs {
        display: flex;
        flex-wrap: wrap;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        flex: 1;
        text-align: center;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 10px;
        font-size: 13px;
    }
}

/* Footer responsive improvements */
@media (max-width: 576px) {
    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-widget {
        text-align: center;
    }

    .footer-widget ul {
        display: inline-block;
        text-align: left;
    }

    .footer-bottom .container {
        padding: 20px 15px;
    }
}

/* Quantity input responsive */
@media (max-width: 576px) {
    .woocommerce .quantity {
        width: 100%;
        margin-bottom: 10px;
    }

    .woocommerce .quantity input.qty {
        width: 100%;
    }

    .woocommerce button.single_add_to_cart_button {
        width: 100%;
    }
}

/* Account navigation responsive */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 30px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        flex: 1 1 auto;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 10px 15px;
        text-align: center;
        font-size: 13px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Show product actions always on touch devices */
    .woocommerce ul.products li.product .product-actions {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    /* Larger touch targets */
    .product-actions .action-btn {
        width: 40px;
        height: 40px;
    }

    /* Remove hover effects that don't work on touch */
    .woocommerce ul.products li.product:hover {
        transform: none;
    }
}

/* ---------------------------------------------------------
   BACKORDER PRICE LABEL
--------------------------------------------------------- */
.backorder-price-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
    color: #888;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 4px;
    padding: 2px 8px;
    letter-spacing: 0.2px;
}

/* ---------------------------------------------------------
   RECENTLY VIEWED SECTION
--------------------------------------------------------- */
.recently-viewed-section {
    margin: 40px 0;
    padding: 30px 0;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 30px;
}

.recently-viewed-section .section-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
}

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

.recently-viewed-section .products-grid .product {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.recently-viewed-section .products-grid .product:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.recently-viewed-section .products-grid .product img {
    border-radius: 6px;
    margin-bottom: 10px;
}

.recently-viewed-section .products-grid .product .woocommerce-loop-product__title {
    font-size: 14px;
    margin-bottom: 8px;
}

.recently-viewed-section .products-grid .product .price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Add to Cart button — match standard product card style */
.recently-viewed-section .products-grid .product .button,
.recently-viewed-section .products-grid .product a.button,
.recently-viewed-section .products-grid .product .add_to_cart_button {
    display: inline-block;
    background-color: #f5f5f5;
    color: #333 !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 13px;
    font-family: var(--font-main);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.recently-viewed-section .products-grid .product .button:hover,
.recently-viewed-section .products-grid .product a.button:hover,
.recently-viewed-section .products-grid .product .add_to_cart_button:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* Recently Viewed Responsive - 3 cards on tablet/mobile */
@media (max-width: 992px) {
    .recently-viewed-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .recently-viewed-section {
        margin: 25px 0;
        padding: 20px 15px;
        border-radius: 8px;
    }

    .recently-viewed-section .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .recently-viewed-section .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
    }

    .recently-viewed-section .products-grid .product {
        padding: 10px;
    }

    .recently-viewed-section .products-grid .product .woocommerce-loop-product__title {
        font-size: 11px;
        line-height: 1.3;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .recently-viewed-section .products-grid .product .price {
        font-size: 12px;
    }

    .recently-viewed-section .products-grid .product .button {
        font-size: 10px;
        padding: 5px 8px;
    }
}

@media (max-width: 576px) {
    .recently-viewed-section .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }

    .recently-viewed-section .products-grid .product {
        padding: 8px;
    }

    .recently-viewed-section .products-grid .product img {
        margin-bottom: 6px;
    }

    .recently-viewed-section .products-grid .product .woocommerce-loop-product__title {
        font-size: 10px;
        min-height: 26px;
    }

    .recently-viewed-section .products-grid .product .price {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .recently-viewed-section .products-grid .product .button {
        font-size: 9px;
        padding: 4px 6px;
        width: 100%;
    }

    .recently-viewed-section .products-grid .product .onsale,
    .recently-viewed-section .products-grid .product .badge {
        font-size: 8px;
        padding: 2px 4px;
    }
}

/* ---------------------------------------------------------
   10. Hot Deals Section
--------------------------------------------------------- */
.hot-deals-section {
    display: flex;
    align-items: center;
    background-color: #eaf8f4;
    border-radius: 12px;
    margin: 0px 0;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.deal-content {
    flex: 1;
    padding: 60px;
    z-index: 2;
}

.deal-content .deal-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deal-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #222;
    font-weight: 700;
    line-height: 1.2;
}

.deal-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 35px;
    max-width: 500px;
    line-height: 1.6;
}

.deal-image {
    flex: 1;
    height: 100%;
    position: relative;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 450px;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.timer-box {
    background: #fff;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timer-box .time-val {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.timer-box .time-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

/* Hot Deals Responsive */
@media (max-width: 900px) {
    .hot-deals-section {
        flex-direction: inherit;
    }

    .deal-content {
        padding: 40px 30px;
        text-align: center;
    }

    .deal-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .countdown-timer {
        justify-content: center;
    }

    .deal-image {
        width: 100%;
    }

    .deal-image img {
        min-height: 300px;
    }
}

@media (max-width: 500px) {
    .deal-content h2 {
        font-size: 28px;
    }

    .countdown-timer {
        gap: 10px;
    }

    .timer-box {
        width: 65px;
        height: 65px;
    }

    .timer-box .time-val {
        font-size: 22px;
    }
}

/* ---------------------------------------------------------
   My Account — Login / Register Page
--------------------------------------------------------- */
.para-account-wrapper {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #fff0f0 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    justify-content: center;
}

.para-account-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 100%;
    max-width: 900px;
}

.para-account-container.login-only {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

/* Card */
.para-account-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    padding: 44px 40px;
    transition: box-shadow 0.3s ease;
}

.para-account-card:hover {
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.para-account-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.para-account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(225, 45, 57, 0.35);
}

.para-account-icon--register {
    background: linear-gradient(135deg, #2c3e50, #4a6fa5);
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.3);
}

.para-account-card-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 6px;
}

.para-account-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Form groups */
.para-form .para-form-group {
    margin-bottom: 20px;
}

.para-form .para-form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.para-form .para-form-group label svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.para-form .required {
    color: var(--primary-color);
    font-size: 12px;
}

/* Inputs */
.para-form .para-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--text-color);
    background: #fafafa;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.para-form .para-input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(225, 45, 57, 0.1);
}

/* Password toggle wrapper */
.para-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.para-input-wrap .para-input {
    padding-right: 46px;
}

.para-toggle-pw {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #aaa;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    line-height: 1;
}

.para-toggle-pw:hover {
    color: var(--primary-color);
}

/* Footer row (remember + forgot) */
.para-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.para-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
}

.para-remember input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.para-lost-pw {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.para-lost-pw:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* Buttons */
.para-btn-primary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    border: 2px solid var(--primary-color) !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(225, 45, 57, 0.3) !important;
    font-family: var(--font-main) !important;
    letter-spacing: 0.3px;
}

.para-btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 6px 20px rgba(225, 45, 57, 0.4) !important;
    transform: translateY(-1px);
}

.para-btn-outline {
    background: transparent !important;
    color: #2c3e50 !important;
    border-color: #2c3e50 !important;
    box-shadow: none !important;
}

.para-btn-outline:hover {
    background: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.25) !important;
}

/* Register info note */
.para-register-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #2c5282;
    margin-bottom: 24px;
    line-height: 1.5;
}

.para-register-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #3182ce;
}

/* WooCommerce notices inside the cards */
.para-account-wrapper .woocommerce-error,
.para-account-wrapper .woocommerce-message,
.para-account-wrapper .woocommerce-info {
    border-radius: 10px;
    margin-bottom: 24px;
}

/* Divider between the two cards (optional visual separator on mobile) */
.para-account-container.has-register {
    position: relative;
}

@media (min-width: 769px) {
    .para-account-container.has-register::after {
        content: 'OR';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #fff;
        border: 2px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        color: #aaa;
        letter-spacing: 0.5px;
        z-index: 1;
        pointer-events: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .para-account-container {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .para-account-card {
        padding: 32px 24px;
    }

    .para-account-wrapper {
        padding: 40px 16px;
    }
}

/* ---------------------------------------------------------
   PROMO & DISCOUNTS SECTION
--------------------------------------------------------- */
.promo-products-section {
    border-radius: 16px;
    padding: 30px 30px;
    margin: 60px 0;
}

/* --- Header row --- */
.promo-products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.promo-products-header-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.promo-label-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 4px;
}

.promo-products-header-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
    line-height: 1.2;
}

.promo-products-header-text p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.promo-viewall-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 9px 20px;
    border-radius: 50px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.promo-viewall-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- Product grid --- */
.promo-products-grid {
    display: grid;
    gap: 20px;
}

.promo-cols-2 { grid-template-columns: repeat(2, 1fr); }
.promo-cols-3 { grid-template-columns: repeat(3, 1fr); }
.promo-cols-4 { grid-template-columns: repeat(4, 1fr); }
.promo-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* --- Product card --- */
.promo-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.promo-product-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    transform: translateY(-4px);
}

/* --- Image wrapper --- */
.promo-product-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

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

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

/* Discount badge on image */
.promo-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* --- Product info --- */
.promo-product-info {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.promo-product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-product-title:hover {
    color: var(--primary-color);
}

.promo-product-price {
    font-size: 16px;
    font-weight: 700;
}

.promo-product-price ins {
    text-decoration: none;
    color: var(--primary-color);
}

.promo-product-price del {
    color: #aaa;
    font-size: 13px;
    font-weight: 400;
}

/* Add to cart button */
.promo-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding: 9px 16px;
    border-radius: 8px;
    border: 2px solid;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.promo-add-to-cart:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff;
}

.promo-view-product {
    background: #555 !important;
    border-color: #555 !important;
}

/* No products message */
.promo-no-products {
    text-align: center;
    color: #888;
    padding: 40px 0;
    font-size: 15px;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .promo-cols-5 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .promo-cols-4,
    .promo-cols-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
    .promo-products-section {
        padding: 32px 20px;
        margin: 40px 0;
    }

    .promo-cols-3,
    .promo-cols-4,
    .promo-cols-5 { grid-template-columns: repeat(2, 1fr); }

    .promo-products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-viewall-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .promo-cols-2,
    .promo-cols-3,
    .promo-cols-4,
    .promo-cols-5 { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------
   ADD-TO-CART FLOATING POPUP
--------------------------------------------------------- */
#atc-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    width: 340px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    border: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#atc-popup.atc-popup-show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.atc-popup-inner {
    padding: 22px 20px 18px;
    position: relative;
}

/* Close ×  */
.atc-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.atc-popup-close:hover { color: #333; }

/* Green check circle */
.atc-popup-check {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #16a34a;
}

.atc-popup-label {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px;
}

/* Product row */
.atc-popup-product {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 14px;
}

.atc-popup-product img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.atc-popup-product span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.atc-popup-pname {
    font-size: 13px;
    color: #555;
    margin: 0 0 14px;
}

/* Action buttons */
.atc-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.atc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: filter 0.2s ease, transform 0.15s ease;
    width: 100%;
    text-align: center;
}

.atc-btn:hover {
    filter: brightness(0.93);
    transform: translateY(-1px);
}

.atc-btn-primary {
    background: var(--primary-color, #e53e3e);
    color: #fff !important;
}

.atc-btn-secondary {
    background: var(--secondary-color, #1a5490);
    color: #fff !important;
}

.atc-btn-ghost {
    background: #f3f4f6;
    color: #555;
}

.atc-btn-ghost:hover {
    background: #e5e7eb;
    color: #333;
}

@media (max-width: 480px) {
    #atc-popup {
        bottom: 16px;
        right: 16px;
        width: calc(100vw - 32px);
    }
}

/* =========================================================
   CHECKOUT — SHIPPING FIELDS ORGANISED LAYOUT
   (Classic WooCommerce checkout + WC Blocks checkout)
========================================================= */

/* ── Section card wrapper ── */
.woocommerce-shipping-fields,
.wc-block-components-address-form {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 30px 28px 20px;
    margin-bottom: 28px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.055);
    font-family: "Jost", sans-serif;
}

/* ── Section title ── */
.woocommerce-shipping-fields h3,
.woocommerce-shipping-fields .woocommerce-shipping-fields__field-wrapper > legend,
.wc-block-components-address-form .wc-block-components-form-step__heading {
    font-family: "Jost", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #14532d;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #bbf7d0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.woocommerce-shipping-fields h3::before {
    content: "🚚";
    font-size: 18px;
}

/* ── Field container: 2-column grid ── */
#shipping_fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    row-gap: 0;
}

/* First / last name — side by side (already form-row-first / form-row-last) */
#shipping_first_name_field { grid-column: 1; }
#shipping_last_name_field  { grid-column: 2; }

/* Company — full width */
#shipping_company_field    { grid-column: 1 / -1; }

/* Country — full width */
#shipping_country_field    { grid-column: 1 / -1; }

/* Address line 1 — full width */
#shipping_address_1_field  { grid-column: 1 / -1; }

/* Address line 2 — full width */
#shipping_address_2_field  { grid-column: 1 / -1; }

/* City | Postcode side by side */
#shipping_city_field     { grid-column: 1; }
#shipping_postcode_field { grid-column: 2; }

/* State — full width below city/postcode */
#shipping_state_field    { grid-column: 1 / -1; }

/* Phone — full width */
#shipping_phone_field    { grid-column: 1 / -1; }

/* ── Labels ── */
#shipping_fields .form-row label {
    font-family: "Jost", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

/* ── Inputs ── */
#shipping_fields .form-row input.input-text,
#shipping_fields .form-row select,
#shipping_fields .form-row .select2-container .select2-selection--single {
    width: 100%;
    padding: 11px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-family: "Jost", sans-serif !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.04) !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    appearance: none;
    -webkit-appearance: none;
}
#shipping_fields .form-row .select2-container .select2-selection__rendered {
    line-height: 40px !important;
    padding-left: 0 !important;
    color: #1e293b !important;
}
#shipping_fields .form-row .select2-container .select2-selection--single {
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
}

/* Focus state */
#shipping_fields .form-row input.input-text:focus,
#shipping_fields .form-row select:focus {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 3px rgba(39,174,96,0.12) !important;
    outline: none !important;
    background: #ffffff !important;
}

/* Optional / required badge */
#shipping_fields .form-row .required {
    color: #e53e3e;
    font-size: 13px;
    margin-left: 2px;
}
#shipping_fields .form-row .optional {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Validation error */
#shipping_fields .form-row.woocommerce-invalid input.input-text,
#shipping_fields .form-row.woocommerce-invalid select {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229,62,62,0.10) !important;
}

/* Validation OK */
#shipping_fields .form-row.woocommerce-validated input.input-text,
#shipping_fields .form-row.woocommerce-validated select {
    border-color: #27ae60 !important;
}

/* ── WC Blocks checkout — shipping address form ── */
.wp-block-woocommerce-checkout .wc-block-components-address-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
}
.wp-block-woocommerce-checkout .wc-block-components-address-form
    .wc-block-components-text-input,
.wp-block-woocommerce-checkout .wc-block-components-address-form
    .wc-block-components-country-input,
.wp-block-woocommerce-checkout .wc-block-components-address-form
    .wc-block-components-state-input {
    grid-column: 1 / -1;
}
/* First and last name side by side in blocks */
.wp-block-woocommerce-checkout .wc-block-components-address-form
    [data-id="first_name"],
.wp-block-woocommerce-checkout .wc-block-components-address-form
    [data-id="last_name"] {
    grid-column: span 1;
}
/* City + postcode side by side in blocks */
.wp-block-woocommerce-checkout .wc-block-components-address-form
    [data-id="city"] {
    grid-column: 1;
}
.wp-block-woocommerce-checkout .wc-block-components-address-form
    [data-id="postcode"] {
    grid-column: 2;
}

/* Block text inputs */
.wp-block-woocommerce-checkout
    .wc-block-components-address-form
    .wc-block-components-text-input input,
.wp-block-woocommerce-checkout
    .wc-block-components-address-form
    .wc-block-components-country-input .wc-block-components-combobox input,
.wp-block-woocommerce-checkout
    .wc-block-components-address-form
    .wc-block-components-state-input select {
    padding: 11px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-family: "Jost", sans-serif !important;
    font-size: 14px !important;
    background: #f8fafc !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}
.wp-block-woocommerce-checkout
    .wc-block-components-address-form
    .wc-block-components-text-input input:focus,
.wp-block-woocommerce-checkout
    .wc-block-components-address-form
    .wc-block-components-country-input .wc-block-components-combobox input:focus {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 3px rgba(39,174,96,0.12) !important;
    outline: none !important;
    background: #ffffff !important;
}

/* Block labels */
.wp-block-woocommerce-checkout
    .wc-block-components-address-form label {
    font-family: "Jost", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    color: #64748b !important;
}

/* ── Responsive: single column on mobile ── */
@media (max-width: 640px) {
    #shipping_fields {
        grid-template-columns: 1fr;
    }
    #shipping_first_name_field,
    #shipping_last_name_field,
    #shipping_company_field,
    #shipping_country_field,
    #shipping_address_1_field,
    #shipping_address_2_field,
    #shipping_city_field,
    #shipping_postcode_field,
    #shipping_state_field,
    #shipping_phone_field {
        grid-column: 1 / -1;
    }
    .woocommerce-shipping-fields {
        padding: 20px 16px 14px;
    }
}