/*
Theme Name: Online Store
Author: Raj Tarami Magar
Description: A universal, mobile-first WordPress theme for any type of online store, e-commerce, restaurant, or business website. Features PWA support, native app-like experience, and seamless POS integration. Supports online ordering, WhatsApp integration, and works on all devices. Created by Raj Tarami Magar.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: online-store
Tags: e-commerce, woocommerce, restaurant, grocery, hotel, pwa, mobile-first, pos, online-ordering
*/

/* Modern CSS Variables */
:root {
    --primary-color: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --secondary-color: #ec407a;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e3f2fd;
    
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-tertiary: #9e9e9e;
    
    --border-color: #e0e0e0;
    --border-light: #f5f5f5;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Native App-Inspired Compact Design */
body {
    background: #ffffff !important;
    background-attachment: fixed !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    overscroll-behavior: contain !important;
    -webkit-tap-highlight-color: transparent !important;
}

.site-main {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 8px 4px !important;
    text-align: center !important;
}

/* Compact Mobile Products - ul.products Layout */
@media (max-width: 767px) {
    /* Products Container */
    .products-container {
        padding: 4px !important;
    }
    
    /* Main Products Grid */
    ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }
    
    /* Individual Product Items */
    ul.products li.product {
        background: #ffffff !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        transition: all 0.2s ease !important;
    }
    
    ul.products li.product:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    }
    
    /* Product Images - Compact */
    ul.products li.product .woocommerce-loop-product__link {
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    ul.products li.product img {
        width: 100% !important;
        height: 120px !important;
        object-fit: cover !important;
        transition: transform 0.2s ease !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    ul.products li.product:hover img {
        transform: scale(1.03) !important;
    }
    
    /* Product Details - Compact */
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #1f2937 !important;
        margin: 4px 6px 2px !important;
        line-height: 1.2 !important;
        height: 24px !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        text-align: center !important;
    }
    
    /* Price - Compact */
    ul.products li.product .price {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #f59e0b !important;
        margin: 2px 6px 4px !important;
        text-align: center !important;
        display: block !important;
    }
    
    ul.products li.product .price del {
        font-size: 10px !important;
        color: #9ca3af !important;
        font-weight: 400 !important;
    }
    
    /* Add to Cart Button - Compact */
    ul.products li.product .add_to_cart_button,
    ul.products li.product .button {
        width: calc(100% - 12px) !important;
        margin: 0 6px 6px !important;
        padding: 4px 8px !important;
        background: #f59e0b !important;
        color: white !important;
        border: none !important;
        border-radius: 4px !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        text-align: center !important;
        display: block !important;
        text-decoration: none !important;
        line-height: 1.2 !important;
        min-height: 28px !important;
    }
    
    ul.products li.product .add_to_cart_button:hover,
    ul.products li.product .button:hover {
        background: #f97316 !important;
        transform: translateY(-1px) !important;
    }
    
    /* Sale Badge - Compact */
    ul.products li.product .onsale {
        position: absolute !important;
        top: 4px !important;
        right: 4px !important;
        background: #ef4444 !important;
        color: white !important;
        font-size: 9px !important;
        font-weight: 600 !important;
        padding: 2px 4px !important;
        border-radius: 3px !important;
        z-index: 1 !important;
        line-height: 1 !important;
    }
}

/* Extra Compact for Small Mobile */
@media (max-width: 480px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
    }
    
    ul.products li.product img {
        height: 100px !important;
    }
    
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 10px !important;
        margin: 3px 4px 1px !important;
        height: 20px !important;
    }
    
    ul.products li.product .price {
        font-size: 11px !important;
        margin: 1px 4px 3px !important;
    }
    
    ul.products li.product .add_to_cart_button,
    ul.products li.product .button {
        width: calc(100% - 8px) !important;
        margin: 0 4px 4px !important;
        padding: 3px 6px !important;
        font-size: 9px !important;
        min-height: 24px !important;
    }
    
    ul.products li.product .onsale {
        font-size: 8px !important;
        padding: 1px 3px !important;
    }
}

/* Ultra Compact for Very Small Mobile */
@media (max-width: 360px) {
    .products-container {
        padding: 2px !important;
    }
    
    ul.products {
        gap: 3px !important;
    }
    
    ul.products li.product img {
        height: 90px !important;
    }
    
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 9px !important;
        margin: 2px 3px 1px !important;
        height: 18px !important;
    }
    
    ul.products li.product .price {
        font-size: 10px !important;
        margin: 1px 3px 2px !important;
    }
    
    ul.products li.product .add_to_cart_button,
    ul.products li.product .button {
        width: calc(100% - 6px) !important;
        margin: 0 3px 3px !important;
        padding: 2px 4px !important;
        font-size: 8px !important;
        min-height: 20px !important;
    }
}
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 0;
}

