/* =========================================
   HimalayanMart WooCommerce Product Styles
   ========================================= */

/* CSS Variables with Customizer defaults */
:root {
    --hm-shop-hero-bg: #10b981;
    --hm-shop-hero-gradient: #059669;
    --hm-product-primary: #10b981;
    --hm-product-accent: #059669;
    --hm-product-button: #2563eb;
    --hm-product-sale: #ef4444;
    --hm-card-radius: 12px;
    --hm-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Product Breadcrumb
   ========================================= */
.hm-product-breadcrumb {
    background: #f9fafb;
    padding: 15px 0;
    font-size: 14px;
}

.hm-product-breadcrumb .woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    color: #6b7280;
}

.hm-product-breadcrumb .woocommerce-breadcrumb a {
    color: var(--hm-product-primary);
    text-decoration: none;
}

.hm-product-breadcrumb .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* =========================================
   Product Main Layout
   ========================================= */
.hm-product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 50px 0;
}

/* Gallery Vertical (Left side thumbnails) */
.hm-gallery-vertical .hm-product-gallery {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
}

.hm-gallery-vertical .hm-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    order: -1;
}

/* Gallery Horizontal (Bottom thumbnails) */
.hm-gallery-horizontal .hm-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hm-gallery-horizontal .hm-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

/* Gallery Elements */
.hm-gallery-main-image {
    position: relative;
    border-radius: var(--hm-card-radius);
    overflow: hidden;
    background: #f3f4f6;
    cursor: zoom-in;
}

.hm-gallery-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.hm-gallery-main-image:hover img {
    transform: scale(1.02);
}

.hm-gallery-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hm-gallery-zoom:hover {
    background: var(--hm-product-primary);
    color: white;
    transform: scale(1.1);
}

.hm-gallery-zoom .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.hm-sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--hm-product-sale);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
}

.hm-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #f9fafb;
}

