/* 
 * KRAFTIS Store - Main Stylesheet
 * Migrating to Pure CSS (Option 1: Semantic)
 */

:root {
    /* Colors - Kraft Palette */
    --color-kraft-50: #f9fafc;
    --color-kraft-100: #F0EBD9;
    --color-kraft-200: #E2D5B5;
    --color-kraft-300: #D4BF91;
    --color-kraft-400: #C5A065;
    /* Primary */
    --color-kraft-500: #B88F4A;
    --color-kraft-600: #9E7635;
    --color-kraft-700: #7A5826;
    --color-kraft-800: #5C411D;
    --color-kraft-900: #422F15;

    /* Colors - Dark Palette */
    --color-dark-900: #1A1A1A;
    --color-dark-800: #262626;
    --color-dark-700: #333333;

    /* Colors - Gray Palette */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;

    /* Base Colors */
    --bg-primary: var(--color-kraft-50);
    --text-primary: var(--color-dark-900);
    --text-muted: var(--color-dark-700);
    --accent: var(--color-kraft-400);

    /* Fonts */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Container */
    --container-max-width: 1500px;
    --container-padding: 0 2rem;
}

/* Base Reset & Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 600;
}

a {
    transition: color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities (minimal set needed for structure) */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        overflow-x: clip;
        /* Prevent horizontal spill */
    }

    body {
        overflow-x: hidden;
        position: relative;
    }
}

.container--header {
    height: 100%;
}

/* Base Utilities */
.flex {
    display: flex !important;
}

.hidden {
    display: none !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.w-full {
    width: 100% !important;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex !important;
    }

    .md\:hidden {
        display: none !important;
    }
}

.border-transparent {
    border-color: transparent !important;
}

.border-kraft-500 {
    border-color: var(--color-kraft-500) !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.relative {
    position: relative;
}

.hidden {
    display: none !important;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.fixed {
    position: fixed;
}

.z-50 {
    z-index: 50;
}

.z-60 {
    z-index: 60;
}

.z-70 {
    z-index: 70;
}

.inset-y-0 {
    top: 0;
    bottom: 0;
}

.left-0 {
    left: 0;
}

.w-64 {
    width: 16rem;
}

.bg-white {
    background-color: #ffffff;
}

.shadow-2xl {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.transform {
    transform: var(--tw-transform);
}

.-translate-x-full {
    --tw-translate-x: -100%;
    transform: translateX(var(--tw-translate-x));
}

.translate-x-0 {
    --tw-translate-x: 0;
    transform: translateX(var(--tw-translate-x));
}

.transition-transform {
    transition-property: transform;
}

.transition-opacity {
    transition-property: opacity;
}

.duration-300 {
    transition-duration: 300ms;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-dark-900);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--color-kraft-400);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--color-dark-900);
    color: var(--color-dark-900);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    text-align: center;
}

.btn-outline:hover {
    background-color: var(--color-dark-900);
    color: #ffffff;
}

/* Site Header (Refinement) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: #ffffff;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
    /* md:py-5 equivalent */
    color: var(--color-dark-900);
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--color-kraft-200);
    padding: 0.75rem 0;
    /* md:py-3 equivalent */
}

/* Mobile Menu Sidebar */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.5);
    /* dark-900/50 */
    z-index: 60;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 16rem;
    background-color: #ffffff;
    z-index: 70;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__header {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu__header .site-logo {
    position: static;
    transform: none;
    font-size: 1.5rem;
}

.mobile-menu__nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu__link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-dark-900);
}

.mobile-menu__link:hover {
    color: var(--color-kraft-600);
}

.mobile-menu__section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    /* gray-400 */
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.mobile-menu__link--danger {
    color: #ef4444;
}

/* Extra Global */
.overflow-hidden {
    overflow: hidden !important;
}

.h-20 {
    height: 5rem;
}

.site-header__content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 768px) {
    .site-logo {
        position: static;
        transform: none;
    }
}

.site-logo__dot {
    color: var(--color-kraft-400);
}

/* Main Navigation */
.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: 2rem;
    }
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-kraft-500);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.action-icon {
    position: relative;
    color: inherit;
    transition: color 0.3s ease;
}

.action-icon:hover {
    color: var(--color-kraft-500);
}

.action-icon__badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: var(--color-kraft-500);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.action-icon__badge--cart {
    background-color: var(--color-kraft-500);
}

.action-icon__badge--notify {
    background-color: #ef4444;
    /* red-500 */
}

/* Auth Buttons */
.auth-btn {
    background-color: var(--color-dark-900);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: none;
}

@media (min-width: 768px) {
    .auth-btn {
        display: block;
    }
}

.auth-btn:hover {
    background-color: var(--color-kraft-500);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: none;
}

@media (min-width: 768px) {
    .user-dropdown {
        display: block;
    }
}

.user-dropdown__toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

.user-dropdown__toggle:hover {
    color: var(--color-kraft-500);
}

.user-dropdown__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: 12rem;
    background-color: #ffffff;
    border: 1px solid var(--color-kraft-100);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.user-dropdown:hover .user-dropdown__menu {
    opacity: 1;
    visibility: visible;
}

.user-dropdown__item {
    display: block;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.user-dropdown__item:hover {
    background-color: var(--color-kraft-50);
}

.user-dropdown__item--danger {
    color: #ef4444;
}

/* Mobile Toggle */
.mobile-toggle {
    display: block;
    padding: 0.5rem;
    margin-left: -0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle:hover {
    color: var(--color-kraft-600);
}

/* Utility to add spacer for fixed header */
.header-spacer {
    height: 80px;
}

/* Site Footer */
.site-footer {
    background-color: var(--color-dark-900);
    color: #ffffff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column h3 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--color-kraft-100);
    font-family: var(--font-sans);
}

.footer-column p {
    color: #9ca3af;
    /* text-gray-400 */
    font-weight: 300;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #9ca3af;
}

.footer-link:hover {
    color: var(--color-kraft-400);
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-input {
    background-color: var(--color-dark-800);
    border: 1px solid var(--color-dark-700);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.footer-input:focus {
    border-color: var(--color-kraft-400);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #ffffff;
    line-height: 1.4;
    margin-top: 0.8rem;
    font-weight: 300;
}

.footer-btn {
    background-color: var(--color-kraft-400);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.footer-btn:hover {
    background-color: var(--color-kraft-500);
}

.footer-bottom {
    border-top: 1px solid var(--color-dark-800);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #6b7280;
    /* gray-500 */
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    color: var(--color-kraft-400);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 1rem;
    border-top: 1px solid #374151;
    /* gray-700 */
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        padding: 1rem 1.5rem;
    }
}

.cookie-banner.active {
    transform: translateY(0);
}

/* --- HOMEPAGE STYLES --- */

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(26, 26, 26, 0.7);
    /* dark-900/70 */
}

.hero__content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    /* max-w-4xl */
    margin: 0 auto;
    padding: 0 1rem;
}

.hero__subtitle {
    display: block;
    color: var(--color-kraft-100);
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero__title .italic {
    font-style: italic;
    color: var(--color-kraft-200);
}

.hero__description {
    font-size: 1.125rem;
    color: #e5e7eb;
    /* gray-200 */
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.625;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero__actions {
        flex-direction: row;
    }
}

.hero__btn {
    min-width: 200px;
    padding: 1rem 2.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 9999px;
}

.hero__btn--primary {
    background-color: #ffffff;
    color: var(--color-dark-900);
}

.hero__btn--primary:hover {
    background-color: var(--color-kraft-100);
}

.hero__btn--outline {
    border: 1px solid #ffffff;
    color: #ffffff;
    background: transparent;
}

.hero__btn--outline:hover {
    background-color: #ffffff;
    color: var(--color-dark-900);
}

/* Features Section */
.section-padding {
    padding: 5rem 0;
    /* py-20 */
}

.section-padding--large {
    padding: 6rem 0;
    /* py-24 */
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    transition: background-color 0.3s ease;
}

.feature-card:hover {
    background-color: var(--color-kraft-50);
}

.feature-card__icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--color-kraft-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--color-kraft-600);
}

.feature-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card__text {
    color: #6b7280;
    /* gray-500 */
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header__subtitle {
    display: block;
    color: var(--color-kraft-600);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.section-header__title {
    font-size: 2.25rem;
    color: var(--color-dark-900);
}

.section-header__link {
    color: var(--color-kraft-600);
    font-weight: 500;
    display: none;
}

@media (min-width: 768px) {
    .section-header__link {
        display: block;
    }
}

.section-header__link:hover {
    color: var(--color-kraft-800);
}

/* Product Cards & Horizontal Scroll */
.scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.product-card {
    flex: 0 0 42%;
    min-width: 0;
    scroll-snap-align: start;
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    /* gray-100 */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .product-card {
        flex: 0 0 30%;
    }
}

@media (min-width: 1024px) {
    .product-card {
        flex: 0 0 calc(25% - 1.125rem);
    }
}

.product-card:hover {
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.product-card__image-box {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.1);
}

.product-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
}

.product-card:hover .product-card__overlay {
    transform: translateY(0);
}

.product-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: #fef3c7;
    /* amber-100 */
    color: #92400e;
    /* amber-800 */
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.product-card__badge--unavailable {
    background-color: #f3f4f6;
    color: #6b7280;
}

.product-card__content {
    padding: 1.25rem;
}

.product-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-dark-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    transition: color 0.3s ease;
}

.product-card:hover .product-card__title {
    color: var(--color-kraft-600);
}

.product-card__price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-kraft-600);
}

