/* =============================================
   Arze Home - Ana Stil Dosyası
   Profesyonel E-Ticaret Tasarımı
   ============================================= */

/* ─── CSS Değişkenleri ─────────────────────── */
:root {
    --gold: #c5a059;
    --gold-light: #d4b579;
    --gold-dark: #a8863e;
    --dark: #1a1a1a;
    --dark-soft: #2d2d2d;
    --text: #333333;
    --text-light: #777777;
    --light-bg: #fafafa;
    --white: #ffffff;
    --border: #eeeeee;
    --border-light: #f5f5f5;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --sidebar-width: 280px;
    --header-height: 70px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}

/* ─── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light-bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 14px;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--gold-dark); }

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

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

/* ─── Sidebar ──────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border);
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar.collapsed { width: 80px; }
.sidebar.collapsed .sidebar-content { padding: 40px 10px; }
.sidebar.collapsed .logo-img { max-width: 50px; }
.sidebar.collapsed .categories h3,
.sidebar.collapsed .categories li a span,
.sidebar.collapsed .sidebar-user-info span,
.sidebar.collapsed .sidebar-admin-link span,
.sidebar.collapsed .sidebar-logout span { display: none; }
.sidebar.collapsed .categories li a i { margin: 0 auto; font-size: 20px; }

.toggle-btn {
    position: absolute;
    right: -16px;
    top: 15px;
    background: var(--gold);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.toggle-btn:hover { background: var(--gold-dark); transform: scale(1.1); }

.sidebar-content { 
    padding: 30px 20px; 
    transition: var(--transition); 
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
}

.brand { margin-bottom: 35px; text-align: center; }
.logo-img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.categories h3 {
    font-size: 11px;
    text-transform: uppercase;
    color: #bbb;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 600;
}
.categories ul { list-style: none; }
.categories li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 13px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.categories li a i { width: 22px; color: var(--gold); font-size: 16px; text-align: center; flex-shrink: 0; }
.categories li a:hover,
.categories li a.active {
    background: linear-gradient(135deg, #f9f6f0, #faf5eb);
    color: var(--gold-dark);
}
.categories li a.active { font-weight: 600; }

/* Sidebar User Section */
.sidebar-user {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text);
    font-weight: 500;
    font-size: 13px;
}
.sidebar-user-info i { color: var(--gold); font-size: 18px; }
.sidebar-admin-link,
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-light);
    font-size: 13px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.sidebar-admin-link:hover { background: #f0f0f0; color: var(--gold); }
.sidebar-logout:hover { background: #fef0f0; color: var(--danger); }

/* ─── Main Content ─────────────────────────── */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ─── Top Header / Navbar ──────────────────── */
.top-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 900;
}

.mobile-menu-btn, .mobile-back-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text);
    cursor: pointer;
}

.mobile-logo {
    display: none;
}
.mobile-logo img { height: 35px; width: auto; }

.search-box {
    flex: 1;
    max-width: 500px;
}
.search-box form { position: relative; }
.search-box .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 14px;
}
.search-box input {
    width: 100%;
    padding: 10px 18px 10px 42px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 25px;
    outline: none;
    font-size: 13px;
    transition: var(--transition);
}
.search-box input:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.header-icon-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    border-radius: 25px;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}
.header-icon-link:hover { background: var(--light-bg); color: var(--gold); }
.header-icon-link i { font-size: 17px; }

