/* SaxonDodd.com - Base Stylesheet */
/* Color Scheme: Forest Green #2C5F2D, Grass Green #97BC62, Off-white #F5F5F0, Black #1A1A1A, Sand Brown #D4A574 */

:root {
    --primary: #2C5F2D;
    --primary-dark: #1E4020;
    --primary-light: #3D7A3E;
    --secondary: #97BC62;
    --secondary-light: #B5D48A;
    --background: #F5F5F0;
    --background-dark: #E8E8E3;
    --text: #1A1A1A;
    --text-light: #4A4A4A;
    --text-muted: #7A7A7A;
    --accent: #D4A574;
    --accent-dark: #B88A5A;
    --white: #FFFFFF;
    --error: #C94A4A;
    --success: #4A9C5D;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

p {
    margin-bottom: var(--spacing-sm);
}

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

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

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-xs) 0;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Header */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--background-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    gap: var(--spacing-lg);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--background-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--background);
}

.search-input {
    border: none;
    background: transparent;
    padding: 0.6rem 1rem;
    width: 200px;
    font-size: 0.9rem;
    outline: none;
}

.search-btn {
    background: none;
    border: none;
    padding: 0.6rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--primary);
}

.header-contact-link {
    font-size: 0.9rem;
    color: var(--text-light);
}

.header-center {
    text-align: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon-left,
.logo-icon-right {
    width: 35px;
    height: 18px;
    opacity: 0.7;
}

.logo-text {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

.currency-selector select {
    border: 1px solid var(--background-dark);
    background-color: var(--white);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.cart-link {
    position: relative;
    color: var(--text);
    display: flex;
    align-items: center;
}

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

.cart-count.has-items {
    background-color: var(--primary);
}

/* Navigation */
.main-nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--background-dark);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: var(--spacing-xl);
    padding: var(--spacing-sm) 0;
}

.nav-list a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

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

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

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

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

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-bottom: var(--spacing-xs);
    color: var(--white);
}

.footer-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--secondary);
    margin-bottom: var(--spacing-sm);
}

.footer-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.btn-subscribe {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-subscribe:hover {
    background-color: var(--accent-dark);
}

.newsletter-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-methods {
    display: flex;
    gap: var(--spacing-sm);
}

.payment-icon {
    background-color: rgba(255,255,255,0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--background);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: var(--spacing-md);
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text);
}

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

.product-price .original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: var(--spacing-xs);
    font-size: 0.95rem;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--background-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

/* Page Title */
.page-title {
    text-align: center;
    padding: var(--spacing-xxl) 0;
    background-color: var(--white);
    margin-bottom: var(--spacing-xl);
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.page-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-brand {
        grid-column: span 3;
    }
    
    .footer-newsletter {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .header-left {
        display: none;
    }
    
    .header-center {
        order: -1;
        grid-column: span 2;
        text-align: center;
    }
    
    .nav-list {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand,
    .footer-newsletter {
        grid-column: span 2;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand,
    .footer-newsletter {
        grid-column: span 1;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}