.product-price--old {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-price__discount {
    font-size: 0.75rem;
    background-color: #fee2e2;
    /* red-100 */
    color: #dc2626;
    /* red-600 */
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

/* Blog Feed */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
}

.post-card__image-box {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f3f4f6;
}

.post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.post-card:hover .post-card__image {
    transform: scale(1.05);
}

.post-card__content {
    padding: 1.5rem;
}

.post-card__date {
    font-size: 0.75rem;
    color: var(--color-kraft-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.post-card__title {
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.post-card:hover .post-card__title {
    color: var(--color-kraft-600);
}

.post-card__excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* --- BLOG PAGE STYLES --- */
.page-hero {
    background-color: var(--color-kraft-50);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url('../img/pattern.png');
    background-repeat: repeat;
}

.page-hero__content {
    position: relative;
    z-index: 10;
}

.page-hero__subtitle {
    display: block;
    color: var(--color-kraft-500);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.page-hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--color-dark-900);
    margin-bottom: 1.5rem;
}

.page-hero__description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
}

.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pagination__link:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.pagination__link--active {
    background-color: var(--color-dark-900);
    color: #ffffff;
    border-color: var(--color-dark-900);
}

.pagination__link--nav {
    border-radius: 2rem;
}

/* --- POST DETAIL STYLES --- */
.post-header {
    position: relative;
    padding: 6rem 0;
    background-color: var(--color-kraft-50);
    overflow: hidden;
    text-align: center;
}

.post-header__bg {
    position: absolute;
    inset: 0;
}

.post-header__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(8px);
    transform: scale(1.1);
}

.post-header__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-kraft-50), transparent);
}

.post-header__content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
}

.post-header__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--color-dark-900);
}

.post-header__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.post-header__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-content-wrapper {
    max-width: 48rem;
    margin: -4rem auto 0;
    position: relative;
    z-index: 20;
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

@media (min-width: 768px) {
    .post-content-wrapper {
        padding: 4rem;
    }
}

.post-main-image {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Rich Text Content */
.rich-content {
    line-height: 1.8;
    color: #374151;
}

.rich-content p {
    margin-bottom: 1.5rem;
}

.rich-content h2,
.rich-content h3 {
    color: var(--color-dark-900);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.rich-content h2 {
    font-size: 1.875rem;
}

.rich-content h3 {
    font-size: 1.5rem;
}

.rich-content img {
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.rich-content blockquote {
    border-left: 4px solid var(--color-kraft-500);
    padding: 1rem 1.5rem;
    background-color: var(--color-kraft-50);
    font-style: italic;
    margin: 2rem 0;
    color: #4b5563;
    border-radius: 0 0.5rem 0.5rem 0;
}

.rich-content ul,
.rich-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.rich-content li {
    margin-bottom: 0.5rem;
}

/* Share Section */
.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-links {
    display: flex;
    gap: 1.5rem;
}

.share-link {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.share-link:hover {
    color: var(--color-kraft-600);
}



/* --- ABOUT PAGE STYLES --- */
.hero--dark {
    background-color: var(--color-dark-900);
    color: #ffffff;
}

.hero--dark .hero__subtitle {
    color: var(--color-kraft-400);
}

.split-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .split-section {
        flex-direction: row;
        gap: 5rem;
    }

    .split-section>* {
        flex: 1;
    }
}

.image-decorative-wrapper {
    position: relative;
    width: 100%;
}

.image-decorative-wrapper img {
    border-radius: 2rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
}

.image-decorative-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 15rem;
    height: 15rem;
    background-color: var(--color-kraft-100);
    border-radius: 2rem;
    z-index: 0;
}

.founders-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 64rem;
    margin: 4rem auto 0;
}

@media (min-width: 768px) {
    .founders-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.founder-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 2rem;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
}

.founder-initials {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 4px solid var(--color-kraft-100);
    color: #ffffff;
}

.cta-box {
    background-color: var(--color-dark-900);
    border-radius: 3rem;
    padding: 3rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-box {
        padding: 5rem;
    }
}

.cta-box__title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
}

.cta-box__actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .cta-box__actions {
        flex-direction: row;
    }
}

/* --- CONTACT PAGE STYLES --- */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        flex-direction: row;
        gap: 4rem;
    }

    .contact-info {
        flex: 1;
    }

    .contact-form-wrapper {
        flex: 2;
    }
}

.form-card {
    background-color: #f9fafb;
    padding: 2.5rem;
    border-radius: 2rem;
    border: 1px solid #f3f4f6;
}

@media (min-width: 768px) {
    .form-card {
        padding: 4rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--color-kraft-500);
    box-shadow: 0 0 0 3px var(--color-kraft-100);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert--success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #059669;
}

/* --- PRODUCT PAGE EXTRAS --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal--hidden {
    display: none;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(31, 41, 55, 0.75);
}

.modal__content {
    position: relative;
    background-color: #ffffff;
    border-radius: 1rem;
    width: 100%;
    max-width: 32rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.modal__header {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.modal__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--color-kraft-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-kraft-600);
    flex-shrink: 0;
}

.modal__title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-dark-900);
    margin-bottom: 0.5rem;
}

.modal__text {
    font-size: 0.875rem;
    color: #6b7280;
}

.modal__footer {
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    display: flex;
    flex-direction: row-reverse;
    gap: 0.75rem;
}

/* Video Player */
.video-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    width: 4rem;
    height: 4rem;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-kraft-200);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-trigger:hover {
    transform: scale(1.1);
}

.video-modal {
    position: fixed;
    bottom: 7rem;
    right: 2rem;
    z-index: 50;
    width: 18rem;
    aspect-ratio: 9 / 16;
    background-color: #000000;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

.video-modal--hidden {
    display: none;
    opacity: 0;
    transform: scale(0.5);
}

@media (max-width: 768px) {
    .video-trigger {
        width: 3.5rem;
        height: 3.5rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .video-modal {
        width: 14rem;
        bottom: 6rem;
        right: 1.5rem;
    }
}

.video-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 20;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
}

.video-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* --- AUTH PAGE STYLES --- */
.auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-kraft-50);
    padding: 3rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 28rem;
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.875rem;
    font-family: var(--font-serif);
    color: var(--color-dark-900);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-subtitle a {
    color: var(--color-kraft-600);
    font-weight: 500;
}

.auth-subtitle a:hover {
    color: var(--color-kraft-500);
}

.alert--error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

/* --- SHOP SIDEBAR --- */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

