:root {
    /* Color Variables */
    --primary-bg: #FEFAE0;       /* Light cream for body */
    --secondary-bg: #FFFFFF;     /* White for sections */
    --text-dark: #333333;        /* Main text */
    --text-light: #FFFFFF;       /* Text on dark backgrounds */
    --accent: #D4A373;           /* Warm gold for buttons/highlights */
    --accent-hover: #B68A5C;     /* Darker gold for hover */
    --border-color: #DCDCDC;     /* Light gray for borders */
    --success-bg: #2E7D32;       /* Green for success alerts */
    --success-border: #1B5E20;   /* Darker green for borders */
    --error-bg: #D32F2F;         /* Red for error alerts */
    --error-border: #B71C1C;     /* Darker red for borders */
    --newsletter-bg: #acb3db;    /* Light green for newsletter */
    --telegram-bg: #1977ad;      /* telegram green */
    --telegram-hover: #0aabdb;   /* telegram hover */
    --disabled-color: #999999;   /* Disabled elements */
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Unified shadow */

    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* Layout */
    --container-width: 1280px;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--primary-bg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

main {
    flex: 1;
    width: 100%;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

.logo{
    width: 300px;
    height: auto;
}

section {
    padding: 80px 0;
    width: 100%;
    overflow-x: hidden;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
    text-align: center;
}

.mt-5 {
    margin-top: 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
}

h1 { font-size: 48px; line-height: 1.2; }
h2 { font-size: 36px; line-height: 1.3; }
h3 { font-size: 24px; line-height: 1.4; }
h4 { font-size: 18px; line-height: 1.5; }

.font-playfair {
    font-family: var(--font-display);
}

/* Buttons */
.btn, .btn-primary, .btn-glow {
    background: var(--accent);
    color: var(--text-light);
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-weight: 600;
    transition: background var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover, .btn-glow:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 15px rgba(212, 163, 115, 0.5);
}

.btn-secondary {
    background: var(--secondary-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-weight: 500;
    transition: all var(--transition-speed);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--text-light);
    border-color: var(--accent);
}

button:disabled {
    background: var(--disabled-color);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Alerts */
.alert {
    padding: 15px 24px;
    margin: 16px auto;
    max-width: 600px;
    border-radius: var(--border-radius);
    position: relative;
    font-family: var(--font-main);
    transition: opacity 0.5s ease-out;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success {
    background: var(--success-bg);
    color: var(--text-light);
    border: 1px solid var(--success-border);
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.5);
}

.alert-error, .alert-danger {
    background: var(--error-bg);
    color: var(--text-light);
    border: 1px solid var(--error-border);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.5);
}

.alert .close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-light);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    transition: color var(--transition-speed);
}

.alert .close:hover,
.alert .close:focus-visible {
    color: var(--accent-hover);
    outline: none;
}

.alert.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s;
}

/* Search Results - Added for app.js search functionality */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: background var(--transition-speed);
}

.result-item:hover {
    background: var(--accent);
    color: var(--text-light);
}

.result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 0.75rem;
}

.result-item span {
    font-size: 14px;
}

/* Quick View Modal - Added for app.js quick view functionality */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.quick-view-image img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.quick-view-details {
    flex: 1;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color var(--transition-speed);
}

.close-modal:hover,
.close-modal:focus-visible {
    color: var(--accent);
    outline: none;
}

/* Spinner - Added for loading states in app.js */
.fa-spinner {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Header */
.site-header {
    background: var(--secondary-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--card-shadow);
    background-color: #FDF7EC;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
    
}

.logo-center a {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--text-dark);
    text-decoration: none;
}

.header-actions-left,
.header-actions-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-link:hover {
    color: var(--accent);
}

.icon-link {
    color: var(--text-dark);
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: color var(--transition-speed);
}

.icon-link:hover {
    color: var(--accent);
}

.cart-count {
    background: var(--accent);
    color: var(--text-light);
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    font-family: var(--font-main);
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 20px;
    text-align: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark); /* Adjusted for visibility */
    cursor: pointer;
    padding: 0.5rem;
    /* position: absolute; */
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