.hm-thumb.active {
    border-color: var(--hm-product-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hm-thumb:hover {
    border-color: var(--hm-product-primary);
}

.hm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   Product Summary - Properly Aligned
   ========================================= */
.hm-product-summary {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Category Links */
.hm-product-categories {
    margin-bottom: 12px;
}

.hm-product-categories a {
    color: var(--hm-product-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hm-product-categories a:hover {
    text-decoration: underline;
}

/* Product Title */
.hm-product-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.3;
    width: 100%;
}

/* Rating */
.hm-product-rating {
    margin-bottom: 16px;
    width: 100%;
}

.hm-product-rating .star-rating {
    font-size: 16px;
}

/* Price */
.hm-product-price {
    margin-bottom: 20px;
    width: 100%;
}

.hm-product-price .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.hm-product-price .price del {
    color: #9ca3af;
    font-size: 1.25rem;
    font-weight: normal;
    text-decoration: line-through;
}

.hm-product-price .price ins {
    text-decoration: none;
    color: var(--hm-product-primary);
}

.hm-product-price .price .woocommerce-Price-amount {
    display: inline;
}

/* Short Description */
.hm-product-excerpt {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    font-size: 15px;
}

.hm-product-excerpt p {
    margin: 0 0 12px 0;
}

.hm-product-excerpt p:last-child {
    margin-bottom: 0;
}

/* Product Meta Grid - Stock & SKU */
.hm-product-meta-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
}

.hm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.hm-meta-label {
    font-weight: 500;
}

.hm-in-stock {
    color: var(--hm-product-primary);
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 14px;
    border-radius: 6px;
}

.hm-in-stock .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.hm-out-stock {
    color: var(--hm-product-sale);
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    padding: 6px 14px;
    border-radius: 6px;
}

/* Add to Cart Form */
.hm-product-form {
    margin-bottom: 28px;
    width: 100%;
}

.hm-product-form .cart {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: stretch;
}

.hm-product-form .quantity {
    width: 110px;
    flex-shrink: 0;
}

.hm-product-form .quantity input {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.3s ease;
}

.hm-product-form .quantity input:focus {
    outline: none;
    border-color: var(--hm-product-primary);
}

.hm-product-form button.single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
    height: 54px;
    padding: 0 32px;
    background: var(--hm-product-button);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hm-product-form button.single_add_to_cart_button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Trust Badges - Horizontal Row */
.hm-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 20px;
    width: 100%;
}

.hm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #f9fafb;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.hm-badge:hover {
    border-color: var(--hm-product-primary);
    background: rgba(16, 185, 129, 0.05);
}

.hm-badge .dashicons {
    color: var(--hm-product-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Share Buttons - Aligned Row */
.hm-product-share {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.hm-share-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    margin-right: 4px;
}

.hm-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hm-share-btn:hover {
    color: white;
    transform: translateY(-2px);
}

.hm-share-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.hm-share-btn.hm-fb:hover {
    background: #1877f2;
}

.hm-share-btn.hm-tw:hover {
    background: #1da1f2;
}

.hm-share-btn.hm-wa:hover {
    background: #25d366;
}

.hm-share-btn.hm-copy:hover {
    background: var(--hm-product-primary);
}

/* =========================================
   Product Tabs - Boxed Layout
   ========================================= */
.hm-product-tabs {
    margin: 60px 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--hm-card-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hm-tabs-nav {
    display: flex;
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
    border-bottom: 1px solid #e5e7eb;
    padding: 0 20px;
}

.hm-tab-btn {
    padding: 20px 35px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.hm-tab-btn:hover {
    color: #111827;
}

.hm-tab-btn.active {
    color: var(--hm-product-primary);
    background: white;
    border-radius: 8px 8px 0 0;
    margin-bottom: -1px;
}

.hm-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hm-product-primary);
    border-radius: 3px 3px 0 0;
}

.hm-review-count {
    color: #9ca3af;
    font-weight: normal;
    margin-left: 5px;
}

.hm-tabs-content {
    background: white;
}

.hm-tab-panel {
    display: none;
    padding: 40px 50px;
}

.hm-tab-panel.active {
    display: block;
}

.hm-tab-content {
    line-height: 1.9;
    color: #374151;
    font-size: 15px;
}

.hm-tab-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.hm-tab-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 25px;
    margin-bottom: 15px;
}

.hm-tab-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 20px;
    margin-bottom: 10px;
}

.hm-tab-content p {
    margin-bottom: 18px;
    color: #4b5563;
}

.hm-tab-content ul,
.hm-tab-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.hm-tab-content ul li,
.hm-tab-content ol li {
    margin-bottom: 10px;
    position: relative;
}

.hm-tab-content ul li::marker {
    color: var(--hm-product-primary);
}

.hm-tab-content blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    background: #f9fafb;
    border-left: 4px solid var(--hm-product-primary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

.hm-tab-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Attributes Table - Boxed */
.hm-attributes-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.hm-attributes-table tr:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.hm-attributes-table th,
.hm-attributes-table td {
    padding: 18px 25px;
    text-align: left;
}

.hm-attributes-table th {
    width: 35%;
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
}

.hm-attributes-table td {
    color: #4b5563;
    background: white;
}

.hm-attributes-table tr:hover td {
    background: #fafafa;
}


/* =========================================
   Related Products
   ========================================= */
.hm-related-products {
    padding: 60px 0;
    border-top: 1px solid #e5e7eb;
}

.hm-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 30px;
}

.hm-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Product Cards */
.hm-product-card {
    background: white;
    border-radius: var(--hm-card-radius);
    overflow: hidden;
    box-shadow: var(--hm-card-shadow);
    transition: all 0.3s ease;
}

.hm-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.hm-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hm-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f4f6;
}

.hm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hm-product-card:hover .hm-card-image img {
    transform: scale(1.05);
}

.hm-sale-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--hm-product-sale);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.hm-card-content {
    padding: 20px;
}

.hm-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
    line-height: 1.4;
}

.hm-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hm-product-primary);
}

.hm-card-price del {
    color: #9ca3af;
    font-weight: normal;
    font-size: 0.9rem;
    margin-right: 5px;
}

.hm-add-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--hm-product-button);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hm-add-cart-btn:hover {
    background: #1d4ed8;
}

/* =========================================
   Shop Archive Styles
   ========================================= */
.hm-shop-hero {
    min-height: 280px;
    padding: 60px 20px;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hm-shop-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hm-shop-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin: 0 0 35px 0;
}

/* Hero Search Bar */
.hm-hero-search {
    display: flex;
    gap: 10px;
    background: #ffffff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.hm-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 25px;
    min-width: 150px;
}

.hm-search-field.hm-search-input {
    flex: 1;
    min-width: 200px;
}

.hm-search-field .dashicons {
    color: #6b7280;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.hm-search-field input[type="search"] {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #374151;
    outline: none;
    width: 100%;
}

.hm-search-field select {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    outline: none;
    min-width: 120px;
}

.hm-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--hm-product-primary), var(--hm-product-accent));
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hm-search-btn:hover {
    transform: scale(0.98);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

/* Shop Wide Container */
.woocommerce .hm-container {
    max-width: 1400px;
}

.hm-shop-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    padding: 50px 0;
}