@media (min-width: 768px) {
    .sidebar-header {
        display: block;
        cursor: default;
    }

    .mobile-only {
        display: none !important;
    }
}

.category-list {
    display: none;
    margin-top: 1rem;
    list-style: none;
    padding: 0;
}

@media (min-width: 768px) {
    .category-list {
        display: block !important;
        margin-top: 0;
    }
}

.category-list.active {
    display: block !important;
}

/* --- CART & CHECKOUT STYLES --- */
.alert--preorder {
    background-color: var(--color-kraft-50);
    border: 1px solid var(--color-kraft-200);
    color: var(--color-dark-900);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
}

.alert--preorder .alert__icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-kraft-600);
    flex-shrink: 0;
}

.cart-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cart-layout {
        flex-direction: row;
    }

    .cart-main {
        flex: 2;
    }

    .cart-sidebar {
        flex: 1;
    }
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cart-table th {
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 600;
}

.cart-table td {
    padding: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item__image {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
}

.cart-item__name {
    font-weight: 500;
    color: var(--color-dark-900);
}

/* Missing Utility */
.bg-kraft-50 {
    background-color: var(--color-kraft-50) !important;
}

.cart-mobile-item {
    background-color: #ffffff !important;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.cart-summary {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #4b5563;
}

.summary-row--total {
    border-top: 1px solid #f3f4f6;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark-900);
}

/* Layout Utilities */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-2xl {
    max-width: 42rem;
}

.leading-relaxed {
    line-height: 1.625;
}

.font-light {
    font-weight: 300;
}

.mt-12 {
    margin-top: 3rem;
}

.block {
    display: block;
}

.w-full {
    width: 100%;
}

/* --- SHOP PAGE STYLES --- */
.shop-page {
    background-color: var(--color-kraft-50);
    min-height: 100vh;
    padding: 3rem 0;
}

.shop-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .shop-header {
        flex-direction: row;
    }
}

.shop-title {
    font-size: 2.25rem;
    color: var(--color-dark-900);
}

.shop-header__right {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .shop-header__right {
        width: auto;
        gap: 1.5rem;
    }
}

.shop-results-count {
    font-size: 0.875rem;
    color: #6b7280;
    white-space: nowrap;
}

.shop-sort-select {
    padding: 0.5rem 2.25rem 0.5rem 1rem !important;
    border-radius: 9999px !important;
    font-size: 0.875rem !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.875rem center !important;
    background-size: 1rem !important;
    min-width: 140px;
}

.shop-sort-select:focus {
    border-color: var(--color-kraft-500) !important;
    box-shadow: 0 0 0 3px var(--color-kraft-100) !important;
}

.shop-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .shop-layout {
        flex-direction: row;
        overflow-x: visible;
    }
}

/* Sidebar */
.shop-sidebar {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .shop-sidebar {
        width: 16rem;
    }
}

.sidebar-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .sidebar-card {
        position: sticky;
        top: 6rem;
    }
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-dark-900);
}

.category-list {
    list-style: none;
}

