/*
*  Aletta Bags - Custom Stylesheet
*  Author: AI Assistant
*  Version: 1.0
*/

/* ===================================
   1. ROOT VARIABLES & GLOBAL STYLES
   =================================== */

:root {
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --color-dark: #1a1a1a;
    --color-dark-alt: #252525;
    --color-light: #f5f5f5;
    --color-light-alt: #e0e0e0;
    --color-accent: #c5a553;
    --color-accent-dark: #a88d42;
    --color-text-light: #dcdcdc;
    --color-text-dark: #333333;
    --color-border: #444;
    --color-success: #4caf50;
    --header-height: 80px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;
    --section-padding: 100px 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.subpage body {
    background-color: var(--color-light);
    color: var(--color-text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-light);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--color-light);
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.section-padding {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-intro {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-light-alt);
    font-size: 1.1rem;
}

/* ===================================
   2. BUTTONS & UI ELEMENTS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    z-index: 2;
}

.btn i {
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-dark);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    color: var(--color-dark);
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-light);
    border-color: var(--color-light);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--color-dark);
}

.btn-secondary:hover::before {
    transform: scaleX(1);
}

.btn-secondary:hover i {
    animation: bounce-arrow 0.5s ease-in-out;
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* ===================================
   3. HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-fast);
    padding: 0 20px;
    background: transparent;
}

.header.scrolled {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.subpage .header {
    background-color: var(--color-light);
    border-bottom: 1px solid #ddd;
}

.subpage .header .nav-link,
.subpage .header .header-icon,
.subpage .header .logo-link {
    color: var(--color-dark);
}

.logo-link img,.footer-logo-link img {

    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
    object-fit: cover;
}

.subpage .header .nav-link:hover,
.subpage .header .header-icon:hover {
    color: var(--color-accent);
}

.subpage .header .bar {
    background-color: var(--color-dark);
}

.subpage .header .btn-primary {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-light);
}

.subpage .header .btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-dark);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 35px;
    width: auto;
    transition: all var(--transition-fast);
}

.header.scrolled .logo {
    height: 30px;
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--color-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    font-size: 1.2rem;
    color: var(--color-light);
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--color-accent);
    color: var(--color-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-primary);
}

.header-cta {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* --- Mobile Menu --- */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1002;
}

.bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-light);
    transition: all 0.35s ease;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

body.mobile-nav-open .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.mobile-nav-open .bar-middle {
    opacity: 0;
}

body.mobile-nav-open .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-dark);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

body.mobile-nav-open .mobile-nav {
    transform: translateX(0);
    display: flex;
}

.mobile-nav nav ul {
    text-align: center;
}

.mobile-nav nav ul li {
    margin: 25px 0;
}

.mobile-nav nav ul li a {
    font-size: 2rem;
    font-family: var(--font-secondary);
    color: var(--color-light);
}

/* ===================================
   4. HERO SECTION
   =================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1566150905458-1bf1e6999abc?q=80&w=2340&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: zoom-in 20s ease-out infinite;
}

@keyframes zoom-in {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-light);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-light-alt);
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 1s forwards;
}

.hero-title.animate-on-load {
    animation-delay: 0.5s;
}

.hero-subtitle.animate-on-load {
    animation-delay: 0.8s;
}

.hero .btn.animate-on-load {
    animation-delay: 1.1s;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   5. FEATURED CATEGORIES SECTION
   =================================== */
.featured-categories {
    background-color: var(--color-dark-alt);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.category-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    height: 400px;
}

.category-card:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    height: 830px;
}

.category-card:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.category-card:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.category-card:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    height: 400px;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--color-light);
    transition: var(--transition-slow);
}

.category-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 70%);
}

.card-overlay h3 {
    font-size: 2.5rem;
    transform: translateY(20px);
    opacity: 1;
    transition: all var(--transition-slow);
}

.btn-explore {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
}

.btn-explore i {
    transition: transform var(--transition-fast);
}

.category-card:hover .card-overlay h3 {
    transform: translateY(0);
}

.category-card:hover .btn-explore {
    opacity: 1;
    transform: translateY(0);
}

.btn-explore:hover i {
    transform: translateX(5px);
}

/* ===================================
   6. CRAFTSMANSHIP SECTION
   =================================== */
.craftsmanship-section {
    position: relative;
    background-color: var(--color-dark);
    color: var(--color-light);
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1555528383-70b134a65a63?q=80&w=2187&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 0;
}

.craftsmanship-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    padding: 40px;
    background-color: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 8px;
}

.craftsmanship-content .section-title::after {
    left: 0;
    transform: translateX(0);
}

.craftsmanship-content p {
    font-size: 1.1rem;
    color: var(--color-light-alt);
}

