/**
 * Misri Store - Mobile-First Stylesheet
 * Optimized for dry fruits & dates ecommerce (India)
 * Focus: Performance, Touch-friendly, Clean Design
 */

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;      /* Saddle Brown - natural */
    --primary-dark: #5C2E0A;
    --secondary-color: #D2691E;    /* Chocolate - warm */
    --accent-color: #FF8C00;       /* Dark Orange - vibrant */
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --bg-light: #FFF8F0;           /* Warm white */
    --bg-white: #FFFFFF;
    --border-color: #E8D5C4;
    --success-color: #28A745;
    --error-color: #DC3545;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-fluid {
    width: 100%;
    padding: 0 16px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 8px 0;
    font-size: 0.875rem;
    text-align: center;
}

.header-main {
    padding: 12px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.logo span {
    color: var(--accent-color);
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

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

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

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

.search-item:active {
    background: var(--bg-light);
}

.search-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.search-item-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.search-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Navigation */
.nav {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 12px 0;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ========================================
   BANNER SLIDER
   ======================================== */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: var(--bg-white);
}

.banner-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
}

.banner-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/9;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 24px;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.banner-subtitle {
    font-size: 1rem;
    opacity: 0.95;
}

.banner-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    z-index: 10;
    transition: all 0.3s ease;
}

.banner-arrow:active {
    background: white;
}

.banner-arrow-prev {
    left: 16px;
}

.banner-arrow-next {
    right: 16px;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: 32px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.view-all-btn {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   CATEGORY GRID
   ======================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:active::before {
    transform: scaleX(1);
}

.category-card:active {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.category-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.category-count {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ========================================
   PRODUCT GRID
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.product-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
}

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

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

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-wrapper {
    margin-top: auto;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-original {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

.product-discount {
    display: inline-block;
    background: var(--success-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */
.product-detail {
    padding: 16px 0 32px;
}

.product-gallery {
    margin-bottom: 24px;
}

.gallery-main {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-white);
    margin-bottom: 12px;
}

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

.gallery-zoom-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    min-width: 70px;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
}

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

.product-detail-info {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.product-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.product-detail-price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-detail-price-original {
    font-size: 1.25rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-detail-discount {
    background: var(--success-color);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.product-detail-stock {
    display: inline-block;
    background: var(--bg-light);
    color: var(--success-color);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.product-variants {
    margin-bottom: 20px;
}

.variants-label {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 12px;
    display: block;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-option {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.variant-option:active,
.variant-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.product-description {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 80px;
}

.product-description h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-description p {
    line-height: 1.7;
    color: var(--text-light);
}

/* ========================================
   ADD TO CART BUTTON (STICKY)
   ======================================== */
.add-to-cart-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 12px 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    gap: 12px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    background: var(--bg-light);
    transition: background 0.2s ease;
}

.qty-btn:active {
    background: var(--border-color);
}

.qty-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.add-to-cart-btn {
    flex: 1;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

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

/* ========================================
   CART PAGE
   ======================================== */
.cart-page {
    padding: 24px 0 32px;
}

.cart-items {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.cart-item-name {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.cart-item-variant {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.cart-item-remove {
    color: var(--error-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.cart-summary {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.cart-summary h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row:last-child {
    border-bottom: none;
    padding-top: 16px;
    font-size: 1.125rem;
    font-weight: 700;
}

.cart-summary-label {
    color: var(--text-light);
}

.cart-summary-value {
    font-weight: 600;
    color: var(--primary-color);
}

.cart-form {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 80px;
}

.cart-form h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-label-required::after {
    content: '*';
    color: var(--error-color);
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-input.error {
    border-color: var(--error-color);
}

.form-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 6px;
}

.form-help {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 6px;
}

.submit-order-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 12px 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 100;
}

.submit-order-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 14px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.submit-order-btn:active {
    background: var(--primary-dark);
}

/* ========================================
   CATEGORY SIDEBAR (MOBILE)
   ======================================== */
.category-sidebar {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.category-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.category-sidebar-title {
    font-weight: 700;
    font-size: 1.125rem;
}

.category-toggle {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.category-toggle.active {
    transform: rotate(180deg);
}

.category-list {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-list.active {
    max-height: 500px;
}

.category-list-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.category-list-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
}

.category-list-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.category-list-count {
    color: var(--text-light);
    font-size: 0.875rem;
}

.subcategory-list {
    list-style: none;
    margin-left: 16px;
    margin-top: 8px;
}

.subcategory-list-item {
    padding: 6px 0;
}

.subcategory-list-link {
    color: var(--text-light);
    font-size: 0.875rem;
}

.subcategory-list-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.8);
    padding: 32px 0 16px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-section h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.py-1 { padding-top: 8px; padding-bottom: 8px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.px-1 { padding-left: 8px; padding-right: 8px; }
.px-2 { padding-left: 16px; padding-right: 16px; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */
@media (min-width: 768px) {
    .banner-slide {
        aspect-ratio: 21/9;
    }
    
    .banner-arrow {
        display: flex;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .cart-page {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 24px;
        align-items: start;
    }
    
    .add-to-cart-sticky,
    .submit-order-sticky {
        position: static;
        box-shadow: none;
    }
    
    .product-description {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN - DESKTOP
   ======================================== */
@media (min-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .section {
        padding: 48px 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header, .footer, .add-to-cart-sticky, .submit-order-sticky {
        display: none;
    }
}