.category-list--nested {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #4b5563;
    /* gray-600 */
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.category-link:hover {
    background-color: #f9fafb;
    color: var(--color-kraft-600);
}

.category-link.active {
    background-color: var(--color-kraft-100);
    color: var(--color-kraft-800);
    font-weight: 500;
}

.category-link__icon {
    margin-right: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Products Grid */
.shop-main {
    flex: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Badge for Partner Stock */
.stock-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #ecfdf5;
    /* Light Green */
    color: #10b981;
    /* Green */
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* --- PRODUCT PAGE STYLES --- */
.product-page {
    background-color: var(--color-kraft-50);
    min-height: 100vh;
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .product-page {
        overflow-x: hidden;
        /* Prevent spill only on mobile */
    }
}

.breadcrumbs {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    /* Critical for long paths on mobile */
    align-items: center;
    gap: 0.25rem;
    line-height: 1.4;
}

.breadcrumbs a:hover {
    color: var(--color-kraft-500);
}

.breadcrumbs .separator {
    margin: 0;
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--color-dark-900);
}

.product-detail-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    /* Default overflow:hidden for mobile stability */
}

@media (min-width: 768px) {
    .product-detail-card {
        overflow: visible;
        /* Restore for sticky on desktop only */
    }
}

@media (max-width: 768px) {
    .product-detail-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Gallery */
.product-gallery {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column-reverse;
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 768px) {
    .product-gallery {
        overflow: hidden;
        /* Contains thumbnails/arrows spill on mobile */
    }
}

@media (min-width: 768px) {
    .product-gallery {
        flex-direction: row;
        padding: 2rem;
        gap: 2rem;
        position: sticky;
        top: 6rem;
        align-self: flex-start;
        overflow: visible;
        /* Ensure sticky works */
    }
}

.gallery-thumbs-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    /* Allow flex children to shrink */
}

@media (min-width: 768px) {
    .gallery-thumbs-wrapper {
        width: 6rem;
        flex-direction: column;
        max-height: 500px;
        /* Increased slightly */
    }
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Hide scrollbar for IE/Edge */
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

@media (min-width: 768px) {
    .gallery-thumbs {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.thumb-item {
    aspect-ratio: 1 / 1;
    width: 5rem;
    height: auto;
    /* Allow aspect-ratio to control height */
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thumb-item.active {
    border-color: var(--color-kraft-500);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main {
    width: 100%;
    position: relative;
    aspect-ratio: 1 / 1;
    /* Modern way */
    background-color: #f3f4f6;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Fallback for older browsers if aspect-ratio fails */
@supports not (aspect-ratio: 1/1) {
    .gallery-main {
        height: 0;
        padding-bottom: 100%;
    }
}

@media (min-width: 768px) {
    .gallery-main {
        padding-bottom: 0;
        height: auto;
        aspect-ratio: 1 / 1;
        flex: 1;
    }
}

.gallery-main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Gallery Navigation Arrows */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--color-dark-900);
    z-index: 100;
    transition: all 0.2s;
    opacity: 0;
    pointer-events: auto;
    /* Ensure it catches clicks */
}

.gallery-main:hover .gallery-nav-btn {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .gallery-nav-btn {
        opacity: 1;
        /* Always visible on mobile */
        width: 2rem;
        height: 2rem;
    }
}

.gallery-nav-btn:hover {
    background-color: #ffffff;
    color: var(--color-kraft-500);
}

.gallery-nav-btn--prev {
    left: 1rem;
}

.gallery-nav-btn--next {
    right: 1rem;
}

/* Info Section */
.product-info {
    padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
    .product-info {
        padding: 2rem 2rem 2rem 0;
    }
}

.product-info-category {
    color: var(--color-kraft-500);
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.product-info-title {
    font-size: 1.75rem;
    color: var(--color-dark-900);
    margin-bottom: 1rem;
    line-height: 1.2;
    word-wrap: break-word;
    /* Security against long strings */
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .product-info-title {
        font-size: 2.25rem;
    }
}

.product-price-section {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-kraft-600);
}

@media (min-width: 768px) {
    .product-detail-price {
        font-size: 2rem;
    }
}

.product-detail-price-tax {
    font-size: 0.75rem;
    color: #9ca3af;
}

.product-description-container {
    margin-bottom: 2rem;
    position: relative;
}

.product-description {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    /* Smooth transition */
    max-height: none;
    /* Default to expanded */
}

.product-description.is-truncated {
    max-height: 192px;
    /* 12rem */
}

.description-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    background: linear-gradient(to top, #ffffff, transparent);
    pointer-events: none;
    display: none;
}

.product-description.is-truncated+.description-fade {
    display: block;
    /* Show only when truncated */
}

.description-toggle {
    margin: 1.5rem auto 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--color-kraft-600);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
    text-transform: uppercase;
    transition: all 0.2s;
}

.description-toggle:hover {
    background: #f1f5f9;
    border-color: var(--color-kraft-300);
}

/* Actions */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    /* Wrap on very small screens */
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-input {
    width: 6rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
    font-weight: 700;
    outline: none;
}

.quantity-input:focus {
    border-color: var(--color-kraft-500);
}

.add-to-cart-btn {
    flex: 1;
    background-color: var(--color-dark-900);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: var(--color-kraft-600);
}

.add-to-cart-btn--preorder {
    background-color: var(--color-kraft-500);
}

/* Stock Status Boxes */
.stock-status-box {
    margin-bottom: 1.5rem;
}

.availability-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.dot--success {
    background-color: #10b981;
}

.dot--warning {
    background-color: #f59e0b;
}

.dot--danger {
    background-color: #ef4444;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.1);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* Locations Section */
.locations-section {
    margin-top: 2rem;
}

.location-card {
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Official Store - Premium Gold/White Look */
.location-card--official {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-kraft-50) 100%);
    border: 1px solid var(--color-kraft-200);
    box-shadow: 0 10px 30px -5px rgba(184, 143, 74, 0.1);
}

.location-card--official:hover {
    box-shadow: 0 15px 35px -5px rgba(184, 143, 74, 0.15);
    transform: translateY(-2px);
    border-color: var(--color-kraft-300);
}

/* Visual accent strip */
.location-card--official::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-kraft-500);
}

/* Partner Store - Clean Look */
.location-card--partner {
    background: #ffffff;
    border: 1px solid var(--color-gray-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.location-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-dark-900);
}

.location-card--official .location-card__title i {
    color: var(--color-kraft-500);
    font-size: 1.25rem;
}

.location-card__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.location-card--official .location-item {
    background-color: #ffffff;
    border: 1px solid var(--color-kraft-100);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.location-card--official .location-item:hover {
    border-color: var(--color-kraft-300);
    box-shadow: 0 4px 6px rgba(184, 143, 74, 0.1);
}

.location-card--partner .location-item {
    background-color: var(--color-gray-50);
    border: 1px solid transparent;
}

/* Related */
.related-section {
    margin-top: 4rem;
}

.related-title {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animations (Reuse from earlier) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- DASHBOARD STYLES --- */
.rotate-90 {
    transform: rotate(90deg);
}

/* Mobile Data Tables Transformation */
@media (max-width: 768px) {

    /* Target primary data tables */
    .table-orders,
    .table-cart {
        display: block;
        width: 100%;
        border: none;
    }

    .table-orders thead,
    .table-cart thead {
        display: none;
        /* Hide headers on mobile */
    }

    .table-orders tbody,
    .table-cart tbody {
        display: block;
        width: 100%;
    }

    /* Each row becomes a card */
    .table-orders tr,
    .table-cart tr {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 1rem;
        background: white;
        border: 1px solid var(--color-gray-200);
        border-radius: 1rem;
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    }

    /* Nested Detail Rows (e.g., items within an order) */
    .table-orders tr[id^="order-items-"],
    .table-orders tr[id^="pos-detail-"],
    .table-orders tr[id^="history-row-"] {
        display: block;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        margin-top: -1rem;
        /* Pull up to join the parent card */
    }

    .table-orders tr[id^="order-items-"] td,
    .table-orders tr[id^="pos-detail-"] td,
    .table-orders tr[id^="history-row-"] td {
        display: block;
        width: 100%;
        padding: 0 !important;
    }

    .table-orders tr[id^="order-items-"] td::before,
    .table-orders tr[id^="pos-detail-"] td::before,
    .table-orders tr[id^="history-row-"] td::before {
        display: none;
    }

    /* Cell styling inside cards */
    .table-orders td,
    .table-cart td {
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
        min-width: 0;
    }

    /* Primary columns span full width */
    .table-orders td:first-child,
    .table-cart td:first-child,
    .table-orders td[data-label="Produto"],
    .table-orders td[data-label="Encomenda"],
    .table-orders td[data-label="Cliente"] {
        grid-column: span 2;
        border-bottom: 1px solid var(--color-gray-50);
        padding-bottom: 0.5rem !important;
        margin-bottom: 0.25rem;
    }

    /* Mobile labels using data-label attribute */
    .table-orders td[data-label]::before,
    .table-cart td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--color-gray-400);
        letter-spacing: 0.05em;
        margin-bottom: 0.15rem;
    }

    /* Custom spacing for IDs and dates */
    .order-id {
        font-weight: 700;
        color: var(--color-kraft-600);
    }

    .order-date {
        order: 1;
    }

    .order-total {
        order: 2;
        font-weight: 700;
    }

    .order-status {
        order: 3;
    }

    /* Actions bottom-aligned and right-justified */
    .table-orders td[data-label="Ações"],
    .table-orders td.text-right {
        grid-column: span 2;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 0.75rem;
        padding-top: 0.75rem !important;
        border-top: 1px solid var(--color-gray-50) !important;
        margin-top: 0.25rem;
    }

    .table-orders td[data-label="Ações"]::before {
        display: none;
    }

    /* Adjust font sizes for mobile cards */
    .table-orders,
    .table-cart {
        font-size: 0.875rem;
    }

    /* Specific adjustment for order items images on mobile cards */
    .table-cart td[data-label="Produto"] img {
        width: 60px !important;
        height: 60px !important;
    }

    /* Badge refinement for mobile */
    .badge--sm {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }
}

.dashboard-page {
    background-color: var(--color-gray-50);
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .dashboard-header {
        flex-direction: row;
        align-items: center;
    }
}

.dashboard-title {
    font-size: 2rem;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-dark-900);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-dark-100);
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    font-size: 1.5rem;
}

.stat-card--blue .stat-card__icon {
    background: #eff6ff;
    color: #2563eb;
}

.stat-card--green .stat-card__icon {
    background: #f0fdf4;
    color: #16a34a;
}

.stat-card--amber .stat-card__icon {
    background: #fffbeb;
    color: #d97706;
}

.stat-card__content {
    flex: 1;
}

.stat-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark-400);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark-900);
    line-height: 1.2;
}

.stat-card__meta {
    font-size: 0.75rem;
    color: var(--color-dark-500);
    margin-top: 0.25rem;
}

.dashboard-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Ambassador Specifics */
.affiliate-code-section {
    background: var(--color-gray-50);
    border: 1px solid var(--color-dark-100);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.affiliate-code-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-dark-100);
    margin-top: 0.5rem;
}

.affiliate-code-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-kraft-600);
    letter-spacing: 0.1em;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--color-dark-400);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-base);
}

.copy-btn:hover {
    color: var(--color-kraft-600);
    background-color: var(--color-gray-50);
}

/* Badges */
.badge--status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.badge--paid {
    background: #dbeafe;
    color: #1e40af;
}

.badge--shipped {
    background: #f3e8ff;
    color: #6b21a8;
}

.badge--delivered {
    background: #dcfce7;
    color: #166534;
}

.badge--cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.badge--archived {
    background: #f3f4f6;
    color: #374151;
}

/* Timeline for History */
.timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--color-dark-100);
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.9rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--color-dark-200);
    border: 2px solid white;
    border-radius: 50%;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-dark-400);
    display: block;
    margin-bottom: 0.25rem;
}

.timeline-content {
    font-size: 0.875rem;
    color: var(--color-dark-700);
}

/* --- HOMEPAGE UTILITIES --- */
.italic {
    font-style: italic;
}

.text-center {
    text-align: center;
}

.block {
    display: block;
}

.hidden {
    display: none;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-muted {
    color: #6b7280;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-dark-900);
    color: #ffffff;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-kraft-600);
}

.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--color-dark-900);
    border: 1px solid var(--color-dark-900);
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: var(--color-dark-900);
    color: #ffffff;
}

/* Responsive Utilities */
@media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }

    .md\:block {
        display: block;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:w-1\/2 {
        width: 50%;
    }

    .md\:p-20 {
        padding: 5rem;
    }
}

/* --- GRID SYSTEM --- */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    grid-template-columns: repeat(1, 1fr);
}

.col-span-2 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-span-2 {
        grid-column: span 2;
    }

    .md\:col-span-1 {
        grid-column: span 1;
    }
}

/* --- VISIBILITY HELPERS --- */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }
}

