@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Oswald:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CUSTOM PROPERTIES (SHOPIFY-STYLE LIGHT & SHARP) --- */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #faf8f5;
    --bg-card: #ffffff;
    --bg-input: #f8f6f2;
    --accent-gold: #5c3d24;       /* Warm Coffee Brown */
    --accent-gold-glow: rgba(92, 61, 36, 0.12);
    --accent-gold-hover: #422a18;
    --accent-bronze: #8c6239;
    --text-primary: #111111;       /* Dark Ink */
    --text-secondary: #555555;     /* Charcoal Gray */
    --text-muted: #888888;
    --border-color: #e5e0d8;
    --border-gold: rgba(92, 61, 36, 0.2);
    --border-gold-hover: rgba(92, 61, 36, 0.5);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Oswald', 'Cinzel', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --header-height: 90px;
    --banner-height: 40px;
}

/* --- RESET & BASE STYLES --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: 0.05em;
    font-weight: 500;
}

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

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

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

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 70px 0;
}

.text-center { text-align: center; }
.gold-text { color: var(--accent-gold); }

/* --- BUTTONS (WARM BROWN SHOPIFY-STYLE) --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background: var(--accent-gold);
    color: #fff;
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: #fff;
    transform: translateY(-1px);
}

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

.btn-outline-white:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

/* --- ANNOUNCEMENT BANNER --- */
.announcement-banner {
    height: var(--banner-height);
    background: var(--accent-gold);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.08em;
    padding: 0 10px;
}

/* --- HEADER (SHOPIFY-STYLE CLASSIC) --- */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    padding: 10px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-primary);
}

.header-icon {
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.header-icon:hover {
    color: var(--accent-gold);
}

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

.menu-toggle {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    height: 65vh;
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.45)), url('https://images.unsplash.com/photo-1514432324607-a09d9b4aefdd?q=80&w=1974&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 750px;
    color: #fff;
    padding: 20px;
}

.hero-tagline {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 600;
    color: #fff;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* --- TRUST BADGES --- */
.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 50px;
}

.trust-badge-item {
    text-align: center;
    padding: 10px;
}

.trust-badge-circle {
    width: 70px;
    height: 70px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin: 0 auto 20px auto;
    transition: var(--transition-smooth);
}

.trust-badge-item:hover .trust-badge-circle {
    border-color: var(--accent-gold);
    background: var(--bg-secondary);
}

.trust-badge-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.trust-badge-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 250px;
    margin: 0 auto;
}

/* --- SPLIT GRID EDITORIAL STORY --- */
.story-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-image-box {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-color);
}

.story-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- PRODUCT CARDS (FLAT SHOPIFY STYLE) --- */
.collection-header {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.collection-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.filters-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 16px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: #fff;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent-gold);
    color: #fff;
    border-color: var(--accent-gold);
}

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

.product-card {
    background-color: var(--bg-card);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%;
    background: #FAF8F5;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-info {
    text-align: center;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.product-stars {
    color: var(--accent-gold);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0px;
    color: var(--text-primary);
}

.product-price {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.product-price-row {
    margin-top: 8px;
    width: 100%;
}

.product-price-row .btn-add-cart {
    width: 100%;
    padding: 8px;
    font-size: 0.8rem;
}

/* --- VETERAN RESOURCES --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.resource-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    transition: var(--transition-smooth);
}

.resource-card:hover {
    border-color: var(--accent-gold);
}

.resource-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resource-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    background: var(--bg-secondary);
    padding: 3px 8px;
    border: 1px solid var(--border-color);
}

.resource-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.emergency-alert {
    border: 1px solid #d32f2f;
    padding: 40px;
    text-align: center;
    background: #fffdfd;
}

.emergency-alert h3 {
    color: #d32f2f;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.emergency-alert p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto 20px auto;
}

.crisis-number {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #d32f2f;
    border: 1px dashed #d32f2f;
    display: inline-block;
    padding: 8px 24px;
}

/* --- CONTACT FORM --- */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-list {
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-icon {
    font-size: 1.3rem;
    color: var(--accent-gold);
}

.contact-info-text h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.contact-info-text p {
    color: var(--text-secondary);
}

.contact-form {
    border: 1px solid var(--border-color);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 12px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--accent-gold);
    background-color: #fff;
}

/* --- MERCH COMING SOON --- */
.coming-soon-wrapper {
    height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.coming-soon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.95) 100%), url('https://images.unsplash.com/photo-1578932750294-f5075e85f44a?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.coming-soon-title {
    font-size: 3rem;
    margin-bottom: 12px;
}

.coming-soon-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 30px;
}

.notify-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    width: 100%;
}

.notify-form input {
    flex-grow: 1;
}

/* --- WIDGETS --- */
.chat-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--accent-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 999;
}

.chat-drawer {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 340px;
    height: 460px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    z-index: 998;
    transform: translateY(15px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.chat-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    background: var(--accent-gold);
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.chat-bubble.bot {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    align-self: flex-start;
}

.chat-bubble.user {
    background-color: var(--accent-gold);
    color: #fff;
    align-self: flex-end;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex-grow: 1;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    font-size: 0.85rem;
}

.chat-send {
    background-color: var(--accent-gold);
    color: #fff;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.loyalty-widget-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #fff;
    border: 1px solid var(--accent-gold);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999;
}

.loyalty-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
    z-index: 1010;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.loyalty-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 1005;
    opacity: 0;
    pointer-events: none;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.loyalty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.loyalty-points-display {
    font-size: 3rem;
    color: var(--accent-gold);
    text-align: center;
    margin: 20px 0;
    font-family: var(--font-heading);
}

.toast {
    position: fixed;
    bottom: 95px;
    left: 30px;
    background: #fff;
    border: 1px solid var(--accent-gold);
    padding: 12px 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    pointer-events: none;
    font-size: 0.85rem;
}

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

/* --- FOOTER --- */
footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

footer h4, footer a {
    color: var(--text-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo-img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links-col h4, .footer-subscribe h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-subscribe p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-sub-form {
    display: flex;
    gap: 8px;
}

.footer-sub-form input {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    font-size: 0.85rem;
    flex-grow: 1;
}

.footer-sub-form input::placeholder {
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Payment Icons Row */
.payment-icons {
    display: flex;
    gap: 8px;
    font-size: 1.6rem;
    color: var(--text-muted);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .story-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .story-image-box {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .contact-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .trust-badges-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .logo-img { height: 45px !important; }

    header {
        height: var(--header-height);
    }
    
    .logo-img {
        height: 48px;
    }
    
    .menu-toggle {
        display: block;
        color: var(--text-primary);
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        gap: 30px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
        list-style: none;
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
