
/*
Theme Name: astra child
Template: astra
*/

:root {
    --lumin-primary: #e02b20;
    --lumin-secondary: #ffd400;
    --lumin-dark: #1a1a1a;
    --lumin-light: #f5f5f5;
    --lumin-gray: #e5e5e5;
    --lumin-border: #d9d9d9;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes flashBlink {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 10px #fff, 0 0 20px #ff7a00;
  }
  50% {
    opacity: 0.8;
    text-shadow: 0 0 5px #fff, 0 0 10px #ff3b3b;
  }
}

/* Reset body margin to account for fixed header */
body {
  margin-top: 50px !important;
}

@media (max-width: 768px) {
  .flash-text {
    font-size: 14px;
    padding: 0 10px;
  }
  body {
    margin-top: 45px !important;
  }
}

/* ===========================
   FIXED HEADER STRUCTURE
=========================== */

/* Main Header Container */
.luminme-main-header {
    background: #008080 !important;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    
    
}

.header-flex {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.luminme-logo img {
    height: 40px;
    width: auto;
}

/* Search Bar - Centered */
.luminme-search {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.luminme-search form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.luminme-search-field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 15px;
}

.luminme-search-btn {
    background: #ff6000;
    border: none;
    color: white;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease;
}

.luminme-search-btn:hover {
    background: #e55600;
}

/* Header Right Section */
.luminme-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.luminme-login,
.luminme-user,
.luminme-cart {
    font-size: 15px;
    color: #fff !important;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    white-space: nowrap;
}

.luminme-login:hover,
.luminme-user:hover,
.luminme-cart:hover {
    color: #ff6000;
}

.luminme-cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff6000;
    color: white;
    font-size: 11px;
    border-radius: 50%;
    padding: 2px 6px;
    min-width: 18px;
    text-align: center;
}

/* Category Dropdown */
.luminme-categories-dropdown {
    position: relative;
}

.luminme-cat-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.luminme-cat-btn:hover {
    background: #222;
}

.luminme-cat-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 220px;
    list-style: none;
    padding: 8px 0;
    margin: 5px 0 0 0;
    z-index: 10000;
}

.luminme-categories-dropdown:hover .luminme-cat-menu {
    display: block;
}

.luminme-cat-menu li {
    padding: 8px 16px;
}

.luminme-cat-menu li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

.luminme-cat-menu li:hover {
    background: #f8f8f8;
}

/* Bottom Category Navigation */
.luminme-category-bar {
    background: #fff7f2;
    border-top: 1px solid #ffe0cc;
    padding: 12px 0;
    margin-top: 60px;
}

.luminme-category-scroll {
    display: flex;
    gap: 25px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.luminme-category-scroll::-webkit-scrollbar {
    display: none;
}

.luminme-subcat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
    text-decoration: none;
    color: #333;
    flex-shrink: 0;
}

.luminme-subcat-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-bottom: 6px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.luminme-subcat-item:hover .luminme-subcat-img {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.luminme-subcat-item span {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

/* ===========================
   ENHANCED PRODUCT GRID
=========================== */

.products {
    display: grid !important;
    /*grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));*/
    gap: 20px;
    padding: 30px 5%;
    margin: 20px 0 0 0 !important;
    align-items: start;
}

.lumin-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    min-height: 380px;
}

.lumin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 1. Equal Image Sizes */
.lumin-card .woocommerce-loop-product__link {
    display: block;
    height: 200px;
    overflow: hidden;
    background: #f8f8f8;
}

.lumin-card .woocommerce-loop-product__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lumin-card:hover .woocommerce-loop-product__link img {
    transform: scale(1.05);
}

/* 2. No Gap Between Image and Title */
.lumin-card .woocommerce-loop-product__title {
    font-size: 14px;
    line-height: 1.4;
    margin: 15px 15px 8px !important;
    padding: 0;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--lumin-dark);
    text-decoration: none;
    font-weight: 400 !important;
    text-align: left;
}

.lumin-card .woocommerce-loop-product__title:hover {
    color: var(--lumin-primary);
}

/* Price Styling */
.lumin-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 5px 15px 15px !important;
    flex-wrap: wrap;
}