.hm-shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.hm-shop-content {
    min-width: 0;
}

/* WooCommerce Product Grid Override - High Specificity */
body.woocommerce ul.products,
.pokemon-force-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    padding: 0 !important;
    margin: 0 0 50px 0 !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    background: white;
    border-radius: var(--hm-card-radius);
    overflow: hidden;
    box-shadow: var(--hm-card-shadow);
    transition: all 0.3s ease;
    /* max-width: 250px; Removed to allow filling grid */
    min-height: 300px;
    min-width: 0 !important;
    /* Allow grid items to shrink below content size */
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    padding: 15px 20px 5px !important;
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111827;
    line-height: 1.4;
}

.woocommerce ul.products li.product .price {
    display: block;
    padding: 0 20px 15px;
    font-size: 1.1rem !important;
    font-weight: 700;
    color: var(--hm-product-primary);
}

.woocommerce ul.products li.product .price del {
    color: #9ca3af;
    font-weight: normal;
    font-size: 0.9rem;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--hm-product-primary);
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--hm-product-button);
    color: white;
    text-align: center;
    font-weight: 600;
    border-radius: 0;
    margin: 0;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    background: #1d4ed8;
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    right: auto;
    margin: 0;
    padding: 6px 14px;
    min-width: auto;
    min-height: auto;
    line-height: 1;
    background: var(--hm-product-sale);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Star Rating */