/* Individual Product Cards */
.products-grid .product {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.products-grid .product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Product Images - Compact */
.products-grid .product .woocommerce-loop-product__link {
    display: block;
    position: relative;
    overflow: hidden;
}

.products-grid .product img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.products-grid .product:hover img {
    transform: scale(1.05);
}

/* Product Details - Compact */
.products-grid .product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 8px 12px 4px;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;    -webkit-box-orient: vertical;
}

.products-grid .product .price {
    font-size: 16px;
    font-weight: 700;
    color: #f59e0b;
    margin: 4px 12px 8px;
}

.products-grid .product .price del {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
}

/* Add to Cart Button - Compact */
.products-grid .product .add_to_cart_button {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    padding: 8px 12px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.products-grid .product .add_to_cart_button:hover {
    background: #f97316;
    transform: translateY(-1px);
}

/* Sale Badge - Compact */
.products-grid .product .onsale {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-products h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #374151;
}

.no-products p {
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: #f59e0b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #f97316;
    transform: translateY(-1px);
}

/* Responsive Breakpoints - Compact Design */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .products-grid .product img {
        height: 180px;
    }
    
    .products-grid .product .woocommerce-loop-product__title {
        font-size: 15px;
        margin: 10px 16px 6px;
        height: 40px;
    }
    
    .products-grid .product .price {
        font-size: 17px;
        margin: 6px 16px 10px;
    }
    
    .products-grid .product .add_to_cart_button {
        width: calc(100% - 32px);
        margin: 0 16px 16px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .products-grid .product img {
        height: 200px;
    }
    
    .products-grid .product .woocommerce-loop-product__title {
        font-size: 16px;
        margin: 12px 20px 8px;
        height: 44px;
    }
    
    .products-grid .product .price {
        font-size: 18px;
        margin: 8px 20px 12px;
    }
    
    .products-grid .product .add_to_cart_button {
        width: calc(100% - 40px);
        margin: 0 20px 20px;
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .products-container {
        padding: 8px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .products-grid .product img {
        height: 140px;
    }
    
    .products-grid .product .woocommerce-loop-product__title {
        font-size: 13px;
        margin: 6px 10px 4px;
        height: 32px;
    }
    
    .products-grid .product .price {
        font-size: 15px;
        margin: 4px 10px 8px;
    }
    
    .products-grid .product .add_to_cart_button {
        width: calc(100% - 20px);
        margin: 0 10px 10px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .products-container {
        padding: 6px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 8px;
    }
    
    .products-grid .product img {
        height: 120px;
    }
    
    .products-grid .product .woocommerce-loop-product__title {
        font-size: 12px;
        margin: 4px 8px 2px;
        height: 30px;
    }
    
    .products-grid .product .price {
        font-size: 14px;
        margin: 2px 8px 6px;
    }
    
    .products-grid .product .add_to_cart_button {
        width: calc(100% - 16px);
        margin: 0 8px 8px;
        padding: 5px 8px;
        font-size: 11px;
    }
}

@media (max-width: 320px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .products-grid .product img {
        height: 100px;
    }
    
    .products-grid .product .woocommerce-loop-product__title {
        font-size: 11px;
        margin: 3px 6px 2px;
        height: 28px;
    }
    
    .products-grid .product .price {
        font-size: 13px;
        margin: 2px 6px 4px;
    }
    
    .products-grid .product .add_to_cart_button {
        width: calc(100% - 12px);
        margin: 0 6px 6px;
        padding: 4px 6px;
        font-size: 10px;
    }
}
.categories-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    padding: 0 6px;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

.category-card,
.product-card {
    background: #ffffff;
    border: 1px solid #f1f3f4;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fafbfc;
}

.category-card:active,
.product-card:active {
    transform: scale(0.98);
}

/* Responsive Breakpoints - Compact Design */
@media (min-width: 768px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px;
        padding: 0 8px;
    }
    
    .category-card,
    .product-card {
        padding: 10px 8px;
        min-height: 70px;
    }
}

@media (min-width: 1024px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
        padding: 0 10px;
    }
    
    .category-card,
    .product-card {
        padding: 12px 10px;
        min-height: 80px;
    }
}

@media (max-width: 767px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 6px;
        padding: 0 4px;
    }
    
    .category-card,
    .product-card {
        padding: 6px 4px;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 4px;
        padding: 0 2px;
    }
    
    .category-card,
    .product-card {
        padding: 4px 2px;
        min-height: 40px;
    }
}

.category-info,
.product-info {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}



.add-to-cart-btn {
    width: 100% !important;
    max-width: 120px !important;
    padding: 8px 12px !important;
    background: #1a73e8 !important;
    color: white !important;
    border: none !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3) !important;
    text-align: center !important;
    display: block !important;
    margin: 4px auto 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.add-to-cart-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.4) !important;
    background: #1557b0 !important;
}

