/* =================================================================
  TABLE OF CONTENTS
  ------------------------------------------------------------------
  1.  Global Styles & Variables
  2.  Typography
  3.  Layout & Container
  4.  Buttons & Common Elements
  5.  Header & Navigation
      - Main Header
      - Mega Menu
      - Header Actions
      - Mobile Navigation
  6.  Footer
  7.  Homepage Sections
      - Hero Section
      - Featured Products
      - Categories Section
      - Brand Philosophy
      - Ingredient Spotlight
      - Testimonials
      - Newsletter
  8.  Page-Specific Styles
      - Page Header (Generic)
      - Shop Page (Filters, Grid)
      - About Page
      - Contact Page
      - Legal Pages
  9.  Components
      - Product Card
      - Forms
      - Popup
  10. Animations & Transitions
  11. Responsive Design (Media Queries)
================================================================== */


/* =================================================================
  1. Global Styles & Variables
================================================================== */
:root {
    /* Colors */
    --color-primary: #a88b59;
    /* Soft Gold */
    --color-primary-dark: #8c734a;
    --color-secondary: #f4e1d2;
    /* Muted Blush Pink */
    --color-dark: #1a1a1a;
    /* Deep Charcoal */
    --color-text: #4a4a4a;
    --color-light-text: #888;
    --color-background: #ffffff;
    --color-light-bg: #fdfaf7;
    --color-border: #e8e8e8;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-success: #4caf50;
    --color-error: #f44336;

    /* Fonts */
    --font-primary: 'Cormorant Garamond', serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Sizing & Spacing */
    --header-height: 90px;
    --section-padding: 100px;
    --container-width: 1200px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

/* =================================================================
    2. Typography
  ================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: 0.75em;
}

h1 {
    font-size: 4rem;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: var(--color-light-text);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.section-subtitle.large {
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header,
.section-header-light {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-light .section-title,
.section-header-light .section-subtitle {
    color: var(--color-white);
}

/* =================================================================
    3. Layout & Container
  ================================================================== */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.section-padding {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.bg-light {
    background-color: var(--color-light-bg);
}

/* =================================================================
    4. Buttons & Common Elements
  ================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* =================================================================
    5. Header & Navigation
  ================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background-color: transparent;
    transition: background-color var(--transition-smooth),
        height var(--transition-smooth),
        box-shadow var(--transition-smooth);
}

.header.scrolled,
.header-sticky {
    height: 75px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    flex-shrink: 0;
}

.logo {
    height: 80px;
    width: auto;
    transition: all var(--transition-smooth);
}


.nav-list {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-white);
    padding: 10px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color var(--transition-fast);
}

.scrolled .nav-link,
.header-sticky .nav-link {
    color: var(--color-dark);
}

.nav-link i {
    font-size: 0.7em;
    margin-left: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.scrolled .nav-link:hover,
.header-sticky .nav-link:hover,
.scrolled .nav-link.active,
.header-sticky .nav-link.active,
.scrolled .action-btn:hover,
.header-sticky .action-btn:hover {
    color: var(--color-primary);
}


/* --- Mega Menu --- */
.has-megamenu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 90vw;
    max-width: var(--container-width);
    background-color: var(--color-white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 3rem;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
}

.mega-menu-content {
    display: flex;
    justify-content: space-between;
}

.mega-menu-column {
    flex: 1;
    padding: 0 1.5rem;
}

.mega-menu-column h3 {
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.mega-menu-column h3 a {
    color: inherit;
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column ul li a {
    display: block;
    padding: 8px 0;
    color: var(--color-text);
    font-size: 0.9rem;
    position: relative;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.mega-menu-column ul li a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.mega-menu-image-col {
    flex: 1.5;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

.mega-menu-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mega-menu-image-col a {
    display: block;
    position: relative;
}

.mega-menu-image-col a:hover img {
    transform: scale(1.05);
}

.mega-menu-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1.5rem;
    color: var(--color-white);
}

.mega-menu-image-caption h4 {
    color: var(--color-white);
    margin-bottom: 5px;
}

.mega-menu-image-caption span {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 2px;
}

/* --- Header Actions --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-white);
    position: relative;
    transition: color var(--transition-fast);
}

.scrolled .action-btn,
.header-sticky .action-btn {
    color: var(--color-dark);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

.scrolled .mobile-toggle .bar,
.header-sticky .mobile-toggle .bar {
    background-color: var(--color-dark);
}

/* --- Mobile Navigation --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--color-dark);
    z-index: 999;
    padding: 120px 40px 40px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav nav ul {
    list-style: none;
}

.mobile-nav nav ul li {
    margin-bottom: 1.5rem;
}

.mobile-nav nav ul li a {
    color: var(--color-white);
    font-size: 1.5rem;
    font-family: var(--font-primary);
    font-weight: 500;
}

.mobile-nav-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

body.mobile-nav-active {
    overflow: hidden;
}

body.mobile-nav-active .mobile-toggle .bar-top {
    transform: rotate(45deg) translate(5px, 6px);
}

body.mobile-nav-active .mobile-toggle .bar-middle {
    opacity: 0;
}

body.mobile-nav-active .mobile-toggle .bar-bottom {
    transform: rotate(-45deg) translate(5px, -6px);
}


/* =================================================================
    6. Footer
  ================================================================== */
.footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-primary);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-title {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1.5rem;
}

.footer-about-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1rem;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width var(--transition-smooth);
}

.footer-links ul li a:hover {
    color: var(--color-white);
}

.footer-links ul li a:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    font-size: 0.85rem;
}

.footer-bottom-right i {
    color: var(--color-primary);
}


/* =================================================================
    7. Homepage Sections
  ================================================================== */

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--color-white);
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content-container {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 5.5rem;
    color: var(--color-white);
    font-weight: 500;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin: 1.5rem auto 2.5rem;
    max-width: 600px;
    color: var(--color-white);
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scroll-down-link {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 25px;
}

.scroll-down-icon {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 4px;
    height: 10px;
    background-color: var(--color-white);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    80% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* --- Featured Products --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* --- Categories Section --- */
.categories-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.category-item {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-item:hover .category-image {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
    z-index: 1;
    transition: background-color var(--transition-smooth);
}

.category-item:hover .category-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.category-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.category-item:hover .category-content {
    transform: translateY(0);
    opacity: 1;
}

.category-title {
    color: var(--color-white);
    font-size: 2.2rem;
    font-weight: 500;
}

.category-description {
    margin-bottom: 2rem;
    font-weight: 300;
}

/* --- Brand Philosophy --- */
.brand-philosophy-section {
    background-color: var(--color-light-bg);
}

.philosophy-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.philosophy-image-wrapper {
    flex: 1;
    position: relative;
}

.philosophy-image {
    border-radius: var(--border-radius-sm);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-sm);
    z-index: -1;
    transition: transform var(--transition-smooth);
}

.philosophy-image-wrapper:hover .image-accent {
    transform: translate(10px, 10px);
}

.philosophy-text-wrapper {
    flex: 1;
}

.philosophy-tagline {
    font-family: var(--font-secondary);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.philosophy-text-wrapper p {
    margin-bottom: 1.5rem;
}


/* --- Ingredient Spotlight --- */
.ingredient-spotlight-section {
    position: relative;
    color: var(--color-white);
    overflow: hidden;
}

.spotlight-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    transform: scale(1.1);
}

.spotlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.7);
    z-index: 1;
}

.ingredient-spotlight-section .container {
    position: relative;
    z-index: 2;
}

.spotlight-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.spotlight-text {
    flex: 1;
}

.spotlight-text h3 {
    color: var(--color-white);
    font-size: 2.5rem;
    font-weight: 500;
}

.spotlight-text p {
    font-weight: 300;
    line-height: 1.8;
}

.spotlight-text ul {
    margin: 2rem 0;
}

.spotlight-text ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.spotlight-text ul li i {
    color: var(--color-primary);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.spotlight-image-wrapper {
    flex: 1;
}

.spotlight-image {
    border-radius: var(--border-radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-light-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.testimonial-rating {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--color-dark);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-name {
    font-weight: 600;
}

/* --- Newsletter --- */
.newsletter-section {
    background-color: var(--color-secondary);
    padding: 80px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.newsletter-title {
    font-size: 2.5rem;
}

.newsletter-text {
    margin-bottom: 2.5rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(168, 139, 89, 0.4);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form input {
    flex-grow: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    background-color: transparent;
    color: var(--color-dark);
}

.newsletter-form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.4);
}

.newsletter-form button {
    flex-shrink: 0;
    border-radius: 0 50px 50px 0;
}

/* =================================================================
    8. Page-Specific Styles
  ================================================================== */

/* --- Page Header (Generic) --- */
.page-header {
    position: relative;
    padding: 150px 0 100px;
    color: var(--color-white);
    text-align: center;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.5);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    color: var(--color-white);
    font-size: 3.5rem;
}

.breadcrumbs {
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a:hover {
    color: var(--color-white);
}

.breadcrumbs span {
    color: var(--color-white);
}

.breadcrumbs i {
    font-size: 0.7rem;
    margin: 0 10px;
}

/* --- Shop Page --- */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

.shop-toolbar p {
    margin: 0;
}

.shop-toolbar select {
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
}

.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.shop-filters h3,
.shop-filters h4 {
    margin-bottom: 1rem;
}

.shop-filters h3 {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group ul li a {
    color: var(--color-text);
    padding: 5px 0;
    display: block;
}

.filter-group ul li a:hover {
    color: var(--color-primary);
}

.filter-group input[type="checkbox"] {
    margin-right: 10px;
}

.price-slider {
    width: 100%;
}

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    gap: 0.5rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
}

.page-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.page-link.current {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* --- About Page --- */
.about-intro {
    text-align: center;
    margin-bottom: 5rem;
}

.about-detailed-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image-column img {
    border-radius: var(--border-radius-sm);
}

.our-commitments-section .commitments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.commitment-card {
    padding: 2rem;
}

.commitment-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.commitment-card h4 {
    font-size: 1.3rem;
    color: var(--color-dark);
}

/* --- Contact Page --- */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    background: var(--color-white);
    padding: 4rem;
    margin-top: -80px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-md);
}

.contact-info-container {
    background: var(--color-light-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius-sm);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-right: 1.5rem;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.contact-method h4 {
    margin-bottom: 5px;
}

.contact-method p,
.contact-method a {
    margin-bottom: 0;
}

/* --- Legal Pages --- */
.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.last-updated {
    font-style: italic;
    color: var(--color-light-text);
    margin-bottom: 2rem;
}

/* =================================================================
    9. Components
  ================================================================== */

/* --- Product Card --- */
.product-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    background-color: var(--color-light-bg);
    border-radius: var(--border-radius-sm);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    object-fit: cover;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 5px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    z-index: 2;
}

.product-badge.new {
    background-color: var(--color-dark);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all var(--transition-smooth);
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn-circle:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}


.product-info {
    padding: 1.5rem 0;
}

.product-name a {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-dark);
}

.product-name a:hover {
    color: var(--color-primary);
}

.product-category {
    font-size: 0.8rem;
    color: var(--color-light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0.5rem 0 1rem;
}

.btn-add-to-cart {
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-smooth);
}

.product-card:hover .btn-add-to-cart {
    opacity: 1;
    transform: translateY(0);
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group-row {
    display: flex;
    gap: 1.5rem;
}

.form-group-row .form-group {
    flex: 1;
}

.form-title {
    margin-bottom: 1rem;
}

.contact-form-container p {
    margin-bottom: 2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(168, 139, 89, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

/* --- Popup --- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    position: relative;
    max-width: 450px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 3.5rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}

.popup h3 {
    margin-bottom: 0.5rem;
}

.popup p {
    margin-bottom: 2rem;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    color: var(--color-light-text);
}

.popup-close:hover {
    color: var(--color-dark);
}

/* =================================================================
    10. Animations & Transitions
  ================================================================== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    transform: translateY(20px);
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Dynamic delay for staggered animations */
.animate-on-scroll {
    transition-delay: var(--animation-delay, 0s);
}

/* =================================================================
    11. Responsive Design (Media Queries)
  ================================================================== */

/* --- Tablets (up to 1024px) --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-list {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .product-grid,
    .shop-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .categories-section {
        grid-template-columns: 1fr;
    }

    .philosophy-content {
        flex-direction: column;
    }

    .spotlight-content {
        flex-direction: column-reverse;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-filters {
        display: none;
        /* Simplification for tablet, can be a toggle */
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Phones (up to 767px) --- */
@media (max-width: 767px) {
    :root {
        --header-height: 70px;
        --section-padding: 60px;
    }

    h1,
    .hero-title {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .header.scrolled {
        height: 60px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .shop-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about-detailed-content {
        grid-template-columns: 1fr;
    }

    .our-commitments-section .commitments-grid {
        grid-template-columns: 1fr;
    }

    .contact-page-wrapper {
        padding: 2rem;
    }

    .form-group-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- Small Mobile Phones (up to 480px) --- */
@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .shop-product-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
    }

    .mobile-nav {
        width: 100%;
    }

    .shop-toolbar {
        flex-direction: column;
        gap: 1rem;
    }
}