/* ========================================
   STORE CSS
   E-commerce Store Styling
   ======================================== */

/* Import base styles */
@import url('../../css/blog.css');

/* ========================================
   Store Layout
   ======================================== */
.store-wrapper {
    min-height: 100vh;
    /* background: var(--bg-primary); */
}

/* Override main-wrapper from blog.css to prevent layout issues */
.store-wrapper .main-wrapper {
    display: block;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Ensure footer and other common containers match store width */
.container {
    max-width: 1400px;
}

@media (max-width: 768px) {

    .container,
    .store-container {
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
    }
}

.store-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ========================================
   Store Header
   ======================================== */
.store-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}



.store-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

/* Main Header Overrides */
.store-wrapper .header {
    border-bottom: 1px solid var(--border-color);
    position: relative !important;
    top: auto !important;
}

/* .store-wrapper .header .search-btn {
    display: none;
} */

/* Store Navigation Bar */
.store-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 99;
    margin-bottom: var(--spacing-sm);
}

/* Store Toolbar (Categories & Sort) */
.store-toolbar {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: 0;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sort-select {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

.sort-select option {
    background: #150E2D;
    color: #fff;
}

[data-theme="light"] .sort-select option {
    background: #fff;
    color: #333;
}

.store-select {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    min-width: 180px;
    transition: all 0.2s;
}

.store-select:hover,
.store-select:focus {
    border-color: var(--primary);
}

.store-select option {
    background: #0D0F16;
}

[data-theme="light"] .store-select option {
    background: #fff;
    color: #333;
}

@media (max-width: 768px) {
    .store-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .store-select {
        width: 100%;
    }
}

/* ========================================
   Store Products Grid
   ======================================== */
.products-main {
    width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.store-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.store-breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.store-breadcrumb a:hover {
    color: var(--primary);
}

.store-breadcrumb span {
    color: var(--text-muted);
}

/* Store Quick Links */
.store-icon-link:hover {
    color: var(--primary) !important;
}

.store-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Store Search */
.store-search-form {
    display: flex;
    align-items: center;

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 var(--spacing-sm);
    transition: all 0.2s;
}

.store-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.store-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    padding: var(--spacing-sm);
    outline: none;
    width: 100%;
}

.store-search-input::placeholder {
    color: var(--text-muted);
}

.cart-item-remove {
    padding: var(--spacing-sm);
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.cart-item-remove:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
}

.store-search-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}

.store-search-btn:hover {
    color: var(--primary);
}

.store-search-btn svg {
    width: 18px;
    height: 18px;
}

/* Account Dropdown */
.store-account-dropdown {
    position: relative;
}

.store-account-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--spacing-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.store-account-dropdown:hover .store-account-menu,
.store-account-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.store-account-menu a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.store-account-menu a:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.store-account-menu a:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.store-account-menu a:hover {
    background: var(--bg-glass-strong);
    color: var(--primary);
}

/* Added to Cart state */
.add-to-cart-btn.btn-in-cart {
    background: var(--bg-glass-strong);
    border-color: var(--primary);
    color: var(--primary);
}

.add-to-cart-btn.btn-in-cart:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.store-account-menu a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ========================================
   Store Sidebar
   ======================================== */
.store-sidebar {

    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: var(--spacing-lg);
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: var(--spacing-xs);
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
}

.category-link:hover {
    background: var(--bg-glass-strong);
    color: var(--text-primary);
}

.category-link.active {
    background: var(--gradient-primary);
    color: white;
}

.category-count {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--bg-glass);
    border-radius: 10px;
    color: var(--text-muted);
}

.category-link.active .category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Price Filter */
.price-filter {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
}