.add-to-cart-btn:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important;
}

.add-to-cart-btn.added {
    background: #34a853 !important;
}

.add-to-cart-btn.adding {
    opacity: 0.7 !important;
    cursor: wait !important;
}

/* Native App Responsive Design */

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
        gap: 12px !important;
        padding: 0 8px !important;
    }
    
    .category-card,
    .product-card {
        padding: 16px 12px !important;
        border-radius: 10px !important;
        min-height: 100px !important;
    }
    
        
        
    .add-to-cart-btn {
        max-width: 100px !important;
        padding: 6px 8px !important;
        font-size: 13px !important;
    }
}

/* Desktops (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        gap: 10px !important;
    }
    
    .category-card,
    .product-card {
        padding: 14px 10px !important;
        min-height: 90px !important;
    }
    
    }

/* Tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .site-main {
        padding: 6px 4px !important;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 8px !important;
    }
    
    .category-card,
    .product-card {
        padding: 14px 8px !important;
        min-height: 85px !important;
    }
    
        
        
    .add-to-cart-btn {
        max-width: 110px !important;
        padding: 7px 10px !important;
        font-size: 11px !important;
    }
}

/* Mobile Landscape (480px to 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .site-main {
        padding: 4px 2px !important;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 6px !important;
        padding: 0 2px !important;
    }
    
    .category-card,
    .product-card {
        padding: 10px 6px !important;
        min-height: 75px !important;
        border-radius: 12px !important;
    }
    
        
        
    .add-to-cart-btn {
        max-width: 100px !important;
        padding: 6px 8px !important;
        font-size: 10px !important;
        border-radius: 16px !important;
    }
}

/* Mobile Portrait (320px to 479px) */
@media (max-width: 479px) {
    .site-main {
        padding: 2px 1px !important;
    }
    
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
        gap: 4px !important;
        padding: 0 1px !important;
    }
    
    .category-card,
    .product-card {
        padding: 8px 4px !important;
        min-height: 65px !important;
        border-radius: 10px !important;
    }
    
        
        
    .add-to-cart-btn {
        max-width: 85px !important;
        padding: 5px 6px !important;
        font-size: 9px !important;
        border-radius: 14px !important;
    }
}

/* Extra Small Mobile (up to 319px) */
@media (max-width: 319px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3px !important;
    }
    
    .category-card,
    .product-card {
        min-height: 60px !important;
        padding: 6px 3px !important;
        border-radius: 8px !important;
    }
    
        
    .add-to-cart-btn {
        max-width: 70px !important;
        padding: 4px 5px !important;
        font-size: 8px !important;
        border-radius: 12px !important;
    }
}


/* Native App Scroll Behavior */
html {
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Native App Focus States */
.category-card:focus,
.product-card:focus,
.add-to-cart-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.3) !important;
}

/* Native App Loading States */
.add-to-cart-btn.adding::after {
    content: '' !important;
    position: absolute !important;
    width: 12px !important;
    height: 12px !important;
    margin: auto !important;
    border: 2px solid transparent !important;
    border-top-color: currentColor !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
}

@keyframes spin {
    0% { transform: rotate(0deg) !important; }
    to { transform: rotate(360deg) !important; }
}

/* Voice Search Notifications */
.voice-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
}

.voice-notification.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.voice-notification.success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.voice-notification.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.voice-notification.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Microphone Permission Modal Styles */
.mic-permission-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    margin: 0 !important;
    padding: 0 !important;
}

.mic-permission-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
}

.mic-permission-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
}

.mic-permission-content {
    position: relative !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 20px !important;
    padding: 40px 30px !important;
    max-width: 400px !important;
    width: 90% !important;
    text-align: center !important;
    color: white !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    float: none !important;
}

.mic-permission-modal.active .mic-permission-content {
    transform: scale(1) !important;
}

.mic-permission-icon {
    position: relative !important;
    margin-bottom: 25px !important;
    display: inline-block !important;
}

.mic-icon-large {
    font-size: 60px !important;
    line-height: 1 !important;
    animation: micBounce 2s infinite !important;
}

.mic-pulse {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 80px !important;
    height: 80px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    animation: micPulse 2s infinite !important;
}

@keyframes micBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) !important;
    }
    40% {
        transform: translateY(-10px) !important;
    }
    60% {
        transform: translateY(-5px) !important;
    }
}

@keyframes micPulse {
    0% {
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1 !important;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5) !important;
        opacity: 0 !important;
    }
}

.mic-permission-content h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.mic-permission-content p {
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-bottom: 30px !important;
    opacity: 0.9 !important;
}

.mic-permission-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
}

.mic-allow-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border: none !important;
    padding: 15px 25px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.mic-allow-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4) !important;
}

.mic-allow-btn:active {
    transform: translateY(0) !important;
}

