/* ==================== RESEND-INSPIRED STORE THEME ==================== */
/* Modern dark theme matching admin panel */

:root {
    /* Gray Scale */
    --gray-1: #111111;
    --gray-2: #191919;
    --gray-3: #222222;
    --gray-4: #2a2a2a;
    --gray-5: #313131;
    --gray-6: #3a3a3a;
    --gray-7: #484848;
    --gray-8: #606060;
    --gray-9: #6e6e6e;
    --gray-10: #7b7b7b;
    --gray-11: #b4b4b4;
    --gray-12: #eeeeee;

    /* Alpha Grays */
    --gray-a2: rgba(255, 255, 255, 0.03);
    --gray-a3: rgba(255, 255, 255, 0.06);
    --gray-a8: rgba(255, 255, 255, 0.13);
    --gray-a9: rgba(255, 255, 255, 0.18);
    --gray-a10: rgba(255, 255, 255, 0.85);

    /* Colors */
    --blue-3: rgba(59, 130, 246, 0.15);
    --blue-9: #3b82f6;
    --blue-10: #60a5fa;
    --blue-11: #93c5fd;

    --green-3: rgba(34, 197, 94, 0.15);
    --green-9: #22c55e;
    --green-11: #86efac;

    --yellow-3: rgba(234, 179, 8, 0.15);
    --yellow-9: #eab308;
    --yellow-11: #fde047;

    --red-3: rgba(239, 68, 68, 0.15);
    --red-9: #ef4444;
    --red-11: #fca5a5;

    /* Layout */
    --navbar-height: 60px;
    --container-max-width: 1200px;

    /* Misc */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --transition: 200ms ease-in-out;

    --background: #000000;
    --foreground: #fafafa;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 48px;

    /* Typography */
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 32px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 38px -10px rgba(0, 0, 0, 0.35), 0 10px 20px -15px rgba(0, 0, 0, 0.2);
}

/* ==================== RESET & BASE ==================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--gray-12);
    line-height: 1.5;
}

/* Hide scrollbar but keep functionality */
html,
body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== NAVIGATION ==================== */

.navbar {
    height: var(--navbar-height);
    background: var(--background);
    border-bottom: 1px solid var(--gray-3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-12);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-brand i {
    font-size: 18px;
    color: var(--gray-11);
}

.nav-brand .nav-logo {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.nav-center {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-center a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--radius-lg);
    color: var(--gray-9);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.nav-center a:hover {
    background: var(--gray-a2);
    color: var(--gray-10);
}

.nav-center a.active {
    background: var(--gray-a2);
    color: var(--gray-12);
}

.nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    background: var(--gray-a2);
    border: 1px solid var(--gray-a3);
    border-radius: var(--radius-lg);
    color: var(--gray-9);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.nav-btn:hover {
    background: var(--gray-a3);
    color: var(--gray-10);
}

.nav-btn.primary {
    background: var(--gray-12);
    border: none;
    color: var(--gray-1);
}

.nav-btn.primary:hover {
    background: var(--gray-11);
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--red-9);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--gray-2);
    border: 1px solid var(--gray-3);
    border-radius: var(--radius-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    z-index: 300;
    box-shadow: var(--shadow-lg);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--gray-11);
    font-size: 14px;
    text-decoration: none;
    transition: all var(--transition);
}

.dropdown-menu a:hover {
    background: var(--gray-a3);
    color: var(--gray-12);
}

.dropdown-menu a i {
    width: 16px;
    font-size: 14px;
    opacity: 0.7;
}

.dropdown-menu hr {
    border: none;
    height: 1px;
    background: var(--gray-3);
    margin: 8px 0;
}

/* ==================== HERO SECTION ==================== */

.hero {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--gray-3);
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -0.045em;
    color: var(--gray-12);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--gray-9);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gray-12);
    color: var(--gray-1);
}

.btn-primary:hover:not(:disabled) {
    background: var(--gray-11);
}

.btn-secondary {
    background: var(--gray-a2);
    border-color: var(--gray-a3);
    color: var(--gray-9);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-a3);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-9);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--gray-a2);
}

.btn-danger {
    background: var(--red-3);
    color: var(--red-11);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.25);
}

.btn-lg {
    height: 40px;
    padding: 0 20px;
    font-size: 15px;
}

.btn-sm {
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 32px;
    min-width: 32px;
    padding: 0;
}

/* ==================== SECTIONS ==================== */

.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--gray-12);
}

