/* ========================================
   KB Stores - Main Stylesheet
   ======================================== */

/* ===== CSS Variables ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    color: var(--primary-dark);
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ===== Top Bar ===== */
.top-bar {
    background: var(--dark);
    color: var(--white);
    font-size: 0.875rem;
    padding: 8px 0;
}

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

.top-bar a {
    color: var(--gray-300);
    margin-left: 16px;
}

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

/* ===== Header ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

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

.header-search form {
    display: flex;
}

.header-search input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.header-search input:focus {
    border-color: var(--primary);
}

.header-search button {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

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

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

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.75rem;
    position: relative;
}

.header-action:hover {
    color: var(--primary);
}

.header-action .icon {
    font-size: 1.5rem;
    line-height: 1;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== Navigation ===== */
.main-nav {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.main-nav .container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    padding: 12px 20px;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-image {
    text-align: center;
    font-size: 12rem;
    opacity: 0.8;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
    line-height: 1.2;
}

.btn:hover {
    transform: translateY(-1px);
}

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

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

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

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

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

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

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

.btn-success:hover {
    background: #059669;
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray-500);
    margin-top: 8px;
    font-size: 1.05rem;
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

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

.product-card-image {
    height: 240px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-image .placeholder-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
    line-height: 1.3;
}

.product-card-title a {
    color: inherit;
}

.product-card-title a:hover {
    color: var(--primary);
}

.product-card-price {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

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

.compare-price {
    font-size: 0.95rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

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

.product-card-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.85rem;
}

/* ===== Categories Section ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== Product Detail Page ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin: 40px 0;
}

.product-detail-image {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    min-height: 400px;
}

.product-detail-image img {
    max-height: 400px;
    object-fit: contain;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.product-detail-info .category-link {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: block;
}

.product-detail-price {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.product-detail-price .current-price {
    font-size: 2rem;
}

.product-detail-price .compare-price {
    font-size: 1.25rem;
}

.product-description {
    margin: 24px 0;
    color: var(--gray-600);
    line-height: 1.8;
}

.product-meta {
    display: flex;
    gap: 32px;
    margin: 16px 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 20px 0;
}

.quantity-selector button {
    width: 44px;
    height: 44px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button:hover {
    background: var(--gray-100);
}

.quantity-selector input {
    width: 70px;
    height: 44px;
    text-align: center;
    border: 2px solid var(--gray-200);
    border-left: none;
    border-right: none;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== Cart Page ===== */
.cart-page {
    margin: 40px 0;
}

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

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-details h3 a {
    color: var(--gray-900);
}

.cart-item-price {
    font-weight: 600;
    color: var(--gray-600);
}

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

.cart-item-actions .qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-actions .qty-btn:hover {
    background: var(--gray-100);
}

.cart-item-actions .item-total {
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}

.remove-item {
    color: var(--danger);
    font-size: 0.85rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.remove-item:hover {
    text-decoration: underline;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

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

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 2px solid var(--gray-200);
    margin-top: 8px;
    padding-top: 16px;
    color: var(--primary);
}

.summary-row .label {
    color: var(--gray-500);
}

.summary-row .value {
    font-weight: 600;
}

.cart-summary .btn {
    margin-top: 16px;
}

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

.cart-empty .empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty h2 {
    margin-bottom: 8px;
}

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

/* ===== Checkout Page ===== */
.checkout-page {
    margin: 40px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.checkout-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

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

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

.form-group .error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-group input.error-input {
    border-color: var(--danger);
}

/* ===== Order Confirmation ===== */
.order-confirmation {
    text-align: center;
    padding: 80px 20px;
}

.confirmation-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.order-confirmation h1 {
    margin-bottom: 8px;
}

.order-confirmation p {
    color: var(--gray-500);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.order-number {
    background: var(--primary-light);
    color: var(--primary);
    padding: 16px 32px;
    border-radius: var(--radius);
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 24px;
}

/* ===== Admin Styles ===== */
.admin-body {
    background: var(--gray-100);
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--dark);
    color: var(--white);
    padding: 24px 0;
}

.admin-sidebar .logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.admin-sidebar .logo a {
    color: var(--white);
}

.admin-nav {
    list-style: none;
}

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray-300);
    transition: var(--transition);
    font-size: 0.9rem;
}

.admin-nav li a:hover,
.admin-nav li a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.admin-nav li a .nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.admin-main {
    padding: 32px;
}

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

.admin-header h1 {
    font-size: 1.75rem;
    margin: 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-card.primary .stat-value { color: var(--primary); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--danger); }

/* ===== Tables ===== */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.table-container .table-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-container .table-header h3 {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

table tr:hover td {
    background: var(--gray-50);
}

table tr:last-child td {
    border-bottom: none;
}

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: var(--gray-200); color: var(--gray-600); }

/* ===== Login Page ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
}

.login-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 8px;
}

.login-box p {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 32px;
}

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

.login-box .btn {
    width: 100%;
}

/* ===== Alerts ===== */
.alert {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

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

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

.breadcrumb .separator {
    color: var(--gray-300);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 60px 0 0;
    margin-top: auto;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image { display: none; }
    .btn-group { justify-content: center; }
    .product-detail { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 200px 1fr; }
    .site-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-search { display: none; }
    .main-nav { display: none; }
    .cart-layout { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2rem; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .site-footer .container { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 80px 1fr; }
    .cart-item-image { width: 80px; height: 80px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .container { padding: 0 12px; }
    h1 { font-size: 1.75rem; }
}