.btn-icon {
    font-size: 18px !important;
}

.mic-cancel-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

.mic-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.mic-permission-help {
    opacity: 0.8 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

/* Microphone Permission Modal Responsive Design */
@media (max-width: 768px) {
    .mic-permission-content {
        width: 95% !important;
        padding: 30px 20px !important;
        margin: 10px !important;
        width: 95%;
        padding: 30px 20px;
        margin: 10px;
    }
    
    .mic-icon-large {
        font-size: 50px;
    }
    
    .mic-permission-content h3 {
        font-size: 20px;
    }
    
    .mic-permission-content p {
        font-size: 14px;
    }
    
    .mic-allow-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .mic-permission-content {
        width: 98%;
        padding: 25px 15px;
        margin: 5px;
    }
    
    .mic-icon-large {
        font-size: 40px;
    }
    
    .mic-permission-content h3 {
        font-size: 18px;
    }
    
    .mic-permission-content p {
        font-size: 13px;
    }
}

/* Cart Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.cart-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 95%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-modal.active .cart-modal-content {
    transform: scale(1);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    flex-shrink: 0;
}

.cart-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cart-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.cart-modal-close:hover {
    background: #f0f0f0;
}

.cart-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(80vh - 200px);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.cart-item-price {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.cart-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.qty-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    font-size: 14px;
}

.cart-item-subtotal {
    font-weight: 600;
    color: #1976d2;
    font-size: 14px;
}

.cart-item-remove {
    margin-left: 15px;
}

.cart-item-remove .remove {
    color: #dc3545;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s;
}

.cart-item-remove .remove:hover {
    color: #c82333;
}

.cart-item.updating {
    opacity: 0.6;
}

.cart-item.removing {
    opacity: 0.3;
}

.cart-item.updating .qty-btn {
    cursor: wait;
    opacity: 0.6;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cart-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cart-modal-footer .button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.view-cart-btn {
    background: #6c757d;
    color: #fff;
}

.view-cart-btn:hover {
    background: #5a6268;
}

.checkout-btn {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: #fff;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.cart-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Cart Modal Responsive Design */
@media (max-width: 768px) {
    .cart-modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 90vh;
    }
    
    .cart-modal-header {
        padding: 15px;
    }
    
    .cart-modal-body {
        padding: 15px;
    }
    
    .cart-modal-footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-modal-footer .button {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cart-modal-content {
        width: 98%;
        margin: 5px;
        max-height: 95vh;
    }
    
    .cart-modal-header {
        padding: 10px;
    }
    
    .cart-modal-body {
        padding: 10px;
    }
    
    .cart-modal-footer {
        padding: 10px;
    }
}

/* Checkout Form Styles */
.woocommerce-checkout {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Removed conflicting form row styles - now handled by login form specific CSS */

.woocommerce-form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.woocommerce-form__input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.woocommerce-form__input:focus {
    outline: none;
    border-color: #1976d2;
}

.shipping_address {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Clean Modern WooCommerce Checkout Layout */
.woocommerce-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Form field styling */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
}

/* Form row layout improvements */
.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-shipping-fields__field-wrapper .form-row {
    margin-bottom: 15px;
    width: 100%;
}

.woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-shipping-fields__field-wrapper .form-row-first,
.woocommerce-shipping-fields__field-wrapper .form-row-last {
    width: 48%;
    float: left;
}

.woocommerce-billing-fields__field-wrapper .form-row-first {
    margin-right: 4%;
}

.woocommerce-billing-fields__field-wrapper .form-row-last {
    margin-right: 0;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.woocommerce-checkout label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.woocommerce-checkout .required {
    color: #ef4444;
    font-weight: 600;
}

/* Order Review Section */
.woocommerce-checkout-review-order {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.woocommerce-checkout-review-order h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* Payment Section */
.woocommerce-checkout-payment {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

/* Place Order Button */
.woocommerce-checkout .place-order {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.woocommerce-checkout .place-order button[type="submit"] {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.woocommerce-checkout .place-order button[type="submit"]:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* Responsive Design */
@media (max-width: 768px) {
    .woocommerce-checkout {
        padding: 15px;
        max-width: 100%;
    }
    
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-checkout-review-order,
    .woocommerce-checkout-payment,
    .woocommerce-checkout .place-order {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        gap: 12px;
    }
    
    .woocommerce-checkout input[type="text"],
    .woocommerce-checkout input[type="email"],
    .woocommerce-checkout input[type="tel"],
    .woocommerce-checkout input[type="password"],
    .woocommerce-checkout select,
    .woocommerce-checkout textarea {
        padding: 10px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .woocommerce-checkout label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .woocommerce-billing-fields h3,
    .woocommerce-shipping-fields h3,
    .woocommerce-checkout-review-order h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    /* Review order table responsiveness */
    .woocommerce-checkout-review-order-table {
        font-size: 14px;
    }
    
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        padding: 8px;
    }
    
    .woocommerce-checkout-review-order-table .product-name {
        max-width: 200px;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .woocommerce-checkout {
        padding: 10px;
    }
    
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-checkout-review-order,
    .woocommerce-checkout-payment,
    .woocommerce-checkout .place-order {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        gap: 10px;
    }
    
    .woocommerce-checkout input[type="text"],
    .woocommerce-checkout input[type="email"],
    .woocommerce-checkout input[type="tel"],
    .woocommerce-checkout input[type="password"],
    .woocommerce-checkout select,
    .woocommerce-checkout textarea {
        padding: 8px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .woocommerce-checkout label {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .woocommerce-billing-fields h3,
    .woocommerce-shipping-fields h3,
    .woocommerce-checkout-review-order h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    /* Review order table mobile optimization */
    .woocommerce-checkout-review-order-table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        padding: 6px;
        min-width: 120px;
    }
    
    .woocommerce-checkout-review-order-table .product-name {
        max-width: 150px;
        word-wrap: break-word;
        white-space: normal;
    }
    
    /* Payment methods mobile */
    .woocommerce-checkout-payment .payment_methods {
        margin-bottom: 15px;
    }
    
    .woocommerce-checkout-payment .payment_box {
        padding: 15px;
        margin-top: 10px;
    }
    
    /* Place order button mobile */
    .woocommerce-checkout .place-order .button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    /* Form field groups */
    .woocommerce-billing-fields__field-wrapper .form-row,
    .woocommerce-shipping-fields__field-wrapper .form-row {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .woocommerce-billing-fields__field-wrapper .form-row-first,
    .woocommerce-billing-fields__field-wrapper .form-row-last,
    .woocommerce-shipping-fields__field-wrapper .form-row-first,
    .woocommerce-shipping-fields__field-wrapper .form-row-last {
        width: 100% !important;
        float: none !important;
    }
}

/* Container for page content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Site main content area */
.site-main {
    padding: 20px 0;
    min-height: 60vh;
}

/* Enhanced centering for login form */
.woocommerce .site-main .container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

/* WooCommerce specific styling */
.woocommerce .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Layout - Compact & Responsive */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Ensure header styles work on WooCommerce pages */
.woocommerce .site-header,
.woocommerce-page .site-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    gap: 15px;
}

.site-logo {
    font-size: 20px;
    font-weight: 700;
    color: #1976d2;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 8px;
}

.custom-logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.site-logo:hover .custom-logo-img {
    transform: scale(1.05);
}

/* Header Search Bar - Optimized Spacing */
.header-search {
    flex: 1;
    max-width: 250px;
    min-width: 120px;
    margin: 0 2px;
}

.header-search .product-search-form {
    display: flex;
    gap: 6px;
    align-items: center;
    position: relative;
}

.header-search .product-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-search .product-search-input::placeholder {
    color: #9ca3af;
}

.header-search .product-search-input:focus {
    outline: none;
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Modern Icons - Compact */
.cart-icon, .account-icon, .login-icon {
    position: relative;
    width: 30px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    margin: 0 2px;
}

/* Ensure icons work on WooCommerce pages */
.woocommerce .cart-icon,
.woocommerce-page .cart-icon,
.woocommerce .account-icon,
.woocommerce-page .account-icon,
.woocommerce .login-icon,
.woocommerce-page .login-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.cart-icon:hover, .account-icon:hover, .login-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    /* Hide by default, show only when there are items */
    display: none;
}

/* Show cart count when there are items */
.cart-count:not(:empty) {
    display: flex;
}

@keyframes pulse {
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Header Responsive Breakpoints */
@media (max-width: 768px) {
    .header-content {
        padding: 6px 12px;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .site-logo {
        font-size: 16px;
        margin-right: 6px;
        flex-shrink: 0;
    }
    
    .header-search {
        max-width: 320px;
        min-width: 160px;
        flex: 1;
        margin: 0 4px;
    }
    
    .header-search .product-search-input {
        padding: 6px 10px;
        font-size: 14px;
        border-radius: 18px;
    }
    
    .cart-icon, .account-icon, .login-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        flex-shrink: 0;
        margin: 0 2px;
    }
    
    .cart-icon {
        order: 4;
    }
    
    .account-icon, .login-icon {
        order: 5;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 4px 8px;
        gap: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .site-logo {
        font-size: 14px;
        font-weight: 600;
        margin-right: 4px;
        flex-shrink: 0;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .header-search {
        max-width: 200px;
        min-width: 120px;
        flex: 1;
        margin: 0 2px;
    }
    
    .header-search .product-search-input {
        padding: 5px 8px;
        font-size: 13px;
        border-radius: 16px;
    }
    
    .header-search .product-search-input::placeholder {
        font-size: 12px;
    }
    
    .cart-icon, .account-icon, .login-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        flex-shrink: 0;
        margin: 0 1px;
    }
    
    .cart-icon {
        order: 4;
    }
    
    .account-icon, .login-icon {
        order: 5;
    }
    
    .cart-count {
        font-size: 9px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        top: -5px;
        right: -5px;
    }
}

@media (max-width: 320px) {
    .header-content {
        padding: 3px 6px;
        gap: 2px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .site-logo {
        font-size: 12px;
        margin-right: 2px;
        flex-shrink: 0;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .header-search {
        max-width: 140px;
        min-width: 90px;
        flex: 1;
        margin: 0 1px;
    }
    
    .header-search .product-search-input {
        padding: 4px 6px;
        font-size: 11px;
        border-radius: 14px;
    }
    
    .header-search .product-search-input::placeholder {
        font-size: 10px;
    }
    
    .cart-icon, .account-icon, .login-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
        flex-shrink: 0;
        margin: 0 0;
    }
    
    .cart-icon {
        order: 4;
    }
    
    .account-icon, .login-icon {
        order: 5;
    }
    
    .cart-count {
        font-size: 8px;
        min-width: 14px;
        height: 14px;
        line-height: 14px;
        top: -4px;
        right: -4px;
    }
}

/* Extra small mobile optimization */
@media (max-width: 280px) {
    .header-content {
        padding: 2px 4px;
        gap: 1px;
    }
    
    .site-logo {
        font-size: 10px;
        max-width: 50px;
    }
    
    .header-search {
        max-width: 100px;
        min-width: 70px;
    }
    
    .header-search .product-search-input {
        padding: 4px 5px;
        font-size: 10px;
    }
    
    .cart-icon, .account-icon, .login-icon {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    
    .cart-count {
        font-size: 8px;
        min-width: 12px;
        height: 12px;
        line-height: 12px;
        top: -5px;
        right: -5px;
    }
}

/* Page Header Styles */
.page-header {
    background: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.page-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #374151;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #d1d5db;
}

.breadcrumb-current {
    color: #1f2937;
    font-weight: 500;
    font-size: 18px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
}

/* Responsive Page Header */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 0;
        margin-bottom: 20px;
    }
    
    .breadcrumb {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 20px 0;
        margin-bottom: 15px;
    }
    
    .breadcrumb {
        font-size: 14px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }
    
    .breadcrumb-separator {
        margin: 0 4px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-description {
        font-size: 0.875rem;
    }
}

/* Container for page content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Site main content area */
.site-main {
    padding: 20px 0;
    min-height: 60vh;
}

/* Enhanced centering for login form */
.woocommerce .site-main .container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

/* WooCommerce specific styling */
.woocommerce .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


.search-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
    100% { transform: translateY(-50%) scale(1); }
}

/* Search History Dropdown */
.search-history-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.search-history-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #475569;
}

.search-history-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.search-history-item:last-child {
    border-bottom: none;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 12px;
}

.suggestion-loading {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    padding: 8px;
}

/* Search Spinner */
.search-spinner {
    animation: spin 1s linear infinite;
}

.woocommerce-account .woocommerce-Address:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.woocommerce-account .woocommerce-Address h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce-account .woocommerce-Address address {
    font-style: normal;
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

/* Login/Register Forms */
.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

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

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

.woocommerce-account .woocommerce input[type="text"],
.woocommerce-account .woocommerce input[type="password"],
.woocommerce-account .woocommerce input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.woocommerce-account .woocommerce input[type="text"]:focus,
.woocommerce-account .woocommerce input[type="password"]:focus,
.woocommerce-account .woocommerce input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.woocommerce-account .woocommerce .required {
    color: #ef4444;
    font-weight: 700;
}

.woocommerce-account .woocommerce button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.woocommerce-account .woocommerce button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.woocommerce-account .woocommerce .woocommerce-privacy-policy-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 20px;
    text-align: center;
}

.woocommerce-account .woocommerce .lost_password a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.woocommerce-account .woocommerce .lost_password a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .woocommerce-account {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
        gap: 8px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation li {
        min-width: auto;
        width: 100%;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation a {
        justify-content: flex-start;
        padding: 12px 16px;
        min-height: 50px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .woocommerce-account {
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .woocommerce-account .woocommerce {
        padding: 30px 25px;
        margin-bottom: 20px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-navigation {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 25px 20px;
    }
    
    .woocommerce-account .woocommerce-orders-table {
        font-size: 13px;
    }
    
    .woocommerce-account .woocommerce-orders-table th,
    .woocommerce-account .woocommerce-orders-table td {
        padding: 10px 8px;
    }
    
    .woocommerce-account .woocommerce form.login,
    .woocommerce-account .woocommerce form.register {
        padding: 30px 25px;
        border-radius: 12px;
    }
    
    .woocommerce-account .woocommerce input[type="text"],
    .woocommerce-account .woocommerce input[type="password"],
    .woocommerce-account .woocommerce input[type="email"] {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .woocommerce-account .woocommerce button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .woocommerce-account {
        margin: 15px auto;
        padding: 0 8px;
    }
    
    .woocommerce-account .woocommerce {
        padding: 25px 20px;
    }
    
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 20px 15px;
    }
    
    .woocommerce-account .woocommerce-orders-table th,
    .woocommerce-account .woocommerce-orders-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .woocommerce-account .woocommerce-Address {
        padding: 20px;
    }
    
    .woocommerce-account .woocommerce-Address h3 {
        font-size: 16px;
    }
    
    .woocommerce-account .woocommerce form.login,
    .woocommerce-account .woocommerce form.register {
        padding: 25px 20px;
        border-radius: 10px;
    }
    
    .woocommerce-account .woocommerce .woocommerce-form-row {
        margin-bottom: 15px;
    }
    
    .woocommerce-account .woocommerce .woocommerce-form-row label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .woocommerce-account .woocommerce input[type="text"],
    .woocommerce-account .woocommerce input[type="password"],
    .woocommerce-account .woocommerce input[type="email"] {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .woocommerce-account .woocommerce button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Enhanced Checkout Error Handling */
.woocommerce-error {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    color: #c53030;
}

.woocommerce-error ul {
    margin: 0;
    padding-left: 20px;
}

.woocommerce-error li {
    margin-bottom: 8px;
}

.woocommerce-error li:last-child {
    margin-bottom: 0;
}

/* Form field error states */
.woocommerce-checkout input.error,
.woocommerce-checkout select.error,
.woocommerce-checkout textarea.error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2) !important;
}

/* Loading state for checkout button */
button.loading {
    position: relative;
    color: transparent !important;
}

button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* WooCommerce checkout elements visibility */
.woocommerce-checkout-payment,
#payment,
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-checkout-review-order {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Payment methods */
.payment_method {
    display: block !important;
    visibility: visible !important;
}

.payment_method input[type="radio"] {
    display: inline-block !important;
}

/* Search Section - CLEAN VERSION - OVERRIDE ALL */
.search-section {
    background: #ffffff !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    margin: 0 !important;
}

.search-container {
    max-width: 600px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 25px !important;
    padding: 4px !important;
    transition: all 0.3s ease !important;
}

.search-container:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.search-container .product-search-form {
    display: flex;
    gap: 0;
    align-items: center;
    flex: 1;
}

.search-container .product-search-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 12px 16px !important;
    border-radius: 20px !important;
    font-size: 15px !important;
    color: #2c3e50 !important;
}

.search-container .product-search-input::placeholder {
    color: #9ca3af !important;
}

.search-container .voice-search-header-btn {
    background: #f59e0b !important;
    border: none !important;
    padding: 10px 12px !important;
    border-radius: 50% !important;
    color: white !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    margin-right: 5px !important;
}

.search-container .voice-search-header-btn:hover {
    background: #f97316;
    transform: scale(1.05);
}

.search-container .voice-search-header-btn.recording {
    background: #ef4444;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-section {
        padding: 10px 15px;
    }
    
    .header-search .product-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .search-section {
        padding: 8px 10px;
    }
    
    .header-search .product-search-input {
        padding: 6px 10px;
        font-size: 16px;
    }
}


/* PWA App-Specific Search Enhancements */
@media (display-mode: standalone) {
    .search-section {
        margin-top: 10px;
    }
    
    .search-history-dropdown,
    .search-suggestions {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
}



/* Android PWA Specific */
@media (display-mode: standalone) and (orientation: portrait) {
    .search-section {
        max-width: 100%;
        margin: 10px 0;
    }
    
    .header-search .product-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Products Header */
.products-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.back-to-categories {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f5f7fa;
    color: #4a5568;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.2s;
    touch-action: manipulation;
}

.back-to-categories:active {
    transform: scale(0.96);
    background: #e2e8f0;
}

/* Categories Container */
.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 12px;
}

.category-info {
    position: relative;
    z-index: 1;
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    /* margin-bottom: 8px; */
    transition: var(--transition-normal);
}

.category-card:hover .category-name {
    color: var(--primary-color);
}

.category-count {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    background: var(--bg-tertiary);
    padding: 6px 10px;
    border-radius: var(--radius-xl);
    display: inline-block;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}


.category-info {
    padding: 14px 12px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: #ffffff;
}



/* Product Card Styles */

@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-info {
    padding: 20px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: var(--transition-normal);
}

.product-card:hover .product-name {
    color: var(--primary-color);
}

/* Modern Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

.add-to-cart-btn.added {
    background: linear-gradient(135deg, var(--success-color), #388e3c);
}

.add-to-cart-btn.adding {
    opacity: 0.7;
    cursor: wait;
}

/* Cart Styles */
.cart-sidebar {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

/* ===================================
   CART PAGE STYLES - CONSOLIDATED
   =================================== */

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    touch-action: manipulation;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px;
    font-size: 14px;
}

.cart-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

.checkout-btn:active {
    opacity: 0.8;
}

/* Checkout Styles */
.checkout-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    min-height: 80px;
    resize: vertical;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 16px;
    touch-action: manipulation;
}

.whatsapp-btn:active {
    opacity: 0.8;
}

/* iOS Install Instructions */
.ios-install-instructions {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ios-install-instructions.show {
    display: flex;
}

.ios-install-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    max-width: 400px;
    text-align: center;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.ios-install-content h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.ios-install-content p {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

.ios-install-steps {
    text-align: left;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.ios-install-steps li {
    padding: 12px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ios-install-steps li:last-child {
    border-bottom: none;
}

.ios-install-steps .step-number {
    background: #1976d2;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.ios-install-close {
    margin-top: 20px;
    padding: 12px 24px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    touch-action: manipulation;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* Touch-friendly sizes */
@media (max-width: 768px) {
    button, .btn, a.button {
        min-height: 44px;
        min-width: 44px;
    }
}


@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cart Notifications */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    word-wrap: break-word;
    animation: slideInRight 0.3s ease-out;
}

.cart-notification.success {
    background: #4CAF50;
    color: white;
    border-left: 4px solid #45a049;
}

.cart-notification.error {
    background: #f44336;
    color: white;
    border-left: 4px solid #da190b;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cart-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 13px;
    }
}

/* Cart quantity controls loading states */
.qty-display.updating {
    opacity: 0.6;
    color: #999;
}

.cart-item.removing {
    opacity: 0.5;
    background: #fff5f5;
    transition: all 0.3s ease;
}

.cart-item.removing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* Quantity control button states */
.qty-minus:disabled, .qty-plus:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.qty-minus:disabled:hover, .qty-plus:disabled:hover {
    transform: none;
}

/* MODERN PAGE STYLING */
.page-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 40px;
}

.page-header {
    background: #ffffff;
    color: #1e293b;
    padding: 20px 0;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
}

.page-title-wrapper {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: #1e293b;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: #64748b;
}

.page-type {
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
    color: #475569;
}

.page-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-body {
    padding: 20px 0;
}

.page-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

.page-content-wrapper:has(.page-sidebar) {
    grid-template-columns: 1fr 320px;
}

.page-content-main {
    min-width: 0;
}

.content-wrapper {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #334155;
}

.content-wrapper h1, .content-wrapper h2, .content-wrapper h3,
.content-wrapper h4, .content-wrapper h5, .content-wrapper h6 {
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.content-wrapper h1 { font-size: 2rem; }
.content-wrapper h2 { font-size: 1.75rem; }
.content-wrapper h3 { font-size: 1.5rem; }
.content-wrapper h4 { font-size: 1.25rem; }
.content-wrapper h5 { font-size: 1.1rem; }
.content-wrapper h6 { font-size: 1rem; }

.content-wrapper p {
    margin-bottom: 1.5rem;
}

.content-wrapper ul, .content-wrapper ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.page-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget-area {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-widget-area .widget {
    margin-bottom: 24px;
}

.sidebar-widget-area .widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget-area .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom:16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.page-navigation {
    margin: 32px 0;
    padding: 20px;
    background: #f1f5f9;
    border-radius: 8px;
    text-align: center;
}

.page-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.page-link {
    background: #ffffff;
    color: #475569;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.page-comments-section {
    background: #f8fafc;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.comments-wrapper {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .page-content-wrapper:has(.page-sidebar) {
        grid-template-columns: 1fr;
    }
    
    .page-sidebar {
        position: static;
    }
    
    .content-wrapper {
        padding: 24px;
    }
    
    .sidebar-widget-area {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 24px 0;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-body {
        padding: 24px 0;
    }
    
    .content-wrapper {
        padding: 20px;
        font-size: 1rem;
    }
    
    .sidebar-widget-area {
        padding: 16px;
    }
}


/* Reset Cache Button */
.reset-cache-btn {
    background: #f59e0b;
    border: none;
    color: white;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    position: relative;
    overflow: hidden;
}

.reset-cache-btn:hover {
    background: #f97316;
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.reset-cache-btn:active {
    transform: scale(0.95);
}

.reset-cache-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.reset-cache-btn:active::after {
    width: 100px;
    height: 100px;
}

/* Responsive for reset button */
@media (max-width: 768px) {
    .reset-cache-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    .reset-cache-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin: 0 4px;
    }
}