/* --- DASHBOARD STYLES (Merged from dashboard_styles.css) --- */
.dashboard-page {
    background-color: var(--color-gray-50);
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .dashboard-header {
        flex-direction: row;
        align-items: center;
    }
}

.dashboard-title {
    font-size: 2rem;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-dark-900);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-dark-100);
    display: flex;
    align-items: center;
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    font-size: 1.5rem;
}

.stat-card--blue .stat-card__icon {
    background: #eff6ff;
    color: #2563eb;
}

.stat-card--green .stat-card__icon {
    background: #f0fdf4;
    color: #16a34a;
}

.stat-card--amber .stat-card__icon {
    background: #fffbeb;
    color: #d97706;
}

.stat-card__content {
    flex: 1;
}

.stat-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-dark-400);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark-900);
    line-height: 1.2;
}

.stat-card__meta {
    font-size: 0.75rem;
    color: var(--color-dark-500);
    margin-top: 0.25rem;
}

.dashboard-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Section Headers */
.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.dashboard-section-title {
    font-weight: 700;
    color: var(--color-dark-800);
    margin: 0;
    font-size: 1.25rem;
}

/* Ambassador Specifics */
.affiliate-code-section {
    background: var(--color-gray-50);
    border: 1px solid var(--color-dark-100);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.affiliate-code-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-dark-100);
    margin-top: 0.5rem;
}

.affiliate-code-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-kraft-600);
    letter-spacing: 0.1em;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--color-dark-400);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-base);
}

.copy-btn:hover {
    color: var(--color-kraft-600);
    background-color: var(--color-gray-50);
}

/* Badges */
.badge--status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.badge--paid {
    background: #dbeafe;
    color: #1e40af;
}

.badge--shipped {
    background: #f3e8ff;
    color: #6b21a8;
}

.badge--delivered {
    background: #dcfce7;
    color: #166534;
}

.badge--cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.badge--archived {
    background: #f3f4f6;
    color: #374151;
}

/* Timeline for History */
.timeline {
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 0.5rem;
}

.timeline-dot {
    position: absolute;
    left: -1.65rem;
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--color-white);
    border: 2px solid var(--color-kraft-400);
    border-radius: 50%;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-dark-400);
    display: block;
    margin-bottom: 0.25rem;
}

.timeline-content {
    font-size: 0.875rem;
    color: var(--color-dark-700);
}

/* Summary Blocks */
.dashboard-summary-block {
    background: var(--color-gray-50);
    padding: 1.5rem;
    border-top: 1px solid var(--color-gray-100);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-summary-row {
    display: flex;
    justify-content: space-between;
    color: var(--color-dark-600);
}

.dashboard-summary-row--total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark-900);
    border-top: 1px solid var(--color-gray-200);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* Alerts */
.dashboard-alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.dashboard-alert--success {
    background: #dcfce7;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.dashboard-alert--warning {
    background: #fffbeb;
    border: 1px solid #fef3c7;
}

.dashboard-alert__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-alert--warning .dashboard-alert__icon {
    background: #fef3c7;
    color: #d97706;
}

/* Payment Card */
.payment-card {
    background: linear-gradient(135deg, var(--color-kraft-500) 0%, var(--color-kraft-700) 100%);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px -5px rgba(184, 143, 74, 0.3);
    padding: 2rem;
    color: white;
}

.payment-method-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.payment-method-block:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* --- CART SIDEBAR ANIMATION --- */
.cart-sidebar {
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.cart-sidebar.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: visibility 0s, opacity 0.3s ease;
}

.cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-sidebar.active .cart-backdrop {
    opacity: 1;
}

.cart-panel-wrapper {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 28rem;
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active .cart-panel {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark-900);
    margin: 0;
}

.cart-close-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-dark-400);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.cart-close-btn:hover {
    color: var(--color-dark-600);
    background: var(--color-gray-50);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-gray-100);
    background: var(--color-gray-50);
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark-800);
    margin-bottom: 1rem;
}

.cart-btn-checkout {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
    background: var(--color-kraft-500);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-base);
}

.cart-btn-checkout:hover {
    background: var(--color-kraft-600);
}

.cart-link-view {
    color: var(--color-kraft-600);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-base);
}

.cart-link-view:hover {
    color: var(--color-kraft-700);
}

/* --- CART ITEMS --- */
.cart-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item__image {
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-200);
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__details {
    margin-left: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-dark-800);
    text-decoration: none;
    line-height: 1.3;
}

.cart-item__name:hover {
    color: var(--color-kraft-600);
}

.cart-item__price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-dark-900);
    margin-left: 0.75rem;
    white-space: nowrap;
}

.cart-item__meta {
    font-size: 0.8125rem;
    color: var(--color-dark-500);
    margin-top: 0.25rem;
}

.cart-item__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
    margin-top: 0.5rem;
}

.cart-item__badge-date {
    display: block;
    font-size: 0.6875rem;
    color: #d97706;
    margin-top: 0.125rem;
}

.cart-item__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.cart-item__qty {
    font-size: 0.8125rem;
    color: var(--color-dark-500);
}

.cart-item__remove {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-kraft-600);
    cursor: pointer;
    transition: var(--transition-base);
}

.cart-item__remove:hover {
    color: var(--color-kraft-700);
}

.cart-empty {
    padding: 2rem 0;
    text-align: center;
    color: var(--color-dark-500);
    font-size: 0.875rem;
}

/* --- SVG & Icon Utilities --- */
.h-6 {
    height: 1.5rem;
}

.w-6 {
    width: 1.5rem;
}

.h-4 {
    height: 1rem;
}

.w-4 {
    width: 1rem;
}

/* --- Visibility Utilities --- */
.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- Overflow Utilities --- */
.overflow-hidden {
    overflow: hidden;
}

/* --- Flexbox Utilities --- */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-grow {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* --- Height Utilities --- */
.h-full {
    height: 100%;
}

.h-20 {
    height: 5rem;
}

.min-h-screen {
    min-height: 100vh;
}

/* --- Width Utilities --- */
.w-full {
    width: 100%;
}

/* --- Absolute/Fixed Positioning --- */
.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* --- Shadow Utilities --- */
.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ========================================
   CART PAGE - Premium Modern Design
   ======================================== */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr 420px;
        gap: 3rem;
        align-items: start;
    }
}

/* Cart Main Container */
/* Cart Main Container */
.cart-main {
    background: transparent;
    padding: 0;
    width: 100%;
}

@media (min-width: 1024px) {
    .cart-main {
        background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
        border-radius: 1.25rem;
        box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.05),
            0 10px 20px -2px rgba(0, 0, 0, 0.04);
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.04);
    }
}

.cart-page-sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
}

/* Cart Summary - Premium Card */
.cart-summary {
    background: linear-gradient(145deg, #ffffff 0%, #fcfbf9 100%);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 20px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 6rem;
}

.cart-summary h2 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
    margin-bottom: 1.75rem;
    color: var(--color-dark-900);
    letter-spacing: -0.02em;
}

/* Coupon Input Section */
.cart-summary .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-dark-600);
    margin-bottom: 0.75rem;
    display: block;
}

.cart-summary .form-control {
    background: #f9fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.cart-summary .form-control:focus {
    background: #fff;
    border-color: var(--color-kraft-400);
    box-shadow: 0 0 0 3px rgba(184, 143, 74, 0.1);
    outline: none;
}

/* Cart Table - Elegant Design */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 1.125rem 1.5rem;
    background: linear-gradient(180deg, #f9f8f6 0%, #f5f4f2 100%);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
    font-size: 0.9375rem;
    color: var(--color-dark-700);
}

.cart-table tr {
    transition: background 0.15s ease;
}

.cart-table tr:hover {
    background: rgba(184, 143, 74, 0.02);
}

.cart-table tr:last-child td {
    border-bottom: none;
}

/* Cart Item in Table */
.cart-table .cart-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    border-bottom: none;
}

.cart-table .cart-item__image {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.cart-table .cart-item__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-dark-800);
    line-height: 1.4;
}

