/*
Theme Name: Triah Handmade
Theme URI: https://triahandmade.com
Author: Triah Handmade
Description: El yapımı bebek aksesuarları ve hediye ürünleri için özel WordPress teması
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: triahandmade
*/

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
    /* Colors — Logo Navy + Warm Neutrals */
    --color-navy: #2B3A4E;
    --color-navy-light: #3D5268;
    --color-navy-dark: #1E2A38;
    --color-terracotta: #C4956A;
    --color-terracotta-light: #D4AC85;
    --color-sage: #8B9E82;
    --color-cream: #F8F5F1;
    --color-cream-dark: #F0EBE3;
    --color-white: #FFFFFF;
    --color-text: #2C2C2C;
    --color-text-light: #6B6B6B;
    --color-text-muted: #999999;
    --color-border: #E8E4DE;
    --color-border-light: #F0ECE6;
    --color-success: #8B9E82;
    --color-error: #C25B56;

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 80px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--color-terracotta);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-navy);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

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

ul,
ol {
    list-style: none;
}

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

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

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

.btn--primary:hover {
    background: var(--color-navy-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: transparent;
    color: var(--color-navy);
    border: 1.5px solid var(--color-navy);
}

.btn--secondary:hover {
    background: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
}

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

.btn--terracotta:hover {
    background: var(--color-terracotta-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-white);
    z-index: 1000;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 1001;
}

.site-logo img {
    height: 50px;
    width: auto;
    transition: height var(--transition-base);
}

.scrolled .site-logo img {
    height: 40px;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-navy);
    letter-spacing: 0.05em;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
}

.nav-menu a {
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-terracotta);
    transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--color-navy);
}

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

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

.header-cart svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-terracotta);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-navy);
    transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--color-cream);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
}

.hero-content {
    max-width: 520px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.hero-badge::before {
    content: '✦';
    font-size: 8px;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-navy);
    margin-bottom: var(--space-xl);
}

.hero-title em {
    font-style: italic;
    color: var(--color-terracotta);
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-float-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-white);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.hero-float-badge .number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--color-terracotta);
    display: block;
}

.hero-float-badge .label {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== SECTION COMMON ===== */
.section {
    padding: var(--space-5xl) 0;
}

.section--cream {
    background: var(--color-cream);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--color-terracotta);
    margin: var(--space-lg) auto 0;
}

/* ===== CATEGORIES SECTION ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    group: true;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2xl);
    background: linear-gradient(transparent, rgba(43, 58, 78, 0.8));
    transition: all var(--transition-base);
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(transparent, rgba(43, 58, 78, 0.9));
}

.category-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.category-card-count {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

/* ===== FEATURED PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
}

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

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

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

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

.product-card-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--color-terracotta);
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.product-card-actions {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    display: flex;
    gap: var(--space-sm);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.product-action-btn:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.product-action-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.product-card-info {
    padding: var(--space-lg);
}

.product-card-title {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.product-card-title a {
    color: inherit;
}

.product-card-title a:hover {
    color: var(--color-terracotta);
}

.product-card-price {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-navy);
}

.product-card-price del {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 400;
    margin-right: var(--space-sm);
}

/* ===== ABOUT / STORY SECTION ===== */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.story-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.story-content .section-label {
    text-align: left;
}

.story-content .section-title {
    text-align: left;
}

.story-text {
    color: var(--color-text-light);
    font-size: var(--text-lg);
    line-height: 1.9;
    margin-bottom: var(--space-2xl);
}

.story-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.story-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.story-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-cream);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--text-xl);
}

.story-feature-text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--color-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
}

.testimonial-stars {
    color: var(--color-terracotta);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--color-navy);
}

/* ===== NEWSLETTER / CTA ===== */
.newsletter {
    background: var(--color-navy);
    padding: var(--space-4xl) 0;
    text-align: center;
}

.newsletter .section-label {
    color: var(--color-terracotta-light);
}

.newsletter .section-title {
    color: var(--color-white);
}

.newsletter .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: var(--space-2xl) auto 0;
    gap: var(--space-sm);
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: var(--text-sm);
}

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

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-terracotta);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-cream);
    border-top: 1px solid var(--color-border);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding: var(--space-4xl) 0;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.footer-logo img {
    height: 40px;
}

.footer-description {
    color: var(--color-text-light);
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-navy);
    margin-bottom: var(--space-lg);
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column ul a {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.footer-column ul a:hover {
    color: var(--color-terracotta);
    padding-left: 4px;
}

.footer-bottom {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer-payment {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce ul.products li.product {
    margin-bottom: var(--space-xl) !important;
}

.woocommerce ul.products li.product a img {
    border-radius: var(--radius-lg);
}

.woocommerce ul.products li.product .price {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-navy);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--color-navy) !important;
    color: var(--color-white) !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-body) !important;
    font-size: var(--text-sm) !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase;
    padding: 12px 28px !important;
    transition: all var(--transition-base) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--color-navy-light) !important;
    transform: translateY(-2px);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: var(--color-terracotta) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--color-terracotta-light) !important;
}

.woocommerce .woocommerce-message {
    border-top-color: var(--color-sage) !important;
}

.woocommerce .woocommerce-info {
    border-top-color: var(--color-navy) !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span.current {
    border-radius: var(--radius-sm) !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--color-navy) !important;
    border-color: var(--color-navy) !important;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    margin-top: var(--header-height);
    min-height: 60vh;
    padding: var(--space-3xl) 0;
}

.woocommerce-page .page-content {
    padding: var(--space-2xl) 0;
}

.page-title {
    font-size: var(--text-3xl);
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border-light);
}

.page-entry {
    max-width: 100%;
}

.woocommerce-cart .page-title,
.woocommerce-checkout .page-title {
    font-size: var(--text-3xl);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root {
        --text-5xl: 2.75rem;
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image-wrapper img {
        height: 400px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --text-5xl: 2.25rem;
        --text-4xl: 1.75rem;
        --header-height: 70px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-2xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: 1000;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
    }

    .nav-menu a {
        font-size: var(--text-lg);
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .story-features {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: var(--space-2xl) var(--space-lg);
    }

    .hero-image-wrapper img {
        height: 300px;
    }

    .hero-float-badge {
        bottom: -10px;
        left: 10px;
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        padding: 12px 24px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--color-cream) 25%, var(--color-cream-dark) 50%, var(--color-cream) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== PLACEHOLDERS ===== */
.hero-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-border-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    border: 2px dashed var(--color-border);
}

.hero-placeholder-content {
    text-align: center;
}

.hero-placeholder-icon {
    display: block;
    font-size: var(--text-3xl);
    color: var(--color-terracotta);
    margin-bottom: var(--space-md);
}

.hero-placeholder-text {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    font-style: italic;
}

.story-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--color-cream-dark) 0%, var(--color-border-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    border: 2px dashed var(--color-border);
}

.story-placeholder-text {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    font-style: italic;
}

.products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-4xl) 0;
}

.products-empty-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.products-empty-text {
    color: var(--color-text-muted);
}

.story-feature-icon {
    color: var(--color-navy);
}

.story-feature-icon svg {
    width: 24px;
    height: 24px;
}