/**
 * Product Layout - Frontend Styles
 * Styles for [maavelus_menu] shortcode output
 */

/* Container */
.maavelus-product-layout {
 max-width: 100%;
 width: 100%;
 margin: 0 auto;
 font-family: inherit;
 position: relative;
 box-sizing: border-box;
}

.maavelus-product-layout .layout-content {
 width: 100%;
 box-sizing: border-box;
}

.maavelus-product-layout .layout-section {
 width: 100%;
 box-sizing: border-box;
}

/* Category Tabs - Sticky via JavaScript */
.layout-tabs-wrapper {
 background: #fff;
 margin-bottom: 24px;
 padding: 12px 0;
 border-bottom: 1px solid #e5e7eb;
 transition: box-shadow 0.2s ease;
 display: flex;
 align-items: center;
 position: relative;
}

/* When fixed via JavaScript */
.layout-tabs-wrapper.is-fixed {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Spacer to prevent content jump */
.layout-tabs-spacer {
 display: block;
}

/* Navigation Arrows */
.tabs-nav-btn {
 display: none;
 align-items: center;
 justify-content: center;
 width: 36px;
 height: 36px;
 padding: 0;
 background: #fff;
 border: 1px solid #e5e7eb;
 border-radius: 50%;
 color: #374151;
 cursor: pointer;
 transition: all 0.2s ease;
 flex-shrink: 0;
 z-index: 2;
}

.tabs-nav-btn:hover {
 background: #f9fafb;
 border-color: #d1d5db;
 color: var(--maavelus-primary, #f97316);
}

.tabs-nav-btn:disabled {
 opacity: 0.3;
 cursor: not-allowed;
}

.tabs-nav-btn:disabled:hover {
 background: #fff;
 border-color: #e5e7eb;
 color: #374151;
}

.tabs-nav-prev {
 margin-right: 8px;
}

.tabs-nav-next {
 margin-left: 8px;
}

/* Show arrows only on desktop when needed */
@media (min-width: 769px) {
 .layout-tabs-wrapper.has-overflow .tabs-nav-btn {
 display: flex;
 }
}

.layout-tabs {
 display: flex;
 gap: 8px;
 padding: 4px 0;
 overflow-x: auto;
 scroll-behavior: smooth;
 -webkit-overflow-scrolling: touch;
 scrollbar-width: none;
 -ms-overflow-style: none;
 flex: 1;
 min-width: 0;
}

.layout-tabs::-webkit-scrollbar {
 display: none;
}

.layout-tab {
 flex-shrink: 0;
 padding: 10px 20px;
 background: #fff;
 border: 1px solid #e5e7eb;
 border-radius: 24px;
 font-size: 14px;
 font-weight: 500;
 color: #374151;
 cursor: pointer;
 transition: all 0.2s ease;
 white-space: nowrap;
}

.layout-tab:hover {
 border-color: #d1d5db;
 background: #f9fafb;
}

.layout-tab.active {
 background: var(--maavelus-primary, #f97316);
 border-color: var(--maavelus-primary, #f97316);
 color: #fff;
}

/* Section Title */
.layout-section {
 margin-bottom: 32px;
 width: 100%;
 box-sizing: border-box;
}

.layout-section:not(:first-child) {
 padding-top: 24px;
 border-top: 1px solid #e5e7eb;
}

.section-title {
 font-size: 18px;
 font-weight: 600;
 color: #111827;
 margin: 0 0 8px 0;
 padding-bottom: 8px;
}

.section-description {
 font-size: 14px;
 color: #6b7280;
 margin: 0 0 16px 0;
 line-height: 1.5;
}

/* Products Container - List View */
.layout-list .products-container {
 display: flex;
 flex-direction: column;
 gap: 12px;
}

.layout-list .product-card {
 display: flex;
 gap: 16px;
 padding: 16px;
 background: #fff;
 border: 1px solid #e5e7eb;
 border-radius: 12px;
 transition: box-shadow 0.2s ease;
}

.layout-list .product-card:hover {
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.layout-list .product-image-wrapper {
 flex-shrink: 0;
 width: 120px;
 height: 120px;
 position: relative;
}

.layout-list .product-image,
.layout-list .product-image-placeholder {
 width: 100%;
 height: 100%;
 object-fit: cover;
 border-radius: 8px;
}

.layout-list .product-image-placeholder {
 background: #f3f4f6;
}

.layout-list .product-details {
 flex: 1;
 display: flex;
 flex-direction: column;
 min-width: 0;
}

.layout-list .product-title {
 font-size: 16px;
 font-weight: 600;
 color: #111827;
 margin: 0 0 4px 0;
}

.layout-list .product-title a {
 color: inherit;
 text-decoration: none;
}

.layout-list .product-title a:hover {
 color: var(--maavelus-primary, #f97316);
}

.layout-list .product-description {
 font-size: 14px;
 color: #6b7280;
 margin: 0 0 auto 0;
 line-height: 1.5;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.layout-list .product-footer {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-top: 12px;
}

.layout-list .product-price {
 font-size: 16px;
 font-weight: 700;
 color: #111827;
}

/* Products Container - Grid View */
.layout-grid .products-container {
 display: grid;
 grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
 gap: 16px;
 width: 100%;
 box-sizing: border-box;
}

/* Ensure grid columns are inherited properly */
.maavelus-product-layout.layout-grid {
 --grid-columns: 3; /* Default fallback */
}

.layout-grid .product-card {
 display: flex;
 flex-direction: column;
 background: #fff;
 border: 1px solid #e5e7eb;
 border-radius: 12px;
 overflow: hidden;
 transition: box-shadow 0.2s ease;
 min-width: 0;
 box-sizing: border-box;
}

.layout-grid .product-card:hover {
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.layout-grid .product-image-wrapper {
 position: relative;
 aspect-ratio: 1;
 overflow: hidden;
}

.layout-grid .product-image,
.layout-grid .product-image-placeholder {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.layout-grid .product-image-placeholder {
 background: #f3f4f6;
}

.layout-grid .product-details {
 padding: 12px;
 display: flex;
 flex-direction: column;
 flex: 1;
}

.layout-grid .product-title {
 font-size: 14px;
 font-weight: 600;
 color: #111827;
 margin: 0 0 4px 0;
}

.layout-grid .product-description {
 font-size: 13px;
 color: #6b7280;
 margin: 0 0 auto 0;
 line-height: 1.4;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.layout-grid .product-footer {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-top: 8px;
}

.layout-grid .product-price {
 font-size: 15px;
 font-weight: 700;
 color: #111827;
}

/* Product Image Button/Link */
.product-image-btn,
.product-image-link {
 display: block;
 width: 100%;
 height: 100%;
 padding: 0;
 border: none;
 background: none;
 cursor: pointer;
}

/* Quick View Icon */
.quick-view-icon {
 position: absolute;
 bottom: 8px;
 right: 8px;
 width: 28px;
 height: 28px;
 background: rgba(0, 0, 0, 0.6);
 border-radius: 50%;
 color: #fff;
 font-size: 14px;
 display: flex;
 align-items: center;
 justify-content: center;
 opacity: 0.8;
 transition: opacity 0.2s;
}

.product-image-btn:hover .quick-view-icon {
 opacity: 1;
}

/* Product Labels */
.product-labels {
 position: absolute;
 display: flex;
 flex-wrap: wrap;
 gap: 4px;
 padding: 8px;
 z-index: 1;
}

.product-labels.labels-top_left { top: 0; left: 0; }
.product-labels.labels-top_right { top: 0; right: 0; }
.product-labels.labels-bottom_left { bottom: 0; left: 0; }
.product-labels.labels-bottom_right { bottom: 0; right: 0; }

.layout-list .product-labels:not([class*="labels-"]),
.layout-grid .product-labels:not([class*="labels-"]) {
 position: static;
 padding: 0;
 margin-top: 8px;
}

.product-label {
 display: inline-flex;
 align-items: center;
 gap: 4px;
 padding: 4px 8px;
 border-radius: 4px;
 font-size: 11px;
 font-weight: 600;
 color: #fff;
 text-transform: uppercase;
 letter-spacing: 0.3px;
}

/* Add to Cart Button - Improved Design */
.add-to-cart-btn {
 padding: 10px 24px;
 background: var(--maavelus-primary, #f97316);
 border: none;
 border-radius: 24px;
 font-size: 14px;
 font-weight: 600;
 color: #fff;
 cursor: pointer;
 transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
 background: var(--maavelus-primary-hover, #ea580c);
 transform: translateY(-1px);
}

.add-to-cart-btn.loading {
 opacity: 0.7;
 pointer-events: none;
}

.add-to-cart-btn.added {
 background: #10b981;
}

/* Cart quantity badge for Select button */
.cart-qty-badge {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-width: 18px;
 height: 18px;
 padding: 0 5px;
 margin-left: 6px;
 background: #fff;
 color: var(--maavelus-primary, #f97316);
 font-size: 12px;
 font-weight: 700;
 border-radius: 9px;
}

.cart-qty-badge:empty {
 display: none;
}

/* Out of Stock */
.out-of-stock-badge {
 padding: 8px 16px;
 background: #f3f4f6;
 border: 1px solid #e5e7eb;
 border-radius: 20px;
 font-size: 13px;
 color: #6b7280;
}

.product-card.out-of-stock {
 opacity: 0.7;
}

.product-card.out-of-stock .product-image {
 filter: grayscale(50%);
}

/* Quantity Roller */
.quantity-roller {
 display: inline-flex;
 align-items: center;
 gap: 0;
 background: var(--maavelus-primary, #f97316);
 border-radius: 24px;
 overflow: hidden;
 position: relative;
}

.quantity-roller:not(.active) {
 background: var(--maavelus-primary, #f97316);
}

.quantity-roller.loading {
 pointer-events: none;
}

.quantity-roller.loading::after {
 content: '';
 position: absolute;
 top: 50%;
 left: 50%;
 width: 18px;
 height: 18px;
 margin: -9px 0 0 -9px;
 border: 2px solid rgba(255,255,255,0.3);
 border-top-color: #fff;
 border-radius: 50%;
 animation: spin 0.6s linear infinite;
}

.quantity-roller.loading .qty-btn,
.quantity-roller.loading .qty-value {
 opacity: 0.5;
}

.qty-btn {
 width: 36px;
 height: 36px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: transparent;
 border: none;
 font-size: 18px;
 font-weight: 500;
 color: #fff;
 cursor: pointer;
 transition: background 0.15s;
}

.qty-btn:hover {
 background: rgba(0,0,0,0.1);
}

.qty-value {
 min-width: 28px;
 text-align: center;
 font-size: 14px;
 font-weight: 600;
 color: #fff;
}

.quantity-roller:not(.active) .qty-decrease {
 display: none;
}

.quantity-roller:not(.active) .qty-value {
 display: none;
}

.quantity-roller:not(.active) .qty-increase {
 width: auto;
 padding: 0 20px;
 font-size: 0; /* Hide the native + text */
}

.quantity-roller:not(.active) .qty-increase::before {
 content: 'Add';
 font-size: 14px;
 font-weight: 600;
}

/* Quick View Modal */
.maavelus-quick-view-modal {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 z-index: 99999;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 20px;
}

.quick-view-overlay {
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: rgba(0, 0, 0, 0.5);
}

.quick-view-content {
 position: relative;
 width: 100%;
 max-width: 800px;
 max-height: 90vh;
 background: #fff;
 border-radius: 12px;
 overflow: hidden;
 box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.quick-view-close {
 position: absolute;
 top: 12px;
 right: 12px;
 width: 36px;
 height: 36px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: #fff;
 border: 1px solid #e5e7eb;
 border-radius: 50%;
 font-size: 24px;
 color: #374151;
 cursor: pointer;
 z-index: 10;
 transition: all 0.2s;
}

.quick-view-close:hover {
 background: #f3f4f6;
}

.quick-view-inner {
 max-height: 90vh;
 overflow-y: auto;
}

.quick-view-loading {
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 300px;
}

.loading-spinner {
 width: 40px;
 height: 40px;
 border: 3px solid #e5e7eb;
 border-top-color: var(--maavelus-primary, #f97316);
 border-radius: 50%;
 animation: spin 0.8s linear infinite;
}

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

.quick-view-product {
 padding: 24px;
}

/* Quick View Addon Free Limit Styling */
.qv-addon-group .addon-group-free-info {
 font-weight: 400;
 color: #059669;
 font-size: 13px;
 margin-left: 4px;
}

.qv-addon-group .addon-group-free-status {
 font-weight: 400;
 font-size: 12px;
 color: #6b7280;
}

.qv-addon-group .addon-item.addon-free .addon-item-price,
.qv-addon-group .addon-item-counter.addon-free .addon-item-price {
 color: #059669;
}

.qv-addon-group .addon-item.addon-free .addon-item-price::after,
.qv-addon-group .addon-item-counter.addon-free .addon-item-price::after {
 content: ' (Included)';
 font-size: 11px;
}

.qv-addon-group .addon-item.addon-paid .addon-item-price,
.qv-addon-group .addon-item-counter.addon-paid .addon-item-price {
 color: #dc2626;
}

/* Hidden state for tabs */
.layout-section.hidden {
 display: none;
}

/* Floating Cart Icon */
.maavelus-floating-cart {
 position: fixed;
 bottom: 24px;
 right: 24px;
 z-index: 2147483646 !important;
 display: none;
}

.maavelus-floating-cart.visible {
 display: block;
}

.floating-cart-btn {
 width: 60px;
 height: 60px;
 background: var(--maavelus-primary, #f97316);
 border: none;
 border-radius: 50%;
 box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: all 0.2s ease;
}

.floating-cart-btn:hover {
 transform: scale(1.05);
 box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.floating-cart-btn svg {
 width: 28px;
 height: 28px;
 fill: #fff;
}

.floating-cart-count {
 position: absolute;
 top: -4px;
 right: -4px;
 min-width: 24px;
 height: 24px;
 padding: 0 6px;
 background: #111827;
 border-radius: 12px;
 font-size: 13px;
 font-weight: 700;
 color: #fff;
 display: flex;
 align-items: center;
 justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
 .layout-tabs-wrapper {
 padding: 8px 0;
 }

 .layout-list .product-card {
 padding: 12px;
 }

 .layout-list .product-image-wrapper {
 width: 100px;
 height: 100px;
 }

 .layout-list .product-title {
 font-size: 15px;
 }

 .layout-list .product-description {
 font-size: 13px;
 -webkit-line-clamp: 2;
 }

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

 .quick-view-content {
 max-width: 100%;
 max-height: 85vh;
 margin: 0 10px;
 }

 .maavelus-floating-cart {
 bottom: 16px;
 right: 16px;
 }

 .floating-cart-btn {
 width: 54px;
 height: 54px;
 }
}

@media (max-width: 480px) {
 .layout-tab {
 padding: 8px 16px;
 font-size: 13px;
 }

 .layout-list .product-image-wrapper {
 width: 80px;
 height: 80px;
 }

 .layout-list .product-footer {
 flex-direction: column;
 align-items: flex-start;
 gap: 8px;
 }

 .layout-list .product-actions {
 width: 100%;
 }

 .layout-list .add-to-cart-btn,
 .layout-list .quantity-roller {
 width: 100%;
 justify-content: center;
 }
}

/* ============================================
 Side Cart
 ============================================ */

.maavelus-side-cart {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 z-index: 2147483647 !important;
 visibility: hidden;
 pointer-events: none;
 isolation: isolate;
}

.maavelus-side-cart.open {
 visibility: visible;
 pointer-events: auto;
}

.side-cart-overlay {
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: rgba(0, 0, 0, 0.5);
 opacity: 0;
 transition: opacity 0.3s ease;
}

.maavelus-side-cart.open .side-cart-overlay {
 opacity: 1;
}

.side-cart-panel {
 position: absolute;
 top: 0;
 right: 0;
 width: 100%;
 max-width: 420px;
 height: 100%;
 background: #fff;
 display: flex;
 flex-direction: column;
 transform: translateX(100%);
 transition: transform 0.3s ease;
 box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
 z-index: 2;
}

.maavelus-side-cart.open .side-cart-panel {
 transform: translateX(0);
}

.side-cart-header {
 display: flex;
 align-items: center;
 padding: 16px 20px;
 border-bottom: 1px solid #e5e7eb;
 flex-shrink: 0;
}

.side-cart-close {
 width: 36px;
 height: 36px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: none;
 border: 1px solid #e5e7eb;
 border-radius: 50%;
 font-size: 24px;
 color: #6b7280;
 cursor: pointer;
 transition: all 0.2s;
 margin-right: 12px;
}

.side-cart-close:hover {
 background: #f3f4f6;
 color: #111827;
}

.side-cart-title {
 font-size: 18px;
 font-weight: 600;
 color: #111827;
 margin: 0;
}

.side-cart-content {
 flex: 1;
 overflow-y: auto;
 padding: 0;
}

.side-cart-loading {
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 200px;
}

.side-cart-empty {
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 200px;
 color: #6b7280;
 font-size: 15px;
}

.side-cart-items {
 padding: 12px 0 0 0;
}

/* Cart Item */
.side-cart-item {
 padding: 16px 20px;
 border-bottom: 1px solid #e5e7eb;
}

.side-cart-item-header {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 8px;
 margin-bottom: 4px;
}

.side-cart-item-name {
 font-size: 15px;
 font-weight: 600;
 color: #111827;
 margin: 0;
 flex: 1;
}

.side-cart-item-addons {
 font-size: 13px;
 color: #6b7280;
 margin: 0 0 12px 0;
}

.side-cart-item-row {
 display: flex;
 align-items: center;
 gap: 8px;
}

.side-cart-item-qty {
 display: flex;
 align-items: center;
 border: 1px solid #e5e7eb;
 border-radius: 24px;
 overflow: hidden;
 flex-shrink: 0;
}

.side-cart-qty-btn {
 width: 32px;
 height: 32px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: transparent;
 border: none;
 font-size: 16px;
 color: #6b7280;
 cursor: pointer;
 transition: background 0.15s;
}

.side-cart-qty-btn:hover {
 background: #f3f4f6;
}

.side-cart-qty-value {
 min-width: 24px;
 text-align: center;
 font-size: 14px;
 font-weight: 600;
 color: #111827;
}

.side-cart-item-price {
 flex: 1;
 font-size: 14px;
 color: #6b7280;
 text-align: right;
}

.side-cart-edit-btn {
 padding: 4px 12px;
 background: var(--maavelus-primary, #f97316);
 border: none;
 border-radius: 12px;
 font-size: 12px;
 font-weight: 500;
 color: #fff;
 cursor: pointer;
 transition: background 0.2s;
 flex-shrink: 0;
}

.side-cart-edit-btn:hover {
 background: var(--maavelus-primary-hover, #ea580c);
}

.side-cart-delete-btn {
 width: 32px;
 height: 32px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: none;
 border: none;
 color: #9ca3af;
 cursor: pointer;
 transition: color 0.2s;
}

.side-cart-delete-btn:hover {
 color: #ef4444;
}

.side-cart-delete-btn svg {
 width: 18px;
 height: 18px;
}

/* Item loading state */
.side-cart-item.loading {
 opacity: 0.6;
 pointer-events: none;
}

/* Upsells Section */
.side-cart-upsells {
 padding: 16px 20px;
 background: #f9fafb;
 border-top: 1px solid #e5e7eb;
 flex-shrink: 0;
}

.side-cart-upsells:empty,
.side-cart-upsells.hidden {
 display: none;
}

.upsells-title {
 font-size: 14px;
 font-weight: 600;
 color: #6b7280;
 margin: 0 0 12px 0;
 text-align: center;
}

.upsells-list {
 display: flex;
 flex-direction: column;
 gap: 8px;
}

.upsell-item {
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 8px;
 background: #fff;
 border: 1px solid #e5e7eb;
 border-radius: 8px;
}

.upsell-image {
 width: 50px;
 height: 50px;
 border-radius: 6px;
 object-fit: cover;
 flex-shrink: 0;
}

.upsell-info {
 flex: 1;
 min-width: 0;
}

.upsell-name {
 font-size: 14px;
 font-weight: 500;
 color: #111827;
 margin: 0;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.upsell-price {
 font-size: 13px;
 color: #6b7280;
}

.upsell-add-btn {
 padding: 6px 14px;
 background: #fff;
 border: 1px solid var(--maavelus-primary, #f97316);
 border-radius: 16px;
 font-size: 13px;
 font-weight: 500;
 color: var(--maavelus-primary, #f97316);
 cursor: pointer;
 transition: all 0.2s;
 flex-shrink: 0;
}

.upsell-add-btn:hover {
 background: var(--maavelus-primary, #f97316);
 color: #fff;
}

/* Footer */
.side-cart-footer {
 padding: 16px 20px;
 border-top: 1px solid #e5e7eb;
 background: #fff;
 flex-shrink: 0;
}

.side-cart-subtotal {
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 8px;
 margin-bottom: 12px;
}

.subtotal-label {
 font-size: 14px;
 color: #6b7280;
}

.subtotal-amount {
 font-size: 16px;
 font-weight: 700;
 color: #111827;
}

.side-cart-checkout-btn {
 display: block;
 width: 100%;
 padding: 14px 24px;
 background: var(--maavelus-primary, #f97316);
 border: none;
 border-radius: 8px;
 font-size: 16px;
 font-weight: 600;
 color: #fff;
 text-align: center;
 text-decoration: none;
 cursor: pointer;
 transition: background 0.2s;
}

.side-cart-checkout-btn:hover {
 background: var(--maavelus-primary-hover, #ea580c);
 color: #fff;
}

/* Body scroll lock when side cart is open */
body.side-cart-open {
 overflow: hidden;
}

/* Mobile responsive */
@media (max-width: 480px) {
 .side-cart-panel {
 max-width: 100%;
 }

 .side-cart-item {
 padding: 12px 16px;
 }

 .upsell-item {
 padding: 6px;
 }

 .upsell-image {
 width: 40px;
 height: 40px;
 }
}

/* Location Indicator */
.maavelus-location-indicator {
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 12px 16px;
 background: #f8fafc;
 border: 1px solid #e2e8f0;
 border-radius: 8px;
 margin-bottom: 16px;
 font-size: 14px;
 color: #475569;
}

.maavelus-location-indicator .location-icon {
 display: flex;
 color: var(--maavelus-primary, #f97316);
}

.maavelus-location-indicator .location-text {
 flex: 1;
}

.maavelus-location-indicator .location-text strong {
 color: var(--maavelus-text, #1e293b);
}

.maavelus-location-indicator .location-change-btn {
 padding: 6px 12px;
 background: transparent;
 border: 1px solid #cbd5e1;
 border-radius: 6px;
 font-size: 13px;
 color: var(--maavelus-text-light, #64748b);
 cursor: pointer;
 transition: all 0.2s ease;
}

.maavelus-location-indicator .location-change-btn:hover {
 background: #fff;
 border-color: var(--maavelus-primary, #f97316);
 color: var(--maavelus-primary, #f97316);
}

/* =============================================
 Image Shape Styles
 ============================================= */

/* Rectangle (default) - slightly rounded corners */
.image-shape-rectangle .product-image,
.image-shape-rectangle .product-image-placeholder {
 border-radius: 8px;
}

.image-shape-rectangle.layout-grid .product-image-wrapper {
 aspect-ratio: 4/3;
}

.image-shape-rectangle.layout-list .product-image-wrapper {
 border-radius: 8px;
}

/* Square - 1:1 ratio */
.image-shape-square .product-image,
.image-shape-square .product-image-placeholder {
 border-radius: 8px;
}

.image-shape-square.layout-grid .product-image-wrapper {
 aspect-ratio: 1/1;
}

.image-shape-square.layout-list .product-image-wrapper {
 width: 100px;
 height: 100px;
 border-radius: 8px;
}

/* Round - circular */
.image-shape-round .product-image,
.image-shape-round .product-image-placeholder {
 border-radius: 50%;
}

.image-shape-round.layout-grid .product-image-wrapper {
 aspect-ratio: 1/1;
 padding: 16px;
}

.image-shape-round.layout-grid .product-image,
.image-shape-round.layout-grid .product-image-placeholder {
 border-radius: 50%;
}

.image-shape-round.layout-list .product-image-wrapper {
 width: 100px;
 height: 100px;
}

.image-shape-round.layout-list .product-image,
.image-shape-round.layout-list .product-image-placeholder {
 border-radius: 50%;
}

/* =============================================
 Hover Effect Styles
 ============================================= */

/* None - disable default hover */
.hover-effect-none .product-card:hover {
 box-shadow: none;
 transform: none;
}

/* Lift - card lifts up with shadow */
.hover-effect-lift .product-card {
 transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-effect-lift .product-card:hover {
 transform: translateY(-4px);
 box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Scale - card grows slightly */
.hover-effect-scale .product-card {
 transition: transform 0.2s ease;
}

.hover-effect-scale .product-card:hover {
 transform: scale(1.02);
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Glow - subtle glow around card */
.hover-effect-glow .product-card {
 transition: box-shadow 0.2s ease;
}

.hover-effect-glow .product-card:hover {
 box-shadow: 0 0 20px rgba(249, 115, 22, 0.25);
}

/* Border - accent border appears */
.hover-effect-border .product-card {
 transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hover-effect-border .product-card:hover {
 border-color: var(--maavelus-primary, #f97316);
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =============================================
 Mobile Columns Support
 ============================================= */

@media (max-width: 768px) {
 .layout-grid .products-container {
 grid-template-columns: repeat(var(--mobile-columns, 2), 1fr);
 }
}

/* =============================================
 Labels Next to Title
 ============================================= */

.product-title-row {
 line-height: 1.4;
}

.product-title-row .product-title {
 display: inline;
 margin: 0;
}

.product-title-meta {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 vertical-align: middle;
 margin-left: 8px;
}

.product-labels.labels-inline {
 display: inline-flex;
 flex-wrap: wrap;
 gap: 4px;
 align-items: center;
 vertical-align: middle;
}

.product-labels.labels-inline .product-label {
 font-size: 10px;
 padding: 2px 6px;
}

/* Allergen Info Button (when images hidden) */
.allergen-info-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 18px;
 height: 18px;
 padding: 0;
 background: #f3f4f6;
 border: 1px solid #e5e7eb;
 border-radius: 50%;
 cursor: pointer;
 transition: all 0.2s ease;
 flex-shrink: 0;
 vertical-align: middle;
}

.allergen-info-btn:hover {
 background: var(--maavelus-primary, #f97316);
 border-color: var(--maavelus-primary, #f97316);
}

.allergen-info-btn:hover .allergen-icon {
 color: #fff;
}

.allergen-icon {
 font-size: 11px;
 font-style: normal;
 color: #6b7280;
 line-height: 1;
}

/* Pagination */
.maavelus-pagination {
 margin-top: 32px;
 padding: 24px 0;
 border-top: 1px solid #e5e7eb;
}

.pagination-numbered {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 flex-wrap: wrap;
}

.pagination-numbers {
 display: flex;
 align-items: center;
 gap: 4px;
}

.pagination-number,
.pagination-prev,
.pagination-next {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-width: 40px;
 height: 40px;
 padding: 0 12px;
 border: 1px solid #e5e7eb;
 border-radius: 6px;
 background: #fff;
 color: #374151;
 font-size: 14px;
 font-weight: 500;
 text-decoration: none;
 transition: all 0.15s ease;
 cursor: pointer;
}

.pagination-number:hover,
.pagination-prev:hover,
.pagination-next:hover {
 border-color: var(--maavelus-primary, #f97316);
 color: var(--maavelus-primary, #f97316);
}

.pagination-number.active {
 background: var(--maavelus-primary, #f97316);
 border-color: var(--maavelus-primary, #f97316);
 color: #fff;
}

.pagination-ellipsis {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-width: 40px;
 height: 40px;
 color: #9ca3af;
 font-size: 14px;
}

.pagination-load-more {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 12px;
}

.load-more-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 padding: 12px 32px;
 border: none;
 border-radius: 6px;
 background: var(--maavelus-primary, #f97316);
 color: #fff;
 font-size: 15px;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.15s ease;
}

.load-more-btn:hover {
 background: var(--maavelus-primary-dark, #ea580c);
}

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

.load-more-btn.loading {
 pointer-events: none;
}

.load-more-btn.loading::after {
 content: '';
 display: inline-block;
 width: 16px;
 height: 16px;
 margin-left: 8px;
 border: 2px solid rgba(255,255,255,0.3);
 border-top-color: #fff;
 border-radius: 50%;
 animation: spin 0.8s linear infinite;
}

.pagination-info {
 font-size: 13px;
 color: #6b7280;
}

@media (max-width: 480px) {
 .pagination-numbered {
   gap: 4px;
 }
 
 .pagination-number,
 .pagination-prev,
 .pagination-next {
   min-width: 36px;
   height: 36px;
   padding: 0 8px;
   font-size: 13px;
 }
 
 .pagination-prev,
 .pagination-next {
   padding: 0 10px;
 }
}