.woocommerce ul.products li.product .star-rating {
    margin: 0 20px 10px;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .hm-product-main {
        gap: 40px;
    }

    .hm-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Fix for WooCommerce pseudo-elements breaking grid */
    .woocommerce ul.products::before,
    .woocommerce ul.products::after {
        display: none !important;
    }

    .hm-shop-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hm-product-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
    }

    .hm-gallery-vertical .hm-product-gallery {
        grid-template-columns: 1fr;
    }

    .hm-gallery-vertical .hm-gallery-thumbs {
        flex-direction: row;
        order: 0;
        overflow-x: auto;
    }

    .hm-product-title {
        font-size: 1.5rem;
    }

    .hm-trust-badges {
        flex-wrap: wrap;
    }

    .hm-tabs-nav {
        overflow-x: auto;
    }

    .hm-tab-btn {
        padding: 15px 20px;
        white-space: nowrap;
    }

    .hm-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .hm-shop-layout {
        grid-template-columns: 1fr;
    }

    .hm-shop-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .hm-product-price .price {
        font-size: 1.5rem;
    }

    .hm-product-form .cart {
        flex-direction: column;
    }

    .hm-product-form .quantity {
        width: 100%;
    }

    .hm-products-grid {
        grid-template-columns: 1fr;
    }

    .hm-shop-title {
        font-size: 1.75rem;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Category Archive Specific Styles
   ========================================= */
.hm-category-hero {
    background-size: cover;
    background-position: center;
}

.hm-breadcrumb-nav {
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.hm-breadcrumb-nav a {
    color: white;
    text-decoration: none;
}

.hm-breadcrumb-nav a:hover {
    text-decoration: underline;
}

.hm-breadcrumb-nav span {
    margin: 0 8px;
}

/* Subcategory Links */
.hm-subcat-link {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hm-subcat-link:hover {
    color: var(--hm-product-primary);
}

.hm-subcat-link .hm-count {
    color: #9ca3af;
    font-size: 13px;
}

/* Other Categories */
.hm-other-cats {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.hm-other-cats h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #374151;
}

.hm-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hm-cat-chip {
    display: inline-block;
    padding: 6px 14px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hm-cat-chip:hover,
.hm-cat-chip.active {
    background: var(--hm-product-primary);
    color: white;
}

/* WooCommerce Grid Responsive */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .woocommerce ul.products li.product a img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .woocommerce ul.products li.product a img {
        height: 180px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce ul.products li.product h2 {
        padding: 12px 15px 5px !important;
        font-size: 0.9rem !important;
    }

    .woocommerce ul.products li.product .price {
        padding: 0 15px 12px;
        font-size: 1rem !important;
    }

    .woocommerce ul.products li.product .button {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* =========================================
   Shop Sidebar Filter Styles
   ========================================= */
.hm-filter-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hm-filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--hm-product-primary);
}

.hm-sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hm-filter-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Price Inputs */
.hm-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-price-inputs input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    max-width: 100px;
}

.hm-price-inputs input:focus {
    outline: none;
    border-color: var(--hm-product-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Checkbox List */
.hm-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.hm-checkbox-list::-webkit-scrollbar {
    width: 4px;
}

.hm-checkbox-list::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.hm-checkbox-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.hm-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hm-checkbox:hover {
    background: #f3f4f6;
}

.hm-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--hm-product-primary);
}

.hm-checkbox span {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.hm-checkbox .hm-count {
    color: #9ca3af;
    font-size: 12px;
    flex: none;
}

/* Tags Filter */
.hm-tags-list {
    max-height: 180px;
}

.hm-tag-item {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.hm-tag-item:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.hm-tag-label {
    font-weight: 500;
}

/* Select Full Width */
.hm-select-full {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: white;
}

.hm-select-full:focus {
    outline: none;
    border-color: var(--hm-product-primary);
}

/* Single Check */
.hm-single-check {
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.hm-single-check:hover {
    background: #fde68a;
}

/* Filter Actions */
.hm-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    margin-top: 5px;
}

.hm-btn-primary {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--hm-product-primary), var(--hm-product-accent));
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.hm-btn-secondary {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hm-btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

/* View Toggle Buttons */
.hm-view-toggle {
    display: flex;
    gap: 5px;
}

.hm-view-btn {
    padding: 8px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.hm-view-btn:hover,
.hm-view-btn.active {
    background: var(--hm-product-primary);
    color: white;
    border-color: var(--hm-product-primary);
}

.hm-view-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Results Header */
.hm-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

/* =========================================
   Mobile Optimization
   ========================================= */

/* Filter Toggle (Hidden on Desktop) */
.hm-filter-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: 600;
    color: #374151;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.hm-toggle-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-filter-toggle.active {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.hm-filter-toggle.active .hm-toggle-icon {
    transform: rotate(180deg);
}

/* Mobile Layout Breakpoints */
@media (max-width: 991px) {
    .hm-shop-layout {
        display: block;
        /* Stack sidebar on top */
    }

    .hm-shop-sidebar {
        margin-bottom: 20px;
        position: sticky;
        top: 80px;
        /* Sticky filter bar */
        z-index: 99;
    }

    /* Make filter card transparent wrapper */
    .hm-filter-card {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .desktop-only {
        display: none !important;
    }

    .hm-filter-toggle {
        display: flex;
    }

    /* Expandable Filter Area */
    .hm-sidebar-filters {
        display: none;
        /* Hidden by default */
        background: #fff;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .hm-sidebar-filters.active {
        display: flex;
        /* Shown when active */
    }
}

/* Mobile Grid Override (2 Columns) */
@media (max-width: 600px) {

    /* Fix for WooCommerce pseudo-elements breaking grid */
    .woocommerce ul.products::before,
    .woocommerce ul.products::after {
        display: none !important;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        /* Tighter gap for mobile */
    }

    .woocommerce ul.products li.product {
        max-width: 100%;
        min-height: 260px;
        /* Reduced min-height */
    }

    .woocommerce ul.products li.product a img {
        height: 150px;
        /* Smaller image height */
    }

    /* Compact text for mobile cards */
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.9rem !important;
        padding: 10px 10px 5px !important;
    }

    .woocommerce ul.products li.product .price {
        font-size: 0.95rem !important;
        padding: 0 10px 10px !important;
    }

    .hm-shop-hero {
        padding: 40px 15px;
        min-height: 200px;
    }

    .hm-shop-title {
        font-size: 2rem;
    }

    .hm-hero-search {
        flex-direction: column;
        border-radius: 20px;
    }

    .hm-search-field {
        width: 100%;
    }

    .hm-search-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Single Product Tablet Layout */
@media (max-width: 991px) {
    .hm-product-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 0;
    }

    .hm-product-gallery {
        max-width: 500px;
        margin: 0 auto;
    }

    .hm-product-summary {
        padding: 0 20px;
    }

    .hm-product-title {
        font-size: 1.625rem;
    }

    .hm-trust-badges {
        gap: 10px;
    }

    .hm-badge {
        padding: 8px 12px;
        font-size: 12px;
    }

    .hm-product-tabs {
        margin: 30px 20px;
    }

    /* Gallery thumbs horizontal on tablet */
    .hm-gallery-vertical .hm-product-gallery {
        grid-template-columns: 1fr;
    }

    .hm-gallery-vertical .hm-gallery-thumbs {
        flex-direction: row;
        order: 0;
        overflow-x: auto;
        padding-bottom: 5px;
    }
}

/* Single Product Mobile Layout */
@media (max-width: 600px) {
    .hm-product-main {
        padding: 15px 0;
        gap: 24px;
    }

    .hm-product-gallery {
        max-width: 100%;
    }

    .hm-product-summary {
        padding: 0 15px;
    }

    .hm-product-title {
        font-size: 1.375rem;
        margin-bottom: 12px;
    }

    .hm-product-price .price {
        font-size: 1.5rem;
    }

    .hm-product-excerpt {
        font-size: 14px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .hm-product-meta-grid {
        gap: 12px;
        margin-bottom: 20px;
    }

    .hm-in-stock,
    .hm-out-stock {
        padding: 5px 10px;
        font-size: 13px;
    }

    .hm-product-form .cart {
        flex-direction: column;
        gap: 10px;
    }

    .hm-product-form .quantity {
        width: 100%;
    }

    .hm-product-form .quantity input {
        height: 50px;
    }

    .hm-product-form button.single_add_to_cart_button {
        width: 100%;
        min-width: unset;
        height: 50px;
    }

    .hm-trust-badges {
        flex-direction: column;
        gap: 8px;
        padding: 16px 0;
    }

    .hm-badge {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
    }

    .hm-product-share {
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 12px;
    }

    .hm-share-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .hm-thumb {
        width: 65px;
        height: 65px;
    }

    .hm-gallery-zoom {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .hm-product-tabs {
        margin: 20px 15px;
    }

    .hm-tabs-nav {
        gap: 0;
        overflow-x: auto;
    }

    .hm-tab-btn {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* Justify Content */
.hm-product-excerpt,
.hm-tab-content p,
.hm-tab-content li {
    text-align: justify;
}

/* ========================================
   Product Lightbox - Professional Zoom
   ======================================== */

/* Lightbox Overlay - Blur Effect */
.hm-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-product-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Backdrop with blur */
.hm-product-lightbox .hm-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Image Container - 60% of viewport */
.hm-product-lightbox .hm-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 60vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-product-lightbox.active .hm-lightbox-content {
    transform: scale(1) translateY(0);
}

/* Image styling */
.hm-product-lightbox .hm-lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    background: #ffffff;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Caption / Product Title */
.hm-product-lightbox .hm-lightbox-caption {
    margin-top: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
}

/* Counter */
.hm-product-lightbox .hm-lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 10;
}

/* Close Button */
.hm-product-lightbox .hm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.hm-product-lightbox .hm-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.hm-product-lightbox .hm-lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    stroke-width: 2;
}

/* Navigation Arrows */
.hm-product-lightbox .hm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.hm-product-lightbox .hm-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hm-product-lightbox .hm-lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.hm-product-lightbox .hm-lightbox-nav svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    stroke-width: 2.5;
}

.hm-product-lightbox .hm-lightbox-prev {
    left: 30px;
}

.hm-product-lightbox .hm-lightbox-next {
    right: 30px;
}

/* Loading state */
.hm-product-lightbox .hm-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: hm-product-spin 0.8s linear infinite;
    display: none;
}

@keyframes hm-product-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Keyboard hint */
.hm-product-lightbox .hm-lightbox-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hm-product-lightbox.active .hm-lightbox-hint {
    opacity: 1;
    animation: hm-product-fadeOut 3s ease forwards 2s;
}

@keyframes hm-product-fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.hm-product-lightbox .hm-lightbox-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
}

/* Make main image and zoom button clickable */
.hm-gallery-main-image {
    cursor: zoom-in;
}

.hm-gallery-zoom {
    cursor: zoom-in;
}

/* Responsive Product Lightbox */
@media (max-width: 1200px) {
    .hm-product-lightbox .hm-lightbox-content {
        max-width: 75vw;
    }
}

@media (max-width: 768px) {
    .hm-product-lightbox .hm-lightbox-content {
        max-width: 92vw;
        max-height: 85vh;
    }

    .hm-product-lightbox .hm-lightbox-image {
        max-height: 65vh;
        border-radius: 8px;
    }

    .hm-product-lightbox .hm-lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .hm-product-lightbox .hm-lightbox-prev {
        left: 10px;
    }

    .hm-product-lightbox .hm-lightbox-next {
        right: 10px;
    }

    .hm-product-lightbox .hm-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .hm-product-lightbox .hm-lightbox-counter {
        top: 10px;
        padding: 6px 14px;
        font-size: 12px;
    }

    .hm-product-lightbox .hm-lightbox-caption {
        font-size: 13px;
        padding: 10px 16px;
    }

    .hm-product-lightbox .hm-lightbox-hint {
        display: none;
    }
}