/* ============================================
   DEMOSTORE - Ana Stil Dosyası
   Minimalist, Modern, Profesyonel
   ============================================ */

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

:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #3498db;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font);
    color: var(--dark);
    line-height: 1.6;
    background-color: #f8f9fa;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-text {
    color: var(--gray);
}

.top-bar-links a {
    color: var(--white);
    margin-left: 20px;
    font-size: 13px;
}

.top-bar-links a:hover {
    color: var(--accent);
}

/* ===== MAIN HEADER ===== */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-image {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
}

.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--accent);
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-button {
    padding: 10px 20px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background-color: var(--primary);
}

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

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark);
    font-size: 12px;
    position: relative;
}

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

.action-label {
    margin-top: 2px;
}

.cart-action {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* ===== MAIN NAV ===== */
.main-nav {
    background-color: var(--white);
    border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--light);
    position: sticky;
    top: 0;
    z-index: 999;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--accent);
    background-color: var(--light);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    padding: 5px 0;
    list-style: none;
    z-index: 100;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--dark);
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background-color: var(--light);
    color: var(--accent);
}

.nav-admin .admin-link {
    color: var(--danger);
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-cart {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
}

.nav-cart:hover {
    background-color: var(--primary);
    color: var(--white);
}

.nav-cart-count {
    background-color: var(--white);
    color: var(--accent);
    border-radius: 50%;
    padding: 1px 6px;
    font-size: 12px;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 25px;
    color: var(--gray);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--light);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: var(--gray);
    color: var(--white);
}

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

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 6px 15px;
    font-size: 13px;
}

/* ===== SECTIONS ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.view-all {
    color: var(--accent);
    font-weight: 500;
    font-size: 14px;
}

.view-all:hover {
    color: var(--primary);
}

/* ===== CATEGORIES ===== */
.categories-section {
    padding: 40px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 5px;
}

.product-count {
    font-size: 13px;
    color: var(--gray);
}

/* ===== PRODUCTS GRID ===== */
.products-section,
.discount-products {
    padding: 40px 0;
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--danger);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.product-info {
    padding: 15px;
}

.product-title {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 14px;
    min-height: 40px;
}

.product-title:hover {
    color: var(--accent);
}

.product-category {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
}

.btn-add-cart {
    width: 100%;
    padding: 8px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background-color: var(--primary);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.product-gallery .main-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--light);
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info-detail h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category-tag {
    background-color: var(--light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.stock-status {
    font-size: 14px;
    font-weight: 600;
}

.in-stock {
    color: var(--success);
}

.out-of-stock {
    color: var(--danger);
}

.product-prices-detail {
    margin: 20px 0;
}

.product-prices-detail .current-price {
    font-size: 32px;
}

.product-prices-detail .old-price {
    font-size: 20px;
    margin-left: 15px;
}

.save-price {
    display: block;
    color: var(--success);
    font-weight: 600;
    margin-top: 5px;
}

.product-description {
    margin: 20px 0;
}

.product-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.add-to-cart-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-btn {
    padding: 8px 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: var(--light);
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 2px solid var(--light);
    border-right: 2px solid var(--light);
    padding: 8px 0;
    font-size: 16px;
}

.btn-add-cart-detail {
    padding: 12px 30px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-add-cart-detail:hover {
    background-color: var(--primary);
}

.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

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

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--accent);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== CART ===== */
.cart-page {
    padding: 40px 0;
}

.cart-page h1 {
    font-size: 32px;
    margin-bottom: 30px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

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

.empty-cart h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--gray);
    margin-bottom: 20px;
}

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

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table th {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 15px;
    text-align: left;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--light);
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
}

.cart-product-name {
    font-weight: 500;
}

.cart-quantity .quantity-selector {
    display: inline-flex;
}

.cart-actions .btn-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 20px;
    cursor: pointer;
}

.cart-actions-bottom {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.cart-summary {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-self: start;
}

.cart-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid var(--light);
    margin-top: 10px;
}

.checkout-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    font-size: 16px;
}

/* ===== CHECKOUT ===== */
.checkout-page {
    padding: 40px 0;
}

.checkout-page h1 {
    font-size: 32px;
    margin-bottom: 30px;
}

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

.checkout-section {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.checkout-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
}

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

.form-text {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-top: 4px;
}

.address-option {
    margin-bottom: 15px;
}

.address-option input[type="checkbox"] {
    margin-right: 8px;
}

.address-select {
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-option input[type="radio"] {
    margin-right: 8px;
}

.order-summary {
    padding: 15px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.checkout-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* ===== AUTH PAGES ===== */
.auth-page {
    padding: 60px 0;
    min-height: 70vh;
}

.auth-container {
    max-width: 450px;
    margin: 0 auto;
}

.auth-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-box h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 25px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-size: 14px;
}

.remember-me,
.terms {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forgot-link {
    color: var(--accent);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light);
}

.demo-account {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--light);
    border-radius: var(--radius);
    font-size: 13px;
}

