@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 16px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo:hover {
    color: var(--primary);
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.search-bar-wrapper {
    position: relative;
    flex: 1;
    max-width: 520px;
}

.search-bar {
    width: 100%;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gray-50);
    color: var(--gray-800);
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

.search-bar input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-bar-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 14px;
    transition: color 0.3s;
}

.search-bar-wrapper:focus-within i {
    color: var(--primary);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon {
    position: relative;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.header-icon:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.header-icon .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: badge-pop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Navigation */
.nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--gray-200);
    padding: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-item a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    white-space: nowrap;
    position: relative;
}

.nav-item a:hover,
.nav-item a.active {
    color: var(--primary);
    background: var(--gray-100);
}

.nav-item a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* Store Info */
.store-info {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    margin: 24px auto;
    max-width: 1280px;
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.store-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.store-info::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.store-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.store-details {
    position: relative;
    z-index: 1;
}

.store-details h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.store-details p {
    color: var(--gray-400);
    font-size: 15px;
    font-weight: 400;
}

/* Products Section */
.products-section {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.02em;
}

.product-count {
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
    background: var(--gray-200);
    padding: 6px 16px;
    border-radius: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--gray-200);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1), 0 8px 16px -8px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-50);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(239, 68, 68, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 1;
}

.discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    z-index: 1;
}

.product-info {
    padding: 20px;
    position: relative;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

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

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

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

/* Footer */
.footer {
    background: var(--gray-900);
    margin-top: 64px;
    padding: 64px 24px 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-section a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s;
}

.footer-section a:hover::before {
    width: 20px;
}

.footer-section p {
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.order-tracking-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.order-tracking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    background: var(--primary-dark);
}

.order-tracking-btn:active {
    transform: translateY(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    margin-bottom: 24px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-800);
    letter-spacing: -0.02em;
}

.modal-description {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gray-50);
    color: var(--gray-800);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.error-message {
    color: var(--danger);
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-600);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* Responsive */
@media (max-width: 1024px) {
    .header-top {
        flex-wrap: wrap;
    }
    
    .search-bar-wrapper {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .store-info {
        padding: 24px;
    }
    
    .store-info h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .header-top {
        gap: 12px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav-list {
        padding: 8px 16px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .store-info {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        border-radius: 16px;
    }
    
    .store-logo {
        width: 64px;
        height: 64px;
    }
    
    .store-details h2 {
        font-size: 22px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    .footer {
        padding: 48px 20px 24px;
    }
}

@media (max-width: 480px) {
    .header-top {
        padding: 12px 16px;
    }
    
    .search-bar input {
        padding: 10px 14px 10px 40px;
        font-size: 14px;
    }
    
    .header-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .product-name {
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes badge-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Page Title */
.page-header {
    padding: 32px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 16px;
    color: var(--gray-500);
    font-weight: 400;
}

/* Card Component */
.card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.1);
}

/* Cart Styles */
.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cart-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.cart-item:hover::before {
    transform: scaleY(1);
}

.cart-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    line-height: 1.4;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

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

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-50);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--gray-200);
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    color: var(--gray-600);
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quantity-btn:hover {
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quantity-input {
    width: 50px;
    height: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    font-family: inherit;
    outline: none;
    -moz-appearance: textfield;
}

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

.btn-remove {
    margin-left: auto;
    padding: 8px 16px;
    border: 1px solid var(--danger);
    background: transparent;
    color: var(--danger);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-remove:hover {
    background: var(--danger);
    color: white;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 100px;
}

.order-summary-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gray-800);
    letter-spacing: -0.02em;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--gray-600);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 2px solid var(--gray-200);
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -0.02em;
}

.free-shipping-notice {
    padding: 14px 18px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.free-shipping-notice i {
    font-size: 16px;
}

.secure-checkout {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
}

.empty-state-icon {
    font-size: 64px;
    color: var(--gray-200);
    margin-bottom: 24px;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.empty-state-text {
    color: var(--gray-500);
    margin-bottom: 32px;
    font-size: 16px;
}

/* Product Detail */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 48px;
}

.product-main-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-50);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.product-main-image:hover img {
    transform: scale(1.02);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumbnail {
    aspect-ratio: 1;
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: var(--primary);
}

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

.product-info-section {
    position: sticky;
    top: 100px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-800);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.product-description {
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.7;
}

.variant-section {
    margin-bottom: 24px;
}

.variant-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.variant-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.variant-btn {
    padding: 12px 24px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: var(--gray-700);
}

.variant-btn:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.variant-btn.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.variant-btn .badge {
    display: block;
    color: var(--danger);
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
}

.quantity-section {
    margin-bottom: 24px;
}

.quantity-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.quantity-control-lg {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
    border-radius: 14px;
    padding: 6px;
    width: fit-content;
    border: 1px solid var(--gray-200);
}

.quantity-control-lg .quantity-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 10px;
}

.quantity-control-lg .quantity-input {
    width: 80px;
    height: 44px;
    font-size: 18px;
}

.product-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.product-actions .btn-primary {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
}

.btn-icon {
    width: 56px;
    height: 56px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 14px;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: #fef2f2;
    transform: translateY(-2px);
}

.product-description-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.product-description-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gray-800);
}

.product-description-content {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 15px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
    font-size: 14px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--gray-300);
    user-select: none;
}

.breadcrumb-current {
    color: var(--gray-800);
    font-weight: 500;
}

/* Layout utilities */
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }

.w-full { width: 100%; }

/* Checkout improvements */
.checkout-form {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--gray-200);
}

.checkout-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.checkout-summary-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.checkout-summary-thumb {
    width: 60px;
    height: 60px;
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.checkout-summary-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkout-summary-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.checkout-summary-meta {
    font-size: 13px;
    color: var(--gray-500);
}

.btn-checkout {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

/* Cart empty state */
.cart-empty {
    text-align: center;
    padding: 80px 24px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
}

.cart-empty-icon {
    font-size: 72px;
    color: var(--gray-200);
    margin-bottom: 24px;
}

.cart-empty-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.cart-empty-text {
    color: var(--gray-500);
    margin-bottom: 32px;
    font-size: 16px;
}

/* Admin enhancements */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.1);
}

.table-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--gray-900);
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

.toast.error {
    background: var(--danger);
}