/* SHOPABLE - Modern Shop Design */
/* Font: Space Grotesk - clean, technical, modern */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Colors - Cool blue-gray palette */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #f8fafc;
    
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER
======================================== */
.site-header {
    background: var(--bg-dark);
    color: var(--text-inverse);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

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

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-inverse);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.site-logo::before {
    content: '◆';
    color: var(--accent);
    font-size: 20px;
}

/* Search */
.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 12px 90px 12px 20px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: var(--text-inverse);
    font-family: var(--font-main);
    font-size: 15px;
    transition: var(--transition);
}

.header-search input::placeholder {
    color: var(--text-light);
}

.header-search input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
}

.header-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.header-search button:hover {
    background: var(--primary-light);
    color: white;
}

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

/* Navigation */
.site-nav {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.site-nav .container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 0;
    padding-bottom: 0;
}

.site-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text-inverse);
    border-bottom-color: var(--accent);
}

.site-nav a .nav-icon {
    font-size: 18px;
}

/* ========================================
   CART WIDGET
======================================== */
.cart-widget {
    position: relative;
}

.cart-widget__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    color: var(--bg-dark);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.cart-widget__trigger:hover {
    background: var(--primary-light);
    color: white;
    text-decoration: none;
}

.cart-widget__trigger:visited {
    color: var(--bg-dark);
}

.cart-widget__trigger:hover:visited {
    color: white;
}

.cart-widget__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-widget__svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.cart-widget__count {
    background: var(--bg-dark);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    min-width: 24px;
    text-align: center;
}

.cart-widget__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    width: 360px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    display: none;
    z-index: 100;
    overflow: hidden;
}

.cart-widget:hover .cart-widget__dropdown,
.cart-widget__dropdown:hover,
.cart-widget--open .cart-widget__dropdown {
    display: block;
}

.cart-widget__header {
    padding: 16px 20px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.cart-widget__empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.cart-widget__footer {
    padding: 16px 20px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.cart-widget__total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 12px;
}

.cart-widget__items {
    max-height: 300px;
    overflow-y: auto;
}

.cart-widget__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}

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

