/* FastCart.world Main Stylesheet */
:root {
    --primary: #1a1a1a;
    --primary-dark: #000000;
    --secondary: #555555;
    --text: #333333;
    --text-light: #888888;
    --bg: #ffffff;
    --bg-warm: #f8f8f8;
    --border: #e5e5e5;
    --radius: 4px;
    --accent: #c8a96e;
    --danger: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

/* ==================== Header ==================== */
.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    height: 70px;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.logo span { color: var(--accent); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}
.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    transition: color 0.2s;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--primary-dark); }
.main-nav a.nav-more {
    color: var(--text-light);
    font-size: 13px;
}

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

/* Currency Switch */
.currency-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
}
.currency-switch a {
    color: var(--text-light);
    transition: color 0.2s;
}
.currency-switch a:hover,
.currency-switch a.active {
    color: var(--primary-dark);
}
.currency-switch span {
    color: var(--border);
}

/* Icon Buttons */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--secondary);
    transition: all 0.2s;
}
.icon-btn:hover {
    background: var(--bg-warm);
    color: var(--primary-dark);
}

.login-btn {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    transition: color 0.2s;
}
.login-btn:hover {
    color: var(--primary-dark);
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--secondary);
    transition: all 0.2s;
}
.cart-btn:hover {
    background: var(--bg-warm);
    color: var(--primary-dark);
}

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

/* ==================== Hero ==================== */
.hero {
    background: var(--bg-warm);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 32px;
}
.hero .btn { font-size: 14px; padding: 14px 36px; }

/* ==================== Buttons ==================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--primary-dark);
    background: var(--primary-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-align: center;
}
.btn:hover { background: #333; border-color: #333; color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
}
.btn-outline:hover { background: var(--primary-dark); color: #fff; }

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.btn-accent:hover { background: #b8965c; border-color: #b8965c; }

.btn-sm { padding: 8px 16px; font-size: 11px; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #c82333; border-color: #bd2130; }

/* ==================== Sections ==================== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.section-header p { color: var(--text-light); font-size: 15px; }

/* ==================== Category Cards ==================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.category-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s;
}
.category-card:hover img { transform: scale(1.05); }
.category-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.category-card-body h3 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }

/* ==================== Product Grid ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
    background: var(--bg);
}
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.product-card-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-warm);
}
.product-card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-body { padding: 16px; }
.product-card-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 4px;
}
.product-card-body h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}
.product-card-body h3 a { color: var(--primary-dark); }
.product-card-body h3 a:hover { color: var(--accent); }

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}
.product-original-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 6px;
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 2px;
    text-transform: uppercase;
}

/* ==================== Product Detail ==================== */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-detail-image img {
    width: 100%;
    border-radius: var(--radius);
}

.product-detail-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.product-detail-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.product-detail-price-wrap { margin-bottom: 24px; }
.product-detail-price-wrap .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
}
.product-detail-price-wrap .original {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
}

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

.product-specs { margin-bottom: 24px; }
.product-specs h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.specs-table td:first-child { color: var(--text-light); width: 120px; }

.add-to-cart-form { display: flex; gap: 12px; align-items: center; }
.qty-input {
    width: 60px;
    padding: 12px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    font-size: 14px;
}

.stock-info { font-size: 13px; color: var(--text-light); margin-top: 8px; }

/* ==================== Cart Page ==================== */
.cart-page { max-width: 1000px; margin: 0 auto; padding: 60px 20px; }
.cart-page h1 { font-size: 28px; margin-bottom: 32px; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.cart-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}
.cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-img { width: 80px; height: 100px; object-fit: cover; border-radius: var(--radius); }
.cart-item-name { font-weight: 600; }
.cart-item-price { font-weight: 600; }
.cart-qty-form { display: flex; gap: 4px; align-items: center; }
.cart-qty-form input { width: 50px; padding: 6px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); }
.cart-qty-btn { padding: 6px 10px; border: 1px solid var(--border); background: var(--bg); border-radius: var(--radius); cursor: pointer; }
.cart-remove { color: var(--danger); font-size: 13px; cursor: pointer; background: none; border: none; }

.cart-summary {
    text-align: right;
    padding: 24px;
    background: var(--bg-warm);
    border-radius: var(--radius);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}
.cart-summary-total {
    font-size: 20px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 16px;
}
.cart-summary-actions { margin-top: 16px; display: flex; gap: 12px; justify-content: flex-end; }

