/* Value-bazar - Main Stylesheet */

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    /* Primary Colors - Navy Blue from Logo */
    --teal-50: #eef1f8;
    --teal-100: #d5dbed;
    --teal-200: #aab7db;
    --teal-300: #7489bf;
    --teal-400: #4a63a3;
    --teal-500: #2a4480;
    --teal-600: #1b2d5b;
    --teal-700: #16254d;
    --teal-800: #111d3e;
    --teal-900: #0c1530;

    /* Orange Accent from Logo */
    --orange-400: #f59e42;
    --orange-500: #e87b0c;
    --orange-600: #d06a00;

    /* Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Other Colors */
    --white: #ffffff;
    --black: #000000;
    --red-500: #ef4444;
    --green-500: #22c55e;
    --blue-500: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --rounded: 0.25rem;
    --rounded-md: 0.375rem;
    --rounded-lg: 0.5rem;
    --rounded-xl: 0.75rem;
    --rounded-2xl: 1rem;
    --rounded-full: 9999px;

    /* Transitions */
    --transition: all 0.15s ease-in-out;
    --transition-slow: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navbar Logo - matches React design (h-8 md:h-10) */
.nav-logo {
    height: 32px;
    width: auto;
}

@media (min-width: 768px) {
    .nav-logo {
        height: 40px;
    }
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--rounded-full);
    background: var(--gray-50);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--teal-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27, 45, 91, 0.15);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    width: 1.25rem;
    height: 1.25rem;
}

/* Categories Dropdown */
.categories-dropdown {
    position: relative;
}

.categories-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--rounded-lg);
    transition: var(--transition);
}

.categories-btn:hover {
    background: var(--gray-100);
    color: var(--teal-600);
}

.categories-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 50;
}

.categories-dropdown:hover .categories-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-menu a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    transition: var(--transition);
}

.categories-menu a:hover {
    background: var(--teal-50);
    color: var(--teal-600);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-btn {
    position: relative;
    padding: 0.5rem;
    color: var(--gray-600);
    border-radius: var(--rounded-lg);
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--gray-100);
    color: var(--teal-600);
}

.cart-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--teal-600);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 600;
    min-width: 1.125rem;
    height: 1.125rem;
    border-radius: var(--rounded-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-700) 100%);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--rounded-lg);
    transition: var(--transition);
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-800) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-800) 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content {
    flex: 1;
    color: var(--white);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--orange-500);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--rounded-lg);
    transition: var(--transition);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-cards {
    display: flex;
    gap: 1rem;
}

.promo-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--rounded-xl);
    padding: 1.5rem;
    color: var(--white);
    text-align: center;
    min-width: 120px;
}

.promo-card-large {
    background: var(--white);
    color: var(--teal-600);
    padding: 2rem;
}

.promo-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.promo-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* ============================================
   CATEGORY FILTERS
   ============================================ */
.category-filters {
    padding: 1.5rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.filters-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filters-container::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--rounded-full);
    white-space: nowrap;
    transition: var(--transition);
}

.filter-pill:hover {
    border-color: var(--teal-500);
    color: var(--teal-600);
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-700) 100%);
    border-color: var(--teal-600);
    color: var(--white);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: 2rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

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

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--rounded-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.product-image-container {
    position: relative;
    padding: 1rem;
    background: var(--gray-50);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: var(--transition-slow);
}

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

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: var(--rounded);
    text-transform: uppercase;
}

.badge-cashback {
    background: var(--orange-500);
    color: var(--white);
}

.badge-savings {
    background: var(--teal-500);
    color: var(--white);
}

.product-info {
    padding: 1rem;
}

.product-category {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a:hover {
    color: var(--teal-600);
}

.product-prices {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

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

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

.product-unit {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.qty-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--rounded-lg);
    color: var(--gray-700);
    font-size: 1.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--teal-100);
    color: var(--teal-700);
}

.qty-value {
    font-size: 1rem;
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--rounded-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--orange-600) 0%, #b85c00 100%);
    transform: translateY(-1px);
}

.add-to-cart-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

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

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

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
    background: var(--white);
    border-radius: var(--rounded-xl);
    margin-bottom: 2rem;
}

.product-detail-image {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--rounded-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-detail-info {
    padding: 2rem;
}

.product-detail-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.product-detail-prices {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

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

.product-features {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--rounded-lg);
}

.product-features h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.feature-item svg {
    color: var(--teal-600);
    width: 1.25rem;
    height: 1.25rem;
}

/* ============================================
   AUTH MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--rounded-xl);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    padding: 0.5rem;
    color: var(--gray-400);
    border-radius: var(--rounded-lg);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal-body {
    padding: 1.5rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--teal-600);
    border-bottom-color: var(--teal-600);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--rounded-lg);
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(27, 45, 91, 0.15);
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-700) 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--rounded-lg);
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-800) 100%);
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 200;
    transform: translateX(100%);
    transition: var(--transition-slow);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.cart-item-image {
    width: 4rem;
    height: 4rem;
    background: var(--gray-50);
    border-radius: var(--rounded-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

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

.cart-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--gray-100);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--rounded-lg);
    transition: var(--transition);
}

.checkout-btn:hover {
    background: linear-gradient(135deg, var(--orange-600) 0%, #b85c00 100%);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--orange-400);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange-400);
    margin-bottom: 0.75rem;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gray-800);
    border-radius: var(--rounded-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--orange-500);
    color: var(--white);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.partner-logo {
    height: 2rem;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-cards {
        justify-content: center;
        flex-wrap: wrap;
    }

    .navbar-container {
        flex-wrap: wrap;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 0.75rem;
    }

    .categories-dropdown {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .cart-sidebar {
        width: 100%;
    }
}

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

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

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

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.w-full {
    width: 100%;
}

.rounded {
    border-radius: var(--rounded);
}

.rounded-lg {
    border-radius: var(--rounded-lg);
}

.rounded-xl {
    border-radius: var(--rounded-xl);
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

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

.bg-gray-50 {
    background-color: var(--gray-50);
}

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

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

.text-teal-600 {
    color: var(--teal-600);
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--rounded);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   ALERTS / TOASTS
   ============================================ */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 300;
    transform: translateY(100%);
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: var(--green-500);
}