.cart-widget__item-image {
    width: 50px;
    height: 50px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.cart-widget__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-widget__item-info {
    flex: 1;
    min-width: 0;
}

.cart-widget__item-title {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-widget__item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-widget__item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.cart-widget__item-remove {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.cart-widget__item-remove:hover {
    color: var(--danger);
}

/* ========================================
   HERO
======================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3a5f 100%);
    color: var(--text-inverse);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero h1 .logo-shop {
    color: #fff;
}

.hero h1 .logo-xx {
    color: #e53935;
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   SECTIONS
======================================== */
.section {
    padding: 60px 0;
}

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

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--primary);
}

.section-link:hover {
    gap: 10px;
}

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

/* ========================================
   PRODUCT CARD
======================================== */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-card__image {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-card__placeholder {
    font-size: 64px;
    opacity: 0.3;
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card__badge--physical { background: var(--primary); color: white; }
.product-card__badge--digital { background: var(--accent); color: var(--bg-dark); }
.product-card__badge--service { background: var(--success); color: white; }
.product-card__badge--event { background: var(--warning); color: var(--bg-dark); }

.product-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.product-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-card__title a {
    color: var(--text);
}

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

.product-card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

.product-card__price--request {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.product-card__footer {
    padding: 0 20px 20px;
}

/* Stock Status */
.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-top: 8px;
}

.stock-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-status--available { color: var(--success); }
.stock-status--available .stock-status__dot { background: var(--success); }
.stock-status--low { color: var(--warning); }
.stock-status--low .stock-status__dot { background: var(--warning); }
.stock-status--unavailable { color: var(--danger); }
.stock-status--unavailable .stock-status__dot { background: var(--danger); }

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

.btn--secondary {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

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

.btn--accent {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn--accent:hover {
    background: var(--primary-light);
    color: white;
}

.btn--full {
    width: 100%;
}

.btn--small {
    padding: 10px 16px;
    font-size: 13px;
}

/* ========================================
   CATEGORIES
======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.category-card {
    display: block;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========================================
   TAGS
======================================== */
.tags-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.tag--active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ========================================
   LISTING PAGE
======================================== */
.listing-page {
    padding: 40px 0;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.page-description {
    color: var(--text-muted);
    font-size: 18px;
}

.result-count {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 8px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.filter-bar__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========================================
   DETAIL PAGE
======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.breadcrumb a {
    color: var(--text-muted);
}

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

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

.product-detail__image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    opacity: 0.3;
}

.product-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.product-detail__info {
    display: flex;
    flex-direction: column;
}

.product-detail__title {
    font-size: 36px;
    font-weight: 700;
    margin: 16px 0;
    letter-spacing: -0.5px;
}

.product-detail__description {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-detail__price-block {
    margin-bottom: 24px;
}

.product-detail__price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.product-detail__price small {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.product-detail__actions {
    margin-top: auto;
}

/* Add to Cart Form */
.add-to-cart {
    display: flex;
    gap: 12px;
    align-items: center;
}

.add-to-cart__quantity {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.add-to-cart__quantity button {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart__quantity button:hover {
    background: var(--primary);
    color: white;
}

.add-to-cart__quantity input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
}

.add-to-cart__button {
    flex: 1;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart__button:hover {
    background: var(--primary-dark);
}

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

.cart-page__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 32px;
}

.cart-page__content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.cart-table {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table__header {
    display: grid;
    grid-template-columns: 2fr 1fr 120px 1fr 50px;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.cart-table__row {
    display: grid;
    grid-template-columns: 2fr 1fr 120px 1fr 50px;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-table__product {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cart-table__product-image {
    width: 80px;
    height: 80px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-table__product-title {
    font-weight: 600;
}

.cart-table__quantity input {
    width: 80px;
    padding: 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: var(--font-main);
    font-weight: 600;
}

.cart-table__total {
    font-weight: 700;
    color: var(--primary);
}

.cart-table__remove {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}

.cart-table__remove:hover {
    background: var(--danger);
    color: white;
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.cart-summary__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.cart-summary__row--total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid var(--border);
}

.cart-summary__actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    color: var(--text-inverse);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section a {
    display: block;
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--accent);
}

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

/* ========================================
   EMPTY STATE
======================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 24px;
}

/* ========================================
   TYPE BADGES
======================================== */
.type-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge--physical { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.type-badge--digital { background: rgba(6, 182, 212, 0.1); color: var(--accent); }
.type-badge--service { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.type-badge--event { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

/* ========================================
   SEARCH RESULTS
======================================== */
.search-results__info {
    background: var(--bg-card);
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-results__query {
    font-weight: 600;
}

.search-results__clear {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .cart-page__content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 12px;
    }
    
    .site-nav .container {
        overflow-x: auto;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .cart-table__header {
        display: none;
    }
    
    .cart-table__row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.3s ease;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   LOGO
======================================== */
.site-logo {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo .logo-shop {
    color: #fff;
}

.site-logo .logo-xx {
    color: #e53935;
}

.site-logo .logo-tagline {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 0.5rem;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 2rem 0;
    margin-top: auto;
}

.site-footer__links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.site-footer__links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.site-footer__copyright a {
    color: var(--text-light);
    text-decoration: none;
}

.site-footer__copyright a:hover {
    color: #fff;
}

.site-footer__copyright .logo-shop {
    color: #fff;
}

.site-footer__copyright .logo-xx {
    color: #e53935;
}

/* ========================================
   BREADCRUMB
======================================== */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

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

.breadcrumb__separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb__current {
    color: var(--text);
}

/* ========================================
   PRODUCT DETAIL
======================================== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.product-detail__image {
    background: var(--bg);
    border-radius: var(--radius);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-detail__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail__image--placeholder {
    color: var(--border-dark);
    font-size: 4rem;
}

.product-detail__info {
    padding: 1rem 0;
}

.product-detail__badge {
    display: inline-block;
    background: var(--border);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.product-detail__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.product-detail__description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.product-detail__price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--success);
    margin: 1.5rem 0;
}

.product-detail__price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.product-detail__price--request {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-style: italic;
}

.product-detail__body {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.product-detail__body h2,
.product-detail__body h3 {
    color: var(--text);
}

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

.product-detail__actions {
    margin-top: 2rem;
}

/* ========================================
   STOCK BADGE
======================================== */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin: 1rem 0;
}

.stock-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-badge--available .stock-badge__dot {
    background: var(--success);
}

.stock-badge--low .stock-badge__dot {
    background: var(--warning);
}

.stock-badge--unavailable .stock-badge__dot {
    background: var(--danger);
}

/* ========================================
   PRODUCT TAGS
======================================== */
.product-tags {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.product-tags__label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.product-tags .tag {
    display: inline-block;
    background: var(--bg);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    margin-left: 0.5rem;
}

.product-tags .tag:hover {
    background: var(--primary);
    color: #fff;
}

/* ========================================
   ADD TO CART - QUANTITY INPUT FIX
======================================== */
.add-to-cart {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.add-to-cart input[type="number"],
.add-to-cart input[name="quantity"] {
    width: 80px;
    min-width: 80px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-main);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    -moz-appearance: textfield;
}

.add-to-cart input[type="number"]::-webkit-outer-spin-button,
.add-to-cart input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
}

.add-to-cart__button {
    flex: 1;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart__button:hover {
    background: var(--primary-dark);
}

.add-to-cart__button--added {
    background: var(--success);
}

/* ========================================
   RESPONSIVE - DETAIL
======================================== */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-detail__title {
        font-size: 1.5rem;
    }
    
    .product-detail__price {
        font-size: 1.5rem;
    }
    
    .add-to-cart {
        flex-direction: column;
    }
    
    .add-to-cart input[type="number"] {
        width: 100%;
    }
}

/* ========================================
   CART PAGE
======================================== */
.cart-page {
    padding: 2rem 0 4rem;
}

.cart-page h1 {
    margin-bottom: 2rem;
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-empty__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty h1 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.cart-item:hover {
    box-shadow: var(--shadow);
}

.cart-item__image {
    width: 80px;
    height: 80px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.cart-item__placeholder {
    font-size: 2rem;
    opacity: 0.5;
}

.cart-item__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item__title {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
}

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

.cart-item__type {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-item__fulfillment {
    margin-top: 0.25rem;
}

.fulfillment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    background: var(--bg);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Quantity Controls */
.cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn--minus {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
}

.qty-btn--plus {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: none;
}

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

.qty-input {
    width: 50px;
    height: 32px;
    border: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    font-family: var(--font-main);
    -moz-appearance: textfield;
}

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

/* Price */
.cart-item__price {
    text-align: right;
    min-width: 100px;
}

.cart-item__line-total {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    display: block;
}

.cart-item__unit-price {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.cart-item__price-request {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Remove Button */
.cart-item__remove {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item__remove:hover {
    background: var(--danger);
    color: white;
}

/* Cart Summary */
.cart-summary__card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 2rem;
}

.cart-summary__card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.cart-summary__row--small {
    font-size: 0.875rem;
}

.cart-summary__row--total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.cart-summary__total {
    color: var(--success);
}

.cart-summary__divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

.cart-summary__label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cart-summary__note {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 1rem 0;
}

.cart-checkout-btn {
    margin-top: 1rem;
}

.cart-summary__continue {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

/* Responsive Cart */
@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary__card {
        position: static;
    }
}

@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.75rem;
    }
    
    .cart-item__image {
        width: 60px;
        height: 60px;
        grid-row: span 2;
    }
    
    .cart-item__quantity {
        grid-column: 2;
    }
    
    .cart-item__price {
        grid-column: 2;
        text-align: left;
    }
    
    .cart-item__remove {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .cart-item {
        position: relative;
    }
}