.page-title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.045em;
    color: var(--gray-10);
    margin-bottom: 24px;
}

/* ==================== CARDS ==================== */

.card {
    background: var(--gray-a2);
    border: 1px solid var(--gray-a3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.card:hover {
    background: var(--gray-a3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-a3);
}

.card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-12);
}

.card-body {
    padding: 20px;
}

/* ==================== PRODUCT CARDS ==================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--gray-a2);
    border: 1px solid var(--gray-a3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.product-card:hover {
    background: var(--gray-a3);
    border-color: var(--gray-5);
}

.product-image {
    aspect-ratio: 1;
    background: var(--gray-3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image i {
    font-size: 48px;
    color: var(--gray-6);
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-12);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-description {
    font-size: 13px;
    color: var(--gray-9);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-12);
}

.product-price .original {
    font-size: 13px;
    color: var(--gray-8);
    text-decoration: line-through;
    margin-left: 8px;
}

/* ==================== CATEGORIES ==================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--gray-a2);
    border: 1px solid var(--gray-a3);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
}

.category-card:hover {
    background: var(--gray-a3);
    border-color: var(--gray-5);
}

.category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--gray-a3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-9);
    font-size: 20px;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-12);
}

.category-count {
    font-size: 12px;
    color: var(--gray-9);
    margin-top: 4px;
}

/* ==================== BADGES ==================== */

.badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.badge-blue {
    background: var(--blue-3);
    color: var(--blue-11);
}

.badge-green {
    background: var(--green-3);
    color: var(--green-11);
}

.badge-yellow {
    background: var(--yellow-3);
    color: var(--yellow-11);
}

.badge-red {
    background: var(--red-3);
    color: var(--red-11);
}

.badge-gray {
    background: var(--gray-a3);
    color: var(--gray-11);
}

/* ==================== FORMS ==================== */

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-11);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-lg);
    background: var(--gray-2);
    border: 1px solid var(--gray-3);
    color: var(--gray-12);
    font-size: 14px;
    transition: all var(--transition);
}

.form-input::placeholder {
    color: var(--gray-8);
}

.form-input:focus {
    outline: none;
    border-color: var(--gray-5);
    background: var(--gray-1);
}

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-textarea {
    min-height: 100px;
    padding: 10px 12px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236e6e6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 36px;
}

/* ==================== FILTER BAR ==================== */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.search-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-8);
    font-size: 14px;
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 36px;
    background: var(--gray-2);
    border: 1px solid var(--gray-3);
    border-radius: var(--radius-md);
    color: var(--gray-12);
    font-size: 14px;
    transition: all var(--transition);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--gray-5);
    background: var(--gray-1);
}

.filter-select {
    height: 36px;
    padding: 0 32px 0 12px;
    background: var(--gray-2);
    border: 1px solid var(--gray-3);
    border-radius: var(--radius-md);
    color: var(--gray-11);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236e6e6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--gray-5);
}

/* ==================== TABLES ==================== */

.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.table thead th {
    height: 32px;
    padding: 0 12px;
    background: var(--gray-a2);
    border-top: 1px solid var(--gray-a3);
    border-bottom: 1px solid var(--gray-a3);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-9);
    text-align: left;
    white-space: nowrap;
}

.table thead th:first-child {
    border-left: 1px solid var(--gray-a3);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.table thead th:last-child {
    border-right: 1px solid var(--gray-a3);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.table tbody td {
    height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid var(--gray-2);
    color: var(--gray-12);
    vertical-align: middle;
}

.table tbody tr:hover td {
    background: var(--gray-a2);
}

/* ==================== CART ==================== */

.cart-page {
    padding: 32px 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--gray-a2);
    border: 1px solid var(--gray-a3);
    border-radius: var(--radius-lg);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--gray-3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image i {
    font-size: 24px;
    color: var(--gray-6);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-12);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--gray-9);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-3);
    border-radius: var(--radius-md);
    padding: 4px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    color: var(--gray-9);
    transition: all var(--transition);
}

.quantity-control button:hover {
    background: var(--gray-a3);
    color: var(--gray-12);
}

.quantity-control span {
    min-width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-12);
}