/* Price Display */
.cart-table td .price-display {
    font-weight: 600;
    color: var(--color-kraft-600);
}

.cart-table td .price-total {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-kraft-700);
}

/* Quantity Input - Modern Style */
.cart-table .form-control[type="number"] {
    width: 70px;
    padding: 0.625rem 0.5rem;
    text-align: center;
    border: 2px solid #e8e6e3;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: #fafafa;
    transition: all 0.2s ease;
}

.cart-table .form-control[type="number"]:focus {
    border-color: var(--color-kraft-400);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(184, 143, 74, 0.12);
    outline: none;
}

/* Remove Button */
.cart-table button[type="submit"] i.fa-times {
    transition: all 0.2s ease;
}

.cart-table button[type="submit"]:hover i.fa-times {
    transform: scale(1.2);
    color: #dc2626;
}

/* Summary Rows - Refined */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    font-size: 1rem;
    color: var(--color-dark-600);
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--color-dark-800);
}

.summary-row--total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark-900);
    border-top: 2px solid rgba(184, 143, 74, 0.2);
    margin-top: 1rem;
    padding-top: 1.25rem;
}

.summary-row--total span:last-child {
    font-size: 1.375rem;
    color: var(--color-kraft-700);
}

/* Cart Mobile Item */
.cart-mobile-item {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Pre-order Alert */
.alert--preorder {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.alert--preorder .alert__icon {
    width: 3rem;
    height: 3rem;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Margin bottom utility */
.mb-8 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

/* Text utilities */
.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-muted {
    color: var(--color-dark-500);
}

.text-center {
    text-align: center;
}

/* ========================================
   CHECKOUT & ORDER CONFIRMATION - Premium Design
   ======================================== */

/* Dashboard Page Container */
.dashboard-page {
    background: linear-gradient(180deg, var(--color-kraft-50) 0%, #f9fafc 100%);
    min-height: 100vh;
}

/* Dashboard Section Header - Premium */
.dashboard-section-header {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(145deg, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.dashboard-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--color-dark-900);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Dashboard Summary Block - Refined */
.dashboard-summary-block {
    padding: 1.75rem;
    background: linear-gradient(145deg, #fafaf9 0%, #f5f4f2 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.dashboard-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: var(--color-dark-600);
}

.dashboard-summary-row span:last-child {
    font-weight: 600;
    color: var(--color-dark-800);
}

.dashboard-summary-row--total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark-900);
    border-top: 2px solid rgba(184, 143, 74, 0.2);
    margin-top: 0.75rem;
    padding-top: 1rem;
}

.dashboard-summary-row--total span:last-child {
    font-size: 1.375rem;
    color: var(--color-kraft-700);
}

/* Dashboard Alert - Premium */
.dashboard-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.dashboard-alert--warning {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.1);
}

.dashboard-alert--success {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.dashboard-alert__icon {
    flex-shrink: 0;
}

/* Button Variants - Clean Auth Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn--primary,
.btn-primary {
    background-color: var(--color-kraft-500);
    color: #ffffff;
}

.btn--primary:hover,
.btn-primary:hover {
    background-color: var(--color-kraft-600);
    transform: translateY(-1px);
}

.btn--secondary {
    background-color: #ffffff;
    color: var(--color-dark-700);
    border: 1px solid var(--color-gray-200);
}

.btn--secondary:hover {
    background-color: var(--color-kraft-50);
    border-color: var(--color-kraft-300);
}

/* Product Card Buttons - White/Black Inverted */
.product-card__overlay .btn-primary {
    background-color: #ffffff;
    color: var(--color-dark-900);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.product-card__overlay .btn-primary:hover {
    background-color: var(--color-dark-900);
    color: #ffffff;
    border-color: var(--color-dark-900);
    transform: none;
}

/* Card base - Matches Auth Card Design */
.card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-gray-100, #f3f4f6);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Subtle lift */
}

/* Payment Card - Premium Dark Gradient */
.payment-card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    color: var(--color-white);
    box-shadow:
        0 10px 40px -10px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(184, 143, 74, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Form Label */
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-dark-600);
    margin-bottom: 0.5rem;
}

/* Form Control */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 0.625rem;
    background: var(--color-white);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-kraft-400);
    box-shadow: 0 0 0 3px rgba(184, 143, 74, 0.1);
}

/* Spacing Utilities */
.mt-8 {
    margin-top: 2rem;
}

.w-full {
    width: 100%;
}

/* Grid Utilities */
.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.col-span-2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .col-span-2 {
        grid-column: span 1;
    }
}

/* Payment Method Block */
.payment-method-block {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* W-Full Utility */
.w-full {
    width: 100%;
}

/* Order Confirmation Layout - 2 columns */
.confirmation-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .confirmation-layout {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* Order View Page Layout - 2 columns */
.order-view-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .order-view-layout {
        grid-template-columns: 1fr 380px;
        gap: 2.5rem;
    }
}

/* Order Page Mobile Refinements */
@media (max-width: 768px) {
    .order-view-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .order-view-layout .main-content {
        position: static !important;
        /* Disable sticky on mobile */
        order: 2;
    }

    .order-view-layout .sidebar {
        order: 1;
        /* Show critical info/payment first on mobile */
    }

    /* Refine the item card for the order view specifically if needed */
    .table-cart td[data-label="Produto"] {
        display: block !important;
        border-bottom: 1px solid var(--color-gray-50);
        padding-bottom: 1rem !important;
    }

    .table-cart td[data-label="Produto"]>div {
        align-items: flex-start !important;
    }
}

/* POS Page Layout - 2 columns */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .pos-layout {
        grid-template-columns: 2fr 1.1fr;
        gap: 2.5rem;
    }
}


/* Premium Alert (Standardized for Dashboard/Cart/Checkout) */
.alert-premium {
    background: white;
    border: 1px solid var(--color-gray-100);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-left: 6px solid var(--color-primary);
    /* Default */
}

.alert-premium--warning {
    border-left-color: #f59e0b;
}

.alert-premium__bg-pattern {
    position: absolute;
    top: -10%;
    right: -5%;
    font-size: 10rem;
    color: rgba(245, 158, 11, 0.03);
    font-family: var(--font-serif);
    user-select: none;
    pointer-events: none;
    transform: rotate(-15deg);
}

.alert-premium__icon-box {
    flex-shrink: 0;
    position: relative;
}

.alert-premium__icon {
    width: 4rem;
    height: 4rem;
    background: #fffbeb;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #f59e0b;
}

.alert-premium__pulse {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 1.25rem;
    height: 1.25rem;
    background: #f59e0b;
    border: 3px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.alert-premium__content {
    flex: 1;
    position: relative;
    /* Ensure z-index works if needed */
    z-index: 2;
}

.alert-premium__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark-900);
    margin: 0 0 0.5rem 0;
    font-family: var(--font-serif);
}

.alert-premium__text {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    margin: 0;
    line-height: 1.6;
}

.alert-premium__list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alert-premium__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-dark-700);
    background: #fffbeb;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    width: fit-content;
}

/* ========================================
   PAGE TITLES - Smaller & Modern
   ======================================== */

.page-hero__title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--color-dark-900);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .page-hero__title {
        font-size: 1.75rem;
    }
}

/* ========================================
   DASHBOARD - Modern & Elegant Design
   ======================================== */

/* Dashboard Header */
.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .dashboard-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0;
        border-bottom: none;
    }
}

.dashboard-title {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-dark-900);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Dashboard Navigation */
.dashboard-nav {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 143, 74, 0.15);
    border-radius: 1.25rem;
    padding: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    /* Remove sticky if it conflicts with header */
    z-index: 40;
}

.dashboard-nav::-webkit-scrollbar {
    display: none;
}

.dashboard-nav__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-600);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dashboard-nav__item i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.dashboard-nav__item:hover {
    background: rgba(184, 143, 74, 0.05);
    color: var(--color-kraft-600);
}

.dashboard-nav__item:hover i {
    transform: translateY(-1px);
}