.cart-badge {
    position: absolute;
    top: 2px;
    left: 24px;
    background: var(--gold);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.icon-label { font-size: 12px; }

/* ─── Alert / Flash Messages ──────────────── */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin: 15px 40px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}
.alert-success { background: #e8f8ef; color: #1e8449; border-left: 4px solid var(--success); }
.alert-error   { background: #fdecea; color: #c0392b; border-left: 4px solid var(--danger); }
.alert-warning { background: #fef9e7; color: #b7950b; border-left: 4px solid var(--warning); }
.alert-info    { background: #eaf2f8; color: #2471a3; border-left: 4px solid var(--info); }
.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    line-height: 1;
}
.alert-close:hover { opacity: 1; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Page Title / Breadcrumb ──────────────── */
.page-header {
    padding: 30px 40px 20px;
}
.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.5px;
}
.breadcrumb {
    display: flex;
    gap: 8px;
    list-style: none;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; }

/* ─── Product Grid ─────────────────────────── */
.products-section {
    padding: 20px 40px 40px;
    flex: 1;
}

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

.product-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}
.product-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.product-item .img-container {
    position: relative;
    width: 100%;
    height: 320px;
    background: #f8f8f8;
    overflow: hidden;
}
.product-item .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-item:hover .img-container img {
    transform: scale(1.05);
}

.product-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 5;
}
.stock-in { background: rgba(46, 204, 113, 0.9); color: white; }
.stock-out { background: rgba(231, 76, 60, 0.9); color: white; }

.discount-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #c5a059 0%, #a8843c 100%);
    color: white;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    border-radius: 0 0 0 15px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.discount-badge::after {
    content: '';
    position: absolute;
    top: 0;
    right: -2px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 2px 2px 0;
    border-color: transparent #8c6d31 transparent transparent;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.85em;
    margin-right: 8px;
}

.new-price {
    color: var(--accent);
    font-weight: 700;
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    transform: translateY(100%);
    transition: var(--transition);
}
.product-item:hover .product-actions { transform: translateY(0); }

.product-actions .btn-cart,
.product-actions .btn-whatsapp-sm {
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-cart {
    background: var(--gold);
    color: white;
}
.btn-cart:hover { background: var(--gold-dark); }
.btn-whatsapp-sm {
    background: #25D366;
    color: white;
}
.btn-whatsapp-sm:hover { background: #1ebe57; }

.product-item .details {
    padding: 18px 16px;
    text-align: center;
}
.product-item .details h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.4;
}
.product-item .details .price {
    font-weight: 700;
    color: var(--gold);
    font-size: 17px;
    font-family: 'Montserrat', sans-serif;
}

/* ─── Pagination ───────────────────────────── */
.pagination {
    margin: 40px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.page-btn, .page-num {
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}
.page-num.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}
.page-btn:hover, .page-num:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}
.page-dots {
    padding: 0 6px;
    color: var(--text-light);
}

/* ─── Product Detail Page ──────────────────── */
.product-detail {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gallery-main {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f8f8f8;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
}
.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    opacity: 0.6;
}
.gallery-thumb:hover, .gallery-thumb.active {
    border-color: var(--gold);
    opacity: 1;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.product-info .product-sku {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.product-info .product-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
}
.product-info .product-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 30px;
}
.product-info .stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 25px;
}
.stock-status.in-stock { background: #e8f8ef; color: #1e8449; }
.stock-status.out-of-stock { background: #fdecea; color: #c0392b; }

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 25px;
}
.quantity-selector button {
    width: 42px;
    height: 42px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantity-selector button:first-child { border-radius: 6px 0 0 6px; }
.quantity-selector button:last-child { border-radius: 0 6px 6px 0; }
.quantity-selector button:hover { background: var(--gold); color: white; border-color: var(--gold); }
.quantity-selector input {
    width: 60px;
    height: 42px;
    text-align: center;
    border: 1px solid var(--border);
    border-left: none;
    border-right: none;
    outline: none;
    font-weight: 600;
}

.product-actions-detail {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── Buttons ──────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}
.btn-gold {
    background: var(--gold);
    color: white;
}
.btn-gold:hover { background: var(--gold-dark); color: white; transform: translateY(-1px); }

.btn-dark {
    background: var(--dark);
    color: white;
}
.btn-dark:hover { background: var(--dark-soft); color: white; }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-whatsapp {
    background: #25D366;
    color: white;
}
.btn-whatsapp:hover { background: #1ebe57; color: white; }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c0392b; color: white; }

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}
.btn-lg {
    padding: 15px 36px;
    font-size: 15px;
}
.btn-block { width: 100%; }

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─── Cart Page ────────────────────────────── */
.cart-page {
    padding: 30px 40px;
    flex: 1;
}
.cart-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-collapse: collapse;
}
.cart-table thead {
    background: var(--dark);
    color: white;
}
.cart-table th {
    padding: 14px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: left;
}
.cart-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.cart-table .cart-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-table .cart-product-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    object-fit: cover;
}
.cart-table .cart-product-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
}
.cart-table .cart-product-name a { color: var(--dark); }
.cart-table .cart-product-name a:hover { color: var(--gold); }

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: var(--transition-fast);
}
.cart-remove-btn:hover { color: #c0392b; transform: scale(1.2); }

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
    max-width: 400px;
    margin-left: auto;
}
.cart-summary h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
}
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}
.cart-summary .summary-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    border-bottom: none;
    padding-top: 15px;
}
.cart-empty {
    text-align: center;
    padding: 80px 20px;
}
.cart-empty i { font-size: 60px; color: var(--border); margin-bottom: 20px; }
.cart-empty h3 { font-size: 18px; color: var(--text-light); margin-bottom: 10px; }

/* ─── Forms ────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group .required { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 14px;
    transition: var(--transition-fast);
    outline: none;
}
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}
.form-control.error { border-color: var(--danger); }
.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23777' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

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

/* ─── Auth Pages (Login / Register) ────────── */
.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-md);
}
.auth-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    text-align: center;
    margin-bottom: 8px;
    color: var(--dark);
}
.auth-card .auth-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 30px;
}
.auth-card .auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
}

/* ─── Account Page ─────────────────────────── */
.account-page {
    padding: 30px 40px;
    flex: 1;
}
.account-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}
.account-nav {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}
.account-nav a,
.account-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition-fast);
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.account-nav a:hover, .account-nav a.active {
    background: var(--light-bg);
    color: var(--gold);
}
.account-nav button.logout-btn { color: var(--danger); }
.account-nav button.logout-btn:hover { background: #fef0f0; color: var(--danger); }
.account-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.account-content h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
}

