/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom
 * of the compiled file so the styles you add here take precedence over styles defined in
 * any other CSS files in this directory. Styles in this file should be added after the last require_* statement.
 * It is suggested that you include your application-wide styles in a separate file to keep your CSS organized.
 *


 */

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

/* Hey August Script Font */
@font-face {
    font-family: 'Hey August';
    src: url('hey_august/Hey August.otf') format('opentype'),
        url('hey_august/Hey August.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Enhanced Brand Styles: One-Stop Sunglasses */
:root {
    --primary-color: #decc98;
    /* warm cream-yellow for backgrounds */
    --accent-color: #f3563b;
    /* bold red for CTAs and discounts */
    --dark-green: #28615c;
    /* strong green for backgrounds */
    --deep-green: #183137;
    /* very dark for footer/header */
    --soft-gold: #e8e3c3;
    /* pale gold for highlight blocks */
    --brand-black: #23272b;
    /* strong for main headings */
    --promo-yellow: #f3d547;
    /* bold promotional color */
    --text-main: #fffefc;
    /* off-white text */
    --text-dark: #26302a;
    /* very dark green/black for contrast */
    --text-muted: #a6adad;
    /* muted gray/green text */
}

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

body,
html {
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    background: var(--dark-green);
    /* main page BG */
    color: var(--text-main);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 640px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #E03E3E;
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    border-color: var(--text-color);
    transform: translateY(-1px);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 75, 75, 0.1);
}

/* Cards */
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-content {
    padding: 1.5rem;
}

/* Authentication Pages */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6B7280;
}

.auth-form {
    margin-top: 1.5rem;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Expert Section */
.expert-avatars {
    display: flex;
    margin-right: 1rem;
}

.expert-avatar {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    border: 2px solid white;
    margin-left: -1rem;
}

.expert-avatar:first-child {
    margin-left: 0;
}

/* Utility Classes */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.flex {
    display: flex;
}

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

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

.space-x-4>*+* {
    margin-left: 1rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

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

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

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

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

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

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

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

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

.text-gray-500 {
    color: #6B7280;
}

.text-gray-600 {
    color: #4B5563;
}

.text-gray-900 {
    color: #111827;
}

.bg-gray-50 {
    background-color: #F9FAFB;
}

.bg-gray-100 {
    background-color: #F3F4F6;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-200 {
    border-color: #E5E7EB;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.transition {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
}

.transition-opacity {
    transition-property: opacity;
}

.transition-transform {
    transition-property: transform;
}

.duration-150 {
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-hero {
    background: linear-gradient(90deg, var(--primary-color) 50%, var(--dark-green) 100%);
    color: var(--brand-black);
    padding: 2.5rem 0 2rem 0;
    border-radius: 0 0 2rem 2rem;
    box-shadow: 0 10px 50px 0 rgba(40, 97, 92, 0.12);
}

.headline-1,
.headline-hero {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 900;
    font-size: 4.2rem;
    text-transform: uppercase;
    letter-spacing: -0.07em;
    line-height: 1.05;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    margin-top: 0.4em;
    text-shadow: 2px 3px 0 rgba(40, 97, 92, 0.18);
}

@media (max-width: 640px) {

    .headline-1,
    .headline-hero {
        font-size: 2.3rem;
        margin-bottom: 1.5rem;
    }
}

.headline-2,
.section-title {
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--primary-color);
    text-transform: uppercase;
    line-height: 1.12;
    margin-bottom: 1.4rem;
}

@media (max-width: 640px) {

    .headline-2,
    .section-title {
        font-size: 1.45rem;
        margin-bottom: 0.9rem;
    }
}

.huge-highlight {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--promo-yellow);
    text-shadow: 2px 3px 0 rgba(40, 97, 92, 0.2);
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .huge-highlight {
        font-size: 2rem;
    }
}

.promo-title {
    color: var(--promo-yellow);
    font-family: 'Montserrat', Arial, sans-serif;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.9rem;
    letter-spacing: -1px;
}

.cta-btn {
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: uppercase;
    background: var(--accent-color);
    color: var(--text-main);
    border-radius: 1.7rem;
    padding: 1.2rem 2.6rem;
    margin-top: 1.1rem;
}

@media (max-width: 640px) {
    .cta-btn {
        font-size: 1rem;
        padding: 1rem 1.2rem;
    }
}

.highlight-block {
    background: var(--promo-yellow);
    color: var(--deep-green);
    font-weight: 900;
    font-size: 2.25rem;
    border-radius: 1.2rem;
    padding: 2.3rem 1.4rem;
    margin-top: 2.7rem;
    margin-bottom: 2.2rem;
    text-transform: uppercase;
    box-shadow: 0 2px 12px 0 rgba(243, 213, 71, 0.13);
}

@media (max-width: 640px) {
    .highlight-block {
        font-size: 1.35rem;
        padding: 1.1rem 0.6rem;
    }
}

.product-collection-bg {
    background: var(--deep-green);
    border-radius: 1.1rem;
    padding: 2.6rem 1.2rem;
}

@media (max-width: 640px) {
    .product-collection-bg {
        padding: 1.1rem 0.3rem;
    }
}

.sunglasses-card {
    background: var(--primary-color);
    border-radius: 0.8rem;
    box-shadow: 0 2px 15px 0 rgba(40, 97, 92, 0.10);
    padding: 1.2rem;
    color: var(--brand-black);
    transition: box-shadow 0.15s, transform 0.12s;
}

.sunglasses-card:hover {
    box-shadow: 0 8px 40px 0 rgba(40, 97, 92, 0.22);
    transform: translateY(-6px) scale(1.03);
}

.sunglasses-img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4/3;
    object-fit: contain;
    border-radius: 0.65rem;
    box-shadow: 0 2px 18px 0 rgba(30, 30, 50, 0.06);
    margin-bottom: 1.1rem;
}

