html {
    overflow-y: scroll;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: #fafafa;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cart-link {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
}

.cart-link:hover {
    transform: scale(1.05);
}

.cart-icon {
    font-size: 24px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #1a1a1a;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #1a1a1a;
}

.login-btn {
    background: #1a1a1a;
    color: white !important;
    padding: 6px 18px;
    border-radius: 8px;
    transition: all 0.2s;
}

.login-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

.balance-display {
    background: #f5f5f5;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

.profile-icon {
    width: 36px;
    height: 36px;
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    font-weight: 600;
}

.profile-icon:hover {
    transform: scale(1.05);
}

.profile-dropdown {
    position: relative;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-email {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #666;
    word-break: break-all;
}

.profile-menu-item {
    display: block;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.profile-menu-item:hover {
    background: #fafafa;
}

/* Hero */
.hero {
    max-width: 1440px;
    margin: 15px auto 15px;
    padding: 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Search */
.search-section {
    max-width: 600px;
    margin: 25px auto;
    padding: 0 40px;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s;
    color: #1a1a1a;
}

.search-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.search-input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.search-clear {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    transition: all 0.2s;
    z-index: 2;
    -webkit-appearance: none;
}

.search-clear::before,
.search-clear::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #666;
    border-radius: 1px;
}

.search-clear::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.search-clear::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.search-clear:hover {
    background: #1a1a1a;
}

.search-clear:hover::before,
.search-clear:hover::after {
    background: white;
}

.search-clear:hover {
    background: #1a1a1a;
    color: white;
}

/* Categories */
.categories {
    max-width: 1440px;
    margin: 0 auto 30px;
    padding: 0 40px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-chip {
    background: white;
    border: 2px solid #e5e5e5;
    padding: 10px 22px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 14px;
    color: #666;
}

.category-chip:hover,
.category-chip.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Country Filter */
.country-filter {
    max-width: 1440px;
    margin: 0 auto 30px;
    padding: 0 40px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.country-chip {
    background: white;
    border: 2px solid #e5e5e5;
    padding: 10px 22px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 14px;
    color: #666;
}

.country-chip:hover,
.country-chip.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Catalog Grid */
.catalog {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px 100px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

/* Card */
.card {
    position: relative;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: fadeIn 0.6s ease-out backwards;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.brand-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.verified {
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Country Badge */
.country-badge-top {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* Discount Flip Card */
.discount-flip-container {
    perspective: 1000px;
    min-height: 140px;
    margin-bottom: 24px;
}

.discount-flip-container.has-flip {
    cursor: pointer;
}

.discount-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 140px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.discount-flip-container.flipped .discount-flip-inner {
    transform: rotateY(180deg);
}

.discount-flip-front,
.discount-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 140px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e5e5;
}

.discount-flip-front {
    background: #fafafa;
}

.discount-amount {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.flip-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    transition: all 0.2s;
}

.discount-flip-container.has-flip:hover .flip-hint {
    color: #666;
    transform: translateY(-2px);
}

.flip-icon {
    font-size: 14px;
    display: inline-block;
    transition: transform 0.3s;
}

.discount-flip-container.has-flip:hover .flip-icon {
    transform: rotate(180deg);
}

.discount-flip-back {
    transform: rotateY(180deg);
    background: #1a1a1a;
    border: none;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.back-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.back-icon {
    font-size: 18px;
}

.back-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 12px;
    flex: 1;
}

.back-close {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.close-icon {
    font-size: 14px;
    display: inline-block;
}

.discount-flip-container.flipped:hover .back-close {
    color: rgba(255, 255, 255, 0.8);
}

.discount-flip-container.flipped:hover .close-icon {
    transform: rotate(-180deg);
    transition: transform 0.3s;
}

.discount-flip-container:not(.has-flip) .discount-flip-front {
    position: relative;
}

.discount-flip-container:not(.has-flip) .discount-amount {
    margin-bottom: 0;
}

/* Promo Info */
.promo-info {
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-section {
    display: flex;
    flex-direction: column;
}

.price-label {
    display: none;
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.buy-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.buy-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

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

.buy-btn.added {
    background: #10b981;
}

/* Stock Info */
.stock-info {
    font-size: 13px;
    color: #10b981;
    margin-top: 8px;
    font-weight: 500;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-results p {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.no-results-hint {
    font-size: 16px !important;
    color: #999 !important;
}

/* Cart Page */
.cart-container {
    max-width: 1440px;
    margin: 40px auto;
    padding: 0 40px 100px;
}

.cart-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    letter-spacing: -1.5px;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

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

.cart-item-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.cart-item-logo {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}

.cart-item-brand h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.cart-item-discount {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.cart-item-conditions {
    font-size: 13px;
    color: #666;
}

.cart-item-expires {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

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

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    min-width: 80px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #1a1a1a;
}

.qty-btn:hover {
    background: #1a1a1a;
    color: white;
}

.qty-input {
    width: 50px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

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

.cart-item-total {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 100px;
    text-align: right;
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.cart-item-remove:hover {
    background: #ff4444;
    color: white;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: #666;
}

.summary-total {
    border-top: 2px solid #e5e5e5;
    margin-top: 12px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.checkout-btn {
    width: 100%;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

.checkout-btn:hover:not(:disabled) {
    background: #000;
    transform: translateY(-1px);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkout-hint {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-top: 16px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-cart-text {
    font-size: 24px;
    color: #666;
    margin-bottom: 30px;
}

.continue-shopping-btn {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.continue-shopping-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

/* Cart Side Panel */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.cart-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-panel.active {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn:hover {
    color: #1a1a1a;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.cart-loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

.cart-empty {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin-top: -100px;
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.cart-empty-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.continue-shopping {
    display: none;
}

.cart-panel-item {
    background: #fafafa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.cart-panel-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cart-panel-item-logo {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
}

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

.cart-panel-item-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #1a1a1a;
}

.cart-panel-item-discount {
    font-size: 14px;
    font-weight: 700;
    color: #666;
}

.cart-panel-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cart-panel-item-remove:hover {
    color: #ff4444;
}

.cart-panel-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-panel-qty {
    display: flex;
    gap: 8px;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 4px;
}

.cart-panel-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #1a1a1a;
    transition: all 0.2s;
}

.cart-panel-qty-btn:hover {
    background: #1a1a1a;
    color: white;
}

.cart-panel-qty-input {
    width: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: text;
}

.cart-panel-qty-input:focus {
    outline: none;
}

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

.cart-panel-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.cart-footer {
    border-top: 1px solid #e5e5e5;
    padding: 24px;
}

.cart-panel .cart-summary {
    margin-bottom: 20px;
    padding: 0;
    border: none;
    background: transparent;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.cart-total-amount {
    font-size: 20px;
    font-weight: 700;
}

.cart-checkout-btn {
    width: 100%;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-checkout-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

/* Checkout Item Logo */
.checkout-item-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.checkout-item-logo-emoji {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0 24px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 24px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-item a:hover {
    color: white;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE - TABLET (1024px)
   ======================================== */
@media (max-width: 1024px) {
    .catalog {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (768px)
   ======================================== */
@media (max-width: 768px) {
    /* Navbar */
    .nav-container {
        padding: 0 20px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-link:not(.login-btn) {
        display: none;
    }

    .logo {
        font-size: 18px;
    }

    .balance-display {
        font-size: 13px;
        padding: 6px 14px;
    }

    .profile-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Empty cart mobile */
    .cart-body {
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .cart-empty {
        flex: 1;
    }

    .cart-empty {
        margin-top: 0;
        justify-content: flex-start;
        padding-top: 200px;
    }

    /* Hero */
    .hero {
        margin: 30px auto 20px;
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -1px;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 16px;
    }

    /* Search */
    .search-section {
        margin: 20px auto;
        padding: 0 20px;
    }

    .search-input {
        padding: 14px 45px 14px 16px;
        font-size: 15px;
    }

    /* Categories & Country Filter */
    .categories,
    .country-filter {
        padding: 0 20px;
        margin-bottom: 20px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .categories::-webkit-scrollbar,
    .country-filter::-webkit-scrollbar {
        display: none;
    }

    .category-chip,
    .country-chip {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Catalog */
    .catalog {
        grid-template-columns: 1fr;
        padding: 0 16px 60px;
        gap: 16px;
    }

    /* Card */
    .card {
        padding: 20px;
    }

    .card:hover {
        transform: none;
        box-shadow: none;
    }

    .card-header {
        margin-bottom: 16px;
    }

    .brand-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .brand-info h3 {
        font-size: 16px;
    }

    .country-badge-top {
        top: 16px;
        right: 16px;
        font-size: 11px;
        padding: 3px 8px;
    }

    /* Discount */
    .discount-flip-container {
        min-height: 120px;
        margin-bottom: 16px;
    }

    .discount-flip-inner {
        min-height: 120px;
    }

    .discount-flip-front,
    .discount-flip-back {
        min-height: 150px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .discount-flip-back .back-header,
    .discount-flip-back .back-text {
        margin: 0;
    }

    .discount-flip-back .back-text {
        flex: none;
    }

    .discount-flip-back .back-close {
        display: none;
    }

    .discount-amount {
        font-size: 28px;
    }

    .flip-hint {
        font-size: 11px;
        margin-top: 4px;
    }

    /* Promo Info + Price in one row on mobile */
    .promo-info {
        margin-bottom: 16px;
    }

    .info-item {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        background: #fafafa;
        border-radius: 8px;
        margin-bottom: 0;
    }

    .info-label {
        font-size: 13px;
        color: #666;
        text-transform: none;
        letter-spacing: 0;
        margin-right: 6px;
    }

    .info-value {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a1a;
        flex: 1;
    }

    /* Card Footer - mobile */
    .card-footer {
        flex-direction: column;
        gap: 12px;
    }

    .price-section {
        display: none;
    }

    /* Price via pseudo-element */
    .info-item::after {
        content: attr(data-price);
        font-size: 22px;
        font-weight: 700;
        color: #1a1a1a;
        margin-left: auto;
    }

    /* Card Footer - кнопка на всю ширину */
    .card-footer {
        flex-direction: column;
        gap: 12px;
    }

    .price-section {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .price-label {
        display: none;
    }

    .price {
        font-size: 26px;
    }

    .buy-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 10px;
    }

    /* Cart Panel */
    .cart-panel {
        width: 100%;
        right: -100%;
    }

    .cart-panel.active {
        right: 0;
    }

    /* Cart Page */
    .cart-container {
        padding: 0 20px 60px;
    }

    .cart-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

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

    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }

    .cart-item-actions {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .cart-summary {
        position: static;
    }

    /* Checkout Item */
    .checkout-item {
        display: grid;
        grid-template-columns: 48px 1fr auto;
        gap: 12px;
        align-items: center;
        padding: 12px;
    }

    .checkout-item-logo,
    .checkout-item-logo-emoji {
        width: 48px !important;
        height: 48px !important;
        grid-column: 1;
    }

    .checkout-item-info {
        grid-column: 2;
        line-height: 1.3;
    }

    .checkout-item-brand {
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .checkout-item-discount {
        font-size: 13px;
        display: inline;
        margin-right: 6px;
    }

    .checkout-item-quantity {
        font-size: 13px;
        display: inline;
        color: #999;
    }

    .checkout-item-price {
        grid-column: 3;
        font-size: 18px;
        font-weight: 700;
        text-align: right;
    }

    /* Footer */
    .footer {
        padding: 40px 0 30px;
        margin-top: 40px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (480px)
   ======================================== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .card {
        padding: 16px;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .brand-info h3 {
        font-size: 15px;
    }

    .discount-flip-container {
        min-height: 110px;
    }

    .discount-flip-inner {
        min-height: 150px;
    }

    .discount-flip-front,
    .discount-flip-back {
        min-height: 150px;
        padding: 16px;
    }

    .discount-amount {
        font-size: 24px;
    }

    .price {
        font-size: 24px;
    }

    .buy-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .cart-title {
        font-size: 24px;
    }

    .empty-cart-icon {
        font-size: 60px;
    }

    .empty-cart-text {
        font-size: 18px;
    }
}

/* Fix iOS zoom on input focus */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}