/* ===== Store CSS Variables ===== */
:root {
    --store-primary: #6c63ff;
    --store-primary-dark: #5a52d5;
    --store-secondary: #ff6584;
    --store-accent: #43b97f;
    --store-text: #333;
    --store-text-light: #666;
    --store-bg: #f8f9fa;
    --store-card-bg: #fff;
    --store-border: #e8e8e8;
    --store-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --store-shadow-hover: 0 8px 24px rgba(108, 99, 255, 0.15);
    --store-radius: 12px;
    --store-radius-sm: 8px;
    --store-sale-bg: #ff4757;
    --store-sale-text: #fff;
    --store-success: #2ed573;
    --store-warning: #ffa502;
}

/* ===== Store Hero Banner ===== */
.store-hero {
    background: linear-gradient(135deg, #6c63ff 0%, #4a47a3 50%, #2d2b55 100%);
    padding: 48px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.store-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.store-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,101,132,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.store-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.store-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.store-hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 22px;
    font-weight: 400;
}

.store-hero-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.store-hero-badge i {
    font-size: 13px;
}

@media (max-width: 576px) {
    .store-hero {
        padding: 32px 16px;
    }
    .store-hero-title {
        font-size: 26px;
    }
    .store-hero-subtitle {
        font-size: 14px;
    }
    .store-hero-badges {
        gap: 8px;
    }
    .store-hero-badge {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ===== Store Container ===== */
.store-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.store-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--store-text);
    margin-bottom: 24px;
}

/* ===== Breadcrumb ===== */
.store-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--store-text-light);
}

.store-breadcrumb a {
    color: var(--store-primary);
    text-decoration: none;
}

.store-breadcrumb a:hover {
    text-decoration: underline;
}

.store-breadcrumb .separator {
    color: var(--store-border);
}

/* ===== Category Filter Tabs ===== */
.store-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--store-border);
}

.store-category-tab {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--store-text-light);
    background: var(--store-card-bg);
    border: 1px solid var(--store-border);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-category-tab:hover {
    border-color: var(--store-primary);
    color: var(--store-primary);
}

.store-category-tab.active {
    background: var(--store-primary);
    color: #fff;
    border-color: var(--store-primary);
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== Product Card ===== */
.product-card {
    background: var(--store-card-bg);
    border-radius: var(--store-radius);
    overflow: hidden;
    border: 1px solid var(--store-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--store-shadow-hover);
}

.product-card-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--store-text);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-name a {
    color: inherit;
    text-decoration: none;
}

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

/* ===== Price Display ===== */
.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: auto;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--store-primary);
}

.price-original {
    font-size: 14px;
    color: var(--store-text-light);
    text-decoration: line-through;
}

/* ===== Sale Badge ===== */
.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--store-sale-bg);
    color: var(--store-sale-text);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

/* ===== Add to Cart Button ===== */
.btn-add-to-cart {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: var(--store-radius-sm);
    background: var(--store-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.btn-add-to-cart:hover {
    background: var(--store-primary-dark);
}

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

.btn-add-to-cart.added {
    background: var(--store-success);
}

.btn-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== Product Detail Page ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-gallery-main {
    width: 100%;
    border-radius: var(--store-radius);
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--store-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    border-color: var(--store-primary);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Section */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-info-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--store-text);
    line-height: 1.3;
}

.product-info-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-info-price .price-current {
    font-size: 28px;
}

.product-info-price .price-original {
    font-size: 18px;
}

.product-info-price .sale-badge {
    position: static;
}

.product-info-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--store-text-light);
}

/* Specs Table */
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.product-specs-table tr {
    border-bottom: 1px solid var(--store-border);
}

.product-specs-table td {
    padding: 10px 12px;
}

.product-specs-table td:first-child {
    font-weight: 600;
    color: var(--store-text);
    width: 35%;
    background: var(--store-bg);
}

.product-specs-table td:last-child {
    color: var(--store-text-light);
}

/* CTA Buttons */
.product-cta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.product-cta .btn-add-to-cart {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
}

.btn-buy-now {
    flex: 1;
    padding: 14px 24px;
    border: 2px solid var(--store-primary);
    border-radius: var(--store-radius-sm);
    background: transparent;
    color: var(--store-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.btn-buy-now:hover {
    background: var(--store-primary);
    color: #fff;
}

/* Quantity Selector on Detail Page */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm);
    overflow: hidden;
    width: fit-content;
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--store-bg);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.quantity-selector button:hover {
    background: var(--store-border);
}

.quantity-selector input {
    width: 48px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== Cart Page ===== */
.store-cart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--store-card-bg);
    border-radius: var(--store-radius-sm);
    border: 1px solid var(--store-border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--store-radius-sm);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--store-text);
}

.cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.cart-item-name a:hover {
    color: var(--store-primary);
}

.cart-item-meta {
    font-size: 13px;
    color: var(--store-text-light);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
}

.cart-item-qty .quantity-selector {
    margin: 0;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--store-text);
    min-width: 80px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--store-sale-bg);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.cart-item-remove:hover {
    background: #fff0f0;
}