.dashboard-nav__item--active {
    background: var(--color-kraft-500) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -6px rgba(184, 143, 74, 0.4);
}

.dashboard-nav__item.text-red-500 {
    color: #ef4444;
}

.dashboard-nav__item.text-red-500:hover {
    background: rgba(239, 68, 68, 0.05);
    color: #dc2626;
}

@media (max-width: 768px) {
    .dashboard-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(184, 143, 74, 0.2);
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-radius: 0;
        padding: 0.5rem 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 9999;
        justify-content: space-around;
        gap: 0;
    }

    .dashboard-nav__item {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem;
        font-size: 0.65rem;
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .dashboard-nav__item i {
        font-size: 1.25rem;
    }

    /* Add padding to the bottom of the page to avoid content occlusion */
    .dashboard-page {
        padding-bottom: 6rem;
    }

    .dashboard-header {
        margin-bottom: 1.5rem;
    }

    .dashboard-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card.col-span-2 {
        grid-column: span 1 / span 1;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-card__icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
        margin-right: 1rem;
    }
}

/* Dashboard Stats Grid */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Stat Card - Modern Premium */
.sticky {
    position: sticky;
}

.top-24 {
    top: 6rem;
}

.stat-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-gray-100, #f3f4f6);
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-kraft-400), var(--color-kraft-500));
}

.stat-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Subtle lift */
}

.stat-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: rgba(184, 143, 74, 0.1);
    color: var(--color-kraft-600);
}

.stat-card--blue .stat-card__icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-card--blue::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.stat-card--green .stat-card__icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-card--green::before {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.stat-card--purple .stat-card__icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.stat-card--purple::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.stat-card--amber .stat-card__icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-card--amber::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.stat-card__content {
    flex: 1;
    min-width: 0;
}

.stat-card__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark-900);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.stat-card__meta {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin-top: 0.375rem;
}

/* Dashboard Section Card */
.dashboard-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-gray-100, #f3f4f6);
    overflow: hidden;
    margin-bottom: 2rem;
}

.dashboard-card__header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark-900);
    font-family: var(--font-serif);
    margin: 0;
}

.dashboard-card__body {
    padding: 1.75rem;
}

/* Dashboard Empty State */
.dashboard-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-gray-500);
}

.dashboard-empty__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.dashboard-empty__text {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.dashboard-empty__link {
    color: var(--color-kraft-600);
    font-weight: 600;
    text-decoration: none;
}

.dashboard-empty__link:hover {
    color: var(--color-kraft-500);
    text-decoration: underline;
}

/* --- ORDER HISTORY IMPROVEMENTS (ELEGANT) --- */
.table-responsive-wrapper {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow-x: auto;
}

.table-orders {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    /* Slightly larger for readability */
}

.table-orders th:first-child,
.table-orders td:first-child {
    padding-left: 1.75rem;
}

.table-orders th:last-child,
.table-orders td:last-child {
    padding-right: 1.75rem;
}

/* Header: Minimalist */
.table-orders th {
    background-color: transparent;
    color: var(--color-dark-400, #9ca3af);
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.75rem 0.5rem;
    /* Added small horizontal gap */
    text-align: left;
    border-bottom: 2px solid var(--color-gray-100, #f3f4f6);
}

.table-orders th:last-child {
    text-align: right;
}

/* Body Rows */
.table-orders td {
    padding: 0.5rem 0.5rem;
    /* Added small horizontal gap */
    border-bottom: 1px solid var(--color-gray-100, #f3f4f6);
    color: var(--color-dark-700, #374151);
    vertical-align: middle;
    transition: background-color 0.3s ease;
}

.table-orders tr:last-child td {
    border-bottom: none;
}

/* Hover Effect: Very subtle on the whole row is okay, but let's keep it clean */
.table-orders tr:hover td {
    color: var(--color-dark-900);
}

.order-id {
    font-family: var(--font-serif);
    /* Elegant Serif for ID */
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-dark-900);
}

.order-date {
    color: var(--color-gray-500, #6b7280);
    font-size: 0.9rem;
}

.order-total {
    font-weight: 700;
    color: var(--color-kraft-600);
    /* Use brand color */
    letter-spacing: -0.02em;
}

/* Badges: Minimalist "Dot" or "Soft" style */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    /* Space between dot and text */
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    /* Pill */
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--bg-color, #f3f4f6);
    color: var(--text-color, #4b5563);
}

/* Define badge colors as variables locally or classes */
.badge--warning {
    --bg-color: #fffbeb;
    --text-color: #d97706;
}

.badge--success {
    --bg-color: #f0fdf4;
    --text-color: #15803d;
}

.badge--info {
    --bg-color: #eff6ff;
    --text-color: #2563eb;
}

.badge--danger {
    --bg-color: #fef2f2;
    --text-color: #dc2626;
}

.badge--neutral {
    --bg-color: #f9fafb;
    --text-color: #6b7280;
}

.badge--orange {
    --bg-color: #fff7ed;
    --text-color: #c2410c;
}

.badge--teal {
    --bg-color: #f0fdfa;
    --text-color: #0f766e;
}

.badge--purple {
    --bg-color: #faf5ff;
    --text-color: #7e22ce;
}

/* Status Dot (Optional enhancement if HTML structure allowed, sticking to CSS colors for now) */

/* Buttons & Actions */
.order-actions {
    white-space: nowrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--color-dark-400);
    transition: all 0.2s;
    background: transparent;
    border: 1px solid var(--color-gray-200);
}

.btn-icon:hover {
    border-color: var(--color-kraft-400);
    color: var(--color-kraft-600);
    transform: translateY(-1px);
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark-500);
    transition: color 0.2s;
    text-decoration: none;
}

.btn-link:hover {
    color: var(--color-kraft-600);
}

.btn-link--danger {
    color: #ef4444;
    /* Soft Red */
}

.btn-link--danger:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* Mobile */
.mobile-label {
    display: none;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.pt-4 {
    padding-top: 1.5rem;
}

.mr-2 {
    margin-right: 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: transparent;
    /* Cleaner */
    border: 1px solid var(--color-gray-100);
    border-radius: 0.5rem;
}

/* Mobile Responsive Card Style */
@media (max-width: 768px) {
    .table-orders thead {
        display: none;
    }

    .table-orders,
    .table-orders tbody,
    .table-orders tr,
    .table-orders td {
        display: block;
        width: 100%;
    }

    .table-orders tr {
        margin-bottom: 1.5rem;
        background: #fff;
        border: 1px solid var(--color-gray-100);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
        border-radius: 0.75rem;
        padding: 1.25rem;
    }

    .table-orders td {
        padding: 0.5rem 0;
        border-bottom: none;
        /* Clean layout inside card */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .table-orders td.order-id {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--color-gray-100);
        padding-bottom: 0.75rem;
    }

    .mobile-label {
        display: inline-block;
        font-weight: 500;
        color: var(--color-gray-500);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .order-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--color-gray-100);
        justify-content: flex-end;
        display: flex;
        align-items: center;
    }
}

/* --- LEGAL & STATIC PAGES --- */
.page-container {
    background-color: #ffffff;
    min-height: 80vh;
}

.page-hero {
    background-color: var(--color-kraft-50);
    padding: 6rem 1rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--color-kraft-200);
    margin-bottom: 4rem;
}

.page-hero__title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-dark-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-hero__meta {
    font-family: var(--font-sans);
    color: var(--color-gray-500);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 6rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-dark-700);
}

.page-content h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-dark-900);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-gray-100);
    padding-bottom: 0.75rem;
}

.page-content h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-dark-800);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.page-content strong {
    color: var(--color-dark-900);
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 4rem 1rem 3rem;
        margin-bottom: 2rem;
    }

    .page-hero__title {
        font-size: 2rem;
    }

    .page-content {
        font-size: 1rem;
        padding-bottom: 4rem;
    }
}

/* =========================================
   Utility Classes (Added for Modernization)
   ========================================= */

/* Card Component */
.card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.card-body {
    padding: 1.5rem;
}