.cart-summary {
    background: var(--gray-a2);
    border: 1px solid var(--gray-a3);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.cart-summary-row span:first-child {
    color: var(--gray-9);
}

.cart-summary-row span:last-child {
    color: var(--gray-12);
}

.cart-summary-row.total {
    padding-top: 12px;
    border-top: 1px solid var(--gray-3);
    font-size: 16px;
    font-weight: 600;
}

/* ==================== CHECKOUT ==================== */

.checkout-page {
    padding: 32px 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-section {
    background: var(--gray-a2);
    border: 1px solid var(--gray-a3);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.checkout-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-12);
    margin-bottom: 16px;
}

/* ==================== ACCOUNT PAGES ==================== */

.account-layout {
    display: flex;
    min-height: calc(100vh - var(--navbar-height));
}

.account-sidebar {
    width: 250px;
    background: var(--background);
    border-right: 1px solid var(--gray-3);
    padding: 24px 16px;
    flex-shrink: 0;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-lg);
    color: var(--gray-9);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.account-nav a:hover {
    background: var(--gray-a2);
    color: var(--gray-10);
}

.account-nav a.active {
    background: var(--gray-a2);
    color: var(--gray-12);
}

.account-nav a i {
    width: 18px;
    font-size: 14px;
    opacity: 0.8;
}

.account-content {
    flex: 1;
    padding: 32px;
    min-width: 0;
}

@media (max-width: 768px) {
    .account-layout {
        flex-direction: column;
    }

    .account-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-3);
        padding: 16px;
    }

    .account-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .account-nav a {
        white-space: nowrap;
    }

    .account-content {
        padding: 24px 16px;
    }
}

/* ==================== AUTH PAGES ==================== */

.auth-page {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--gray-2);
    border: 1px solid var(--gray-3);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-12);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: var(--gray-9);
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    height: 36px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-9);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.auth-tab:hover {
    background: var(--gray-a2);
}

.auth-tab.active {
    background: var(--gray-a3);
    color: var(--gray-12);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-9);
}

.auth-footer a {
    color: var(--gray-12);
    text-decoration: underline;
}

/* ==================== MODAL ==================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 48px);
    background: var(--gray-2);
    border: 1px solid var(--gray-3);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-3);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-12);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-lg);
    color: var(--gray-9);
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--gray-a3);
    color: var(--gray-10);
}

.modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-3);
}

/* ==================== TOAST ==================== */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    padding: 12px 16px;
    background: var(--gray-2);
    border: 1px solid var(--gray-3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon.success {
    color: var(--green-11);
}

.toast-icon.error {
    color: var(--red-11);
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--gray-12);
}

/* ==================== LOADING ==================== */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 0;
    color: var(--gray-9);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-a3);
    border-top-color: var(--gray-9);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== EMPTY STATE ==================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--gray-a2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-8);
    font-size: 24px;
}

.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-12);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--gray-9);
    margin-bottom: 20px;
}

/* ==================== FOOTER ==================== */

.footer {
    background: var(--background);
    border-top: 1px solid var(--gray-3);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-12);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--gray-9);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-11);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--gray-9);
    margin-bottom: 8px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gray-12);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-3);
    font-size: 13px;
    color: var(--gray-9);
}

/* ==================== UTILITIES ==================== */

.text-success {
    color: var(--green-11) !important;
}

.text-warning {
    color: var(--yellow-11) !important;
}

.text-error {
    color: var(--red-11) !important;
}

.text-muted {
    color: var(--gray-9) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-6);
}

/* ==================== FOOTER ==================== */

.footer {
    background: var(--background);
    border-top: 1px solid var(--gray-3);
    padding: 64px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-12);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.footer-logo i {
    font-size: 22px;
    color: var(--gray-11);
}

.footer-logo .footer-logo-img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-9);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-contact .contact-item:hover {
    color: var(--gray-11);
}

.footer-contact .contact-item i {
    width: 16px;
    color: var(--gray-10);
}

.footer-desc {
    font-size: 14px;
    color: var(--gray-9);
    line-height: 1.7;
    margin-bottom: 24px;
}

.trust-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--gray-a2);
    border: 1px solid var(--gray-a3);
    border-radius: var(--radius-md);
}

.trust-badge i {
    font-size: 14px;
    color: var(--green-11);
}

.trust-badge span {
    font-size: 12px;
    color: var(--gray-11);
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-a2);
    border: 1px solid var(--gray-a3);
    border-radius: var(--radius-md);
    color: var(--gray-9);
    font-size: 16px;
    transition: all 200ms ease;
}

.social-link:hover {
    background: var(--gray-12);
    color: var(--gray-1);
    border-color: var(--gray-12);
    transform: translateY(-2px);
}

