/* StatusShop DTF - Modern E-commerce Styles (uzum.uz inspired) */

:root {
    --primary: #ff6a00;
    --primary-dark: #d65600;
    --primary-light: #fff1e6;
    --secondary: #1f9d88;
    --success: #18b57f;
    --danger: #e53e3e;
    --warning: #ffb200;

    --text: #1b1b1b;
    --text-secondary: #555;
    --text-muted: #8b8b8b;

    --bg: #f6f2ed;
    --bg-white: #fff;
    --bg-gray: #f2f4f5;

    --border: #e6e1db;
    --shadow: 0 10px 24px rgba(20, 18, 16, 0.08);
    --shadow-lg: 0 18px 42px rgba(20, 18, 16, 0.16);

    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --header-height: 112px;
    --sidebar-width: 320px;

    --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: -10% 0 0 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 165, 68, 0.22), transparent 50%),
        radial-gradient(circle at 85% 10%, rgba(31, 157, 136, 0.2), transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(255, 214, 102, 0.18), transparent 55%);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
.logo-name {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

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

/* ==================== Header ==================== */
.header {
    background: rgba(255, 255, 255, 0.92);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(230, 225, 219, 0.7);
}

.header-top {
    background: #fff7ef;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contacts {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-phone,
.header-address {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
}

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

.header-lang {
    display: flex;
    gap: 4px;
}

.lang-btn {
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.header-main .container {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ff6a00, #ffb347);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.logo-tagline {
    font-size: 12px;
    color: var(--text-muted);
}

/* Catalog Button */
.catalog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 18px rgba(255, 106, 0, 0.22);
}

.catalog-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Search Box */
.search-box {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-box:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
}

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

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 12px;
    transition: color 0.2s;
}

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

.header-action svg {
    width: 24px;
    height: 24px;
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--secondary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== Catalog Sidebar ==================== */
.catalog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(21, 17, 12, 0.45);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.catalog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.catalog-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #fff6ef 0%, #fff 22%);
    z-index: 201;
    transform: translateX(-108%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    border-right: 1px solid var(--border);
}

.catalog-sidebar.active {
    transform: translateX(0);
}

body.catalog-open {
    overflow: hidden;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--primary);
    color: white;
}

.catalog-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.catalog-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
}

.catalog-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.catalog-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    border-radius: 12px;
    margin: 4px 12px;
}

.catalog-nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.catalog-nav-item img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
}