/* Forms */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-dark-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, ring-color 0.2s;
    background-color: #ffffff;
}

.form-control:focus {
    border-color: var(--color-kraft-500);
    outline: none;
    box-shadow: 0 0 0 2px rgba(184, 143, 74, 0.2);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge--warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge--success {
    background-color: #dcfce7;
    color: #166534;
}

/* Tables */
.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-cart {
    width: 100%;
    border-collapse: collapse;
}

.table-cart th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-gray-500);
    font-weight: 600;
}

.table-cart td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-gray-100);
    vertical-align: middle;
}

/* Grid helper */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.page-hero__subtitle {
    display: block;
    color: var(--color-kraft-500);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* Glassmorphism Alerts */
.glass-alert {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 143, 74, 0.2);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-alert:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.08);
    border-color: rgba(184, 143, 74, 0.4);
}

.glass-alert--preorder {
    border-left: 6px solid var(--color-kraft-400);
}

.glass-alert__icon-wrapper {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    background: #fffbeb;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 1.5rem;
    box-shadow: inset 0 2px 10px rgba(245, 158, 11, 0.05);
}

.glass-alert__content {
    flex: 1;
}

.glass-alert__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-dark-900);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.glass-alert__text {
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.7;
    margin: 0;
}

.glass-alert__list {
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.glass-alert__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
    background: rgba(184, 143, 74, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    width: fit-content;
}

.glass-alert__item i {
    font-size: 0.75rem;
    color: var(--color-kraft-600);
}

.glass-alert {
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
}

.glass-alert__icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.25rem;
}

/* Dashboard Layout Utilities */
.dashboard-container {
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .dashboard-container {
        padding-bottom: 7rem;
    }

    .card {
        padding: 1.25rem !important;
    }

    .dashboard-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .dashboard-card-title {
        font-size: 1.25rem;
    }
}

.dashboard-section {
    animation: fadeInSlideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-dark-900);
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .dashboard-content-grid--two-cols {
        grid-template-columns: 1.5fr 1fr;
    }
}

.form-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-kraft-600);
    margin: 2rem 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title:first-child {
    margin-top: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.rotate-180 {
    transform: rotate(180deg);
}

.rotate-90 {
    transform: rotate(90deg);
}

/* 
 * Blog / XPTO Modernization 
 */

/* Hero Section */
.page-hero {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(to bottom, var(--color-kraft-50) 0%, #ffffff 100%);
    text-align: center;
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(197, 160, 101, 0.05) 0%, transparent 20%);
    z-index: 0;
    pointer-events: none;
}

.page-hero__content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero__subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--color-kraft-600);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.page-hero__title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-dark-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .page-hero__title {
        font-size: 4rem;
    }
}

.page-hero__description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Blog Grid */
.section-padding {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Post Card */
.post-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-gray-100);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-kraft-200);
}

.post-card__image-box {
    position: relative;
    display: block;
    padding-top: 66.66%;
    /* 3:2 Aspect Ratio */
    overflow: hidden;
    background-color: var(--color-gray-100);
}

.post-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card__image {
    transform: scale(1.05);
}

.post-card__content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-card__title a {
    color: var(--color-dark-900);
    text-decoration: none;
    background-image: linear-gradient(var(--color-kraft-400), var(--color-kraft-400));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s;
}

.post-card:hover .post-card__title a {
    background-size: 100% 2px;
}

.post-card__excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--color-dark-900);
    transition: all 0.2s;
    background-color: transparent;
}

.pagination__link:hover {
    background-color: var(--color-kraft-50);
    color: var(--color-kraft-600);
}

.pagination__link--active {
    background-color: var(--color-dark-900);
    color: #ffffff !important;
}



/* 
 * Minimalist Single Post (Clean & Uniform)
 */

/* Reading Progress Bar */
#reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
}

#reading-progress-bar {
    height: 100%;
    background: var(--color-dark-900);
    width: 0%;
    transition: width 0.1s ease;
}

.post-hero {
    width: 100%;
    margin-bottom: 3rem;
}

.post-hero__image-wrapper {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
}

.post-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
}

.post-container {
    padding-bottom: 6rem;
}

.post-main-wrapper {
    max-width: 720px;
    /* Aligned with best practices for legibility */
    margin: 0 auto;
}

.post-nav {
    margin-bottom: 2rem;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-gray-500);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
}

.back-to-blog:hover {
    color: var(--color-dark-900);
}

.post-title-block {
    margin-bottom: 3rem;
    text-align: left;
}

.post-title {
    font-size: 2.75rem;
    font-family: var(--font-serif);
    color: var(--color-dark-900);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: var(--color-gray-500);
}

.post-meta__divider {
    width: 4px;
    height: 4px;
    background: var(--color-gray-300);
    border-radius: 50%;
}

.post-meta__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta__item i {
    font-size: 0.8rem;
}

/* Rich Content - Minimalist Refinement */
.rich-content {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333333;
}

.rich-content p {
    margin-bottom: 1.75rem;
}

/* Subtle Drop Cap */
.rich-content p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 0.8;
    font-weight: 700;
    margin-right: 12px;
    margin-top: 6px;
    color: var(--color-dark-900);
}

.rich-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-dark-900);
    margin: 3.5rem 0 1.5rem;
    font-weight: 700;
}

.rich-content blockquote {
    border-left: 3px solid var(--color-dark-900);
    margin: 3rem 0;
    padding: 0.5rem 0 0.5rem 2rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.5;
    font-style: italic;
    color: var(--color-dark-800);
    text-align: left;
}

.rich-content blockquote::before {
    display: none;
}

/* Post Footer - Clean Utility */
.post-footer {
    margin-top: 5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.post-footer__info {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    font-style: italic;
}

.share-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-400);
}

.share-links {
    display: flex;
    gap: 0.75rem;
}

.share-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-gray-50);
    color: var(--color-dark-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.share-link:hover {
    background: var(--color-dark-900);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Related Posts section styling */
.related-posts {
    background: #fafafa;
    padding: 5rem 0;
    border-top: 1px solid #eeeeee;
}

/* Utilities for Unavailable Products */
.grayscale {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.opacity-50 {
    opacity: 0.5;
}

/* 
 * Premium Alert & Modal System 
 * Standardized across the site 
 */
.premium-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.premium-modal {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    margin: 1rem;
    position: relative;
    border: 1px solid var(--color-gray-100);
}

.premium-modal__title {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--color-dark-900);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.premium-modal__text {
    font-size: 1rem;
    color: var(--color-gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.premium-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* Premium Buttons */
.btn--premium-primary {
    background: #dc2626;
    color: #ffffff !important;
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn--premium-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.btn--premium-secondary {
    background: transparent;
    color: var(--color-dark-900) !important;
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
    font-weight: 700;
    border: 1px solid var(--color-gray-200);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn--premium-secondary:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

/* SweetAlert2 Global Overrides */
.swal2-popup {
    border-radius: 1.5rem !important;
    padding: 2.5rem !important;
    font-family: var(--font-sans) !important;
}

.swal2-title {
    font-family: var(--font-serif) !important;
    font-size: 1.875rem !important;
    color: var(--color-dark-900) !important;
    font-weight: 600 !important;
}

.swal2-html-container {
    font-size: 1rem !important;
    color: var(--color-gray-600) !important;
    line-height: 1.6 !important;
}

.swal2-confirm.swal2-styled {
    border-radius: 1rem !important;
    padding: 0.875rem 1.75rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    background-color: var(--color-kraft-500) !important;
}

.swal2-cancel.swal2-styled {
    border-radius: 1rem !important;
    padding: 0.875rem 1.75rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

.swal2-icon {
    border-width: 3px !important;
}

/* 
 * System Alerts (Premium Design)
 */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
    animation: alertSlideIn 0.4s ease-out;
}

.alert--success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
    border-left: 5px solid #22c55e;
}

.alert--danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
    border-left: 5px solid #ef4444;
}

.alert--info {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
    border-left: 5px solid #3b82f6;
}

@keyframes alertSlideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}