.footer-links h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-12);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--gray-9);
    text-decoration: none;
    padding: 8px 0;
    transition: color 200ms ease;
}

.footer-links a:hover {
    color: var(--gray-12);
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--gray-3);
    border-bottom: 1px solid var(--gray-3);
    flex-wrap: wrap;
}

.payment-label {
    font-size: 13px;
    color: var(--gray-9);
    font-weight: 500;
}

.payment-methods {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 36px;
    background: var(--gray-a2);
    border: 1px solid var(--gray-a3);
    border-radius: var(--radius-sm);
    color: var(--gray-9);
    font-size: 20px;
    transition: all 200ms ease;
}

.payment-icon:hover {
    background: var(--gray-a3);
    border-color: var(--gray-5);
    color: var(--gray-11);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-9);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--gray-9);
    text-decoration: none;
    transition: color 200ms ease;
}

.footer-bottom-links a:hover {
    color: var(--gray-12);
}

/* ==================== LEGAL PAGES ==================== */

.legal-page {
    padding: 48px 0;
    min-height: calc(100vh - var(--navbar-height) - 300px);
}

.legal-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-3);
}

.legal-header h1 {
    font-size: 36px;
    font-weight: 500;
    color: var(--gray-12);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.legal-header p {
    font-size: 14px;
    color: var(--gray-9);
}

.legal-content {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-12);
    margin: 32px 0 16px;
    letter-spacing: -0.02em;
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-11);
    margin: 24px 0 12px;
}

.legal-content p {
    font-size: 15px;
    color: var(--gray-9);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content li {
    font-size: 15px;
    color: var(--gray-9);
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--gray-12);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--gray-11);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }

    .footer-desc {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .trust-badges {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-center {
        display: none;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 120px;
    }

    /* Footer Mobile */
    .footer {
        padding: 48px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-payments {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 16px;
    }

    .payment-methods {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Legal Mobile */
    .legal-header h1 {
        font-size: 28px;
    }

    .legal-content h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        padding-bottom: 24px;
        border-bottom: 1px solid var(--gray-3);
    }

    .footer-links:last-child {
        border-bottom: none;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }

    .trust-badge {
        width: 100%;
        max-width: 180px;
        justify-content: center;
    }

    .payment-icon {
        width: 44px;
        height: 32px;
        font-size: 18px;
    }
}

/* ==================== ERROR PAGE ==================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.error-container {
    max-width: 600px;
    width: 100%;
}

.error-content {
    text-align: center;
    background: var(--gray-2);
    border: 1px solid var(--gray-3);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
}

.error-icon {
    color: var(--red-9);
    margin-bottom: 24px;
    display: inline-flex;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.error-code {
    font-size: 72px;
    font-weight: 700;
    color: var(--gray-12);
    margin: 0 0 16px 0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.error-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--gray-12);
    margin: 0 0 16px 0;
}

.error-details {
    font-size: 16px;
    color: var(--gray-11);
    line-height: 1.6;
    margin: 0 0 32px 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn-primary,
.error-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 200ms ease;
}

.error-actions .btn-primary {
    background: var(--gray-12);
    color: var(--gray-1);
}

.error-actions .btn-primary:hover {
    background: var(--gray-11);
    transform: translateY(-1px);
}

.error-actions .btn-secondary {
    background: var(--gray-3);
    color: var(--gray-12);
    border: 1px solid var(--gray-4);
}

.error-actions .btn-secondary:hover {
    background: var(--gray-4);
    border-color: var(--gray-5);
}

.error-suggestions {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-3);
}

.error-suggestions h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-12);
    margin: 0 0 16px 0;
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.error-suggestions li {
    margin: 0;
}

.error-suggestions a {
    display: inline-block;
    color: var(--blue-11);
    text-decoration: none;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 200ms ease;
}

.error-suggestions a:hover {
    background: var(--blue-3);
    color: var(--blue-10);
}

/* Responsive Error Page */
@media (max-width: 768px) {
    .error-page {
        padding: 40px 20px;
    }

    .error-content {
        padding: 40px 24px;
    }

    .error-code {
        font-size: 56px;
    }

    .error-title {
        font-size: 24px;
    }

    .error-details {
        font-size: 15px;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn-primary,
    .error-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .error-icon svg {
        width: 80px;
        height: 80px;
    }

    .error-code {
        font-size: 48px;
    }

    .error-title {
        font-size: 20px;
    }

    .error-content {
        padding: 32px 20px;
    }
}