.toast-error {
    background: var(--red-500);
}

/* ============================================
   LEGAL PAGES (Privacy, Terms, Refund)
   ============================================ */
.legal-page {
    min-height: 100vh;
    background: var(--gray-50);
    padding: 6rem 0 3rem;
}

.legal-container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.legal-card {
    background: var(--white);
    border-radius: var(--rounded-2xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

@media (min-width: 640px) {
    .legal-card {
        padding: 3rem;
    }
}

.legal-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.legal-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.legal-header p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-section p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-section ul,
.legal-section ol {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.legal-section ol {
    list-style: decimal;
}

.legal-section li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section ul ul {
    margin-top: 0.5rem;
    list-style: circle;
}

.contact-box {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--rounded-lg);
    padding: 1.5rem;
    margin-top: 0.75rem;
}

.contact-box p {
    margin-bottom: 0;
}

.contact-box a {
    color: var(--teal-600);
    transition: var(--transition);
}

.contact-box a:hover {
    color: var(--teal-700);
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--rounded-lg);
    margin-bottom: 1rem;
}

.alert h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.alert-warning {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.alert-warning p,
.alert-warning li {
    color: #92400e;
}

.alert-info {
    background: var(--teal-50);
    border: 2px solid var(--teal-200);
}

.alert-info h3 {
    color: var(--teal-700);
}

.alert-success {
    background: #dcfce7;
    border: 2px solid #22c55e;
    color: #166534;
}

.legal-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.legal-footer p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page {
    min-height: 100vh;
    background: var(--gray-50);
    padding: 6rem 0 3rem;
}

.about-container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-card {
    background: var(--white);
    border-radius: var(--rounded-2xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

@media (min-width: 640px) {
    .about-card {
        padding: 3rem;
    }
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.header-divider {
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(to right, var(--teal-600), var(--orange-500));
    margin: 0 auto;
    border-radius: var(--rounded-full);
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.section-icon {
    width: 2rem;
    height: 2rem;
    color: var(--teal-600);
    margin-right: 0.75rem;
}

.about-section p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.company-box {
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    border-radius: var(--rounded-xl);
    padding: 1.5rem;
}

.company-box .text-teal {
    background: none;
    -webkit-text-fill-color: var(--teal-600);
}

.company-box p {
    margin-bottom: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--rounded-xl);
    border: 1px solid;
}

.feature-teal {
    background: var(--teal-50);
    border-color: var(--teal-200);
}

.feature-teal .feature-icon svg {
    color: var(--teal-600);
}

.feature-cyan {
    background: #ecfeff;
    border-color: #a5f3fc;
}

.feature-cyan .feature-icon svg {
    color: #0891b2;
}

.feature-blue {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.feature-blue .feature-icon svg {
    color: var(--blue-500);
}

.feature-purple {
    background: #f5f3ff;
    border-color: #c4b5fd;
}

.feature-purple .feature-icon svg {
    color: #7c3aed;
}

.feature-icon {
    flex-shrink: 0;
}

.feature-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray-700);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.products-list {
    list-style: none;
    padding: 0;
}

.products-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.check-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--teal-600);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.about-cta {
    background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-800) 100%);
    border-radius: var(--rounded-xl);
    padding: 2rem;
    text-align: center;
    color: var(--white);
}

.about-cta h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.about-cta>p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cta-info {
    margin-bottom: 2rem;
}

.cta-info p {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.cta-info a {
    color: var(--white);
    text-decoration: underline;
}

.cta-info a:hover {
    color: var(--orange-400);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--rounded-lg);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-700) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-800) 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

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

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

.btn-white:hover {
    background: var(--orange-400);
    color: var(--white);
}

.btn-dark {
    background: var(--teal-800);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--teal-900);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
    min-height: 100vh;
    background: var(--gray-50);
    padding: 6rem 0 3rem;
}

.contact-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--white);
    border-radius: var(--rounded-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    flex-shrink: 0;
}

.info-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--teal-600);
}

.info-icon.whatsapp svg {
    color: #25d366;
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.contact-link {
    color: var(--teal-600);
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--teal-700);
}

.contact-form-container {
    background: var(--white);
    border-radius: var(--rounded-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.contact-form-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--rounded-lg);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-600);
    box-shadow: 0 0 0 3px rgba(27, 45, 91, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: none;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-actions {
        flex-direction: row;
    }

    .form-actions .btn:first-child {
        flex: 1;
    }
}

/* Text utilities */
.text-teal {
    color: var(--teal-600);
    background: linear-gradient(to right, var(--teal-600), var(--orange-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-orange {
    color: var(--orange-500);
}

.text-sm {
    font-size: 0.875rem;
}

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

.font-bold {
    font-weight: 700;
}

/* Partner logos in footer */
.partner-logos img {
    height: 24px;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.partner-logos img:hover {
    opacity: 1;
}