/* ==================== Checkout ==================== */
.checkout-page { max-width: 1000px; margin: 0 auto; padding: 60px 20px; }
.checkout-page h1 { font-size: 28px; margin-bottom: 32px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.checkout-sidebar {
    background: var(--bg-warm);
    padding: 24px;
    border-radius: var(--radius);
    height: fit-content;
    position: sticky;
    top: 84px;
}
.checkout-sidebar h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.checkout-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.checkout-item img { width: 60px; height: 75px; object-fit: cover; border-radius: 2px; }
.checkout-item-info { flex: 1; }
.checkout-item-name { font-size: 13px; font-weight: 600; }
.checkout-item-meta { font-size: 12px; color: var(--text-light); }
.checkout-item-price { font-size: 14px; font-weight: 600; }

.payment-methods { margin: 20px 0; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    cursor: pointer;
}
.payment-option.selected { border-color: var(--primary-dark); background: var(--bg); }
.payment-option label { cursor: pointer; font-weight: 500; }

/* ==================== Order Success ==================== */
.order-success { max-width: 600px; margin: 80px auto; text-align: center; padding: 20px; }
.order-success .icon { font-size: 64px; margin-bottom: 24px; }
.order-success h1 { font-size: 28px; margin-bottom: 12px; }
.order-success p { color: var(--text-light); margin-bottom: 8px; }
.order-success .order-number { font-size: 20px; font-weight: 700; color: var(--accent); margin: 16px 0; }

/* ==================== Forms ==================== */
.auth-form {
    max-width: 460px;
    margin: 60px auto;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.auth-form h1 { font-size: 24px; margin-bottom: 8px; text-align: center; }
.auth-form .subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; font-size: 14px; }
.auth-form .btn { width: 100%; }
.auth-form .alt-link { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-light); }

/* ==================== Account ==================== */
.account-page { max-width: 1000px; margin: 0 auto; padding: 60px 20px; }
.account-page h1 { font-size: 28px; margin-bottom: 32px; }
.account-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 32px; }
.account-tab {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.account-tab.active { color: var(--primary-dark); border-bottom-color: var(--primary-dark); }

.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}
.orders-table td { padding: 16px 12px; border-bottom: 1px solid var(--border); }
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ==================== Gift Pay ==================== */
.gift-pay-page { max-width: 600px; margin: 80px auto; text-align: center; padding: 20px; }
.gift-pay-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: left;
}
.gift-pay-card .gift-icon { font-size: 48px; text-align: center; margin-bottom: 20px; }
.gift-pay-card h1 { font-size: 24px; margin-bottom: 8px; }
.gift-pay-card .message { color: var(--text-light); margin-bottom: 24px; padding: 16px; background: var(--bg-warm); border-radius: var(--radius); font-style: italic; }
.gift-amount { font-size: 36px; font-weight: 700; text-align: center; color: var(--accent); margin: 24px 0; }

/* ==================== Static Pages ==================== */
.static-page { max-width: 800px; margin: 60px auto; padding: 0 20px; }
.static-page h1 { font-size: 28px; margin-bottom: 24px; }
.static-page h2 { font-size: 20px; margin: 32px 0 12px; }
.static-page p { margin-bottom: 16px; line-height: 1.8; color: var(--secondary); }

/* ==================== Footer ==================== */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-warm);
    padding: 60px 20px 30px;
    margin-top: 80px;
}

.footer-company-notice {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 16px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    font-size: 14px;
    color: var(--secondary);
}
.footer-company-notice strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--primary-dark);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--secondary); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col p { font-size: 14px; color: var(--secondary); line-height: 1.8; }

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* ==================== Alerts ==================== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--secondary);
}
.pagination a:hover { background: var(--bg-warm); }
.pagination .current { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }

/* ==================== Admin Styles ==================== */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--primary-dark);
    color: #fff;
    padding: 24px 0;
}
.admin-sidebar .admin-logo {
    padding: 0 24px 24px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}
.admin-sidebar .admin-logo span { color: var(--accent); }
.admin-nav a {
    display: block;
    padding: 12px 24px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all 0.2s;
}
.admin-nav a:hover, .admin-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.admin-main { padding: 32px; background: var(--bg-warm); }
.admin-main h1 { font-size: 24px; margin-bottom: 24px; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.admin-stat, .stat-card {
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}
.admin-stat-label, .stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 8px; }
.admin-stat-value, .stat-value { font-size: 28px; font-weight: 700; color: var(--primary-dark); }
.stat-icon { font-size: 28px; margin-bottom: 8px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-warm);
    border-bottom: 2px solid var(--border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }

.admin-form { max-width: 700px; background: var(--bg); padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); }
.admin-form .form-actions { margin-top: 24px; display: flex; gap: 12px; }

.admin-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-page-header h1 { margin: 0; }

.admin-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 768px) { .admin-grid-2col { grid-template-columns: 1fr; } }

.admin-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.admin-tabs .tab {
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}
.admin-tabs .tab:hover { color: var(--text); }
.admin-tabs .tab.active { color: var(--primary-dark); border-bottom-color: var(--primary-dark); font-weight: 600; }

.form-row { display: flex; gap: 16px; margin-bottom: 8px; }
.form-row .form-group { flex: 1; }
@media (max-width: 768px) { .form-row { flex-direction: column; } }

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

/* Admin Login */
.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-warm);
}
.admin-login-form {
    width: 400px;
    background: var(--bg);
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}
.admin-login-form h1 { font-size: 24px; margin-bottom: 32px; }
.admin-login-form .btn { width: 100%; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 30px; }
    .checkout-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-inner { flex-wrap: wrap; height: auto; padding: 16px; }
    .nav-menu { display: none; }
    .hero h1 { font-size: 32px; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
