/* === CSS Custom Properties === */
:root {
    --bg: #FFF8F0;
    --btn: #89CFF0;
    --btn-hover: #6BBDE8;
    --text: #1a1a1a;
    --card-bg: #fff;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --border: #e0e0e0;
    --danger: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --radius: 8px;
    --gap: 1rem;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--btn-hover); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* === Header === */
.site-header {
    background: var(--card-bg);
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--btn);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    gap: 1rem;
    min-height: 56px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}
.logo img { width: 42px; height: 42px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)); }
.logo span { background: linear-gradient(135deg, var(--btn), var(--btn-hover)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 1rem;
    z-index: 99;
    border-top: 1px solid var(--border);
}
.main-nav.open { display: flex; }

.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.search-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    min-height: 44px;
    background: var(--bg);
    transition: border-color 0.2s;
}
.search-form input:focus { border-color: var(--btn); outline: none; background: var(--card-bg); }
.search-form button {
    background: var(--btn);
    border: none;
    border-radius: var(--radius);
    padding: 0 0.85rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.1s;
}
.search-form button:hover { background: var(--btn-hover); }
.search-form button:active { transform: scale(0.95); }

.nav-links { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.nav-links a {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: var(--text);
    border-radius: var(--radius);
    min-height: 44px;
    font-weight: 500;
    transition: background 0.2s;
}
.nav-links a:hover { background: var(--bg); text-decoration: none; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    background: var(--btn);
    color: var(--text);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    gap: 0.4rem;
    letter-spacing: 0.01em;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; min-height: 36px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #219a52; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--btn);
    color: var(--text);
}
.btn-outline:hover { background: var(--btn); }
.btn-large { padding: 1rem 2.5rem; font-size: 1.15rem; border-radius: calc(var(--radius) + 4px); }

/* === Cards & Grid === */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    padding: 1.5rem 0 2rem;
}
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product-card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    position: relative;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 1rem 1.15rem; }
.product-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    font-weight: 700;
    line-height: 1.3;
}
.product-card-body .price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--btn-hover);
    margin-bottom: 0.4rem;
}
.product-card-body .category-tag {
    display: inline-block;
    background: var(--bg);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* === Page Title === */
h1 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

/* === Category Filter Pills === */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.25rem 0 0.5rem;
}
.filter-pill {
    padding: 0.45rem 1.1rem;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}
.filter-pill:hover, .filter-pill.active {
    background: var(--btn);
    border-color: var(--btn);
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(137,207,240,0.3);
}

/* === Product Detail === */
.product-detail { padding: 2rem 0; }
.product-gallery { margin-bottom: 1.5rem; }
.gallery-main {
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5, #eee);
    aspect-ratio: 4/3;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}
.gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--btn); opacity: 1; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: 1.65rem; margin-bottom: 0.5rem; }
.product-info .price { font-size: 1.6rem; font-weight: 800; color: var(--btn-hover); margin-bottom: 1rem; }
.product-info .description { margin-bottom: 1.5rem; line-height: 1.75; color: #555; }

/* === Order Form === */
.order-form-wrap {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.75rem;
    margin-top: 1.5rem;
    display: none;
    border: 2px solid var(--btn);
    animation: slideDown 0.3s ease;
}
.order-form-wrap.open { display: block; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    min-height: 44px;
    font-family: inherit;
    background: var(--card-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--btn);
    box-shadow: 0 0 0 3px rgba(137,207,240,0.25);
}
.form-group .required::after { content: ' *'; color: var(--danger); }

/* === Flash Messages === */
.flash {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease;
}
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    transition: all 0.2s;
}
.pagination a:hover { background: var(--btn); border-color: var(--btn); }
.pagination .active { background: var(--btn); border-color: var(--btn); font-weight: 700; }

/* === Footer === */
.site-footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    border-top: 2px solid var(--border);
    background: var(--card-bg);
}

/* === Admin Styles === */
.admin-layout { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem 0; }
.admin-sidebar {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
    border: 1px solid rgba(0,0,0,0.04);
}
.admin-sidebar h3 { margin-bottom: 0.75rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: #888; }
.admin-sidebar ul { list-style: none; }
.admin-sidebar a {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.85rem;
    color: var(--text);
    border-radius: var(--radius);
    min-height: 44px;
    font-weight: 500;
    transition: background 0.2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--btn); text-decoration: none; }
.admin-content { flex: 1; min-width: 0; }

