:root {
    --bg-white: #ffffff;
    --border-light: #eef2f6;
    --border-medium: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-soft: #eff6ff;
    --success: #10b981;
    --success-soft: #ecfdf5;
    --danger: #ef4444;
    --danger-soft: #fef2f2;
    --radius-sm: 8px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-white);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.store-page {
    background: var(--bg-white);
    min-height: 100vh;
    padding: 80px 0 60px;
}

.store-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Layout – two columns */
.store-detail-layout {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

/* Gallery section */
.store-gallery-main {
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.store-thumb-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.store-thumb-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 8px;
    cursor: pointer;
    transition: border 0.2s;
}

.store-thumb-btn.active,
.store-thumb-btn:hover {
    border-color: var(--accent);
}

.store-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product info panel – no heavy card, just subtle separation */
.store-detail-card {
    background: transparent;
    padding: 0;
}

.store-detail-meta {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.store-detail-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.store-detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

/* Price row */
.store-detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.store-detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.store-old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 4px;
}

/* Badges */
.store-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 30px;
    letter-spacing: 0.3px;
}

.store-badge-primary {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.store-badge-success {
    background: var(--success-soft);
    color: var(--success);
}

.store-badge-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.store-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.store-chip {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Options / variants */
.store-variant-option {
    margin: 20px 0;
}

.store-option-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.store-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-option-btn {
    border: 1px solid var(--border-medium);
    background: var(--bg-white);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.store-option-btn.active,
.store-option-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-dark);
}

/* Add to cart row */
.store-buy-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 24px 0 20px;
    padding-top: 8px;
}

.store-qty {
    width: 80px;
    padding: 10px 8px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.store-btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

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

.store-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.store-btn-light {
    background: var(--bg-white);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.store-btn-light:hover {
    background: #f8fafc;
    border-color: var(--border-medium);
}

/* Trust grid (compact) */
.store-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}

.store-trust-item {
    background: #fafbfc;
    border-radius: var(--radius-sm);
    padding: 12px;
    border: 1px solid var(--border-light);
}

.store-trust-item strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.store-trust-item span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Specifications sections */
.store-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.store-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.store-spec-card {
    background: #fafbfc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.store-spec-card span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.store-spec-card strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Related products grid */
.store-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.store-product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border 0.2s;
}

.store-product-card:hover {
    border-color: var(--border-medium);
}

.store-card-media {
    position: relative;
    background: #fafbfc;
    aspect-ratio: 1 / 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.2s;
}

.store-product-card:hover .store-card-media img {
    transform: scale(1.02);
}

.store-badge-row {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.store-card-body {
    padding: 12px;
}

.store-card-meta {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.store-card-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-card-title:hover {
    color: var(--accent);
}

.store-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.store-old-price {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.store-stock-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
}

.store-stock-pill.is-in {
    background: var(--success-soft);
    color: var(--success);
}

.store-stock-pill.is-out {
    background: var(--danger-soft);
    color: var(--danger);
}

/* Empty / error states */
.store-empty {
    text-align: center;
    padding: 60px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
}

.store-empty h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Skeleton loading */
.store-skeleton-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.store-skeleton-media {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    aspect-ratio: 1 / 0.85;
}

.store-skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 4px;
    height: 12px;
    margin-bottom: 10px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast notifications */
.store-alert-wrap {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    width: min(380px, 90vw);
}

.store-alert {
    background: var(--bg-white);
    border-left: 4px solid;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-size: 13px;
    font-weight: 500;
}

.store-alert-success { border-left-color: var(--success); }
.store-alert-danger { border-left-color: var(--danger); }
.store-alert-info { border-left-color: var(--accent); }

/* Responsive */
@media (max-width: 1024px) {
    .store-detail-layout {
        gap: 32px;
    }
    .store-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .store-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .store-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .store-container {
        padding: 0 16px;
    }
    .store-detail-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .store-products-grid {
        grid-template-columns: 1fr;
    }
    .store-trust-grid {
        grid-template-columns: 1fr;
    }
    .store-buy-row {
        flex-direction: column;
        align-items: stretch;
    }
    .store-qty {
        width: 100%;
    }
}