/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
}

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

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 120px;
}

.header-right {
    justify-content: flex-end;
}

.logo {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 4px;
    color: #1a1a1a;
}

.header-icon {
    padding: 4px;
    color: #1a1a1a;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu Toggle */
.menu-toggle {
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

/* Main Nav */
.main-nav {
    display: none;
    padding: 12px 24px;
    border-bottom: 1px solid #e5e5e5;
}

@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
    .menu-toggle {
        display: none;
    }
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.nav-link {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 400;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.search-overlay.active {
    transform: translateY(0);
}

.search-container {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 16px;
}

.search-input {
    flex: 1;
    padding: 12px 0;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid #1a1a1a;
    outline: none;
    letter-spacing: 1px;
}

.search-close {
    padding: 4px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

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

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

.sidebar-title {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 500;
}

.sidebar-nav ul {
    padding: 24px;
}

.sidebar-nav li {
    margin-bottom: 16px;
}

.sidebar-nav a {
    font-size: 14px;
    letter-spacing: 1px;
}

.sidebar-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0 24px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* ===== MAIN ===== */
.main {
    padding-top: 70px;
}

@media (min-width: 768px) {
    .main {
        padding-top: 110px;
    }
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    padding: 24px;
}

.hero-title {
    font-size: clamp(32px, 8vw, 72px);
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 32px;
    color: #666;
}

.hero-btn {
    display: inline-block;
    padding: 16px 48px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 2px;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background: #333;
    opacity: 1;
}

/* Categories */
.categories {
    padding: 64px 24px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    display: block;
    text-align: center;
}

.category-image {
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.category-placeholder {
    font-size: 48px;
    font-weight: 200;
    letter-spacing: 8px;
    color: #999;
}

.category-title {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
}

/* New Arrivals */
.new-arrivals {
    padding: 64px 24px;
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 48px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto 48px;
}

.product-card {
    text-align: left;
}

.product-image {
    aspect-ratio: 3/4;
    background: #f5f5f5;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

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

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

.product-name {
    font-size: 13px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 13px;
    font-weight: 400;
}

.product-price-old {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

.product-out-of-stock {
    color: #999;
    font-size: 12px;
    letter-spacing: 1px;
}

.product-placeholder {
    aspect-ratio: 3/4;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.product-image-placeholder {
    width: 64px;
    height: 64px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
}

.view-all-btn {
    display: inline-block;
    padding: 16px 48px;
    border: 1px solid #1a1a1a;
    font-size: 12px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
    opacity: 1;
}

/* Promo Banner */
.promo-banner {
    background: #1a1a1a;
    color: #ffffff;
    padding: 64px 24px;
    text-align: center;
}

.promo-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.promo-text {
    font-size: 14px;
    letter-spacing: 1px;
    color: #ccc;
}

/* ===== FOOTER ===== */
.footer {
    background: #f5f5f5;
    padding: 64px 24px 32px;
}

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

.footer-title {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

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

.footer-links a {
    font-size: 13px;
    color: #666;
}

.footer-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.subscribe-form {
    display: flex;
    gap: 8px;
}

.subscribe-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.subscribe-btn {
    padding: 12px 24px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 1px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.footer-bottom p {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.footer-note {
    font-size: 11px;
    color: #bbb;
}

/* ===== CATALOG PAGE ===== */
.catalog-header {
    padding: 32px 24px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.catalog-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 4px;
}

.catalog-filters {
    padding: 16px 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-group {
    display: flex;
    gap: 24px;
    align-items: center;
}

.filter-btn {
    font-size: 12px;
    letter-spacing: 1px;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}

.filter-btn.active {
    border-bottom-color: #1a1a1a;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    font-size: 12px;
    letter-spacing: 1px;
    background: white;
}

.catalog-content {
    padding: 32px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* ===== PRODUCT PAGE ===== */
.product-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

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

@media (min-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.product-gallery {
    display: grid;
    gap: 8px;
}

.product-main-image {
    aspect-ratio: 3/4;
    background: #f5f5f5;
}

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

.product-thumbnail {
    width: 64px;
    height: 85px;
    background: #f5f5f5;
    cursor: pointer;
    opacity: 0.6;
}

.product-thumbnail.active {
    opacity: 1;
}

.product-info {
    padding-top: 16px;
}

.product-info h1 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.product-info .price {
    font-size: 16px;
    margin-bottom: 24px;
}

.product-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.8;
}

.size-selector {
    margin-bottom: 24px;
}

.size-label {
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-btn {
    min-width: 48px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.size-btn:hover:not(:disabled) {
    border-color: #1a1a1a;
}

.size-btn.selected {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.size-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 2px;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #333;
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== CART PAGE ===== */
.cart-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px;
}

.cart-page h1 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 32px;
    text-align: center;
}

.cart-empty {
    text-align: center;
    padding: 64px 0;
    color: #666;
}

.cart-items {
    border-top: 1px solid #e5e5e5;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e5e5;
}

.cart-item-image {
    aspect-ratio: 3/4;
    background: #f5f5f5;
}

.cart-item-info h3 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
}

.cart-item-details {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

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

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.quantity-value {
    font-size: 14px;
    min-width: 24px;
    text-align: center;
}

.cart-item-price {
    text-align: right;
}

.cart-item-price .price {
    font-size: 14px;
    margin-bottom: 16px;
}

.remove-btn {
    font-size: 12px;
    color: #666;
    text-decoration: underline;
}

.cart-summary {
    padding: 32px 0;
    text-align: right;
}

.cart-total {
    font-size: 16px;
    margin-bottom: 24px;
}

.cart-total span {
    font-weight: 500;
}

.checkout-btn {
    display: inline-block;
    padding: 16px 48px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 2px;
}

/* ===== ACCOUNT PAGE ===== */
.account-page {
    max-width: 500px;
    margin: 0 auto;
    padding: 64px 24px;
}

.account-page h1 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 48px;
    text-align: center;
}

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

.form-label {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

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

.form-btn {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 16px;
}

.form-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #666;
}

.form-link a {
    text-decoration: underline;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
}

.checkout-page h1 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 48px;
    text-align: center;
}

.checkout-section {
    margin-bottom: 48px;
}

.checkout-section h2 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.delivery-option:hover {
    border-color: #1a1a1a;
}

.delivery-option.selected {
    border-color: #1a1a1a;
    background: #f9f9f9;
}

.delivery-option input {
    display: none;
}

.delivery-radio {
    width: 18px;
    height: 18px;
    border: 1px solid #999;
    border-radius: 50%;
    position: relative;
}

.delivery-option.selected .delivery-radio::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
}

.delivery-info {
    flex: 1;
}

.delivery-name {
    font-size: 14px;
    margin-bottom: 4px;
}

.delivery-desc {
    font-size: 12px;
    color: #666;
}

.delivery-price {
    font-size: 14px;
}

.order-summary {
    background: #f9f9f9;
    padding: 24px;
}

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

.summary-row.total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
    font-weight: 500;
}

.pay-btn {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 24px;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* ===== LOADING ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #e5e5e5;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a1a;
    color: #ffffff;
    padding: 16px 32px;
    font-size: 13px;
    letter-spacing: 1px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-top {
        padding: 12px 16px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .hero {
        height: 60vh;
    }

    .categories,
    .new-arrivals {
        padding: 48px 16px;
    }

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