/* Cart Totals */
.cart-totals {
    background: var(--store-card-bg);
    border-radius: var(--store-radius);
    border: 1px solid var(--store-border);
    padding: 24px;
    max-width: 400px;
    margin-left: auto;
}

.cart-totals-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--store-text);
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--store-border);
}

.cart-totals-row:last-of-type {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: var(--store-primary);
}

.cart-totals .btn-add-to-cart {
    margin-top: 16px;
    padding: 14px;
    font-size: 16px;
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--store-text-light);
}

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

.cart-empty p {
    font-size: 16px;
    margin-bottom: 20px;
}

.cart-empty a {
    color: var(--store-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ===== Checkout Page ===== */
.store-checkout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.checkout-form {
    background: var(--store-card-bg);
    border-radius: var(--store-radius);
    border: 1px solid var(--store-border);
    padding: 28px;
}

.checkout-form-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--store-text);
}

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

.checkout-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--store-text);
}

.checkout-form-group input,
.checkout-form-group select,
.checkout-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.checkout-form-group input:focus,
.checkout-form-group select:focus,
.checkout-form-group textarea:focus {
    border-color: var(--store-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

/* Order Summary Sidebar */
.checkout-summary {
    background: var(--store-card-bg);
    border-radius: var(--store-radius);
    border: 1px solid var(--store-border);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.checkout-summary-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--store-text);
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--store-border);
}

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

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--store-border);
    font-size: 18px;
    font-weight: 700;
    color: var(--store-primary);
}

.btn-place-order {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    border: none;
    border-radius: var(--store-radius-sm);
    background: var(--store-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-place-order:hover {
    background: #37a06d;
}

/* ===== Toast Notification ===== */
.store-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--store-text);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--store-radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.store-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.store-toast.success {
    background: var(--store-success);
}

.store-toast.error {
    background: var(--store-sale-bg);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-checkout {
        grid-template-columns: 1fr;
    }

    .cart-totals {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }

    .cart-item-qty,
    .cart-item-price,
    .cart-item-remove {
        grid-column: 2;
    }

    .store-categories {
        gap: 8px;
    }

    .store-category-tab {
        padding: 6px 14px;
        font-size: 13px;
    }

    .product-cta {
        flex-direction: column;
    }

    .store-container {
        padding: 12px;
    }

    .product-info-title {
        font-size: 20px;
    }

    .product-info-price .price-current {
        font-size: 22px;
    }
}


/* ===== Catalog Page - Template Class Names ===== */
/* These rules target the class names used in store/catalog.html template */

/* Main Wrapper */
.store-catalog {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* Page Header */
.store-header {
    text-align: center;
    margin-bottom: 30px;
}

.store-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--store-text);
}

.store-subtitle {
    font-size: 16px;
    color: var(--store-text-light);
    margin-top: 8px;
}

/* Search Toolbar */
.store-toolbar {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.store-search-form {
    display: flex;
    max-width: 500px;
    width: 100%;
}

.store-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm) 0 0 var(--store-radius-sm);
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.store-search-input:focus {
    border-color: var(--store-primary);
}

.store-search-btn {
    padding: 10px 18px;
    background: var(--store-primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--store-radius-sm) var(--store-radius-sm) 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.store-search-btn:hover {
    background: var(--store-primary-dark);
}

/* Product Grid */
.store-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Product Card */
.store-product-card {
    background: var(--store-card-bg);
    border-radius: var(--store-radius);
    overflow: hidden;
    border: 1px solid var(--store-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.store-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--store-shadow-hover);
}

/* Product Link */
.store-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product Image */
.store-product-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.store-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.store-product-card:hover .store-product-image img {
    transform: scale(1.05);
}

/* No Image Placeholder */
.store-no-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 48px;
}

/* Sale Badge */
.store-sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--store-sale-bg);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

/* Out of Stock Badge */
.store-out-of-stock-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #888;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

/* Product Info */
.store-product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product Category */
.store-product-category {
    font-size: 12px;
    color: var(--store-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Product Name */
.store-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--store-text);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Description */
.store-product-desc {
    font-size: 13px;
    color: var(--store-text-light);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Price */
.store-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.store-price-sale {
    font-size: 18px;
    font-weight: 700;
    color: var(--store-primary);
}

.store-price-original {
    font-size: 14px;
    color: var(--store-text-light);
    text-decoration: line-through;
}

.store-price-regular {
    font-size: 18px;
    font-weight: 700;
    color: var(--store-text);
}

/* Add to Cart Button */
.store-add-to-cart-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 0 0 var(--store-radius) var(--store-radius);
    background: var(--store-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.store-add-to-cart-btn:hover {
    background: var(--store-primary-dark);
}

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

.store-add-to-cart-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Pagination */
.store-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.store-page-link {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--store-text);
    border: 1px solid var(--store-border);
    font-size: 14px;
    transition: all 0.2s ease;
}

.store-page-link:hover {
    border-color: var(--store-primary);
    color: var(--store-primary);
}

.store-page-link.active {
    background: var(--store-primary);
    color: #fff;
    border-color: var(--store-primary);
}

/* Empty State */
.store-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--store-text-light);
}