.demo-credentials {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

/* ===== ACCOUNT ===== */
.account-page {
    padding: 40px 0;
}

.account-page h1 {
    font-size: 32px;
    margin-bottom: 30px;
}

.account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.account-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.user-info {
    padding: 25px;
    text-align: center;
    background: var(--primary);
    color: var(--white);
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 10px;
}

.user-info h3 {
    font-size: 18px;
}

.user-info p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.account-nav {
    padding: 10px 0;
}

.account-nav a {
    display: block;
    padding: 12px 25px;
    color: var(--dark);
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.account-nav a:hover,
.account-nav a.active {
    background-color: var(--light);
    border-left-color: var(--accent);
    color: var(--accent);
}

.account-content {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.account-form {
    max-width: 500px;
}

/* ===== ORDERS ===== */
.orders-page {
    padding: 40px 0;
}

.orders-page h1 {
    font-size: 32px;
    margin-bottom: 30px;
}

.orders-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-hover);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light);
}

.order-card-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.order-number {
    font-weight: 700;
    font-size: 16px;
}

.order-date {
    font-size: 14px;
    color: var(--gray);
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-pending {
    background-color: var(--warning);
    color: var(--white);
}

.status-processing {
    background-color: var(--accent);
    color: var(--white);
}

.status-shipped {
    background-color: var(--primary);
    color: var(--white);
}

.status-delivered {
    background-color: var(--success);
    color: var(--white);
}

.status-cancelled {
    background-color: var(--danger);
    color: var(--white);
}

.payment-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.payment-pending {
    background-color: var(--warning);
    color: var(--white);
}

.payment-paid {
    background-color: var(--success);
    color: var(--white);
}

.payment-failed {
    background-color: var(--danger);
    color: var(--white);
}

.payment-refunded {
    background-color: var(--gray);
    color: var(--white);
}

.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.order-total {
    font-size: 18px;
    font-weight: 700;
}

.order-items-count {
    font-size: 14px;
    color: var(--gray);
}

/* ===== ORDER DETAIL ===== */
.order-detail-page {
    padding: 40px 0;
}

.order-header-detail {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.back-link {
    color: var(--accent);
    font-weight: 500;
}

.order-status-detail {
    display: flex;
    gap: 30px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.status-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray);
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.detail-section {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
}

.order-items-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid var(--light);
    font-size: 14px;
}

.order-items-table td {
    padding: 10px;
    border-bottom: 1px solid var(--light);
}

.order-summary-detail .summary-row {
    padding: 10px 0;
}

.address-detail p {
    margin-bottom: 5px;
}

/* ===== ADMIN HEADER IN FOOTER (Site footer) ===== */

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-text {
        display: none;
    }
    
    .top-bar-links a {
        margin-left: 10px;
        font-size: 12px;
    }
    
    .header-search {
        display: none;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .action-label {
        display: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-box {
        padding: 25px;
    }
    
    .product-detail {
        padding: 20px 0;
    }
    
    .cart-table {
        font-size: 13px;
    }
    
    .cart-product-image {
        width: 40px;
        height: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-title {
        font-size: 13px;
        min-height: 32px;
    }
    
    .current-price {
        font-size: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 2001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--light);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 700;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-links {
    list-style: none;
    padding: 10px 0;
}

.mobile-menu-links li a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    font-size: 15px;
    border-bottom: 1px solid var(--light);
}

.mobile-menu-links li a:hover {
    background-color: var(--light);
}

.mobile-cart-count {
    color: var(--gray);
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state .empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.empty-state h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* ===== CART NOTIFICATION ===== */
.cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 20px;
}

/* ===== LOADING ===== */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 40px;
}

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

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-column p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

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

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

.footer-links li a {
    color: var(--gray);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-payment {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.payment-icon {
    font-size: 28px;
    opacity: 0.7;
}

.footer-copyright {
    font-size: 13px;
    color: var(--gray);
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background-color: var(--accent);
    color: var(--white);
}

.badge-success {
    background-color: var(--success);
    color: var(--white);
}

.badge-danger {
    background-color: var(--danger);
    color: var(--white);
}

.badge-warning {
    background-color: var(--warning);
    color: var(--white);
}

/* ===== RESPONSIVE TABLES ===== */
.table-responsive {
    overflow-x: auto;
}

/* ===== MISC ===== */
.text-center {
    text-align: center;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.required {
    color: var(--danger);
}

.required:after {
    content: ' *';
}