.lumin-current-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--lumin-primary);
}

.lumin-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.lumin-discount {
    background: var(--lumin-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

/* 3. Cart Icon Instead of Add to Cart Button */
.lumin-card .button {
    display: none !important;
}

/* Add cart icon in bottom right corner */
.lumin-card::after {
    content: "\f07a" !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--lumin-primary);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.lumin-card:hover::after {
    background: #c8231a;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Ensure proper spacing for cart icon */
.lumin-card .product-info-area {
    padding-bottom: 60px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */

@media (max-width: 1024px) {
    .header-flex {
        padding: 10px 15px;
        gap: 15px;
    }
    
    .luminme-search {
        max-width: 400px;
        margin: 0 15px;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 20px 4%;
    }
}

@media (max-width: 768px) {
    .header-flex {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .luminme-logo img {
        height: 35px;
    }
    
    .luminme-search {
        order: 3;
        max-width: 100%;
        margin: 10px 0 0 0;
    }
    
    .luminme-search form {
        border-radius: 20px;
    }
    
    .luminme-header-right {
        gap: 15px;
    }
    
    .luminme-category-bar {
        margin-top: 100px;
    }
    
    .luminme-category-scroll {
        gap: 15px;
        padding: 0 15px;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        padding: 15px 3%;
    }
    
    .lumin-card {
        min-height: 340px;
    }
    
    .lumin-card .woocommerce-loop-product__link {
        height: 160px;
    }
    
    .lumin-card::after {
        width: 38px;
        height: 38px;
        bottom: 12px;
        right: 12px;
        font-size: 14px;
    }
    
    .lumin-card .woocommerce-loop-product__title {
        font-size: 13px;
        margin: 12px 12px 6px !important;
    }
}

@media (max-width: 480px) {
    body {
        margin-top: 85px !important;
    }
    
    .luminme-main-header {
        top: 35px;
        background-color:#008080;
    }
    
    .header-flex {
        padding: 8px 10px;
    }
    
    .luminme-logo img {
        height: 30px;
    }
    
    .luminme-search-field {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .luminme-search-btn {
        padding: 10px 20px;
    }
    
    .luminme-header-right {
        gap: 12px;
    }
    
    .luminme-login,
    .luminme-user,
    .luminme-cart {
        font-size: 14px;
    }
    
    .luminme-category-bar {
        margin-top: 120px;
        padding: 10px 0;
    }
    
    .luminme-category-scroll {
        gap: 12px;
        padding: 0 10px;
    }
    
    .luminme-subcat-item {
        min-width: 70px;
    }
    
    .luminme-subcat-img {
        width: 50px;
        height: 50px;
    }
    
    .luminme-subcat-item span {
        font-size: 11px;
    }
    
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px 3%;
    }
    
    .lumin-card {
        min-height: 300px;
    }
    
    .lumin-card .woocommerce-loop-product__link {
        height: 140px;
    }
    
    .lumin-card::after {
        width: 36px;
        height: 36px;
        bottom: 10px;
        right: 10px;
        font-size: 13px;
    }
    
    .lumin-card .woocommerce-loop-product__title {
        font-size: 12px;
        margin: 10px 10px 5px !important;
    }
    
    .lumin-price {
        margin: 3px 10px 12px !important;
    }
}

/* Protection for single product pages */
.single-product .lumin-card::after {
    display: none !important;
}

.single-product .lumin-card .button {
    display: block !important;
}

/* Support Menu */
.luminme-support {
    position: relative;
    display: inline-block;
}

.support-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 9998;
    padding: 15px 0;
    margin-top: 10px;
    min-width: 200px;
    list-style: none;
}

.support-menu.active {
    display: block;
}

.support-menu li {
    margin: 0;
    padding: 0;
}

.support-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.support-menu a:hover {
    background: #008080;
}

/* FIX FOR SINGLE PRODUCT PAGE */
.single-product .lumin-card .button {
    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.single-product .lumin-card::after {
    display: none !important;
}

.single-product .product {
    display: flex !important;
    flex-wrap: wrap;
    gap: 30px;
}

.single-product .images {
    flex: 1;
    min-width: 300px;
}

.single-product .summary {
    flex: 1;
    min-width: 300px;
}

.single-product .lumin-card {
    min-height: auto !important;
    display: block !important;
}

.single-product .lumin-card .woocommerce-loop-product__link {
    height: auto !important;
}

.single-product .lumin-card .woocommerce-loop-product__link img {
    object-fit: contain !important;
}

/* FIX FOR CUSTOM PRODUCT SHORTCODE PAGES */
.lumin-special-product .lumin-card {
    min-height: auto !important;
    display: block !important;
    box-shadow: none !important;
    transform: none !important;
    background: transparent !important;
}

.lumin-special-product .lumin-card .button {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
}

.lumin-special-product .lumin-card::after {
    display: none !important;
    content: none !important;
}

.lumin-special-product .product {
    display: flex !important;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.lumin-special-product .images {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
}

.lumin-special-product .summary {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
}

.lumin-special-product .woocommerce-product-gallery {
    display: block !important;
}

/* Product Loop Styling */
.woocommerce ul.products li.product {
    position: relative;
    padding-bottom: 35px;
}

.product-icon {
    position: absolute;
    bottom: 0px;
    left: 10px;
    width: 40px;
    height: 33px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    background: transparent;
    border: none;
    padding: 0;
}

.product-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.product-icon:hover img {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

/* ===== MOBILE-FIRST RESET ===== */
@media (max-width: 768px) {
    body, .site, .site-content {
        margin: 0;
        padding: 0;
        width: 100% !important;
        overflow-x: hidden;
    }

    .woocommerce ul.products, .woocommerce-page ul.products {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 10px !important;
        list-style: none;
    }

    .woocommerce ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__thumbnail,
    .woocommerce ul.products li.product img {
        width: 100% !important;
        height: auto !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product .price {
        padding: 8px 0 !important;
        font-size: 16px !important;
    }

    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .woocommerce-loop-product__link {
        width: auto !important;
        display: block !important;
        text-align: center !important;
    }

    .footer-inner, .lumin-footer .footer-inner {
        flex-direction: column !important;
        gap: 30px !important;
        width: 100% !important;
        padding: 0 15px !important;
    }
}

/* ===== TABLET MID-SIZE FIX ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        padding: 0 20px !important;
    }

    .woocommerce ul.products li.product {
        width: auto !important;
    }
}

/* Product Grid Fixes */
.lumin-product-card img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

.lumin-product-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto !important;
}

.lumin-product-card .product-title,
.lumin-product-card h2,
.woocommerce ul.products li.product h2 {
    min-height: auto !important;
    height: auto !important;
    line-height: 1.3em;
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: unset !important;
}

.woocommerce ul.products li.product {
    height: auto !important;
}

ul.products.lumin-layout li.product {
    float: none !important;
    width: auto !important;
    box-sizing: border-box;
}

.woocommerce ul.products li.product {
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}

.product-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    flex: 1 1 220px;
    min-height: 450px;
    box-sizing: border-box;
    background: #fff;
    padding: 10px;
}

.astra-shop-thumbnail-wrap {
    margin-bottom: 5px;
}

.woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0 3px 0;
}

.ast-woo-shop-product-description p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 5px 0;
    line-height: 1.4em;
    min-height: 4.2em;
}

.woocommerce-Price-amount {
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
}

.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-height: 400px;
}

.loop-cart-image {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    z-index: 10;
}

.ast-woo-shop-product-description p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 5px 0;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ===== Top Offer Bar ===== */
.topbar-inner {
    background: #ffecec;
    color: #111;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
    padding: 6px 10px;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .topbar-inner {
        font-size: 9px;
        letter-spacing: 0;
        padding: 2px 4px;
        white-space: normal;
        line-height: .2;
        font-weight: 900;
    } 
}

/* ===== Sticky Header Setup ===== */
.luminme-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.luminme-main-header {
    position: sticky;
    top: 0;
    background: #008080 !important;
    z-index: 10000;
    padding: 8px 0;
    transition: all 0.3s ease-in-out;
   
}

.luminme-header-category-strip {
    position: sticky;
    top: 70px;
    z-index: 9998;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

body.scrolled .luminme-main-header {
    padding: 4px 0;
    background:#008080 !important;
    backdrop-filter: blur(5px);
}

.luminme-header,
.luminme-main-header,
.luminme-header-category-strip {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .luminme-logo img {
        width: 120px;
        height: auto;
    }
    .luminme-main-header {
        padding: 6px 0;
        background: #008080;
    }
    .luminme-header-category-strip {
        top: 60px;
    }
}

/* Breadcrumbs */
.lumin-breadcrumbs-wrap {
    background: #f9fafb;
    padding: 2px 10px;
    font-size: 14px;
    color: #555;
}

.woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: #111;
}

.ast-page-builder-template .site-content > .ast-container {
    padding-top: 0 !important;
}

.elementor-section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hide page title header */
.page-id-0 .entry-header.ast-no-thumbnail,
.entry-header.ast-no-thumbnail {
    display: none !important;
}

/* Remove top bar on single product pages */
body.single-product .topbar-inner,
body.single-product .topbar-inner + * { 
    display: none !important; 
}

body.single-product .site-header, 
body.single-product .ast-header-break-point {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.single-product .luminme-topbar {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-breadcrumb {
    text-align: left;
    font-size: 14px;
    margin-bottom: 10px;
}

.woocommerce-breadcrumb {
    display: block;
    color: #111;
}

.single-product .summary.entry-summary .woocommerce-breadcrumb {
    display: none !important;
}

.single-product .summary.entry-summary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.single-product .luminme-main-header,
.single-product .luminme-topbar,
.single-product .site-content,
.single-product .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.single-product .summary .woocommerce-breadcrumb {
    display: none !important;
}

/* Single Product Page Fixes */
body.single-product .luminme-logo img.custom-logo {
    max-width: 180px !important;
    height: auto !important;
    display: block;
}

body.single-product span.onsale {
    width: 60px !important;
    height: 60px !important;
    line-height: 60px !important;
    border-radius: 50% !important;
    font-size: 14px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.single-product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 15px;
}

.single-product .quantity input.qty {
    width: 70px !important;
    padding: 6px !important;
}

.single-product .single_add_to_cart_button {
    margin-top: 0 !important;
    height: 42px;
    display: inline-flex;
    align-items: center;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    overflow-x: auto;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: auto !important;
    flex: 0 0 auto !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img {
    width: 70px !important;
    height: auto !important;
}

.about-this-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.about-item-list {
    margin-left: 20px;
}

.about-item-list .hidden-item {
    display: none;
}

.view-more-button {
    margin-top: 10px;
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
}

.about-this-item {
    margin-top: 20px;
}

/* Lumin Special Product Page */
.lumin-special-product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    font-family: Arial, sans-serif;
}

.product-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.product-details {
    flex: 1;
    min-width: 300px;
}

.main-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumb-img:hover,
.thumb-img.active {
    border-color: #007cba;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

/* Lumin Custom Star Rating */
.lumin-product-rating {
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.lumin-star-rating {
    display: inline-block;
}

.lumin-stars {
    color: #ffc107;
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 1;
}

.lumin-review-link {
    color: #007cba;
    text-decoration: none;
    font-size: 13px;
}

.lumin-review-link:hover {
    text-decoration: underline;
}

.product-price {
    font-size: 20px;
    color: #e02b20;
    font-weight: 600;
    margin: 12px 0;
}

.short-description {
    margin: 15px 0;
    line-height: 1.6;
    color: #555;
}

.variation-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.variation-row {
    margin-bottom: 15px;
}

.variation-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
}

.variation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variation-tag {
    padding: 6px 14px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.variation-tag:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.variation-tag.active {
    border-color: #007cba;
    background: #007cba;
    color: white;
}

.variation-tag.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.variation-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
    display: none;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.quantity-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

.product-meta {
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
}

.full-description {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Volume Discount Styles */
.volume-discount-section {
    margin: 15px 0;
    padding: 12px;
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 6px;
}

.volume-discount-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.volume-discount-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.volume-discount-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #ffe082;
}

.volume-discount-table tr:last-child td {
    border-bottom: none;
}

/* Walmart Style Variations */
.variation-section-walmart {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.variation-row-walmart {
    margin-bottom: 25px;
}

.variation-row-walmart:last-child {
    margin-bottom: 0;
}

.variation-label-walmart {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.variation-label-walmart .selected-value {
    color: #007cba;
    margin-left: 8px;
    font-weight: 500;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variation-option {
    position: relative;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Color Options - Circles */
.variation-option.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.variation-option.color-option .option-text {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1;
    padding: 2px;
}

/* Add white border for dark colors */
.variation-option.color-option[style*="background-color: #000"],
.variation-option.color-option[style*="background-color: #000000"],
.variation-option.color-option[style*="background-color: #191970"],
.variation-option.color-option[style*="background-color: #000080"],
.variation-option.color-option[style*="background-color: #800000"],
.variation-option.color-option[style*="background-color: #800020"],
.variation-option.color-option[style*="background-color: #36454f"],
.variation-option.color-option[style*="background-color: #a9a9a9"],
.variation-option.color-option[style*="background-color: #808080"] {
    border-color: #fff;
    box-shadow: 0 0 0 1px #ccc;
}

/* Size Options - Rectangles */
.variation-option.size-option {
    min-width: 50px;
    height: 40px;
    padding: 0 12px;
    background: white;
    font-weight: 500;
    color: #333;
    border-radius: 6px;
}

/* Default Options */
.variation-option.default-option {
    min-width: 60px;
    height: 40px;
    padding: 0 15px;
    background: white;
    font-weight: 500;
    color: #333;
    border-radius: 6px;
}

.option-text {
    font-size: 14px;
    font-weight: 500;
}

/* Hover States */
.variation-option:hover {
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Active/Selected States */
.variation-option.selected {
    border-color: #007cba;
    border-width: 3px;
}

.variation-option.size-option.selected,
.variation-option.default-option.selected {
    background: #007cba;
    color: white;
}

/* Tooltip */
.option-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    pointer-events: none;
    z-index: 1000;
}

.option-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.variation-option:hover .option-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Disabled States */
.variation-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.variation-option.disabled:hover {
    border-color: #ddd;
    transform: none;
    box-shadow: none;
}

.variation-option.disabled:hover .option-tooltip {
    opacity: 0;
    visibility: hidden;
}

/* Fix logo size on my-account page */
.woocommerce-account .custom-logo,
.woocommerce-account .site-logo img,
.woocommerce-account header .custom-logo {
    max-width: 150px !important;
    height: auto !important;
    width: auto !important;
}

.woocommerce-account .site-branding img,
.woocommerce-account .header-logo img {
    max-width: 1500px !important;
    height: auto !important;
}

img[src*="cropped-lumin-logo-1.png"] {
    max-width: 150px !important;
    height: auto !important;
}

.hidden-item {
    display: none;
}

/* Lumin Special Product Mobile Fix */
@media (max-width: 768px) {
    .lumin-special-product-page .product-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .lumin-special-product-page .product-gallery,
    .lumin-special-product-page .product-details {
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }

    .lumin-special-product-page .product-gallery .main-image {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .lumin-special-product-page .product-title,
    .lumin-special-product-page .short-description {
        display: block !important;
        position: static !important;
        margin: 10px 0 !important;
        text-align: left !important;
        z-index: auto !important;
    }

    .lumin-special-product-page .product-gallery .gallery-thumbs {
        display: flex !important;
        gap: 6px !important;
        overflow-x: auto !important;
        padding: 4px 0;
    }

    .lumin-special-product-page .product-gallery .gallery-thumbs img {
        width: 50px !important;
        height: auto !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
        cursor: pointer;
    }
}

/* Enquiry Button */
.enquiry-button {
    width: 180px;
    height: 45px;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.enquiry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* For tablets */
@media (max-width: 1024px) {
    .enquiry-button {
        width: 140px;
        height: 42px;
        font-size: 15px;
    }
}

/* For mobile phones */
@media (max-width: 768px) {
    .enquiry-button {
        width: 115px;
        height: 35px;
        font-size: 15px;
    }
}

/* For small phones */
@media (max-width: 480px) {
    .enquiry-button {
        width: 130px;
        height: 35px;
        font-size: 14px;
    }
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

input#whatsapp_qty.quantity-input {
    width: 65px !important;
    height: 38px !important;
    padding: 2px 5px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.enquiry-btn {
    display: flex;
    align-items: center;
    line-height: 0;
}

.enquiry-button img {
    width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quantity-section {
        gap: 10px;
    }
    
    .enquiry-button img {
        width: 140px;
    }
    
    input#whatsapp_qty.quantity-input {
        width: 45px !important;
        height: 28px !important;
    }
}

@media (max-width: 480px) {
    .quantity-section {
        gap: 8px;
    }
    
    .enquiry-button img {
        width: 130px;
    }
    
    input#whatsapp_qty.quantity-input {
        width: 40px !important;
        height: 26px !important;
        font-size: 13px;
    }
    
    .quantity-wrapper label {
        font-size: 14px;
    }
}

/* Product containers positioning */
.astra-shop-summary-wrap {
    position: relative !important;
    min-height: 100px !important;
}

.woocommerce .products .product .order-now-icon {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Product grid spacing */
.astra-shop-thumbnail-wrap {
    margin-bottom: 5px !important;
}

.ast-woo-product-category {
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
    font-size: 12px !important;
    display: block !important;
}

.woocommerce-loop-product__title {
    margin: 0 0 3px 0 !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
}

.order-now-icon {
    margin: 2px 0 !important;
    display: block !important;
}

.price {
    margin: 3px 0 !important;
    line-height: 1.2 !important;
    font-size: 14px !important;
}

.ast-woo-shop-product-description {
    margin: 5px 0 0 0 !important;
    line-height: 1.3 !important;
}

.ast-woo-shop-product-description p {
    margin: 0 !important;
    line-height: 1.3 !important;
    font-size: 12px !important;
}

/* Order Now Button */
.order-now-icon {
    background-color: #e74c3c !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 7px !important;
    text-align: center !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    padding: 2px 1px !important;
    box-sizing: border-box !important;
    font-family: Arial, sans-serif !important;
    position: absolute !important;
    bottom: 15px !important;
    left: 15px !important;
    z-index: 100 !important;
    white-space: normal !important;
    word-spacing: 0 !important;
}

.order-now-icon:hover {
    background-color: #c0392b !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
    color: white !important;
}

.order-now-icon:active {
    transform: scale(0.95) !important;
}

/* Bulk Discount Button */
.bulk-discount-btn {
    background: linear-gradient(135deg, #1a5276 0%, #1b4f72 100%) !important;
    color: white !important;
    border-radius: 5px !important;
    padding: 3px 4px 8px 7px !important;
    text-decoration: none !important;
    font-family: 'Arial Black', Arial, sans-serif !important;
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(26, 82, 118, 0.5) !important;
    border: 1px solid #ffffff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    min-width: 15px !important;
    width: auto !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.bulk-discount-btn .line-1 {
    font-size: 14px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 1px !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6) !important;
    color: #ffffff !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.bulk-discount-btn .line-2 {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: #e8f6f3 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6) !important;
    letter-spacing: 0.3px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.bulk-discount-btn:hover {
    background: linear-gradient(135deg, #154360 0%, #1a5276 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(26, 82, 118, 0.7) !important;
}

.bulk-discount-btn:active {
    transform: translateY(0) !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .bulk-discount-btn {
        min-width: 110px !important;
        padding: 6px 8px 6px 8px !important;
    }
    
    .bulk-discount-btn .line-1 {
        font-size: 13px !important;
    }
    
    .bulk-discount-btn .line-2 {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .bulk-discount-btn {
        min-width: 100px !important;
        padding: 5px 6px 5px 6px !important;
    }
    
    .bulk-discount-btn .line-1 {
        font-size: 12px !important;
    }
    
    .bulk-discount-btn .line-2 {
        font-size: 10px !important;
    }
}

/* Mobile layout with proper flow */
@media (max-width: 768px) {
    .products li.product {
        position: relative !important;
        margin-bottom: 20px !important;
        padding-bottom: 60px !important;
    }
    
    .astra-shop-summary-wrap {
        min-height: auto !important;
        position: static !important;
        padding: 15px 10px 15px 10px !important;
    }
    
   
    .woocommerce-loop-product__title {
        font-size: 16px !important;
        color: #000 !important;
        margin: 0 0 8px 0 !important;
        line-height: 1.3 !important;
        position: static !important;
    }
    
    .price {
        font-size: 16px !important;
        color: #e74c3c !important;
        margin: 0 0 12px 0 !important;
        font-weight: bold !important;
        position: static !important;
    }
    
    .ast-woo-product-category {
        margin: 0 0 5px 0 !important;
        font-size: 12px !important;
        position: static !important;
    }
}

/* Completely remove elements from mobile view */
@media (max-width: 768px) {
    span[id*="woocommerce_loop_add_to_cart_link_describedby"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        clip: rect(0, 0, 0, 0) !important;
    }
    
    .review-rating {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .ast-woo-shop-product-description {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}



/* Extra small phones */
@media (max-width: 480px) {
    .astra-shop-thumbnail-wrap {
        height: 120px !important;
        min-height: 120px !important;
    }
    
    .woocommerce-loop-product__title {
        font-size: 11px !important;
    }
    
    .ast-woo-product-category {
        font-size: 9px !important;
    }
    
    .order-now-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 6px !important;
    }
}









/*changes ========================
/* =========================
   LuminMe Products Grid
   ========================= */

/* Grid container */
.luminme-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Each product card */
.luminme-product {
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    position: relative;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* image first, summary below */
}

/* Product Image */
.luminme-product-image {
    width: 100%;
    display: block;
    margin-bottom: 10px;
}

.luminme-product-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Summary: category + title */
.luminme-product-summary {
    background: #f9f9f9; /* light background */
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-top: 10px;
}

.luminme-product-category {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}

.luminme-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.luminme-product-title a {
    text-decoration: none;
    color: #222;
}

/* Order / WhatsApp Button */
.luminme-order-now {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
}

/* Add to cart button wrapper */
.luminme-add-to-cart {
    margin-top: 10px;
}

/* Responsive: mobile */
@media (max-width: 768px) {
    .luminme-products-grid {
        grid-template-columns: 1fr; /* single column */
    }

  

    .luminme-order-now {
        width: 40px;
        height: 40px;
        bottom: 8px;
        left: 8px;
        font-size: 10px;
    }
}

@media (max-width: 768px) {

    /* Make the product structure stack normally */
    .ast-article-single {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Force the title wrapper to stay ABOVE the image */
    .custom-title-category-wrapper {
        margin-top: 0 !important;      /* remove the push-up effect */
        margin-bottom: 10px !important;
        position: static !important;   /* ensure normal flow */
        z-index: 2 !important;
    }

    /* Ensure the image is treated as a separate block */
    .astra-shop-thumbnail-wrap {
        order: 2;
    }

    .custom-title-category-wrapper {
        order: 1;
    }
}


/* Temporary fix to move FAQs to proper position */
.lumin-product-faqs {
    position: relative !important;
    margin: 60px auto !important;
    max-width: 1200px !important;
    padding: 0 20px !important;
}

/* Force it to appear in content area */
body .lumin-product-faqs {
    margin-top: 60px !important;
    margin-bottom: 60px !important;
}




/* Fix for small screens only */
@media (max-width: 768px) {
    /* Fix the huge space above product category and title */
    .astra-shop-summary-wrap {
        margin-top: 0 !important;
        padding-top: 0 !important;
        flex-grow: 0 !important;
    }
    
    /* Remove any top margins from elements inside */
    .astra-shop-summary-wrap .ast-woo-product-category,
    .astra-shop-summary-wrap .woocommerce-loop-product__title,
    .astra-shop-summary-wrap .order-now-icon,
    .astra-shop-summary-wrap .review-rating,
    .astra-shop-summary-wrap .ast-woo-shop-product-description {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Specifically target the category */
    .astra-shop-summary-wrap .ast-woo-product-category {
        margin-bottom: 5px !important;
    }
    
    /* Ensure proper spacing between image and content */
    .woocommerce ul.products li.product {
        gap: 5px !important;
    }
}




/* Fix Lumin Products Grid - Only on subcategory pages SUB=CATEOGORY PAGES*/
body.lumin-subcategory-page .luminme-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

body.lumin-subcategory-page .luminme-product {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.lumin-subcategory-page .luminme-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

body.lumin-subcategory-page .luminme-product-image {
    flex: 0 0 auto;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
}

body.lumin-subcategory-page .luminme-product-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    max-width: 100%;
}

body.lumin-subcategory-page .luminme-product-summary {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

body.lumin-subcategory-page .luminme-product-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

body.lumin-subcategory-page .luminme-product-category a {
    color: #008080;
    text-decoration: none;
}

body.lumin-subcategory-page .luminme-product-category a:hover {
    text-decoration: underline;
}

body.lumin-subcategory-page .luminme-product-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.4;
    flex: 1;
}

body.lumin-subcategory-page .luminme-product-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

body.lumin-subcategory-page .luminme-product-title a:hover {
    color: #008080;
}

/* Fix Order Now Icon Button for subcategory pages */
body.lumin-subcategory-page .luminme-order-now,
body.lumin-subcategory-page .order-now-icon {
    background-color: #e74c3c !important;
    color: white !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 7px !important;
    text-align: center !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid white !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    padding: 2px 1px !important;
    box-sizing: border-box !important;
    font-family: Arial, sans-serif !important;
    position: absolute !important;
    bottom: 15px !important;
    left: 15px !important;
    z-index: 100 !important;
    white-space: normal !important;
    word-spacing: 0 !important;
}

body.lumin-subcategory-page .luminme-order-now:hover,
body.lumin-subcategory-page .order-now-icon:hover {
    background-color: #c0392b !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Make sure the product card has relative positioning for absolute button */
body.lumin-subcategory-page .luminme-product {
    position: relative !important;
}

body.lumin-subcategory-page .luminme-order-now:hover {
    background: #006666 !important;
    color: white !important;
    text-decoration: none !important;
}
/* Responsive Design for subcategory pages only */
@media (max-width: 768px) {
    body.lumin-subcategory-page .luminme-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }
    
    body.lumin-subcategory-page .luminme-product-image {
        padding: 15px;
    }
    
    body.lumin-subcategory-page .luminme-product-image img {
        height: 180px;
    }
    
    body.lumin-subcategory-page .luminme-product-summary {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body.lumin-subcategory-page .luminme-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
}


/* Target all pages with /shop/ in the URL */
body:has(a[href*="/shop/"]) .wp-block-preformatted,
body:not(:has(a[href*="/shop/"])) .wp-block-preformatted:has(.lumin-shop-page) {
    margin-top: 0 !important;
   padding-top: 4px !important; 
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body:has(a[href*="/shop/"]) pre.wp-block-preformatted,
body:not(:has(a[href*="/shop/"])) pre.wp-block-preformatted:has(.lumin-shop-page) {
    background: transparent !important;
    border: none !important;
    font-family: inherit !important;
    line-height: inherit !important;
    white-space: normal !important;
}

body:has(a[href*="/shop/"]) .lumin-shop-page,
body:not(:has(a[href*="/shop/"])) .lumin-shop-page {
    margin-top: 0 !important;
    padding-top: 3px !important; 
}




// Fix image flashing during page loads
function fix_image_flashing() {
    ?>
    <style>
    /* Hide images immediately during page load */
    img:not([src*="colored-logo.png"]):not([src*="gravatar"]) {
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.01s !important;
    }
    
    /* Show images only after page is fully loaded */
    .images-loaded img:not([src*="colored-logo.png"]):not([src*="gravatar"]) {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Specifically target category thumbnails */
    img[src*="-scaled.jpg"] {
        display: none !important;
    }
    </style>
    
    <script>
    // Add loaded class when page is ready
    document.addEventListener('DOMContentLoaded', function() {
        document.body.classList.add('images-loaded');
    });
    
    // Also hide during navigation
    document.addEventListener('click', function(e) {
        if (e.target.closest('a')) {
            document.body.classList.remove('images-loaded');
        }
    });
    </script>
    <?php
}
add_action('wp_head', 'fix_image_flashing', 1);