.sidebar.collapsed {
    transform: translateX(-100%);
    width: 0;
    padding: 0;
    overflow: hidden;
}

.sidebar.active {
    transform: translateX(0);
    width: 250px;
}

.menu-toggle:active {
    transform: scale(0.95);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    background: var(--secondary-bg);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav a,
.mobile-nav form {
    color: var(--text-dark);
    text-decoration: none;
    padding: 12px 0;
    font-family: var(--font-main);
    font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav form button:hover {
    background: var(--accent);
    color: var(--text-light);
    border-radius: var(--border-radius);
}

/* Search Bar */
.header-actions-right form,
.mobile-nav form {
    position: relative;
}

.header-actions-right input,
.mobile-nav input {
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 14px;
    width: 200px;
    transition: border-color var(--transition-speed);
}

.header-actions-right input:focus,
.mobile-nav input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(212, 163, 115, 0.3);
}

.header-actions-right button,
.mobile-nav button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
}

.header-actions-right button:hover,
.mobile-nav button:hover {
    color: var(--accent-hover);
}

/* Guest Header */
.guest-header {
    background: var(--accent);
    padding: 24px 0;
    text-align: center;
}

.guest-header .logo-center a {
    font-size: 32px;
    color: var(--text-light);
}

/* Sidebar (Admin) */
.sidebar {
    width: 250px;
    background: var(--accent);
    color: var(--text-light);
    padding: 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform var(--transition-speed), width var(--transition-speed);
    overflow-y: auto;
}

.sidebar-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand i {
    font-size: 1.75rem;
    color: var(--text-light);
}

.sidebar-menu {
    padding: 1.5rem 0;
}

.menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem 0.75rem 0;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-speed);
    gap: 15px;
}

.menu-item:hover, .menu-item.active {
    background: var(--accent-hover);
}

.menu-item i {
    width: 24px;
    margin-right: 0.75rem;
    text-align: center;
}

/* Main Content (Admin) */
.main-content {
    margin-left: 250px;
    padding: 1.5rem;

    background: var(--primary-bg);
    min-height: 100vh;
    width: calc(100% - 250px);
    transition: margin-left var(--transition-speed), width var(--transition-speed);
    overflow-x: hidden;
}

/* Payment Process Form */
.payment-process-form {
    display: inline-flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-left: 0.75rem;
}

