/* ============ OUMZ CUSTOM STYLES ============ */

:root {
    /* Color Palette - Date Inspired (Browns & Gold) */
    --color-primary: #5D4037;
    /* Warm Brown */
    --color-primary-dark: #3E2723;
    --color-primary-light: #8D6E63;
    --color-secondary: #D4AF37;
    /* Gold */
    --color-accent: #FFA000;
    /* Amber */
    --color-background: #FFFDF9;
    --color-surface: #FFFFFF;
    --color-surface-dark: #2D1B17;
    --color-text: #3E2723;
    --color-text-muted: #795548;
    --color-border: #EFEBE9;

    /* Typography */
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;

    /* Border Radius */
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 2rem;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(93, 64, 55, 0.05);
    --shadow-md: 0 12px 32px rgba(93, 64, 55, 0.1);
    --shadow-lg: 0 24px 64px rgba(93, 64, 55, 0.15);

    /* Transitions */
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --container-max: 1200px;
    --container-padding: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: min(100% - var(--container-padding) * 2, var(--container-max));
    margin-inline: auto;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: var(--space-xl) 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 253, 249, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    transition: var(--transition-base);
}

header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

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

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a:hover {
    color: var(--color-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    color: var(--color-primary);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

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

.btn-text {
    color: var(--color-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(93, 64, 55, 0.05) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-logo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-primary-dark);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Promo Banner */
.promo-banner {
    background-color: var(--color-surface-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.promo-content i {
    font-size: 2rem;
    color: var(--color-secondary);
}

/* Cards */
.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

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

.card-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Products Grid */
.category-filters {
    margin-bottom: 3rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 600;
    margin: 0.25rem;
    transition: var(--transition-base);
}

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

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

.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-pricing {
    display: flex;
    flex-direction: column;
}

.product-old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--color-text-muted);
    opacity: 0.7;
    margin-bottom: -0.25rem;
}

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

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-items {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: var(--color-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.25rem;
}

.cta-box {
    background-color: var(--color-surface-dark);
    color: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(62, 39, 35, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 400px);
    height: 100%;
    background: white;
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.cart-drawer.active {
    transform: translateX(0);
}

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

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

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-info strong {
    display: block;
    font-size: 1rem;
}

.cart-item-info p {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 700;
}

.remove-btn {
    background: none;
    border: none;
    color: #ff5252;
    cursor: pointer;
    font-size: 1rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-share-float {
    position: fixed;
    bottom: calc(2rem + 70px);
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #128C7E;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 998;
    transition: transform 0.3s ease;
}

.whatsapp-share-float:hover {
    transform: scale(1.1);
    background-color: #075E54;
}

/* Flash Message */
.flash-message {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    background: white;
    padding: 1rem 2rem;
    border-radius: 3rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2100;
    transition: transform 0.4s ease;
    border: 2px solid var(--color-secondary);
}

.flash-message.active {
    transform: translateX(-50%) translateY(0);
}

.flash-message i {
    color: var(--color-primary);
}

.close-flash {
    cursor: pointer;
    opacity: 0.5;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {

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

@media (max-width: 768px) {
    nav {
        display: none;
        /* simple mobile menu implementation for now */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* Helper Utilities */
.text-center {
    text-align: center;
}

.mb-lg {
    margin-bottom: 3rem;
}

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

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

.w-100 {
    width: 100%;
}

.bg-light {
    background-color: #FDF9F3;
}