/* Barron Haggai - Base Styles */
/* CSS Variables - Different naming convention */

:root {
    /* Colors */
    --hue-primary: #2c3e50;
    --hue-secondary: #e67e22;
    --hue-background: #faf9f6;
    --hue-text: #1a1a1a;
    --hue-text-light: #666666;
    --hue-text-muted: #999999;
    --hue-border: #e5e5e5;
    --hue-white: #ffffff;
    --hue-success: #27ae60;
    --hue-error: #e74c3c;
    
    /* Spacing */
    --gap-xs: 0.25rem;
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 1.5rem;
    --gap-xl: 2rem;
    --gap-2xl: 3rem;
    --gap-3xl: 4rem;
    --gap-4xl: 6rem;
    
    /* Border Radius */
    --corner-sm: 4px;
    --corner-md: 8px;
    --corner-lg: 12px;
    --corner-xl: 16px;
    --corner-full: 9999px;
    
    /* Shadows */
    --elevation-sm: 0 1px 2px rgba(0,0,0,0.05);
    --elevation-md: 0 4px 6px rgba(0,0,0,0.07);
    --elevation-lg: 0 10px 15px rgba(0,0,0,0.1);
    --elevation-xl: 0 20px 25px rgba(0,0,0,0.1);
    
    /* Transitions */
    --ease-fast: 150ms ease;
    --ease-normal: 250ms ease;
    --ease-slow: 350ms ease;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Container */
    --wrapper-max: 1400px;
    --wrapper-padding: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--hue-text);
    background-color: var(--hue-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* Wrapper */
.wrapper {
    max-width: var(--wrapper-max);
    margin: 0 auto;
    padding: 0 var(--wrapper-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--gap-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin-bottom: var(--gap-md);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--corner-full);
    transition: all var(--ease-normal);
    cursor: pointer;
    border: none;
}

.button-primary {
    background-color: var(--hue-primary);
    color: var(--hue-white);
}

.button-primary:hover {
    background-color: var(--hue-secondary);
    transform: translateY(-2px);
    box-shadow: var(--elevation-md);
}

.button-secondary {
    background-color: transparent;
    color: var(--hue-primary);
    border: 2px solid var(--hue-primary);
}

.button-secondary:hover {
    background-color: var(--hue-primary);
    color: var(--hue-white);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--hue-white);
    transition: all var(--ease-normal);
    padding: var(--gap-md) 0;
    box-shadow: var(--elevation-sm);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--elevation-md);
    padding: var(--gap-sm) 0;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-lg);
}

/* Logo */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}

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

.logo-text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hue-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--gap-2xl);
}

.nav-list a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--hue-text);
    position: relative;
    padding: var(--gap-sm) 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--hue-secondary);
    transition: width var(--ease-normal);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--gap-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--hue-primary);
    transition: all var(--ease-fast);
}

.mobile-only {
    display: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
}

/* Search Box */
.search-box form {
    display: flex;
    align-items: center;
    background: var(--hue-white);
    border: 1px solid var(--hue-border);
    border-radius: var(--corner-full);
    padding: 0.25rem 0.25rem 0.25rem var(--gap-md);
    transition: border-color var(--ease-fast);
}

.search-box form:focus-within {
    border-color: var(--hue-secondary);
}

.search-input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.875rem;
    width: 140px;
    color: var(--hue-text);
}

.search-input::placeholder {
    color: var(--hue-text-muted);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--corner-full);
    background: var(--hue-primary);
    color: var(--hue-white);
    transition: background var(--ease-fast);
}

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

/* Currency Selector */
.currency-selector select {
    border: 1px solid var(--hue-border);
    border-radius: var(--corner-sm);
    padding: 0.5rem 1.75rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: var(--hue-white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

/* Basket Link */
.basket-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--hue-primary);
    transition: color var(--ease-fast);
}

.basket-link:hover {
    color: var(--hue-secondary);
}

.basket-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 18px;
    height: 18px;
    background: var(--hue-secondary);
    color: var(--hue-white);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--corner-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

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

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
}

/* Footer */
.site-footer {
    background: var(--hue-primary);
    color: var(--hue-white);
    position: relative;
    padding-top: 0;
}

.footer-wave {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 60px;
}

.site-footer .wrapper {
    padding: var(--gap-3xl) var(--wrapper-padding);
    text-align: center;
}

.footer-logo {
    margin-bottom: var(--gap-2xl);
}

.footer-logo .logo-icon {
    margin-bottom: var(--gap-md);
}

.footer-logo .logo-text {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hue-white);
    display: block;
    margin-bottom: var(--gap-sm);
}

.tagline {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Footer Contact */
.footer-contact {
    margin-bottom: var(--gap-2xl);
    padding-bottom: var(--gap-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-sm);
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
}

.contact-item svg {
    color: var(--hue-secondary);
}

.contact-item a {
    color: rgba(255,255,255,0.8);
}

.contact-item a:hover {
    color: var(--hue-secondary);
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--gap-lg) var(--gap-xl);
    margin-bottom: var(--gap-2xl);
    padding-bottom: var(--gap-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-nav a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.8);
    transition: color var(--ease-fast);
}

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

/* Newsletter */
.newsletter-section {
    max-width: 500px;
    margin: 0 auto var(--gap-2xl);
}

.newsletter-section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--gap-sm);
    color: var(--hue-white);
}

.newsletter-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--gap-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--gap-sm);
}

.newsletter-form input {
    flex: 1;
    padding: var(--gap-md) var(--gap-lg);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--corner-full);
    background: rgba(255,255,255,0.1);
    color: var(--hue-white);
    font-size: 0.9375rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
    border-color: var(--hue-secondary);
}

.newsletter-form .button {
    background: var(--hue-secondary);
    color: var(--hue-white);
    padding: var(--gap-md) var(--gap-xl);
}

.newsletter-form .button:hover {
    background: #d35400;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--gap-md);
    margin-bottom: var(--gap-2xl);
}

.social-circle {
    width: 44px;
    height: 44px;
    border-radius: var(--corner-full);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hue-white);
    transition: all var(--ease-fast);
}

.social-circle:hover {
    background: var(--hue-secondary);
    transform: translateY(-3px);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    justify-content: center;
    gap: var(--gap-md);
    margin-bottom: var(--gap-xl);
}

.payment-icon {
    padding: var(--gap-sm) var(--gap-md);
    background: rgba(255,255,255,0.1);
    border-radius: var(--corner-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: var(--gap-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: var(--gap-lg);
    padding: var(--gap-md) var(--gap-xl);
    background: var(--hue-primary);
    color: var(--hue-white);
    border-radius: var(--corner-md);
    box-shadow: var(--elevation-lg);
    transform: translateX(150%);
    transition: transform var(--ease-normal);
    z-index: 9999;
    font-size: 0.9375rem;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--hue-success);
}

.notification.error {
    background: var(--hue-error);
}

/* Responsive */
@media (max-width: 1024px) {
    .search-box {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --wrapper-padding: 1rem;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
        order: -1;
    }
    
    .header-wrapper {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: var(--gap-md);
    }
    
    .logo {
        justify-content: center;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: var(--hue-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--gap-2xl);
        transition: left var(--ease-normal);
        z-index: 999;
        box-shadow: var(--elevation-xl);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--gap-lg);
        margin-top: var(--gap-2xl);
    }
    
    .header-actions {
        gap: var(--gap-sm);
    }
    
    .currency-selector select {
        padding: 0.375rem 1.5rem 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-nav {
        gap: var(--gap-md);
    }
}
