/*===============================================
  HERO SLIDER STYLES
===============================================*/
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.15) 50%,
        rgba(0,0,0,0) 100%
    );
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding-top: 10%;
    padding-left: 5%;
    height: 100%;
    display: flex;
}

.slide-text {
    max-width: 600px;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: max-content;
    padding: 10px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    white-space: nowrap; 
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-top: -20px;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.slide-description {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-2xl);
    opacity: 0.9;
}

.slide-actions {
    display: flex;
    gap: var(--spacing-md);
}

.slide-image {
    flex: 1;
    height: 100%;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    animation: float 3s ease-in-out infinite;
}

.slider-button {
    align-self: flex-start; 
    margin-top: 24px;
    margin-left: auto;
    margin-right: 20px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: var(--spacing-lg);
}

.slider-nav.next {
    right: var(--spacing-lg);
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    width: 32px;
    border-radius: 6px;
    background: white;
}

/*===============================================
  FEATURES SECTION
===============================================*/
.features-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

.feature-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.feature-content p {
    font-size: 0.938rem;
    color: var(--text-secondary);
}

/*===============================================
  CATEGORIES SECTION
===============================================*/
.categories-section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: gap var(--transition-fast);
}

.section-link:hover {
    gap: var(--spacing-sm);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.category-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.category-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 3rem;
}

.category-info {
    padding: var(--spacing-lg);
    background: var(--bg-primary);
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.category-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/*===============================================
  PRODUCTS SECTION
===============================================*/
.products-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.product-tabs {
    display: flex;
    gap: var(--spacing-md);
}

.tab-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: transparent;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.products-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.products-grid-home {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.products-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.product-card {
    background: var(--bg-primary);
    /* border-radius: var(--radius-lg); */
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    /* transition: all var(--transition-base); */
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    /* transform: translateY(-8px); */
}

.product-badges {
    position: absolute;
    top: var(--spacing-xs);
    left: var(--spacing-xs);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.badge {
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    display: flex;
    align-items: center;      /* vertical center */
    justify-content: center;  /* horizontal center */
    text-align: center;
}

.badge-sale {
    background: var(--accent);
    color: white;
    top: 0px;
    right: -50px;
    height: 50px;
    width: 50px;
}

.badge-new {
    background: var(--accent);
    color: white;
    top: 0px;
    right: -50px;
    height: 50px;
    width: 50px;
}

.badge-out {
    background: var(--text-muted);
    color: white;
    top: 0px;
    right: -50px;
    height: 50px;
    width: 50px;
}

.badge-featured {
    background: var(--secondary);
    color: white;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 2;
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.product-card:hover .product-image::after {
    opacity: 0.25;
}

.product-actions {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-base);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: var(--spacing-sm);
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.product-title {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.product-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

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

.stars i {
    color: var(--secondary);
    font-size: 0.875rem;
}

.rating-count {
    font-size: 0.813rem;
    color: var(--text-secondary);
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

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

.product-price del {
    order: 2;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-right: var(--spacing-xs);
}

.product-price .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

.section-footer {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

/*===============================================
  DEAL SECTION
===============================================*/
.deal-section {
    padding: var(--spacing-3xl) 0;
    background: var(--text-primary);
    color: white;
}

.deal-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-3xl);
}

.deal-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.deal-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.deal-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
}

.countdown-timer {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.timer-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    min-width: 100px;
}

.timer-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.timer-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.deal-image img {
    max-width: 500px;
    animation: float 3s ease-in-out infinite;
}

/*===============================================
  TESTIMONIALS SECTION
===============================================*/
.testimonials-section {
    padding: var(--spacing-3xl) 0;
}

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

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.testimonial-card {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-rating {
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/*===============================================
  NEWSLETTER SECTION
===============================================*/
.newsletter-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
}

.newsletter-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.newsletter-text {
    flex: 1;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.newsletter-description {
    font-size: 1.125rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 500px;
}

.newsletter-input {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.newsletter-form .btn {
    white-space: nowrap;
}

/* ===============================
   FIX BACK TO TOP (ROOT CAUSE)
================================ */
/* Kill transforms that break fixed positioning */
.slider-wrapper,
.products-section,
.products-grid,
.home-section,
.site-content,
#page {
    transform: none !important;
}

/* Ensure no clipping */
body,
#page {
    overflow-x: visible !important;
}

/* Force viewport fixed */
.back-to-top {
    position: fixed !important;
    right: 16px;
    bottom: 16px;
    color: #fff;
    font-size: 1rem;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    z-index: 2147483647;
    background-color: var(--primary);
}

/*===============================================
  LOADING OVERLAY
===============================================*/
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner-border {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/*===============================================
  ADDITIONAL CSS - Cart Sidebar & Load More
  Add this to main.css or create separate file
===============================================*/

/*===============================================
  MINI CART SIDEBAR
===============================================*/

.mini-cart-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -450px !important;
    width: 450px !important;
    height: 100vh !important;
    background: var(--bg-primary) !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15) !important;
    z-index: 10000 !important;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
}

.mini-cart-sidebar.active {
    right: 0 !important;
}

.mini-cart-content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.mini-cart-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: var(--spacing-lg) var(--spacing-xl) !important;
    border-bottom: 2px solid var(--border) !important;
    background: var(--bg-secondary) !important;
}

.mini-cart-header h3 {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

.close-mini-cart {
    background: transparent !important;
    border: none !important;
    font-size: 1.5rem !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-fast) !important;
}

.close-mini-cart:hover {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    transform: rotate(90deg) !important;
}

.mini-cart-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: var(--spacing-lg) var(--spacing-xl) !important;
}

/* WooCommerce Mini Cart Items */
.woocommerce-mini-cart {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-mini-cart-item {
    gap: var(--spacing-md) !important;
    padding: var(--spacing-md) 0 !important;
    border-bottom: 1px solid var(--border) !important;
}

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

.woocommerce-mini-cart-item a:not(.remove) {
    text-decoration: none !important;
    color: var(--text-primary) !important;
    font-weight: 500 !important;
    transition: color var(--transition-fast) !important;
}

.woocommerce-mini-cart-item a:not(.remove):hover {
    color: var(--primary) !important;
}

.woocommerce-mini-cart-item img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: var(--radius-md) !important;
}

.woocommerce-mini-cart-item .remove {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
}

.woocommerce-mini-cart-item .remove:hover {
    color: var(--danger) !important;
    transform: rotate(90deg) !important;
}

.woocommerce-mini-cart__total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: var(--spacing-lg) 0 !important;
    margin-top: var(--spacing-lg) !important;
    border-top: 2px solid var(--border) !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}

.woocommerce-mini-cart__buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--spacing-md) !important;
    margin-top: var(--spacing-lg) !important;
}