.store-empty i {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
    display: block;
}

.store-empty h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--store-text);
}

/* Generic Store Button */
.store-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--store-primary);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
    transition: background 0.2s ease;
}

.store-btn:hover {
    background: var(--store-primary-dark);
}

/* ===== Catalog Responsive Overrides ===== */
@media (max-width: 1200px) {
    .store-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .store-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .store-product-grid {
        grid-template-columns: 1fr;
    }

    .store-catalog {
        padding: 12px;
    }

    .store-title {
        font-size: 24px;
    }

    .store-subtitle {
        font-size: 14px;
    }
}


/* ===== Product Detail Page (store-detail-* classes) ===== */
.store-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
}

.store-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

/* Gallery */
.store-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--store-radius);
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-no-image-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ccc;
    font-size: 48px;
}

.store-no-image-detail span {
    font-size: 14px;
    color: #999;
}

.store-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.store-gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--store-radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.store-gallery-thumb:hover,
.store-gallery-thumb.active {
    border-color: var(--store-primary);
    transform: scale(1.05);
}

/* Info Section */
.store-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-detail-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--store-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(108, 99, 255, 0.08);
    padding: 4px 12px;
    border-radius: 16px;
    width: fit-content;
}

.store-detail-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--store-text);
    line-height: 1.3;
    margin: 0;
}

.store-detail-short-desc {
    font-size: 15px;
    color: var(--store-text-light);
    line-height: 1.6;
    margin: 0;
}

/* Price */
.store-detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.store-detail-sale-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--store-primary);
}

.store-detail-regular-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--store-text);
}

.store-detail-original-price {
    font-size: 18px;
    color: var(--store-text-light);
    text-decoration: line-through;
}

.store-detail-discount-badge {
    background: var(--store-sale-bg);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
}

/* Stock */
.store-detail-stock {
    font-size: 14px;
}

.store-stock-available {
    color: var(--store-accent);
    font-weight: 600;
}

.store-stock-available i {
    margin-right: 4px;
}

.store-stock-unavailable {
    color: var(--store-sale-bg);
    font-weight: 600;
}

.store-stock-unavailable i {
    margin-right: 4px;
}

/* Add to Cart Actions */
.store-detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid var(--store-border);
    border-bottom: 1px solid var(--store-border);
}

.store-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm);
    overflow: hidden;
}

.store-qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--store-bg);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    color: var(--store-text);
}

.store-qty-btn:hover {
    background: var(--store-border);
}

.store-qty-input {
    width: 50px;
    height: 38px;
    border: none;
    border-left: 1px solid var(--store-border);
    border-right: 1px solid var(--store-border);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--store-text);
    -moz-appearance: textfield;
}

.store-qty-input::-webkit-outer-spin-button,
.store-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.store-detail-add-btn {
    flex: 1;
    min-width: 180px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--store-radius-sm);
    background: var(--store-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.store-detail-add-btn:hover {
    background: var(--store-primary-dark);
    transform: translateY(-1px);
}

.store-detail-add-btn:active {
    transform: scale(0.97);
}

/* Description */
.store-detail-description {
    margin-top: 8px;
}

.store-detail-description h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--store-text);
    margin: 0 0 10px;
}

.store-detail-description p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--store-text-light);
    margin: 0;
}

/* Specifications */
.store-detail-specs {
    margin-top: 8px;
}

.store-detail-specs h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--store-text);
    margin: 0 0 12px;
}

.store-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: var(--store-radius-sm);
    overflow: hidden;
    border: 1px solid var(--store-border);
}

.store-specs-table tr {
    border-bottom: 1px solid var(--store-border);
}

.store-specs-table tr:last-child {
    border-bottom: none;
}

.store-specs-table th {
    padding: 10px 14px;
    font-weight: 600;
    color: var(--store-text);
    background: var(--store-bg);
    text-align: left;
    width: 35%;
}

.store-specs-table td {
    padding: 10px 14px;
    color: var(--store-text-light);
}

/* Tags */
.store-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.store-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--store-bg);
    border: 1px solid var(--store-border);
    border-radius: 16px;
    font-size: 12px;
    color: var(--store-text-light);
    font-weight: 500;
}

/* Related Products */
.store-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--store-border);
}

.store-related-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--store-text);
    margin: 0 0 24px;
}

.store-related-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== Product Detail Responsive ===== */
@media (max-width: 992px) {
    .store-detail-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .store-gallery-main {
        max-height: 400px;
    }

    .store-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .store-detail {
        padding: 12px;
    }

    .store-detail-name {
        font-size: 20px;
    }

    .store-detail-sale-price,
    .store-detail-regular-price {
        font-size: 22px;
    }

    .store-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .store-detail-add-btn {
        min-width: auto;
    }

    .store-gallery-thumb {
        width: 56px;
        height: 56px;
    }

    .store-related-grid {
        grid-template-columns: 1fr;
    }
}