.section-padding {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
}

.promo-signature {
    font-family: 'Pacifico', 'cursive', 'Montserrat', sans-serif;
    color: var(--accent-color);
    font-size: 1.35rem;
    margin-left: 4px;
    font-weight: 700;
    letter-spacing: .07em;
}

@media (max-width: 480px) {

    .headline-1,
    .headline-hero {
        font-size: 1.25rem;
        margin-top: 0.5rem;
        margin-bottom: 0.7rem;
        max-width: 90vw;
        word-break: break-word;
        line-height: 1.14;
        letter-spacing: -0.04em;
        padding: 0.13em 0.07em;
    }

    .huge-highlight {
        font-size: 0.99rem;
        max-width: 93vw;
        padding: 0.8rem 0.4rem;
        margin-top: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .highlight-block {
        font-size: 0.99rem;
        max-width: 93vw;
        padding: 0.9rem 0.4rem;
        margin-top: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .headline-2,
    .section-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .section-padding,
    .product-collection-bg {
        padding-left: 2vw;
        padding-right: 2vw;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .cta-btn {
        font-size: 0.89rem;
        padding: 0.7rem 0.7rem;
        min-height: 46px;
        white-space: normal;
        word-break: break-word;
        border-radius: 0.87rem;
    }

    .promo-title {
        font-size: 0.97rem;
    }

    .sunglasses-img {
        width: 94vw !important;
        max-width: 98vw !important;
        margin: 0.3rem auto;
    }
}

.cta-btn:focus,
.cta-btn:active {
    outline: 2.5px solid var(--promo-yellow);
    outline-offset: 2.5px;
    box-shadow: 0 0 0 4px #e8e3c366;
}

/* Alpine.js x-cloak support */
[x-cloak] {
    display: none !important;
}

/* Header Navigation Responsive Styles */
.header-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .header-nav-link {
        display: none !important;
    }

    .header-menu-btn {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .header-nav-links {
        gap: 2rem !important;
    }

    .header-menu-btn {
        display: none !important;
    }
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile Container & Spacing */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 2rem 0 !important;
    }

    /* Homepage Hero Section */
    .brand-hero {
        padding: 2rem 1rem !important;
    }

    /* Hero Section Mobile Fix */
    [style*="min-height:85vh"] {
        min-height: auto !important;
        padding: 3rem 0 !important;
    }

    /* Hide background image on mobile */
    [style*="position:absolute"][style*="right:0"][style*="width:55%"] {
        display: none !important;
    }

    /* Hero headline on mobile */
    .headline-hero {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }

    /* Hero badges - center on mobile */
    [style*="display:flex"][style*="gap:1.2rem"][style*="flex-wrap:wrap"] {
        justify-content: center !important;
    }

    /* Center all hero content on mobile */
    [style*="max-width:550px"] {
        max-width: 100% !important;
        text-align: center !important;
    }

    [style*="max-width:480px"] {
        max-width: 100% !important;
    }

    /* Story button center */
    [style*="display:inline-flex"][style*="gap:0.9rem"] {
        display: flex !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Grid Layouts - Stack on Mobile */
    [style*="display:grid"][style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    /* Product Show Page - Stack Layout */
    .section-padding>div>div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Remove Sticky on Mobile for Product Images */
    [style*="position:sticky"] {
        position: relative !important;
    }

    /* Product Cards Grid */
    [style*="grid-template-columns:repeat(auto-fill,minmax(280px,1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Footer Grid */
    footer [style*="display:grid"][style*="grid-template-columns:repeat(4"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    /* Adjust Font Sizes */
    h1,
    .headline-1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h2,
    .headline-2 {
        font-size: 1.5rem !important;
    }

    /* Product Detail Page - Price and Title */
    [style*="font-size:3rem"] {
        font-size: 2rem !important;
    }

    [style*="font-size:2.5rem"] {
        font-size: 1.75rem !important;
    }

    /* Button Adjustments */
    .cta-btn,
    [style*="padding:1.2rem 2.5rem"] {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* Image Gallery Thumbnails */
    [style*="grid-template-columns:repeat(auto-fill,minmax(80px,1fr))"] {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.5rem !important;
    }

    /* Cart Page Layout */
    .cart-layout [style*="display:grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Cart Item Card */
    [style*="display:flex"][style*="gap:1.5rem"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* Orders Page */
    .orders-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    /* Forms - Full Width on Mobile */
    input[type="email"],
    input[type="password"],
    input[type="text"],
    input[type="number"],
    textarea,
    select {
        width: 100% !important;
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }

    /* Modal/Lightbox Adjustments */
    [style*="position:fixed"][style*="inset:0"] {
        padding: 1rem !important;
    }

    /* Breadcrumb */
    [style*="margin-bottom:2rem"] a[style*="display:inline-flex"] {
        font-size: 0.9rem !important;
    }

    /* Admin Action Buttons on Product Page */
    [style*="display:flex"][style*="justify-content:space-between"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    [style*="display:flex"][style*="gap:0.75rem"][style*="margin-left:1rem"] {
        margin-left: 0 !important;
        justify-content: center !important;
    }

    /* Features List */
    ul[style*="list-style:none"] li {
        font-size: 1rem !important;
    }

    /* Social Media Icons */
    [style*="display:flex"][style*="gap:1rem"] svg {
        width: 32px !important;
        height: 32px !important;
    }
}

/* Tablet Responsive (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    [style*="grid-template-columns:1fr 1fr"] {
        gap: 2rem !important;
    }

    h1,
    .headline-1 {
        font-size: 2.5rem !important;
    }

    h2,
    .headline-2 {
        font-size: 2rem !important;
    }
}

/* Extra Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .section-padding {
        padding: 1.5rem 0 !important;
    }

    h1,
    .headline-1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }

    h2,
    .headline-2 {
        font-size: 1.25rem !important;
    }

    [style*="font-size:1.5rem"] {
        font-size: 1.1rem !important;
    }

    .cta-btn {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    /* Reduce spacing on very small screens */
    [style*="padding:3rem"] {
        padding: 1.5rem !important;
    }

    [style*="padding:2rem"] {
        padding: 1rem !important;
    }

    /* Image Gallery - Show 3 thumbnails per row */
    [style*="grid-template-columns:repeat(auto-fill,minmax(80px,1fr))"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Flash Messages */
    .flash-message {
        bottom: 1rem !important;
        left: 0.5rem !important;
        right: 0.5rem !important;
    }

    .flash-message>div {
        padding: 1rem 1.25rem !important;
        font-size: 0.95rem !important;
    }
}

/* Landscape Mobile Devices */
@media (max-height: 600px) and (orientation: landscape) {
    .section-padding {
        padding: 1rem 0 !important;
    }

    [style*="min-height:90vh"] {
        min-height: auto !important;
    }
}

/* Touch-Friendly Improvements */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch target sizes */
    button,
    a,
    input[type="submit"],
    [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    *:hover {
        transform: none !important;
    }
}

/* Dark Mode Support (Optional Enhancement) */
@media (prefers-color-scheme: dark) {
    /* App already uses dark theme, but can enhance contrast if needed */
}