.craftsmanship-content .btn {
    margin-top: 20px;
}


/* ===================================
   7. NEW ARRIVALS SLIDER
   =================================== */
.new-arrivals-section {
    background-color: var(--color-dark);
}

.product-slider-wrapper {
    position: relative;
    margin: 0 -20px;
    /* Counteract container padding */
}

.product-slider {
    overflow: hidden;
}

.product-card-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.product-card {
    flex: 0 0 25%;
    padding: 0 20px;
    text-align: center;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--color-dark-alt);
    margin-bottom: 20px;
    border-radius: 4px;
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateX(50px);
    opacity: 0;
    transition: all var(--transition-slow);
}

.product-card:hover .product-actions {
    transform: translateX(0);
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    background-color: var(--color-light);
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.action-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.btn-add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: var(--color-accent);
    color: var(--color-dark);
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.product-card:hover .btn-add-to-cart {
    transform: translateY(0);
}

.product-info {
    transition: var(--transition-fast);
}

.product-name {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-light);
    margin-bottom: 5px;
}

.product-price {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: var(--color-accent);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border);
    color: var(--color-light);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-dark);
    border-color: var(--color-accent);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

/* ===================================
   8. JOURNAL SECTION
   =================================== */
.journal-section {
    background-color: var(--color-dark-alt);
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.journal-card {
    background-color: var(--color-dark);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.journal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.journal-image {
    height: 250px;
    overflow: hidden;
}

.journal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.journal-card:hover .journal-image img {
    transform: scale(1.05);
}

.journal-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.journal-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.journal-title {
    font-size: 1.5rem;
    color: var(--color-light);
}

.journal-excerpt,
.journal-author {
    color: var(--color-light-alt);
    flex-grow: 1;
}

.journal-excerpt {
    font-style: italic;
    border-left: 3px solid var(--color-border);
    padding-left: 15px;
    margin-top: 10px;
}

.journal-author {
    font-weight: 500;
    margin-top: 10px;
    font-style: normal;
}

.read-more {
    color: var(--color-accent);
    font-weight: 600;
    margin-top: auto;
    display: inline-block;
    align-self: flex-start;
}

.read-more i {
    transition: transform var(--transition-fast);
    margin-left: 5px;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ===================================
   9. BRAND ETHOS SECTION
   =================================== */
.brand-ethos-section {
    background-color: var(--color-dark);
}

.ethos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    text-align: center;
}

.ethos-item {
    padding: 20px;
}

.ethos-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    transition: transform var(--transition-fast);
}

.ethos-item:hover .ethos-icon {
    transform: scale(1.1) rotate(-5deg);
}

.ethos-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--color-light);
    margin-bottom: 10px;
}

.ethos-text {
    color: var(--color-light-alt);
}

/* ===================================
   10. INSTAGRAM SECTION
   =================================== */
.instagram-section {
    padding: var(--section-padding);
    background-color: var(--color-dark-alt);
}

.instagram-section .container {
    margin-bottom: 40px;
}

.instagram-handle {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--color-accent);
}

.instagram-handle:hover {
    text-decoration: underline;
}

.instagram-feed {
    display: flex;
    overflow-x: hidden;
    /* Prevent scrollbar, images will overflow */
}

.insta-post {
    flex: 0 0 20%;
    position: relative;
    overflow: hidden;
}

.insta-post::after {
    content: '\f16d';
    /* Instagram icon */
    font-family: 'Font Awesome 5 Brands';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition-fast);
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.insta-post:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.insta-post:hover::after {
    opacity: 1;
}

/* ===================================
   11. FOOTER
   =================================== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light-alt);
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-shape {
    position: absolute;
    background-color: var(--color-accent);
    border-radius: 50%;
    opacity: 0.05;
}

.footer-shape.shape-1 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
}

.footer-shape.shape-2 {
    width: 200px;
    height: 200px;
    top: 50px;
    left: -80px;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--color-border);
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-about-text {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-light-alt);
    font-size: 1rem;
}

.social-link:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.footer-col-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--color-light);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--color-light-alt);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    background: var(--color-dark-alt);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-light);
    font-family: var(--font-primary);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 38px;
    background: var(--color-accent);
    border: none;
    border-radius: 50%;
    color: var(--color-dark);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    background-color: var(--color-accent-dark);
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-legal-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: var(--color-light-alt);
}

.footer-legal-links a:hover {
    color: var(--color-accent);
}

.footer-bottom p small {
    display: block;
    margin-top: 5px;
    opacity: 0.6;
}

/* ===================================
   12. LEGAL & CONTACT PAGES
   =================================== */
.page-header {
    background-color: var(--color-dark);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1519708226922-24d4a8f8c418?q=80&w=2187&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--color-light);
    font-size: 3.5rem;
}