.catalog-nav-item .cat-icon {
    width: 32px;
    height: 32px;
    background: var(--bg-gray);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ==================== Main Content ==================== */
.main {
    min-height: calc(100vh - var(--header-height));
    padding-bottom: 40px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(135deg, #ff6a00 0%, #ff8f3d 45%, #ffd166 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(31, 157, 136, 0.25), transparent 40%);
    opacity: 0.6;
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    max-width: 500px;
    color: white;
    position: relative;
    z-index: 1;
    animation: riseIn 0.7s ease both;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.hero-image img {
    max-width: 400px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    position: relative;
    z-index: 1;
    animation: riseIn 0.8s ease 0.1s both;
}

/* ==================== Sections ==================== */
@keyframes riseIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeSlide {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.section {
    padding: 40px 0;
}

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

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.section-header .link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.section-header .link:hover {
    text-decoration: underline;
}

/* ==================== Categories Grid ==================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
    animation: fadeSlide 0.6s ease both;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.category-card .cat-placeholder {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.category-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.category-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==================== Products Grid ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
    animation: fadeSlide 0.6s ease both;
}

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

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

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

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

.product-card-body {
    padding: 16px;
}

.product-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.product-card-old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

.product-card-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* ==================== Features ==================== */
.features-section {
    background: linear-gradient(180deg, rgba(255, 247, 239, 0.9), #fff);
    margin-top: 40px;
    border-top: 1px solid rgba(230, 225, 219, 0.6);
}

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

.feature {
    text-align: center;
    padding: 24px;
    animation: fadeSlide 0.6s ease both;
}

.categories-grid > *:nth-child(2),
.products-grid > *:nth-child(2),
.features-grid > *:nth-child(2) {
    animation-delay: 0.05s;
}

.categories-grid > *:nth-child(3),
.products-grid > *:nth-child(3),
.features-grid > *:nth-child(3) {
    animation-delay: 0.1s;
}

.categories-grid > *:nth-child(4),
.products-grid > *:nth-child(4),
.features-grid > *:nth-child(4) {
    animation-delay: 0.15s;
}

.categories-grid > *:nth-child(5),
.products-grid > *:nth-child(5) {
    animation-delay: 0.2s;
}

.categories-grid > *:nth-child(6),
.products-grid > *:nth-child(6) {
    animation-delay: 0.25s;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.feature h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* ==================== Category Page ==================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-muted);
}

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

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

.category-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    margin-top: 20px;
}

.filters-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 140px;
}

.filters-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.filter-block {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.filter-block h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.filter-chip {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.filter-reset {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

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

.subcategories-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subcat-item {
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
}

.subcat-item:hover,
.subcat-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

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

.category-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.sort-select select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* ==================== Product Page ==================== */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.product-gallery {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.product-main-image {
    aspect-ratio: 1;
    background: var(--bg-gray);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumbs {
    display: flex;
    gap: 8px;
}

.product-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--primary);
}

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

.product-info {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.product-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

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

.product-sizes h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.variation-selectors {
    display: grid;
    gap: 12px;
}

.variation-selectors label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.variation-select {
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
}

.product-price-block {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

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

.product-tiers {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tier-badge {
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.qty-btn:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

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

#qty-input {
    width: 60px;
    height: 44px;
    border: 1px solid var(--border);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

/* ==================== Buttons ==================== */
.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), #ff9b45);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 18px rgba(255, 106, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #ff8328);
    transform: translateY(-1px);
}

.btn-primary.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-secondary {
    padding: 14px 28px;
    background: var(--bg-gray);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* ==================== Cart Page ==================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.cart-items {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
}

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

.cart-empty svg {
    opacity: 0.3;
    margin-bottom: 16px;
}

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

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

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

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.cart-item-title {
    font-weight: 600;
    margin-bottom: 8px;
}

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

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

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
}

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

.cart-summary {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 140px;
}

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

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
}

.checkout-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.checkout-form h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.form-status {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-status.success {
    color: var(--success);
}

.form-status.error {
    color: var(--danger);
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==================== Orders & Account ==================== */
.orders-list {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.orders-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.orders-empty svg {
    opacity: 0.3;
    margin-bottom: 16px;
}

.order-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

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

.order-number {
    font-weight: 700;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.new { background: #e3f2fd; color: #1976d2; }
.order-status.assigned { background: #fff3e0; color: #f57c00; }
.order-status.in_progress { background: #f3e5f5; color: #9c27b0; }
.order-status.ready { background: #e8f5e9; color: #388e3c; }
.order-status.done { background: #e8f5e9; color: #2e7d32; }
.order-status.cancelled { background: #ffebee; color: #d32f2f; }

.account-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 600px;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.account-avatar {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.account-info h3 {
    font-size: 20px;
    font-weight: 700;
}

.account-info p {
    color: var(--text-muted);
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-gray);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
    text-align: left;
    width: 100%;
}

.account-menu-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.menu-badge {
    margin-left: auto;
    background: var(--secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

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

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

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        display: none;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-main .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .search-box {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    .header-action span {
        display: none;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-image {
        display: none;
    }

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

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo-text {
        display: none;
    }

    .catalog-btn span {
        display: none;
    }

    .catalog-btn {
        padding: 12px;
    }

    .header-actions {
        gap: 0;
    }

    .header-action {
        padding: 8px 10px;
    }
}
