/* ========== AWSTORE THEME v1.5.0 - IMPROVED UI ========== */

/* ========== DARK THEME (Default) ========== */
.awstore-dark-theme {
    --aws-bg: #0a0e17;
    --aws-bg-secondary: #0d1321;
    --aws-card-bg: #141b2d;
    --aws-card-bg-hover: #1a2438;
    --aws-card-border: #1e2a45;
    --aws-card-border-hover: #2a3a5a;
    --aws-text: #ffffff;
    --aws-text-secondary: #e0e0e0;
    --aws-text-muted: #8b95a5;
    --aws-input-bg: #141b2d;
    --aws-input-border: #1e2a45;
    --aws-price-color: #00d4aa;
    --aws-btn-text: #000000;
}

/* ========== LIGHT THEME ========== */
.awstore-light-theme {
    --aws-bg: #f0f4f8;
    --aws-bg-secondary: #ffffff;
    --aws-card-bg: #ffffff;
    --aws-card-bg-hover: #f8fafc;
    --aws-card-border: #e2e8f0;
    --aws-card-border-hover: #cbd5e1;
    --aws-text: #1e293b;
    --aws-text-secondary: #334155;
    --aws-text-muted: #64748b;
    --aws-input-bg: #ffffff;
    --aws-input-border: #e2e8f0;
    --aws-price-color: #dc2626;
    --aws-btn-text: #ffffff;
}

/* ========== AUTO THEME ========== */
@media (prefers-color-scheme: light) {
    .awstore-auto-theme {
        --aws-bg: #f0f4f8;
        --aws-bg-secondary: #ffffff;
        --aws-card-bg: #ffffff;
        --aws-card-bg-hover: #f8fafc;
        --aws-card-border: #e2e8f0;
        --aws-card-border-hover: #cbd5e1;
        --aws-text: #1e293b;
        --aws-text-secondary: #334155;
        --aws-text-muted: #64748b;
        --aws-input-bg: #ffffff;
        --aws-input-border: #e2e8f0;
        --aws-price-color: #dc2626;
        --aws-btn-text: #ffffff;
    }
}

@media (prefers-color-scheme: dark) {
    .awstore-auto-theme {
        --aws-bg: #0a0e17;
        --aws-bg-secondary: #0d1321;
        --aws-card-bg: #141b2d;
        --aws-card-bg-hover: #1a2438;
        --aws-card-border: #1e2a45;
        --aws-card-border-hover: #2a3a5a;
        --aws-text: #ffffff;
        --aws-text-secondary: #e0e0e0;
        --aws-text-muted: #8b95a5;
        --aws-input-bg: #141b2d;
        --aws-input-border: #1e2a45;
        --aws-price-color: #00d4aa;
        --aws-btn-text: #000000;
    }
}

/* ========== DEFAULT VARIABLES ========== */
:root {
    --aws-primary: #00d4aa;
    --aws-primary-dark: #00b894;
    --aws-primary-light: #00e6b8;
    --aws-success: #22c55e;
    --aws-warning: #f59e0b;
    --aws-danger: #ef4444;
    --aws-shadow-primary: rgba(0, 212, 170, 0.25);
    --aws-glow: rgba(0, 212, 170, 0.15);
}

/* ========== CONTAINER ========== */
.awstore-shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    background: var(--aws-bg);
    font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    transition: background 0.3s ease;
}

/* ========== SEARCH BAR ========== */
.awstore-search-bar {
    margin-bottom: 25px;
}

.awstore-search-bar .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.awstore-search-bar .search-icon {
    position: absolute;
    left: 20px;
    font-size: 18px;
    pointer-events: none;
}

.awstore-search-bar input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--aws-input-bg);
    border: 2px solid var(--aws-input-border);
    border-radius: 14px;
    color: var(--aws-text);
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.awstore-search-bar input::placeholder {
    color: var(--aws-text-muted);
}

.awstore-search-bar input:focus {
    outline: none;
    border-color: var(--aws-primary);
    box-shadow: 0 0 0 4px var(--aws-shadow-primary);
}

/* ========== CATEGORIES ========== */
.awstore-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--aws-card-border);
}

.awstore-cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--aws-card-bg);
    border: 2px solid var(--aws-card-border);
    border-radius: 25px;
    color: var(--aws-text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.awstore-cat-btn:hover {
    background: var(--aws-card-bg-hover);
    border-color: var(--aws-primary);
    transform: translateY(-2px);
}

.awstore-cat-btn.active {
    background: linear-gradient(135deg, var(--aws-primary) 0%, var(--aws-primary-dark) 100%);
    border-color: var(--aws-primary);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--aws-shadow-primary);
}