.woocommerce-mini-cart__buttons .button {
    width: 100% !important;
    padding: var(--spacing-md) !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    transition: all var(--transition-fast) !important;
}

.woocommerce-mini-cart__buttons .checkout {
    background: var(--primary) !important;
    color: white !important;
    border: 2px solid var(--primary) !important;
}

.woocommerce-mini-cart__buttons .checkout:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.woocommerce-mini-cart__buttons .wc-forward {
    background: transparent !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--border) !important;
}

.woocommerce-mini-cart__buttons .wc-forward:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* Empty Cart */
.woocommerce-mini-cart__empty-message {
    text-align: center !important;
    padding: var(--spacing-3xl) var(--spacing-xl) !important;
    color: var(--text-secondary) !important;
}

/*===============================================
  MOBILE MENU OVERLAY
===============================================*/

.mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/*===============================================
  LOAD MORE BUTTON STYLING
===============================================*/

.load-more-btn {
    position: relative !important;
    overflow: hidden !important;
    background: transparent !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--border) !important;
    padding: var(--spacing-md) var(--spacing-2xl) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--spacing-sm) !important;
}

.load-more-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

.load-more-btn:active {
    transform: translateY(0) !important;
}

.load-more-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.load-more-btn i {
    transition: transform var(--transition-fast) !important;
}

.load-more-btn:hover i {
    transform: rotate(180deg) !important;
}

/* Loading animation for load more button */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.load-more-btn .fa-spinner {
    animation: spin 1s linear infinite !important;
}

/*===============================================
  PRODUCTS GRID LOADING STATE
===============================================*/

.products-grid.loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.products-grid.loading::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/*===============================================
  SECTION FOOTER (Load More Container)
===============================================*/

.section-footer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: var(--spacing-2xl) !important;
    padding-top: var(--spacing-xl) !important;
    border-top: 2px solid var(--border) !important;
}

/*===============================================
  PRODUCT CARD ANIMATION (for loaded items)
===============================================*/