.price-input {
    width: 70px;
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.price-filter span {
    color: var(--text-muted);
}

/* ========================================
   Product Grid
   ======================================== */
.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.products-count {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.products-sort label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.sort-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

/* ========================================
   Product Card
   ======================================== */
.product-card {

    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    /* transform: translateY(-5px); */
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.product-badge {
    padding: 2px 8px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-featured {
    background: var(--gradient-primary);
    color: white;
}

.badge-out-of-stock {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.product-actions {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    z-index: 2;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

/* Show actions if card is hovered OR if it has an active wishlist item */
.product-card:hover .product-actions,
.product-card:has(.in-wishlist) .product-actions {
    opacity: 1;
    transform: translateX(0);
}



.action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

/* Increased specificity to override light mode defaults */
.product-card .action-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.action-btn.in-wishlist {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.action-btn.in-wishlist svg {
    fill: currentColor;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    /* background: var(--bg-secondary); */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: inherit;
    transition: color 0.2s;
}

.product-name a:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars svg {
    width: 14px;
    height: 14px;
    color: #fbbf24;
    fill: #fbbf24;
}

.rating-stars svg.empty {
    color: var(--border-color);
    fill: transparent;
}

.rating-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.original-price {
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-percent {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    padding: 2px 6px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
}

.add-to-cart-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.add-to-cart-btn:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.add-to-cart-btn:disabled {
    background: var(--bg-glass-strong);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.add-to-cart-btn svg {
    width: 18px;
    height: 18px;
}

/* Product Buttons Container */
.product-buttons {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: auto;
}

.product-buttons .add-to-cart-btn {
    flex: 1;
    padding: 0 var(--spacing-sm);
    font-size: 0.8125rem;
    height: 42px;
    box-sizing: border-box;
}

.add-to-cart-btn.full-width {
    width: 100%;
}

/* Quantity Selector in Product Cards */
.qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--bg-glass-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 42px;
    box-sizing: border-box;
}

.qty-selector .qty-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-selector .qty-btn:hover {
    background: var(--primary);
    color: white;
}

.qty-selector .qty-btn.minus:hover {
    background: #ef4444;
}

.qty-selector .qty-value {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.add-to-cart-btn.go-to-cart {
    background: linear-gradient(135deg, #10b981, #059669);
    text-decoration: none;
}

/* ========================================
   Product Page
   ======================================== */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 991px) {
    .product-page {
        grid-template-columns: 1fr;
    }
}


.gallery-main {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;

    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Details */
.product-details {
    padding: var(--spacing-lg) 0;
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    position: sticky;
    top: 100px;
}

.cart-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    font-size: 0.9375rem;
}

.summary-row span:first-child {
    color: var(--text-secondary);
}

.summary-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.summary-row.discount span:last-child {
    color: #10b981;
}

.summary-row.total {
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    font-size: 1.25rem;
    color: var(--primary);
}

.summary-row.total span:last-child {
    font-weight: 700;
}

/* Coupon Form */
.coupon-form {
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
    /* border-bottom: 1px solid var(--border-color); */
    width: 100%;
    box-sizing: border-box;
}

.coupon-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.coupon-form input:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--bg-secondary);
}

.coupon-form button {
    padding: 10px 16px;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.coupon-form button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s;
    margin-top: var(--spacing-lg);
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.checkout-btn:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Empty Cart / Wishlist State */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin: 40px auto;
    max-width: 600px;
}

.empty-cart svg {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-cart h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

.product-details .product-category {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.product-details .product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    font-family: 'Outfit', sans-serif;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.product-details .product-rating {
    margin: 0;
}

.product-sku {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.product-details .product-price {
    margin-bottom: var(--spacing-lg);
}

.product-details .current-price {
    font-size: 2rem;
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

/* Variants */
.product-variants {
    margin-bottom: var(--spacing-xl);
}

.variant-group {
    margin-bottom: var(--spacing-md);
}

.variant-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.variant-option {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.variant-option:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.variant-option.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.quantity-label {
    font-weight: 600;
    color: var(--text-primary);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: var(--bg-secondary); */
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--bg-glass-strong);
}

.qty-input {
    width: 60px;
    height: 44px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Hide spinner arrows */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Stock Status */
.stock-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 0.9375rem;
}

.stock-status.in-stock {
    color: #10b981;
}

.stock-status.out-of-stock {
    color: #ef4444;
}

.stock-status svg {
    width: 20px;
    height: 20px;
}

/* Product Actions */
.product-actions-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* Specific styles for product page action buttons */
.product-actions-row .btn-add-cart,
.product-actions-row .btn-buy-now {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-xl) !important;
}

/* Product Wishlist Icon (next to title) */
.product-wishlist-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.product-wishlist-icon svg {
    width: 22px;
    height: 22px;
}

.product-wishlist-icon:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.product-wishlist-icon.in-wishlist {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.product-wishlist-icon.in-wishlist svg {
    fill: currentColor;
}

.btn-add-cart {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-xl);
    background: #FF9F00;
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s;
}

.btn-add-cart:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

/* Remove from Cart button (secondary style) */
.btn-add-cart.btn-remove-cart {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-add-cart.btn-remove-cart:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: none;
    transform: translateY(-2px);
}

/* Buy Now Button - Solid Orange */
.btn-buy-now {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-xl);
    background: #FB641B;
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s;
}

.btn-buy-now:hover {
    /* background: #f97316; */
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

.btn-buy-now:disabled {
    background: var(--bg-glass-strong);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-wishlist {
    padding: var(--spacing-sm) var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
}

/* Increased specificity to override light mode defaults */
.product-image .btn-wishlist:hover,
.product-actions-row .btn-wishlist.in-wishlist {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444;
    color: #ef4444;
}



.btn-wishlist svg {
    width: 40px;
    height: 40px;
}

.btn-buy-now:disabled {
    background: var(--bg-glass-strong);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ========================================
   Cart Page
   ======================================== */
/* ========================================
   Cart Page
   ======================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-xl);
    align-items: start;
}

@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

.cart-items {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "image info"
            "image quantity"
            "total total";
        gap: var(--spacing-sm);
        position: relative;
    }

    .cart-item-image {
        grid-area: image;
        width: 80px;
        height: 80px;
    }

    .cart-item-info {
        grid-area: info;
    }

    .cart-item-quantity {
        grid-area: quantity;
        justify-self: start;
    }

    .cart-item-total {
        grid-area: total;
        text-align: right;
        border-top: 1px dashed var(--border-color);
        padding-top: var(--spacing-sm);
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-item-total::before {
        content: "Total:";
        font-size: 0.875rem;
        color: var(--text-muted);
        font-weight: 500;
    }

    .cart-item-remove {
        position: absolute;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }
}

/* ... existing code ... */

/* ========================================
   Checkout Page
   ======================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-xl);
    align-items: start;
}

@media (max-width: 991px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .checkout-layout .order-summary-sidebar {
        order: -1;
        /* Show summary first on mobile? Or optional */
        /* usually summary at bottom or collapsible */
    }
}

.checkout-section {

    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.checkout-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.checkout-section-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

/* Form Styling */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.form-group label .required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.payment-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover {
    border-color: var(--primary);
}

.payment-method.selected {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.payment-method input {
    display: none;
}

.payment-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-method.selected .payment-radio {
    border-color: var(--primary);
}

.payment-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.payment-method.selected .payment-radio::after {
    opacity: 1;
}

.payment-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.payment-info p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Order Summary Sidebar */
.order-summary-sidebar {

    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    position: sticky;
    top: 100px;
}

.order-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.order-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-item-qty {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.order-item-price {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

/* ========================================
   Orders Page
   ======================================== */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.order-card {

    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.order-number {
    font-weight: 700;
    color: var(--text-primary);
}

.order-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.order-status {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-confirmed,
.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-shipped {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-delivered {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.order-body {
    padding: var(--spacing-lg);
}

.order-products {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.order-product-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.order-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.order-total {
    font-size: 1.125rem;
}

.order-total span {
    font-weight: 700;
    color: var(--text-primary);
}

.view-order-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.view-order-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ========================================
   Wishlist Page
   ======================================== */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* ========================================
   Pagination
   ======================================== */
.store-pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.4s ease;
}

/* Toast Notifications */
.store-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: var(--spacing-sm) var(--spacing-lg);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.store-toast.success {
    border-color: #10b981;
}

.store-toast.success svg {
    color: #10b981;
}

.store-toast.error {
    border-color: #ef4444;
}

.store-toast.error svg {
    color: #ef4444;
}

.store-toast svg {
    width: 20px;
    height: 20px;
}

.store-toast span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Mobile Sidebar Toggle */
.mobile-filter-toggle {
    display: none;
    padding: var(--spacing-sm) var(--spacing-md);

    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    align-items: center;
    gap: var(--spacing-sm);
}

@media (max-width: 991px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .store-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        z-index: 1000;
        border-radius: 0;
    }

    .store-sidebar.open {
        display: block;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.open {
        display: block;
    }
}


/* ========================================
   Light Mode Overrides
   ======================================== */
/* [data-theme="light"] .store-select, */
[data-theme="light"] .store-search-form,
[data-theme="light"] .store-sidebar,
[data-theme="light"] .product-card,
[data-theme="light"] .action-btn,
[data-theme="light"] .gallery-main,
[data-theme="light"] .sort-select,
[data-theme="light"] .cart-items,
[data-theme="light"] .cart-summary,
[data-theme="light"] .checkout-section,
[data-theme="light"] .order-summary-sidebar,
[data-theme="light"] .order-card,
/* [data-theme="light"] .page-link, */
[data-theme="light"] .store-toast,
[data-theme="light"] .qty-btn,
[data-theme="light"] .mobile-filter-toggle {
    background: var(--bg-card);
}

/* 
[data-theme="light"] .store-nav-bar
[data-theme="light"] .store-account-menu,
[data-theme="light"] .btn-wishlist,
 */

/* ========================================
   Mobile Responsive Styles
   ======================================== */
@media (max-width: 768px) {

    /* Store Nav Bar - Stack vertically on mobile */
    .store-nav-bar {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
        align-items: stretch;
    }

    /* Breadcrumb - Smaller text, allow wrapping */
    .store-breadcrumb {
        font-size: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    /* Search wrapper - Full width on mobile */
    .store-search-wrapper {
        max-width: 100% !important;
        margin: var(--spacing-sm) 0 !important;
        order: -1;
        /* Move search to top */
    }

    /* Quick links - Center on mobile */
    .store-quick-links {
        justify-content: center !important;
    }

    /* Store Header - Stack on mobile */
    .store-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch !important;
    }

    .store-header h1 {
        text-align: center;
        font-size: 1.5rem;
    }

    /* Store Toolbar on mobile */
    .store-toolbar {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .toolbar-group {
        width: 100%;
    }

    .store-select {
        width: 100%;
        min-width: unset;
    }

    /* Product Grid - Single column on small screens */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    /* Product Card adjustments */
    .product-card .product-content {
        padding: var(--spacing-sm);
    }

    .product-name {
        font-size: 0.875rem;
    }

    .product-price .current-price {
        font-size: 1rem;
    }

    /* Product badges - smaller on mobile */
    .product-badge {
        padding: 2px 6px;
        font-size: 0.5625rem;
    }

    /* Product page gallery */
    .product-gallery {
        grid-template-columns: 1fr;
    }

    /* Limit gallery main image height on mobile */
    .gallery-main {
        max-height: 350px;
        aspect-ratio: auto;
    }

    .gallery-main img {
        max-height: 350px;
        width: auto;
        margin: 0 auto;
    }

    .gallery-thumbs {
        flex-direction: row;
        order: 1;
        justify-content: center;
        flex-wrap: wrap;
    }

    .gallery-thumb {
        width: 50px;
        height: 50px;
    }

    /* Product details */
    .product-details .product-title {
        font-size: 1.5rem;
    }

    /* Product actions - keep inline on mobile */
    .product-actions-row {
        flex-wrap: nowrap;
        gap: var(--spacing-sm);
    }

    .btn-add-cart,
    .btn-buy-now {
        flex: 1;
        padding: var(--spacing-sm) var(--spacing-sm);
        font-size: 0.75rem;
    }

    .btn-wishlist {
        width: auto;
        padding: var(--spacing-sm);
        flex-shrink: 0;
    }

    /* Quantity controls */
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .qty-btn {
        width: 38px;
        height: 38px;
    }

    .qty-input {
        width: 50px;
        height: 38px;
    }

    /* Cart page */
    .cart-layout {
        flex-direction: column;
    }

    .cart-summary {
        position: static;
    }

    /* Checkout layout */
    /* Checkout layout */
    .checkout-layout {
        display: flex;
        /* Fix for grid expanding issues */
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .order-summary-sidebar {
        order: -1;
        position: static;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        /* Ensure padding includes in width */
        padding: var(--spacing-md);
        /* Reduce padding on mobile */
    }
}

@media (max-width: 480px) {

    /* Even smaller screens */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .store-breadcrumb {
        font-size: 0.6875rem;
    }

    /* .product-buttons {
        flex-direction: column;
    } */

    .product-buttons .btn-add-cart {
        width: 100%;
    }

    /* Cart item - stack layout on small screens */
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: var(--spacing-xs);
        padding: var(--spacing-md);
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
        grid-row: span 2;
    }

    .cart-item-info h4 {
        font-size: 0.875rem;
    }

    .cart-item-quantity,
    .cart-item-total {
        grid-column: 2;
    }

    .cart-item-quantity .quantity-controls {
        transform: scale(0.8);
    }

    .cart-item-total {
        font-size: 0.9375rem;
        min-width: auto;
    }

    .cart-item-remove {
        position: absolute;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        padding: var(--spacing-xs);
    }

    /* Cart summary */
    .cart-summary {
        padding: var(--spacing-md);
    }

    .cart-summary-title {
        font-size: 1rem;
    }

    /* Order details grid - stack on mobile */
    .store-container>div[style*="grid-template-columns: 1fr 350px"] {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-md) !important;
    }
}

/* Mobile layout fixes */
@media (max-width: 768px) {

    /* Order details inline style override */
    .store-container>div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* ========================================
   Store Toast Notifications
   ======================================== */
#storeToasts {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    z-index: 10000;
    pointer-events: none;
}

.store-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 0.9375rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}

.store-toast svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.store-toast.error {
    background: rgba(239, 68, 68, 0.95);
}

.store-toast.warning {
    background: rgba(245, 158, 11, 0.95);
}

.store-toast.info {
    background: rgba(59, 130, 246, 0.95);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile toast positioning */
@media (max-width: 768px) {
    #storeToasts {
        bottom: 16px;
    }

    .store-toast {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
}

/* ========================================
   Share Dropdown
   ======================================== */
.share-dropdown {
    position: relative;
}

.share-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.share-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.share-option:hover {
    background: var(--bg-glass-strong);
    color: var(--primary);
}

.share-option svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.share-option.copy-link-btn {
    border-top: 1px solid var(--border-color);
}

.share-option.copy-link-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(109, 40, 217, 0.1));
}

/* Share dropdown for product page */
.product-details .share-dropdown .share-dropdown-menu {
    right: 0;
    left: auto;
}

/* Close dropdown when clicking outside */
@media (max-width: 768px) {
    .share-dropdown-menu {
        min-width: 180px;
    }

    .share-option {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8125rem;
    }
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */
.store-mobile-nav {
    display: none;
}

@media (max-width: 768px) {

    /* Hide top quick links on mobile */
    .store-quick-links {
        display: none !important;
    }

    /* Make search full width */
    .store-search-wrapper {
        margin: 0 !important;
        max-width: none !important;
        width: 100%;
        order: 3;
        margin-top: var(--spacing-sm) !important;
    }

    .store-nav-bar {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
    }

    .store-breadcrumb {
        width: 100%;
        order: 1;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        /* Hide scrollbar */
        scrollbar-width: none;
    }

    .store-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    /* Bottom Navigation Bar */
    .store-mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(15, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 500;
        width: 100%;
        height: 100%;
        transition: all 0.2s;
    }

    .mobile-nav-item.active {
        color: var(--primary);
    }

    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
    }

    .mobile-nav-icon-wrapper {
        position: relative;
    }

    .mobile-nav-badge {
        position: absolute;
        top: -5px;
        right: -8px;
        background: var(--primary);
        color: white;
        font-size: 0.625rem;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid #0f0f19;
        /* Match background for cutout effect */
    }

    /* Add padding to body/wrapper so content isn't hidden behind nav */
    .store-wrapper {
        padding-bottom: 80px;
    }
}

/* Order Details Downloads */
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    gap: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-secondary);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    /* Prevents text overflow issues */
}

@media (max-width: 640px) {
    .download-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.25rem;
    }

    .download-info {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1rem;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Checkout Page Styles
   ======================================== */

/* Saved Address Card */
.saved-address-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.saved-address-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.address-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.address-phone {
    color: var(--primary);
    margin-top: 4px;
}

.default-badge-small {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.address-details {
    color: var(--text-secondary);
    line-height: 1.6;
}

.address-actions-row {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.btn-change-address {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-change-address:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Address Selector */
.address-selector-grid {
    display: grid;
    gap: var(--spacing-sm);
}

.address-option {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-decoration: none;
    transition: all 0.2s;
}

.address-option.selected {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.address-option-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.address-name-small {
    font-weight: 500;
    color: var(--text-primary);
}

.address-phone-small {
    color: var(--primary);
    font-weight: 400;
}

.address-details-small {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

.selected-icon {
    flex-shrink: 0;
    margin-left: 10px;
}

.btn-add-new-address {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--primary);
    font-size: 0.875rem;
}

/* Order Summary Items (Checkout) */
.order-items-list {
    margin-bottom: var(--spacing-lg);
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
    /* Space for scrollbar */
}

.order-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    align-items: center;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
    min-width: 0;
    /* Prevent flex overflow */
}

.order-item-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-item-qty {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.order-item-price {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

/* Mobile Adjustments for Checkout */
@media (max-width: 640px) {
    .saved-address-header {
        flex-direction: column;
        gap: 8px;
    }

    .default-badge-small {
        margin-left: 0;
    }

    .address-option-content {
        align-items: flex-start;
    }
}

/* ========================================
   Reviews Section Styles
   ======================================== */


.reviews-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.rating-summary {
    position: sticky;
    top: 100px;
    align-self: start;
}

.review-card:last-child {
    border-bottom: none;
}

.star-rating-input .star-btn:hover svg,
.star-rating-input .star-btn.active svg {
    fill: #fbbf24 !important;
}

.btn-submit-review:hover {
    filter: brightness(1.1);
}

.btn-submit-review:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spin animation for loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Reviews Mobile Responsive */
@media (max-width: 991px) {
    .reviews-layout {
        grid-template-columns: 1fr !important;
    }

    .rating-summary {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
        align-items: start;
    }

    .rating-summary>div:first-child {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .rating-summary {
        grid-template-columns: 1fr;
    }

    .rating-summary>div:first-child {
        text-align: center;
    }

    .star-rating-input {
        justify-content: center;
    }

    .review-card {
        padding: var(--spacing-md) !important;
    }
}