.payment-process-form .form-control {
    width: 150px;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.payment-process-form textarea.form-control {
    min-height: 60px;
    resize: vertical;
}

.payment-process-form .btn-glow {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Refine Admin Form */
.admin-form {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-title {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.stat-link {
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-link:hover {
    color: var(--accent-hover);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-button {
    background: var(--accent);
    color: var(--text-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.action-button i {
    font-size: 1.25rem;
}

/* Activity Grid */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.activity-card {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 600;
    color: var(--text-dark);
}

.view-all {
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* Tables */
.table-container {
    overflow-x: auto;
    max-width: 100%;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    white-space: nowrap;
}

th {
    background: var(--accent);
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

td {
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-failed {
    background: #FEE2E2;
    color: #991B1B;
}

.action-link {
    color: var(--accent);
    text-decoration: none;
    margin-right: 0.75rem;
}

.action-link:hover {
    text-decoration: underline;
}

.action-link.delete {
    color: var(--error-bg);
}

/* Hero Section */
.hero {
    background: url('/assets/img/hero.webp') no-repeat center center/cover;
    min-height: 80vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 24px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
}

/* Enhanced Product Grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    min-height: 200px;
    width: 100%;
}

/* Product Card */
.product-card {
    flex: 0 0 calc(33.333% - 0.67rem);
    max-width: 300px;
    min-width: 280px;
    border: 1px solid var(--accent);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    background: var(--secondary-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow var(--transition-speed);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    max-height: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: block;
}

.product-card h3 {
    font-family: var(--font-main);
    font-size: 1.25rem;
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.product-card img {
    width: 100%;
    max-height: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
}

.product-card .price {
    font-size: 18px;
    color: var(--accent);
    font-weight: 600;
    margin: 0.25rem 0;
}

.product-card .sku {
    font-size: 12px;
    color: #666;
    margin: 0.25rem 0;
}

.product-card .cart-item-total {
    font-weight: 600;
    margin: 0.25rem 0;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.quantity-input {
    width: 80px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    transition: border-color var(--transition-speed);
}

.quantity-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(212, 163, 115, 0.3);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--accent);
    color: var(--text-light); /* Changed to --text-light for consistency */
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.product-badge.sale {
    background: var(--error-bg); /* Fixed: Replaced --error with --error-bg */
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.cart-item {
    display: flex;
    align-items: center;
    background: var(--secondary-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    position: relative; /* Fixed typo: realtive -> relative */
    overflow: hidden;
}

.cart-item-image, .cart-product-image { /* Added .cart-item-image to match cart.blade.php */
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    margin-right: 1rem;
    display: block;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-title {
    font-size: 20px;
    color: var(--text-dark);
    text-decoration: none;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 600;
}

.cart-item-total {
    font-weight: 600;
}

.remove-item-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--error-bg);
    cursor: pointer;
    transition: color var(--transition-speed);
}

.remove-item-btn:hover,
.remove-item-btn:focus-visible {
    color: var(--error-border);
    outline: none;
}

.cart-summary {
    background: var(--secondary-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    height: fit-content;
    text-align: right;
}

.cart-summary h3 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.summary-row .shipping { /* Added for app.js shipping cost display */
    color: var(--text-dark);
    font-weight: 500;
}

.summary-row.total {
    font-weight: 600;
    font-size: 18px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    margin-top: 16px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.crypto-address {
    background: var(--secondary-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-family: monospace;
    word-break: break-all;
    color: var(--text-dark);
}

.divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

.quantity-selector-small {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}

.quantity-selector-small input {
    width: 60px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
}

.quantity-selector-small .btn-secondary {
    padding: 0.25rem 0.5rem;
    background: var(--accent);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-to-cart-form .btn-primary,
.add-to-cart-form .btn-secondary {
    width: 100%;
    padding: 10px;
}

/* Sorting Controls */
.sort-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.sort-controls select {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 14px;
    background: var(--secondary-bg);
    color: var(--text-dark);
    transition: border-color var(--transition-speed);
}

.sort-controls select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Pagination */
nav.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 32px 0;
    flex-wrap: wrap;
}

nav.pagination a,
nav.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--accent);
    background: var(--secondary-bg);
    transition: all var(--transition-speed);
}

nav.pagination a:hover {
    background: var(--accent);
    color: var(--text-light);
    border-color: var(--accent);
}

nav.pagination span.current {
    background: var(--accent);
    color: var(--text-light);
    border-color: var(--accent);
    font-weight: 600;
    cursor: default;
}

nav.pagination span.disabled {
    color: var(--disabled-color);
    border-color: var(--border-color);
    background: var(--secondary-bg);
    cursor: not-allowed;
    opacity: 0.6;
}

nav.pagination a[aria-label="Previous"],
nav.pagination a[aria-label="Next"] {
    min-width: auto;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Categories */
.categories-section {
    background: var(--secondary-bg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.category-item {
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform var(--transition-speed);
}

.category-item:hover {
    transform: translateY(-8px);
}

.category-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.category-item h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.category-item p {
    font-size: 14px;
    color: #666;
}

/* About Section */
.about-section {
    background: url('/assets/img/about.webp') no-repeat center center/cover;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 36px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Testimonials */
.testimonials-section {
    background: var(--primary-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-item {
    background: var(--secondary-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
}

.testimonial-item p {
    font-style: italic;
    color: #666;
    margin-bottom: 16px;
}

.testimonial-item .stars {
    color: var(--accent);
    font-size: 14px;
}

/* Newsletter */
.newsletter-section {
    background: var(--newsletter-bg);
    text-align: center;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    flex: 1;
}

.newsletter-form button {
    padding: 12px 24px;
}

/* Product Details */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
    align-items: start;
}

.product-image {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.product-image img {
    width: 100%;
    max-height: 300px;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    display: block;
}

.product-info {
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-info .price {
    font-size: 28px;
    color: var(--accent);
    font-weight: 600;
}

.product-info .sku,
.product-info .stock-info {
    font-size: 14px;
    color: #666;
    margin: 12px 0;
}

.product-description {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.product-details .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
}

.product-details .product-badge.sale {
    background: var(--error-bg);
    top: 40px;
}

/* About Us Hero Section */
.about-hero {
    background: url('/assets/img/hero.webp') no-repeat center center/cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.about-hero .hero-content {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    padding: 2rem;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-hero .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Our Story Section */
.our-story .story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.our-story .story-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.our-story .story-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
}

.our-story .story-image img:hover {
    transform: scale(1.02);
}

/* Mission & Values Section */
.our-mission .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Team Section */
.our-team .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member .team-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-member h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.team-member .team-role {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.team-member p {
    font-size: 0.85rem;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: var(--newsletter-bg);
    padding: 3rem 0;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section .newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.recommend-section {
    padding: 3rem 0;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-top: 2rem;
}

.recommend-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.recommend-section .section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

.recommend-section .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.recommend-section .product-card {
    position: relative;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: var(--card-shadow);
}

.recommend-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.recommend-section .product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recommend-section .product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
}

.recommend-section .product-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recommend-section .product-card h3 {
    font-size: 1.1rem;
    font-family: var(--font-main);
    color: var(--text-dark);
    margin: 0;
}

.recommend-section .product-card .sku {
    font-size: 0.85rem;
    color: #666;
}

.recommend-section .product-card .price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.recommend-section .quantity-selector-small {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 0.75rem 0;
}

.recommend-section .quantity-selector-small .quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    font-family: var(--font-main);
}

.recommend-section .quantity-selector-small .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Contact Hero Section */
.contact-hero {
    background: url('/assets/img/shroom7.jpg') no-repeat center center/cover;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.contact-hero .hero-content {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    padding: 2rem;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-hero .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
    align-items: start;
}

/* Contact Form */
.contact-form-inner {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.contact-form-inner .form-group {
    margin-bottom: 1.5rem;
}

.contact-form-inner label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form-inner input,
.contact-form-inner textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form-inner input:focus,
.contact-form-inner textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(212, 163, 115, 0.3);
    outline: none;
}

.contact-form-inner textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-inner .error {
    color: var(--error-bg);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

.contact-form-inner .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Contact Details */
.contact-details {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.contact-info-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-info-item span,
.contact-info-item a {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.contact-info-item a {
    text-decoration: none;
    transition: color var(--transition-speed);
}

.contact-info-item a:hover {
    color: var(--accent);
}

.contact-social {
    margin-top: 2rem;
    text-align: center;
}

.contact-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-social .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-social .social-links a {
    font-size: 1.5rem;
    color: var(--accent);
    transition: color var(--transition-speed);
}

.contact-social .social-links a:hover {
    color: var(--accent-hover);
}

/* Map Section */
.contact-map {
    padding: 3rem 0;
    text-align: center;
}

.contact-map .map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-top: 1.5rem;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}


/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 0;
}

.empty-cart h2 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.empty-cart p {
    color: #666;
    margin-bottom: 24px;
}

/* Checkout Form */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px 0;
}

.checkout-form {
    background: var(--secondary-bg);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 14px;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(212, 163, 115, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.payment-methods {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-method {
    flex: 1;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.payment-method.selected {
    border-color: var(--accent);
    background: rgba(212, 163, 115, 0.1);
}

.payment-method:hover {
    border-color: var(--accent);
}

.payment-method i {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 8px;
}

.payment-method span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

/* Order Summary */
.order-summary {
    background: var(--secondary-bg);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    height: fit-content;
}

.order-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 16px;
}

.order-item-details {
    flex: 1;
}

.order-item-title {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.order-item-quantity {
    font-size: 12px;
    color: #666;
}

.order-item-price {
    font-weight: 600;
    color: var(--accent);
}

/* telegram Button */
.telegram-btn {
    background: var(--telegram-bg);
    color: var(--text-light);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.telegram-btn:hover {
    background: var(--telegram-hover);
}

.telegram-btn i {
    font-size: 18px;
}

.telegram {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
}

.telegram-button {
    background: var(--telegram-bg);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--card-shadow);
    font-size: 16px;
}

.telegram-button:hover {
    background: var(--telegram-hover);
}

/* Footer */
.site-footer {
    background: var(--accent);
    color: var(--text-light);
    padding: 80px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.footer-column h4 {
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
}

.footer-column ul li a:hover {
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.social-links a {
    color: var(--text-light);
    margin-right: 16px;
    font-size: 20px;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 24px 0;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--text-dark);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs span {
    color: #666;
}

/* Auth Forms */
.page.login,
.page.signup,
.page.forgot-password,
.page.reset-password,
.page.verify-email {
    max-width: 500px;
    margin: 48px auto;
    padding: 24px;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
}

.form-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.form-group .error {
    color: var(--error-bg);
    font-size: 12px;
    margin-top: 8px;
    display: block;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me input {
    margin-right: 8px;
}

.form-options a {
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
}

.form-options a:hover {
    text-decoration: underline;
}

.extra-link a {
    color: var(--accent);
    text-decoration: none;
}

.extra-link a:hover {
    text-decoration: underline;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

/* Admin Forms */
.admin-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

     .recommend-section .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .recommend-section .product-image {
        height: 120px;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        flex-wrap: wrap;
    }
    
    .product-card {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
     .our-story .story-grid {
        grid-template-columns: 1fr;
    }

    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-hero .hero-subtitle {
        font-size: 1.1rem;
    }

}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 0;
    }
    
    .header-actions-left,
    .nav-link.hidden.md\:block,
    .header-actions-right .nav-link,
    .hidden.md\:flex {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-actions-right input {
        width: 100%;
    }
    
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }
    
    .hero {
        min-height: 60vh;
        padding: 24px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .product-grid {
        gap: 24px;
    }

    .product-card {
        flex: 1 1 calc(50% - 24px);
        max-width: calc(50% - 24px);
        min-height: 360px;
    }

    .product-image,
    .product-card img {
        max-height: 150px;
        height: auto;
    }

    .quantity-selector-small {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-selector-small input {
        width: 100%;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

        .recommend-section {
        padding: 2rem 0;
    }

    .recommend-section h2 {
        font-size: 1.75rem;
    }

    .recommend-section .section-subtitle {
        font-size: 1rem;
    }

    .recommend-section .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .recommend-section .product-image {
        height: 100px;
    }

    .recommend-section .product-card h3 {
        font-size: 1rem;
    }

    .recommend-section .product-card .price {
        font-size: 0.9rem;
    }

    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .quantity-input {
        width: 100%;
    }
    
    .add-to-cart-form .btn-primary {
        width: 100%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-text h2 {
        font-size: 28px;
    }

    .contact-hero {
        min-height: 40vh;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-hero .hero-subtitle {
        font-size: 1rem;
    }

    .contact-form-inner,
    .contact-details {
        padding: 1.5rem;
    }

    .contact-map iframe {
        height: 300px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .category-item img {
        height: 200px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 16px;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .product-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .product-image,
    .product-image img {
        max-height: 250px;
        height: auto;
    }
    
    .product-description {
        max-height: 200px;
    }
    
    .payment-process-form {
        margin-left: 0;
        width: 100%;
    }

    .payment-process-form .form-control {
        width: 100%;
    }

    .admin-form {
        padding: 1.5rem;
    }

    .cart-items {
        flex-direction: column;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .cart-item-image, .cart-product-image {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .cart-item-details {
        margin-left: 0;
    }

    .remove-item-btn {
        position: static;
        margin-top: 0.5rem;
    }
    
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .quick-view-content {
        flex-direction: column;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .quick-view-image img {
        max-width: 100%;
    }
    
    .sidebar {
        width: 250px;
        transform: translateX(-100%);
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
        width: 0;
        padding: 0;
    }

    .sidebar.active {
        transform: translateX(0);
    }
    
    /* .sidebar-brand span, .menu-item span, .menu-title {
        display: block;
    } */
    
    .sidebar-brand i, .menu-item i {
        margin-right: 0;
        font-size: 1.5rem;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
        padding-top: 0.5rem;
    }
    .toggle-edit{
        margin-top: 16px;
        margin-left: 18px;
    }

    .h1-edit{
        margin-bottom: 16px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    th, td {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .about-hero {
        min-height: 50vh;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero .hero-subtitle {
        font-size: 1rem;
    }

    .our-story .story-image img {
        max-height: 300px;
    }

    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .value-card,
    .team-member {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .product-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-image,
    .product-card img {
        max-height: 180px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

     .contact-hero h1 {
        font-size: 1.75rem;
    }

    .contact-hero .hero-subtitle {
        font-size: 0.9rem;
    }

    .contact-form-inner,
    .contact-details {
        padding: 1rem;
    }


    .contact-form-inner .btn-primary {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .contact-map iframe {
        height: 250px;
    }
    
    .main-content {
        padding: 0.75rem;
    }

    .admin-form {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 48px 0;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-form,
    .order-summary {
        padding: 16px;
    }
    
    .btn, .btn-primary, .btn-glow {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .alert {
        padding: 12px 16px;
        font-size: 14px;
    }
    .about-hero h1 {
        font-size: 1.75rem;
    }

    .about-hero .hero-subtitle {
        font-size: 0.9rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .our-story .story-image img {
        max-height: 250px;
    }

     .recommend-section .product-grid {
        grid-template-columns: 1fr;
    }

    .recommend-section .product-card {
        max-width: 300px;
        margin: 0 auto;
    }

    .recommend-section .product-image {
        height: 150px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .btn,
    .alert {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .product-card,
    .stat-card,
    .activity-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .contact-info-item a,
    .contact-social .social-links a {
        transition: none;
    }
    .recommend-section .product-card:hover {
        transform: none;
        box-shadow: var(--card-shadow);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-bg: #FFFFFF;
        --secondary-bg: #FFFFFF;
        --text-dark: #000000;
        --text-light: #FFFFFF;
        --accent: #000000;
        --accent-hover: #333333;
        --border-color: #000000;
    }

      .contact-form-inner,
    .contact-details {
        background: var(--secondary-bg);
        border: 1px solid var(--border-color);
    }

    .contact-info-item i,
    .contact-social .social-links a {
        color: var(--accent);
    }

    .recommend-section .product-card {
        border: 2px solid var(--border-color);
    }

    .recommend-section .product-card .price {
        color: var(--accent);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-bg: #1A1A1A;
        --secondary-bg: #2D2D2D;
        --text-dark: #FFFFFF;
        --text-light: #FFFFFF;
        --accent: #D4A373;
        --accent-hover: #B68A5C;
        --border-color: #404040;
        --newsletter-bg: #2A4A2A;
        --success-bg: #2E7D32; /* Ensure consistency */
        --error-bg: #D32F2F;   /* Ensure consistency */
    }
    
    .alert-success {
        background: var(--success-bg);
        color: var(--text-light);
        border: 1px solid var(--success-border);
    }
    
    .alert-error, .alert-danger {
        background: var(--error-bg);
        color: var(--text-light);
        border: 1px solid var(--error-border);
    }
    
    .hero::before {
        background: rgba(0, 0, 0, 0.7);
    }

    .value-card,
    .team-member {
        background: var(--secondary-bg);
    }

    .value-card p,
    .team-member p {
        color: #B0B0B0;
    }

    .team-member .team-role {
        color: var(--accent);
    }

    .cta-section {
        background: var(--newsletter-bg);
    }

    .contact-form-inner,
    .contact-details {
        background: var(--secondary-bg);
    }

    .contact-info-item span,
    .contact-info-item a {
        color: #B0B0B0;
    }

    .contact-info-item a:hover {
        color: var(--accent);
    }

    .contact-social .social-links a {
        color: var(--accent);
    }

    .contact-social .social-links a:hover {
        color: var(--accent-hover);
    } .recommend-section {
        background: var(--secondary-bg);
    }

    .recommend-section .product-card {
        background: var(--primary-bg);
        border-color: var(--border-color);
    }

    .recommend-section .product-card h3,
    .recommend-section .product-card .sku {
        color: #B0B0B0;
    }

    .recommend-section .product-card .price {
        color: var(--accent);
    }
}
/* Auth Hero Section */
.auth-hero {
    background: url('/assets/img/auth-hero.webp') no-repeat center center/cover;
    min-height: 20vh; /* Further reduced for immediate form visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.auth-hero .hero-content {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    padding: 1rem;
}

.auth-hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-hero .hero-subtitle {
    font-size: 0.9rem;
    font-family: var(--font-main);
}

/* Auth Section */
.auth-section {
    padding: 1.5rem 0; /* Reduced padding for compact layout */
}

.auth-form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--secondary-bg);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    position: relative;
}

/* Unique Feature: Glowing Vine Border */
.vine-border {
    border: 2px dashed var(--accent);
    animation: vine-grow 3s linear infinite;
    background: var(--secondary-bg);
}

@keyframes vine-grow {
    0% {
        border-image: linear-gradient(to right, var(--accent) 50%, transparent 50%) 1;
        border-image-slice: 1;
    }
    25% {
        border-image: linear-gradient(to bottom, var(--accent) 50%, transparent 50%) 1;
    }
    50% {
        border-image: linear-gradient(to left, var(--accent) 50%, transparent 50%) 1;
    }
    75% {
        border-image: linear-gradient(to top, var(--accent) 50%, transparent 50%) 1;
    }
    100% {
        border-image: linear-gradient(to right, var(--accent) 50%, transparent 50%) 1;
    }
}

.form-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 0.6rem 2.25rem 0.6rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(212, 163, 115, 0.3);
    outline: none;
}

.input-icon {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 0.85rem;
}

.password-toggle {
    cursor: pointer;
    color: #666;
    transition: color var(--transition-speed);
}

.password-toggle:hover {
    color: var(--accent);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.remember-me input {
    width: auto;
}

.remember-me label {
    font-size: 0.8rem;
    color: var(--text-dark);
}

.form-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition-speed);
}

.form-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.extra-link {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.alert {
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.alert .close {
    font-size: 0.9rem;
    cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .auth-hero {
        min-height: 15vh;
    }

    .auth-hero h1 {
        font-size: 1.5rem;
    }

    .auth-hero .hero-subtitle {
        font-size: 0.85rem;
    }

    .auth-form {
        padding: 1rem;
    }

    .auth-section {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .auth-hero {
        min-height: 12vh;
    }

    .auth-hero h1 {
        font-size: 1.25rem;
    }

    .auth-hero .hero-subtitle {
        font-size: 0.8rem;
    }

    .auth-form {
        padding: 0.75rem;
    }

    .form-group input {
        padding: 0.5rem 2rem 0.5rem 0.5rem;
        font-size: 0.85rem;
    }

    .auth-form .btn-primary {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .auth-form {
        background: var(--secondary-bg);
    }

    .form-group label,
    .remember-me label,
    .extra-link {
        color: #B0B0B0;
    }

    .form-group input {
        background: var(--primary-bg);
        color: var(--text-light);
        border-color: var(--border-color);
    }

    .input-icon,
    .password-toggle {
        color: var(--accent);
    }

    .password-toggle:hover {
        color: var(--accent-hover);
    }

    .vine-border {
        background: var(--secondary-bg);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .form-link,
    .password-toggle,
    .vine-border {
        animation: none;
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .auth-form {
        border: 2px solid var(--border-color);
    }

    .form-group input {
        border: 2px solid var(--border-color);
    }

    .form-link,
    .password-toggle {
        color: var(--accent);
    }
}

/* Fade-out for Alerts */
.alert.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}