/* ─── Orders Table ─────────────────────────── */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}
.orders-table thead {
    background: var(--light-bg);
}
.orders-table th {
    padding: 12px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    text-align: left;
    color: var(--text-light);
}
.orders-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.status-awaiting-payment { background: #ffe8cc; color: #d97706; }
.status-pending   { background: #fff3cd; color: #856404; }
.status-paid      { background: #d1ecf1; color: #0c5460; }
.status-preparing { background: #e2e3ff; color: #3d3d9f; }
.status-shipped   { background: #d4edda; color: #155724; }
.status-delivered  { background: #c3e6cb; color: #0f5132; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-refunded  { background: #f3e5f5; color: #7b1fa2; }

/* ─── Checkout Page ────────────────────────── */
.checkout-page {
    padding: 30px 40px;
    flex: 1;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    max-width: 1100px;
}
.checkout-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.checkout-form h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.checkout-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

/* ─── Footer ───────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: #aaa;
    padding: 50px 40px 0;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}
.footer-col {
    min-width: 0; /* Metin taşmasını önler */
}
.footer-col h4 {
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col p {
    font-size: 13px;
    line-height: 1.7;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
    padding: 5px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li i { color: var(--gold); font-size: 12px; width: 16px; }
.footer-col ul a { color: #aaa; }
.footer-col ul a:hover { color: var(--gold); }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #444;
    border-radius: 50%;
    color: #aaa;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
}

/* ─── WhatsApp Float ───────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50%      { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6); }
}

/* ─── Mobile Overlay ───────────────────────── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}
.mobile-overlay.active { display: block; }

/* ─── Responsive ───────────────────────────── */
@media (max-width: 1400px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
    .product-detail { grid-template-columns: 1fr; gap: 30px; }
    .checkout-grid  { grid-template-columns: 1fr; }
    .account-grid   { grid-template-columns: 1fr; }
    .footer-grid    { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 1000px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -300px;
        z-index: 1001;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.open { left: 0; }
    .sidebar .toggle-btn { display: none; }

    .mobile-menu-btn { display: flex; }
    .mobile-back-btn { display: flex; }
    .mobile-logo { display: block; }
    .desktop-logo { display: none !important; }
    .mobile-black-logo { display: block !important; }

    .cart-table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }

    .main-content { width: 100%; }

    .top-header {
        padding: 0 16px;
        height: 60px;
    }
    .search-box { max-width: unset; }
    .icon-label { display: none; }

    .products-section,
    .cart-page,
    .account-page,
    .checkout-page,
    .product-detail { padding: 16px; }

    .page-header { padding: 20px 16px 10px; }
    .alert { margin: 10px 16px; }

    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .site-footer { padding: 30px 16px 0; }

    .product-grid { gap: 12px; }
    .product-item .img-container { height: 220px; }
    .product-item .details { padding: 12px 10px; }
    .product-item .details h4 { font-size: 11px; }
    .product-item .details .price { font-size: 14px; }

    .gallery-main { height: 350px; }
    .product-info h1 { font-size: 20px; }
    .product-info .product-price { font-size: 24px; }

    .cart-summary { max-width: unset; }

    .whatsapp-float { width: 52px; height: 52px; font-size: 24px; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-item .img-container { height: 180px; }
    .form-row { grid-template-columns: 1fr; }
    .header-icon-link { padding: 8px; }
    .cart-table .cart-product-img { width: 50px; height: 50px; }
}

/* ─── Loading Spinner ──────────────────────── */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Empty State ──────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state i { font-size: 50px; margin-bottom: 15px; opacity: 0.3; }
.empty-state h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: 13px; margin-bottom: 20px; }

/**
 * Premium City Selector UI
 */
.city-wrapper {
    position: relative;
    width: 100%;
}

.city-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none;
    transform-origin: top;
    animation: city-slide-down 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--gold) #f1f1f1;
}

@keyframes city-slide-down {
    from { opacity: 0; transform: translateY(-10px) scaleY(0.95); }
    to { opacity: 1; transform: translateY(0) scaleY(1); }
}

/* Premium Scrollbar (The "Slider" Look) */
.city-results::-webkit-scrollbar {
    width: 6px;
}
.city-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.city-results::-webkit-scrollbar-thumb {
    background: #d4b579;
    border-radius: 10px;
}
.city-results::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.city-item {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 13.5px;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f9f9f9;
    color: #444;
}

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

.city-item:hover {
    background: #fffaf0;
    color: var(--gold);
    padding-left: 22px;
}

.city-item.priority {
    font-weight: 600;
    color: var(--gold);
    background: #fffdf9;
    position: relative;
}

.city-item.priority::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gold);
    border-radius: 0 4px 4px 0;
}