.stat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .number { font-size: 1.85rem; font-weight: 800; color: var(--btn-hover); }
.stat-card .label { font-size: 0.8rem; color: #888; margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

/* === Tables === */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1rem; }
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.04);
}
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg); font-weight: 700; font-size: 0.8rem; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em; color: #666; }
td { font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }
tr:hover { background: rgba(137,207,240,0.04); }

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-new { background: #dbeafe; color: #1e40af; }
.badge-in-progress { background: #fef3c7; color: #92400e; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* === Image Upload === */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    color: #888;
    font-weight: 500;
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--btn);
    background: rgba(137,207,240,0.08);
    color: var(--text);
}
.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: border-color 0.2s;
}
.image-preview-item:hover { border-color: var(--btn); }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item .remove-img {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.image-preview-item:hover .remove-img { opacity: 1; }
.image-preview-item .primary-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: var(--btn);
    color: var(--text);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* === Question Builder === */
.question-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.15rem;
    margin-bottom: 0.75rem;
    position: relative;
    border: 1px solid var(--border);
}
.question-item .remove-question { position: absolute; top: 0.5rem; right: 0.5rem; }
.question-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.question-row .form-group { flex: 1; min-width: 150px; margin-bottom: 0.5rem; }

/* === Confirmation Page === */
.confirmation {
    max-width: 560px;
    margin: 3rem auto;
    text-align: center;
    background: var(--card-bg);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
}
.confirmation h1 { color: var(--success); margin-bottom: 0.75rem; font-size: 1.75rem; }
.confirmation p { margin-bottom: 0.5rem; color: #555; }

/* === Login Page === */
.login-wrap {
    max-width: 400px;
    margin: 4rem auto;
    background: var(--card-bg);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
    border-top: 3px solid var(--btn);
}
.login-wrap h1 { text-align: center; margin-bottom: 1.75rem; }

/* === Settings Page === */
.settings-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.75rem;
    border: 1px solid rgba(0,0,0,0.04);
}
.settings-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1rem;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}
.color-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border-radius: var(--radius);
    gap: 0.75rem;
}
.color-field label {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    min-width: 100px;
}
.color-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.color-field input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
    background: var(--card-bg);
}
.color-hex {
    width: 85px;
    padding: 0.3rem 0.5rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: monospace;
    text-align: center;
    min-height: 36px;
}
.color-hex:focus { border-color: var(--btn); outline: none; }

/* Size Grid */
.size-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}
.size-field {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border-radius: var(--radius);
    gap: 0.35rem;
}
.size-field label {
    font-weight: 600;
    font-size: 0.85rem;
}
.range-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.range-wrap input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--btn);
    border: 3px solid var(--card-bg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.15s;
}
.range-wrap input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-wrap input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--btn);
    border: 3px solid var(--card-bg);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    cursor: pointer;
}
.range-val {
    font-size: 0.8rem;
    font-weight: 700;
    font-family: monospace;
    color: #666;
    min-width: 55px;
    text-align: right;
}

/* Theme Preview */
.theme-preview {
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    border: 2px solid var(--border);
}
.preview-header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0,0,0,0.06);
    font-size: 0.85rem;
}
.preview-logo { font-weight: 800; font-size: 1rem; }
.preview-nav { font-size: 0.75rem; opacity: 0.7; }
.preview-body { padding: 1rem; min-height: 180px; }
.preview-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.preview-card {
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}
.preview-card-img {
    height: 50px;
    background: linear-gradient(135deg, #ddd, #ccc);
}
.preview-card-text { padding: 0.5rem; }
.prev-title { display: block; font-weight: 700; font-size: 0.75rem; margin-bottom: 0.15rem; }
.prev-price { font-weight: 800; font-size: 0.8rem; }
.preview-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.preview-footer {
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.7rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* === Helpers === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.gap-sm { gap: 0.5rem; }
.no-results { text-align: center; padding: 3rem 1rem; color: #888; }
.no-results p { font-size: 1.1rem; }

/* === Tablet: 480px+ === */
@media (min-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .color-grid { grid-template-columns: repeat(2, 1fr); }
    .size-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Tablet/iPad: 768px+ === */
@media (min-width: 768px) {
    .hamburger { display: none; }
    .main-nav {
        display: flex;
        flex-direction: row;
        position: static;
        box-shadow: none;
        padding: 0;
        background: none;
        align-items: center;
        gap: 1rem;
        flex: 1;
        justify-content: flex-end;
        border-top: none;
    }
    .search-form { margin-bottom: 0; max-width: 300px; }
    .nav-links { flex-direction: row; gap: 0; }
    .nav-links a { padding: 0.5rem 0.75rem; }

    .admin-layout { flex-direction: row; }
    .admin-sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 80px; align-self: flex-start; }

    .product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

    .color-grid { grid-template-columns: repeat(2, 1fr); }
    .size-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Desktop: 1024px+ === */
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-cards { grid-template-columns: repeat(4, 1fr); }
    .search-form { max-width: 400px; }
    .gallery-thumb { width: 80px; height: 80px; }
    .color-grid { grid-template-columns: repeat(3, 1fr); }
    .size-grid { grid-template-columns: repeat(3, 1fr); }
}