.breadcrumbs {
    margin-top: 10px;
    color: var(--color-light-alt);
}

.breadcrumbs a {
    color: var(--color-accent);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs i {
    font-size: 0.8rem;
    margin: 0 10px;
}

.breadcrumbs span {
    color: var(--color-light);
}

.page-content {
    background-color: var(--color-light);
    color: var(--color-text-dark);
    padding: var(--section-padding);
}

.page-content h2 {
    color: var(--color-text-dark);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper p,
.content-wrapper ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.content-wrapper ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.content-wrapper a {
    color: var(--color-accent-dark);
    font-weight: 500;
}

.content-wrapper a:hover {
    text-decoration: underline;
}

.content-wrapper strong {
    color: var(--color-dark);
}

.last-updated {
    margin-top: 3rem;
    font-style: italic;
    color: #777;
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* ===================================
   13. CONTACT PAGE SPECIFIC STYLES
   =================================== */
.contact-hero {
    background: var(--color-dark);
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-hero-content h1 {
    font-size: 4rem;
}

.contact-hero-content p {
    font-size: 1.2rem;
    color: var(--color-light-alt);
    max-width: 700px;
    margin: 1rem auto 0;
}

.contact-hero-shapes .contact-shape {
    position: absolute;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.1;
}

.contact-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -100px;
}

.contact-shape.shape-2 {
    width: 250px;
    height: 250px;
    bottom: -100px;
    right: -50px;
}

.contact-section {
    padding: var(--section-padding);
    background: var(--color-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.contact-info p {
    color: #666;
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.method-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.method-details h3 {
    font-size: 1.2rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 5px;
}

.method-details p {
    margin: 0;
}

.method-details a {
    color: #555;
    font-weight: normal;
}

.method-details a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(197, 165, 83, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    grid-column: 1 / -1;
    width: auto;
    justify-self: start;
    margin-top: 10px;
}

/* Contact Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform var(--transition-fast);
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-content h3 {
    color: var(--color-dark);
    margin-bottom: 10px;
}

.popup-content p {
    color: #555;
    margin-bottom: 20px;
}

.popup-content .btn {
    background-color: var(--color-dark);
    color: var(--color-light);
    border-color: var(--color-dark);
}

.popup-content .btn:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-dark);
}

/* ===================================
   14. ANIMATIONS & HELPERS
   =================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.animate-on-scroll.is-visible:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll.is-visible:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-scroll.is-visible:nth-child(4) {
    transition-delay: 0.3s;
}

.animate-on-scroll.is-visible:nth-child(5) {
    transition-delay: 0.4s;
}

.animate-on-scroll.is-visible:nth-child(6) {
    transition-delay: 0.5s;
}


/* ===================================
   15. RESPONSIVE DESIGN
   =================================== */

/* --- Tablet (up to 1024px) --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-card:first-child,
    .category-card:nth-child(2),
    .category-card:nth-child(3),
    .category-card:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
        height: 400px;
    }

    .product-card {
        flex: 0 0 33.33%;
    }

    .slider-btn {
        display: none;
    }

    /* Hide buttons, rely on swipe */
    .product-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .product-card-container {
        scroll-snap-align: start;
    }

    .journal-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ethos-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about,
    .footer-newsletter {
        grid-column: 1 / -1;
    }

    .footer-about {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile (up to 767px) --- */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .header .container {
        padding: 0 15px;
    }

    .logo {
        height: 30px;
    }

    .header-actions {
        gap: 15px;
    }

    .header-icon {
        font-size: 1rem;
    }

    .header-icon:nth-child(1),
    .header-icon:nth-child(2) {
        display: none;
        /* Hide search and user on mobile header */
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 90%;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 350px !important;
    }

    .craftsmanship-content {
        padding: 30px;
        margin: 0 -20px;
        /* Extend to edges */
    }

    .craftsmanship-content p {
        font-size: 1rem;
    }

    .product-card {
        flex: 0 0 80%;
    }

    .product-slider-wrapper {
        margin: 0;
    }

    .journal-grid {
        grid-template-columns: 1fr;
    }

    .instagram-feed {
        flex-wrap: wrap;
    }

    .insta-post {
        flex: 0 0 50%;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col ul {
        padding: 0;
    }

    .footer-col-title {
        margin-bottom: 15px;
    }

    .newsletter-form {
        max-width: 350px;
        margin: 0 auto;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-legal-links {
        gap: 5px 15px;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .content-wrapper p,
    .content-wrapper ul li {
        font-size: 1rem;
    }

    .contact-hero {
        padding: 140px 0 80px;
    }

    .contact-hero-content h1 {
        font-size: 2.8rem;
    }

    .contact-wrapper {
        padding: 30px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

}