.product-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card.fade-in {
    animation: fadeInUp 0.6s ease-out !important;
}

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

/*===============================================
  RESPONSIVE - MOBILE
===============================================*/

@media (max-width: 768px) {
    .mini-cart-sidebar {
        width: 100% !important;
        right: -100% !important;
    }

    .mini-cart-sidebar.active {
        right: 0 !important;
    }

    .mini-cart-body {
        padding: var(--spacing-md) !important;
    }
}

@media (max-width: 480px) {
    .load-more-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .section-footer {
        padding: 0 var(--spacing-md) !important;
    }
}

/*===============================================
  TOAST CONTAINER
===============================================*/

#toastContainer {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--spacing-sm) !important;
}

.toast {
    background: white !important;
    padding: var(--spacing-md) var(--spacing-lg) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--spacing-sm) !important;
    min-width: 300px !important;
    transform: translateX(400px) !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
}

.toast.show {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.toast-success {
    border-left: 4px solid var(--accent) !important;
}

.toast-error {
    border-left: 4px solid var(--danger) !important;
}

.toast-info {
    border-left: 4px solid var(--secondary) !important;
}

.toast i {
    font-size: 1.25rem !important;
}

.toast-success i {
    color: var(--accent) !important;
}

.toast-error i {
    color: var(--danger) !important;
}

.toast-info i {
    color: var(--secondary) !important;
}

.toast span {
    flex: 1 !important;
    color: var(--text-primary) !important;
}

.toast-close {
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    padding: var(--spacing-xs) !important;
    transition: color var(--transition-fast) !important;
}

.toast-close:hover {
    color: var(--text-primary) !important;
}

@media (max-width: 480px) {
    #toastContainer {
        left: 20px !important;
        right: 20px !important;
    }

    .toast {
        min-width: auto !important;
        width: 100% !important;
    }
}