.awstore-cat-btn .cat-icon {
    font-size: 16px;
}

.awstore-cat-btn .cat-icon-img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
}

.awstore-cat-btn .cat-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.awstore-light-theme .awstore-cat-btn .cat-count {
    background: rgba(0, 0, 0, 0.08);
}

.awstore-cat-btn.active .cat-count {
    background: rgba(0, 0, 0, 0.2);
}

/* ========== SECTION HEADER ========== */
.awstore-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.awstore-section-header .header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.awstore-section-header h2 {
    color: var(--aws-text);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.awstore-section-header .product-count {
    color: var(--aws-text-muted);
    font-size: 14px;
    background: var(--aws-card-bg);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--aws-card-border);
}

.awstore-section-header .sort-label {
    color: var(--aws-primary);
    font-size: 13px;
}

/* ========== PRODUCTS LIST ========== */
.awstore-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== PRODUCT ITEM - IMPROVED ========== */
.awstore-product-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    background: var(--aws-card-bg);
    border: 2px solid var(--aws-card-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.awstore-product-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--aws-primary) 0%, var(--aws-primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.awstore-product-item:hover {
    border-color: var(--aws-primary);
    background: var(--aws-card-bg-hover);
    transform: translateX(5px);
    box-shadow: 0 8px 30px var(--aws-glow), 0 0 0 1px var(--aws-primary);
}

.awstore-product-item:hover::before {
    opacity: 1;
}

/* Light theme shadows */
.awstore-light-theme .awstore-product-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.awstore-light-theme .awstore-product-item:hover {
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Product Thumbnail */
.awstore-product-item .product-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--aws-bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.awstore-light-theme .awstore-product-item .product-thumb {
    background: #f1f5f9;
    border: 1px solid var(--aws-card-border);
}

.awstore-product-item .product-thumb img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.awstore-product-item:hover .product-thumb img {
    transform: scale(1.1);
}

.awstore-product-item .discount-tag {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

/* Product Details */
.awstore-product-item .product-details {
    flex: 1;
    min-width: 200px;
}

.awstore-product-item .product-name {
    color: var(--aws-text);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.awstore-product-item:hover .product-name {
    color: var(--aws-primary);
}

.awstore-product-item .product-desc {
    color: var(--aws-text-muted);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== PRODUCT STOCK - IMPROVED ========== */
.awstore-product-item .product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 110px;
    justify-content: center;
}

.awstore-product-item .product-stock.in-stock {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    border: none;
}

.awstore-product-item .product-stock.low-stock {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border: none;
}

.awstore-product-item .product-stock.out-of-stock {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: none;
}

.awstore-dark-theme .awstore-product-item .product-stock.in-stock {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.awstore-dark-theme .awstore-product-item .product-stock.low-stock {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.awstore-dark-theme .awstore-product-item .product-stock.out-of-stock {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.awstore-product-item .stock-icon {
    font-size: 14px;
}

/* ========== PRODUCT PRICING - IMPROVED ========== */
.awstore-product-item .product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 130px;
    padding: 8px 0;
}

.awstore-product-item .original-price {
    color: var(--aws-text-muted);
    font-size: 13px;
    text-decoration: line-through;
}

.awstore-product-item .current-price {
    color: var(--aws-price-color);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

/* Light theme - giá màu đỏ nổi bật như đối thủ */
.awstore-light-theme .awstore-product-item .current-price {
    color: #dc2626;
    text-shadow: none;
}

/* Dark theme */
.awstore-dark-theme .awstore-product-item .current-price {
    color: #00d4aa;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

/* ========== BUY BUTTON - IMPROVED ========== */
.awstore-product-item .product-action {
    flex-shrink: 0;
}

.awstore-product-item .buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.awstore-product-item .buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Dark theme button */
.awstore-dark-theme .awstore-product-item .buy-btn {
    background: linear-gradient(135deg, var(--aws-primary) 0%, var(--aws-primary-dark) 100%);
    color: #000000;
    box-shadow: 0 4px 15px var(--aws-shadow-primary);
}

.awstore-dark-theme .awstore-product-item .buy-btn:hover {
    box-shadow: 0 8px 25px var(--aws-shadow-primary);
    background: linear-gradient(135deg, var(--aws-primary-light) 0%, var(--aws-primary) 100%);
}

/* Disabled button */
.awstore-product-item .buy-btn.disabled {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
}

.awstore-product-item .buy-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ========== LOADING ========== */
.awstore-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--aws-text-muted);
    gap: 15px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--aws-card-border);
    border-top-color: var(--aws-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== NO PRODUCTS ========== */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--aws-text-muted);
    font-size: 16px;
    background: var(--aws-card-bg);
    border-radius: 16px;
    border: 2px dashed var(--aws-card-border);
}

/* ========== CATEGORIES STANDALONE ========== */
.awstore-categories-standalone {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    background: var(--aws-bg);
    padding: 20px;
    border-radius: 16px;
}

.awstore-category-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--aws-card-bg);
    border: 2px solid var(--aws-card-border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.awstore-category-card:hover {
    border-color: var(--aws-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--aws-glow);
}

.awstore-category-card .category-icon {
    width: 60px;
    height: 60px;
    background: var(--aws-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.awstore-category-card .category-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.awstore-category-card .category-info h4 {
    color: var(--aws-text);
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.awstore-category-card .category-info span {
    color: var(--aws-text-muted);
    font-size: 13px;
}

/* ========== ANIMATIONS ========== */
.awstore-product-item {
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
}

.awstore-product-item:nth-child(1) { animation-delay: 0.05s; }
.awstore-product-item:nth-child(2) { animation-delay: 0.1s; }
.awstore-product-item:nth-child(3) { animation-delay: 0.15s; }
.awstore-product-item:nth-child(4) { animation-delay: 0.2s; }
.awstore-product-item:nth-child(5) { animation-delay: 0.25s; }
.awstore-product-item:nth-child(6) { animation-delay: 0.3s; }
.awstore-product-item:nth-child(7) { animation-delay: 0.35s; }
.awstore-product-item:nth-child(8) { animation-delay: 0.4s; }
.awstore-product-item:nth-child(n+9) { animation-delay: 0.45s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .awstore-product-item {
        grid-template-columns: 70px 1fr auto auto;
        gap: 15px;
        padding: 15px 18px;
    }
    
    .awstore-product-item .product-stock {
        display: none;
    }
    
    .awstore-product-item .product-thumb {
        width: 70px;
        height: 70px;
    }
    
    .awstore-product-item .current-price {
        font-size: 20px;
    }
    
    .awstore-product-item .buy-btn {
        min-width: 110px;
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .awstore-shop-container {
        padding: 20px 15px;
    }
    
    .awstore-product-item {
        grid-template-columns: 65px 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        padding: 16px;
    }
    
    .awstore-product-item .product-thumb {
        width: 65px;
        height: 65px;
        grid-row: span 2;
    }
    
    .awstore-product-item .product-details {
        grid-column: 2;
    }
    
    .awstore-product-item .product-pricing {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        min-width: auto;
    }
    
    .awstore-product-item .product-action {
        grid-column: 1 / -1;
    }
    
    .awstore-product-item .buy-btn {
        width: 100%;
        padding: 14px;
        font-size: 14px;
    }
    
    .awstore-product-item .current-price {
        font-size: 20px;
    }
    
    .awstore-product-item .original-price {
        font-size: 12px;
    }
    
    .awstore-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .awstore-categories::-webkit-scrollbar {
        height: 4px;
    }
    
    .awstore-categories::-webkit-scrollbar-track {
        background: var(--aws-card-bg);
    }
    
    .awstore-categories::-webkit-scrollbar-thumb {
        background: var(--aws-primary);
        border-radius: 2px;
    }
    
    .awstore-cat-btn {
        flex-shrink: 0;
    }
    
    .awstore-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .awstore-section-header h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .awstore-product-item .product-name {
        font-size: 14px;
    }
    
    .awstore-product-item .product-desc {
        -webkit-line-clamp: 1;
        font-size: 12px;
    }
    
    .awstore-product-item .current-price {
        font-size: 18px;
    }
    
    .awstore-product-item .product-thumb {
        width: 55px;
        height: 55px;
    }
}

/* ========== PULSE FOR LOW STOCK ========== */
.awstore-product-item .product-stock.low-stock {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
/* ========== AWSTORE THEME v1.6.0 - CLICKABLE & MOBILE CATEGORIES ========== */

/* ========== DARK THEME (Default) ========== */
.awstore-dark-theme {
    --aws-bg: #0a0e17;
    --aws-bg-secondary: #0d1321;
    --aws-card-bg: #141b2d;
    --aws-card-bg-hover: #1a2438;
    --aws-card-border: #1e2a45;
    --aws-card-border-hover: #2a3a5a;
    --aws-text: #ffffff;
    --aws-text-secondary: #e0e0e0;
    --aws-text-muted: #8b95a5;
    --aws-input-bg: #141b2d;
    --aws-input-border: #1e2a45;
    --aws-price-color: #00d4aa;
    --aws-btn-text: #000000;
}

/* ========== LIGHT THEME ========== */
.awstore-light-theme {
    --aws-bg: #f0f4f8;
    --aws-bg-secondary: #ffffff;
    --aws-card-bg: #ffffff;
    --aws-card-bg-hover: #f8fafc;
    --aws-card-border: #e2e8f0;
    --aws-card-border-hover: #cbd5e1;
    --aws-text: #1e293b;
    --aws-text-secondary: #334155;
    --aws-text-muted: #64748b;
    --aws-input-bg: #ffffff;
    --aws-input-border: #e2e8f0;
    --aws-price-color: #dc2626;
    --aws-btn-text: #ffffff;
}

/* ========== AUTO THEME ========== */
@media (prefers-color-scheme: light) {
    .awstore-auto-theme {
        --aws-bg: #f0f4f8;
        --aws-bg-secondary: #ffffff;
        --aws-card-bg: #ffffff;
        --aws-card-bg-hover: #f8fafc;
        --aws-card-border: #e2e8f0;
        --aws-card-border-hover: #cbd5e1;
        --aws-text: #1e293b;
        --aws-text-secondary: #334155;
        --aws-text-muted: #64748b;
        --aws-input-bg: #ffffff;
        --aws-input-border: #e2e8f0;
        --aws-price-color: #dc2626;
        --aws-btn-text: #ffffff;
    }
}

@media (prefers-color-scheme: dark) {
    .awstore-auto-theme {
        --aws-bg: #0a0e17;
        --aws-bg-secondary: #0d1321;
        --aws-card-bg: #141b2d;
        --aws-card-bg-hover: #1a2438;
        --aws-card-border: #1e2a45;
        --aws-card-border-hover: #2a3a5a;
        --aws-text: #ffffff;
        --aws-text-secondary: #e0e0e0;
        --aws-text-muted: #8b95a5;
        --aws-input-bg: #141b2d;
        --aws-input-border: #1e2a45;
        --aws-price-color: #00d4aa;
        --aws-btn-text: #000000;
    }
}

/* ========== DEFAULT VARIABLES ========== */
:root {
    --aws-primary: #00d4aa;
    --aws-primary-dark: #00b894;
    --aws-primary-light: #00e6b8;
    --aws-success: #22c55e;
    --aws-warning: #f59e0b;
    --aws-danger: #ef4444;
    --aws-shadow-primary: rgba(0, 212, 170, 0.25);
    --aws-glow: rgba(0, 212, 170, 0.15);
}

/* ========== CONTAINER ========== */
.awstore-shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    background: var(--aws-bg);
    font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    transition: background 0.3s ease;
}

/* ========== SEARCH BAR ========== */
.awstore-search-bar {
    margin-bottom: 25px;
}

.awstore-search-bar .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.awstore-search-bar .search-icon {
    position: absolute;
    left: 20px;
    font-size: 18px;
    pointer-events: none;
}

.awstore-search-bar input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--aws-input-bg);
    border: 2px solid var(--aws-input-border);
    border-radius: 14px;
    color: var(--aws-text);
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.awstore-search-bar input::placeholder {
    color: var(--aws-text-muted);
}

.awstore-search-bar input:focus {
    outline: none;
    border-color: var(--aws-primary);
    box-shadow: 0 0 0 4px var(--aws-shadow-primary);
}

/* ========== CATEGORIES - DESKTOP ========== */
.awstore-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--aws-card-border);
}

.awstore-cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--aws-card-bg);
    border: 2px solid var(--aws-card-border);
    border-radius: 25px;
    color: var(--aws-text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.awstore-cat-btn:hover {
    background: var(--aws-card-bg-hover);
    border-color: var(--aws-primary);
    transform: translateY(-2px);
}

.awstore-cat-btn.active {
    background: linear-gradient(135deg, var(--aws-primary) 0%, var(--aws-primary-dark) 100%);
    border-color: var(--aws-primary);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--aws-shadow-primary);
}

.awstore-cat-btn .cat-icon {
    font-size: 16px;
}

.awstore-cat-btn .cat-icon-img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
}

.awstore-cat-btn .cat-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.awstore-light-theme .awstore-cat-btn .cat-count {
    background: rgba(0, 0, 0, 0.08);
}

.awstore-cat-btn.active .cat-count {
    background: rgba(0, 0, 0, 0.2);
}

/* ========== SECTION HEADER ========== */
.awstore-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.awstore-section-header .header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.awstore-section-header h2 {
    color: var(--aws-text);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.awstore-section-header .product-count {
    color: var(--aws-text-muted);
    font-size: 14px;
    background: var(--aws-card-bg);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--aws-card-border);
}

.awstore-section-header .sort-label {
    color: var(--aws-primary);
    font-size: 13px;
}

/* ========== PRODUCTS LIST ========== */
.awstore-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== PRODUCT ITEM - CLICKABLE ========== */
a.awstore-product-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    background: var(--aws-card-bg);
    border: 2px solid var(--aws-card-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

a.awstore-product-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--aws-primary) 0%, var(--aws-primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

a.awstore-product-item:hover {
    border-color: var(--aws-primary);
    background: var(--aws-card-bg-hover);
    transform: translateX(5px);
    box-shadow: 0 8px 30px var(--aws-glow), 0 0 0 1px var(--aws-primary);
    text-decoration: none;
}

a.awstore-product-item:hover::before {
    opacity: 1;
}

/* Light theme shadows */
.awstore-light-theme a.awstore-product-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.awstore-light-theme a.awstore-product-item:hover {
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Product Thumbnail */
.awstore-product-item .product-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--aws-bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.awstore-light-theme .awstore-product-item .product-thumb {
    background: #f1f5f9;
    border: 1px solid var(--aws-card-border);
}

.awstore-product-item .product-thumb img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.awstore-product-item:hover .product-thumb img {
    transform: scale(1.1);
}

.awstore-product-item .discount-tag {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

/* Product Details */
.awstore-product-item .product-details {
    flex: 1;
    min-width: 200px;
}

.awstore-product-item .product-name {
    color: var(--aws-text);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.awstore-product-item:hover .product-name {
    color: var(--aws-primary);
}

.awstore-product-item .product-desc {
    color: var(--aws-text-muted);
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== PRODUCT STOCK ========== */
.awstore-product-item .product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 110px;
    justify-content: center;
}

.awstore-product-item .product-stock.in-stock {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    border: none;
}

.awstore-product-item .product-stock.low-stock {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border: none;
}

.awstore-product-item .product-stock.out-of-stock {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: none;
}

.awstore-dark-theme .awstore-product-item .product-stock.in-stock {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.awstore-dark-theme .awstore-product-item .product-stock.low-stock {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.awstore-dark-theme .awstore-product-item .product-stock.out-of-stock {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.awstore-product-item .stock-icon {
    font-size: 14px;
}

/* ========== PRODUCT PRICING ========== */
.awstore-product-item .product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 130px;
    padding: 8px 0;
}

.awstore-product-item .original-price {
    color: var(--aws-text-muted);
    font-size: 13px;
    text-decoration: line-through;
}

.awstore-product-item .current-price {
    color: var(--aws-price-color);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.awstore-light-theme .awstore-product-item .current-price {
    color: #dc2626;
    text-shadow: none;
}

.awstore-dark-theme .awstore-product-item .current-price {
    color: #00d4aa;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

/* ========== BUY BUTTON ========== */
.awstore-product-item .product-action {
    flex-shrink: 0;
}

.awstore-product-item .buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.awstore-product-item:hover .buy-btn {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.awstore-dark-theme .awstore-product-item .buy-btn {
    background: linear-gradient(135deg, var(--aws-primary) 0%, var(--aws-primary-dark) 100%);
    color: #000000;
    box-shadow: 0 4px 15px var(--aws-shadow-primary);
}

.awstore-dark-theme .awstore-product-item:hover .buy-btn {
    box-shadow: 0 8px 25px var(--aws-shadow-primary);
    background: linear-gradient(135deg, var(--aws-primary-light) 0%, var(--aws-primary) 100%);
}

.awstore-product-item .buy-btn.disabled {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
}

.awstore-product-item:hover .buy-btn.disabled {
    transform: none;
    box-shadow: none;
}

/* ========== LOADING ========== */
.awstore-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--aws-text-muted);
    gap: 15px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--aws-card-border);
    border-top-color: var(--aws-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== NO PRODUCTS ========== */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--aws-text-muted);
    font-size: 16px;
    background: var(--aws-card-bg);
    border-radius: 16px;
    border: 2px dashed var(--aws-card-border);
}

/* ========== CATEGORIES STANDALONE ========== */
.awstore-categories-standalone {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    background: var(--aws-bg);
    padding: 20px;
    border-radius: 16px;
}

.awstore-category-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--aws-card-bg);
    border: 2px solid var(--aws-card-border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.awstore-category-card:hover {
    border-color: var(--aws-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--aws-glow);
}

.awstore-category-card .category-icon {
    width: 60px;
    height: 60px;
    background: var(--aws-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.awstore-category-card .category-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.awstore-category-card .category-info h4 {
    color: var(--aws-text);
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.awstore-category-card .category-info span {
    color: var(--aws-text-muted);
    font-size: 13px;
}

/* ========== ANIMATIONS ========== */
a.awstore-product-item {
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
}

a.awstore-product-item:nth-child(1) { animation-delay: 0.05s; }
a.awstore-product-item:nth-child(2) { animation-delay: 0.1s; }
a.awstore-product-item:nth-child(3) { animation-delay: 0.15s; }
a.awstore-product-item:nth-child(4) { animation-delay: 0.2s; }
a.awstore-product-item:nth-child(5) { animation-delay: 0.25s; }
a.awstore-product-item:nth-child(6) { animation-delay: 0.3s; }
a.awstore-product-item:nth-child(7) { animation-delay: 0.35s; }
a.awstore-product-item:nth-child(8) { animation-delay: 0.4s; }
a.awstore-product-item:nth-child(n+9) { animation-delay: 0.45s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 1024px) {
    a.awstore-product-item {
        grid-template-columns: 70px 1fr auto auto;
        gap: 15px;
        padding: 15px 18px;
    }
    
    .awstore-product-item .product-stock {
        display: none;
    }
    
    .awstore-product-item .product-thumb {
        width: 70px;
        height: 70px;
    }
    
    .awstore-product-item .current-price {
        font-size: 20px;
    }
    
    .awstore-product-item .buy-btn {
        min-width: 110px;
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 768px) {
    .awstore-shop-container {
        padding: 20px 15px;
    }
    
    /* CATEGORIES - HIỂN THỊ TẤT CẢ TRÊN MOBILE */
    .awstore-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        overflow-x: visible;
        padding-bottom: 20px;
    }
    
    .awstore-cat-btn {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .awstore-cat-btn .cat-icon {
        font-size: 14px;
    }
    
    .awstore-cat-btn .cat-icon-img {
        width: 18px;
        height: 18px;
    }
    
    .awstore-cat-btn .cat-name {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .awstore-cat-btn .cat-count {
        padding: 1px 6px;
        font-size: 10px;
    }
    
    /* PRODUCT ITEM - MOBILE */
    a.awstore-product-item {
        grid-template-columns: 65px 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        padding: 16px;
    }
    
    .awstore-product-item .product-thumb {
        width: 65px;
        height: 65px;
        grid-row: span 2;
    }
    
    .awstore-product-item .product-details {
        grid-column: 2;
    }
    
    .awstore-product-item .product-pricing {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        min-width: auto;
    }
    
    .awstore-product-item .product-action {
        grid-column: 1 / -1;
    }
    
    .awstore-product-item .buy-btn {
        width: 100%;
        padding: 14px;
        font-size: 14px;
    }
    
    .awstore-product-item .current-price {
        font-size: 20px;
    }
    
    .awstore-product-item .original-price {
        font-size: 12px;
    }
    
    .awstore-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .awstore-section-header h2 {
        font-size: 20px;
    }
}

/* ========== RESPONSIVE - SMALL MOBILE ========== */
@media (max-width: 480px) {
    .awstore-categories {
        gap: 6px;
    }
    
    .awstore-cat-btn {
        padding: 6px 10px;
        font-size: 11px;
        gap: 5px;
    }
    
    .awstore-cat-btn .cat-name {
        max-width: 60px;
    }
    
    .awstore-cat-btn .cat-icon-img {
        width: 16px;
        height: 16px;
    }
    
    .awstore-product-item .product-name {
        font-size: 14px;
    }
    
    .awstore-product-item .product-desc {
        -webkit-line-clamp: 1;
        font-size: 12px;
    }
    
    .awstore-product-item .current-price {
        font-size: 18px;
    }
    
    .awstore-product-item .product-thumb {
        width: 55px;
        height: 55px;
    }
}

/* ========== PULSE FOR LOW STOCK ========== */
.awstore-product-item .product-stock.low-stock {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