/* Deal of the day */
/* Main wrapper */
.deal-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* LEFT SIDE */
.deal-info {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.deal-tag {
    display: inline-block;
    width: fit-content;
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.deal-title {
    font-size: 2.75rem;
    font-weight: 800;
}

.deal-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

.deal-btn {
    width: fit-content;
    margin-top: 10px;
}

/* RIGHT SIDE PRODUCTS */
.deal-products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Product card */
.deal-product-card {
    background: #ffffff;
    /* border-radius: 16px; */
    /* text-align: center; */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

.deal-product-card:hover {
    /* transform: translateY(-6px); */
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* .deal-product-image img {
    width: 100%;
    height: auto;
} */

.deal-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.deal-product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 2;
    pointer-events: none;
}

.deal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.deal-product-card:hover .deal-product-image::after {
    opacity: 0.25;
}

.deal-product-info h4 {
    font-size: 1rem;
    margin: 12px 0 6px;
}

@media (max-width: 992px) {
    .deal-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .deal-info {
        align-items: center;
    }

    .deal-products {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ===============================
   SHOP LAYOUT
================================ */

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: flex-start;
    padding-bottom: 100px;
}

/* ===============================
   CLEAR FILTERS BUTTON
================================ */

.shop-sidebar .wc-block-product-filters__clear-button,
.shop-sidebar button {
    width: 100%;
    margin-top: 18px;
    padding: 10px;
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    border: none !important;
    cursor: pointer;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}


/* ===============================
   PRODUCTS GRID
================================ */

.shop-content {
    width: 100%;
    min-width: 0;
    padding: 22px;
}

/* Kill Woo default layout */
.woocommerce ul.products,
.woocommerce ul.products li.product {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* ===============================
   PAGINATION (BLOCK + CLASSIC)
================================ */

nav.woocommerce-pagination {
    margin-top: 50px !important;
    display: flex !important;
    justify-content: center !important;
}

nav.woocommerce-pagination ul {
    display: flex !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Buttons */
nav.woocommerce-pagination a,
nav.woocommerce-pagination span {
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* border-radius: 10px !important; */
    font-weight: 600 !important;
    /* border: 2px solid var(--border) !important; */
    background: #fff !important;
    color: var(--text-primary) !important;
    transition: all .25s ease !important;
}

nav.woocommerce-pagination a:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

nav.woocommerce-pagination .current {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* ===============================
   PAGINATION – BOXED STYLE
================================ */

/* Wrapper – NO BORDER */
.woocommerce nav.woocommerce-pagination ul.page-numbers {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 40px 0 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Remove li default */
.woocommerce nav.woocommerce-pagination ul.page-numbers li {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Page numbers (box) */
.woocommerce nav.woocommerce-pagination ul.page-numbers li a,
.woocommerce nav.woocommerce-pagination ul.page-numbers li span {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    background: #fff;
    color: var(--text-primary);
    transition: all .25s ease;
}

/* Hover */
.woocommerce nav.woocommerce-pagination ul.page-numbers li a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Active page */
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Prev / Next arrows */
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.prev,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.next {
    padding: 0 18px;
}



/* ===============================
   MOBILE
================================ */

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

/* Out of Stock Badge Styles */
.out-of-stock-badge {
    width: 100%;
    background: #6b7280 !important;
    color: white !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.7;
}

.out-of-stock-badge:hover {
    background: #6b7280 !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================================================
   WC PRODUCT FILTERS – FINAL CLEAN VERSION
   Desktop + Mobile (No JS)
================================================== */

/* ==================================================
   DESKTOP (≥ 601px)
================================================== */

@media (min-width: 601px) {

  /* Disable overlay system completely */
  .wc-block-product-filters__overlay {
    position: static !important;
    inset: auto !important;
    background: none !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: block !important;
  }

  /* Never show mobile UI on desktop */
  .wc-block-product-filters__overlay-header,
  .wc-block-product-filters__overlay-footer,
  .wc-block-product-filters__open-overlay {
    display: none !important;
  }
}


/* ==================================================
   MOBILE (≤ 600px)
================================================== */

@media (max-width: 600px) {

  /* ----------------------------------
     CLOSED STATE (DEFAULT)
  ---------------------------------- */

  /* Completely remove overlay & header from layout */
  .wp-block-woocommerce-product-filters:not(.is-overlay-opened)
  .wc-block-product-filters__overlay {
    display: none !important;
  }

  .wp-block-woocommerce-product-filters
  .wc-block-product-filters__overlay-header,
  .wp-block-woocommerce-product-filters
  .wc-block-product-filters__overlay-footer {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* ----------------------------------
     OPEN STATE
  ---------------------------------- */

  .wc-block-product-filters.is-overlay-opened
  .wc-block-product-filters__overlay {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    inset: 0 !important;
    background: #fff !important;
    z-index: 9999 !important;
  }

  /* Header (Close button) – ONLY when open */
  .wc-block-product-filters.is-overlay-opened
  .wc-block-product-filters__overlay-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    height: auto !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: #2563eb !important;
    padding: 12px 16px !important;
    z-index: 10000 !important;
  }

  .wc-block-product-filters__close-overlay {
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* Footer (Apply button) – ONLY when open */
  .wc-block-product-filters.is-overlay-opened
  .wc-block-product-filters__overlay-footer {
    position: sticky !important;
    bottom: 0 !important;
    background: #fff !important;
    padding: 12px !important;
    border-top: 1px solid #e5e7eb !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* Quantity Controls in Mini Cart */
.woocommerce-mini-cart-item .quantity {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 8px !important;
}

.woocommerce-mini-cart-item .quantity input {
    width: 50px !important;
    height: 32px !important;
    text-align: center !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.woocommerce-mini-cart-item .quantity button {
    width: 32px !important;
    height: 32px !important;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce-mini-cart-item .quantity button:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

/*===============================================
  MOBILE SEARCH OVERLAY
===============================================*/

/* Hide mobile search toggle by default (desktop) */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: color var(--transition-fast);
}

.mobile-search-toggle:hover {
    color: var(--primary);
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-search-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.mobile-search-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.mobile-search-header h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.close-mobile-search {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.close-mobile-search:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-search-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-top: var(--spacing-2xl);
}

.mobile-search-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.mobile-search-input {
    width: 100%;
    padding: var(--spacing-lg);
    font-size: 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all var(--transition-fast);
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-search-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.mobile-search-submit {
    width: 100%;
    padding: var(--spacing-lg);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-fast);
}

.mobile-search-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.mobile-search-submit i {
    font-size: 1.25rem;
}

/*===============================================
  RESPONSIVE - SHOW ON MOBILE/TABLET ONLY
===============================================*/

@media (max-width: 768px) {
    /* Show mobile search toggle */
    .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mobile-search-header h3 {
        font-size: 1.25rem;
    }

    .mobile-search-input {
        font-size: 1rem;
        padding: var(--spacing-md);
    }

    .mobile-search-submit {
        font-size: 1rem;
        padding: var(--spacing-md);
    }
}

/* =====================================
   CUSTOM SHOP FILTER – FINAL STABLE VERSION
===================================== */

/* =====================
   TOGGLE BUTTON (MOBILE)
===================== */
.filter-toggle {
    display: none;
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 100%;
    cursor: pointer;
    border: none;
}

/* =====================
   SIDEBAR WRAPPER
===================== */
.custom-shop-filter {
    width: 260px;
    min-width: 260px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-family: inherit;
}

/* =====================
   HEADINGS
===================== */
.custom-shop-filter h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #111;
}

/* =====================
   LISTS
===================== */
.custom-shop-filter ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-shop-filter li {
    margin-bottom: 8px;
}

/* =====================
   LINKS
===================== */
.custom-shop-filter a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.custom-shop-filter a:hover {
    color: var(--primary, #6b5cff);
    transform: translateX(4px);
}

/* =====================
   PRICE INPUTS
===================== */
.custom-shop-filter input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* =====================
   APPLY BUTTON
===================== */
.custom-shop-filter .apply-filter {
    width: 100%;
    padding: 10px;
    background: var(--primary, #6b5cff);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* =====================
   CLEAR FILTER
===================== */
.clear-filter {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

/* =====================
   CATEGORY VISIBILITY (ONLY THIS CONTROLS COUNT)
===================== */
.hidden-cat {
    display: none !important;
}

/* =====================
   SHOW MORE BUTTON
===================== */
.show-more-cats {
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--primary, #6b5cff);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

/* Hide button when JS decides it’s not needed */
.show-more-cats.is-hidden {
    display: none !important;
}

/* =====================
   MOBILE FILTER BAR
===================== */
.mobile-filter-bar {
    display: none;
}

.shop-page {
    padding-top: 50px;
}

/* =====================
   MOBILE SIDEBAR (OFF-CANVAS)
===================== */
@media (max-width: 992px) {

    /* Prevent clipping issues */
    .shop-page,
    .shop-layout,
    .container,
    #page {
        overflow: visible !important;
    }

    .mobile-filter-bar {
        display: block;
        position: relative;
        /* z-index: 9999; */
        background: #fff;
        padding: 20px 0;
    }

    .filter-toggle {
        display: inline-block;
    }

    body.filter-open {
        overflow: hidden;
    }

    .custom-shop-filter {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        width: 260px;
        z-index: 10000;
        background: #fff;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 4px 0 15px rgba(0,0,0,0.15);
        border-radius: 0;
    }

    .custom-shop-filter.active {
        left: 0;
    }

    /* Admin bar safe spacing */
    body.admin-bar .custom-shop-filter {
        top: 46px;
    }
}

/* Product Quick View */
/* .shoppro-qv-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.shoppro-qv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.shoppro-qv-content {
    position: relative;
    background: #fff;
    width: 50%;
    max-width: 500px;
    margin: 5% auto;
    padding: 30px;
    z-index: 2;
}

.shoppro-qv-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
} */

/* ===============================
   CONTACT FORM 7 – SHOPPRO STYLE
================================ */

/* Form wrapper */
.page-content-wrapper {
    justify-items: center;
}
.wpcf7 {
    max-width: 600px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

/* Labels */
.wpcf7 label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 6px;
}

/* Inputs & textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus state */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: var(--primary, #0d6efd);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.12);
    outline: none;
}

/* Textarea */
.wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

/* Submit button */
.wpcf7 input[type="submit"] {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 26px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--primary, #0d6efd);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

/* Submit hover */
.wpcf7 input[type="submit"]:hover {
    background: #084298;
    transform: translateY(-1px);
}

/* Validation errors */
.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
}

/* Success message */
.wpcf7-response-output {
    margin-top: 20px;
    padding: 14px;
    border-radius: 6px;
    font-size: 14px;
}

.wpcf7-mail-sent-ok {
    background: #e7f7ee;
    border: 1px solid #28a745;
    color: #155724;
}

/* Error message */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #fdecea;
    border: 1px solid #dc3545;
    color: #842029;
}

/* Mobile spacing */
@media (max-width: 768px) {
    .wpcf7 {
        padding: 20px;
    }
}

/* ===== SVG ICON SYSTEM ===== */
.icon {
    width: 1.2em;
    height: 1.2em;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
    flex-shrink: 0;
}
