@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #000000;
    --primary-dark: #000000;
    --secondary: #000000;
    --accent: #ef4825;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --surface-soft: #f1f5f9;
    --text-main: #000000;
    --text-muted: #64748b;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --shadow-soft: 0 12px 36px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 22px 52px rgba(15, 23, 42, 0.14);
}

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

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    color: var(--text-main);
    background: var(--surface-muted);
}

.app-surface {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.app-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.app-section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.app-page {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    color: var(--text-main);
}

.app-page nav.bg-white.shadow-sm,
.app-page nav.bg-white.shadow-sm.sticky,
.app-page nav.nav-blur {
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.app-page .text-transparent.bg-clip-text {
    color: var(--text-main) !important;
    -webkit-text-fill-color: currentColor;
    background-image: none !important;
}

.app-page section.bg-gradient-to-r.from-blue-600.to-indigo-600.text-white.py-16 {
    background: linear-gradient(120deg, #000000 0%, #000000 100%) !important;
    border-top: none;
    border-bottom: none;
}

.app-page section.bg-gradient-to-r.from-blue-600.to-indigo-600.text-white.py-16 p {
    color: rgba(255, 255, 255, 0.72) !important;
}

.app-page .bg-white.rounded-xl.border.border-gray-200,
.app-page .bg-white.rounded-2xl.border.border-gray-200,
.app-page .admin-card {
    border-color: rgba(0, 0, 0, 0.12) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-soft);
}

.app-page .bg-white.rounded-xl.border-2.border-blue-600 {
    border-color: rgba(0, 0, 0, 0.2) !important;
    border-width: 1px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-soft);
}

.app-page footer.bg-gray-900,
.app-page .checkout-footer {
    background: #000000 !important;
    color: #d1d5db !important;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.app-page #cart-btn {
    background: var(--primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.8rem !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.app-page #cart-btn:hover {
    background: #111111 !important;
}

.app-page button.bg-blue-600.text-white,
.app-page a.bg-blue-600.text-white {
    background: var(--primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.app-page button.bg-blue-600.text-white:hover,
.app-page a.bg-blue-600.text-white:hover {
    background: #111111 !important;
}

.app-page .text-blue-600,
.app-page .text-blue-700,
.app-page .text-blue-800 {
    color: #000000 !important;
}

.app-page .border-blue-200,
.app-page .border-blue-600 {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.app-page .bg-blue-50 {
    background-color: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
}

.homepage {
    background: linear-gradient(180deg, #f4efe7 0%, #f8fafc 38%, #ffffff 100%);
    color: #111827;
    font-family: 'Manrope', sans-serif;
}

.brand-logo-full {
    display: block;
    width: auto;
    height: 2rem;
}

.brand-logo-compact {
    display: block;
    width: auto;
    height: 1.75rem;
}

@media (max-width: 1023px) {
    .brand-logo-compact {
        margin: 0 0.25rem;
        align-self: center;
    }
}

.brand-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.65rem;
    padding: 0.45rem 0.6rem;
}

.brand-logo-footer {
    display: block;
    width: auto;
    height: 1.95rem;
}

.cart-item-preview-frame {
    --cart-item-preview-inset: clamp(0.1rem, 0.25vw, 0.2rem);
    --cart-item-preview-radius: 0.85rem;

    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: var(--cart-item-preview-inset);
    border-radius: var(--cart-item-preview-radius);
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    background-image: repeating-conic-gradient(#e5e7eb 0% 25%, #f8fafc 0% 50%);
    background-size: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-preview-image {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100% - (var(--cart-item-preview-inset) * 2));
    max-height: calc(100% - (var(--cart-item-preview-inset) * 2));
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
}

/* ===== ANIMATIONS ===== */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

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

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes drift {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -20px, 0) scale(1.05);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.45;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.08);
    }
}

@keyframes heroCardFloatA {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(-5deg);
    }

    50% {
        transform: translate3d(0, -12px, 0) rotate(-3deg);
    }
}

@keyframes heroCardFloatB {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(7deg);
    }

    50% {
        transform: translate3d(0, 10px, 0) rotate(4deg);
    }
}

@keyframes heroCardFloatC {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(4deg);
    }

    50% {
        transform: translate3d(0, -10px, 0) rotate(7deg);
    }
}

@keyframes heroOrbitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes heroRibbonSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-30%);
    }
}

/* ===== MARQUEE ===== */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

/* ===== NAVIGATION ===== */
.nav-blur {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.homepage .nav-blur {
    backdrop-filter: blur(18px);
    background-color: rgba(248, 250, 252, 0.72);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.btn-primary:hover {
    background: #17233c;
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

.hero-image-container {
    position: relative;
}

.homepage-hero {
    position: relative;
    background: linear-gradient(180deg, rgba(244, 239, 231, 0.96) 0%, rgba(248, 250, 252, 0.96) 48%, rgba(255, 255, 255, 1) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.homepage-display {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.homepage-lead {
    color: #475569;
    max-width: 44rem;
}

.homepage-primary-action,
.homepage-secondary-action {
    min-width: 12rem;
    justify-content: center;
}

.homepage-hero-content {
    position: relative;
    max-width: min(56rem, 100%);
    z-index: 2;
}

.homepage-hero-image-layer {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background-image: url('/assets/images/homepage-hero-canvas-sweep.svg');
    background-repeat: no-repeat;
    background-size: min(78rem, 70vw) 100%;
    background-position: calc(100% + 8px) center;
    pointer-events: none;
    z-index: 1;
    opacity: 0.96;
}

.homepage-metric-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.15rem 1.2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.homepage-metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.homepage-metric-label {
    color: #64748b;
    font-size: 0.9rem;
}

.homepage-floating-label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: #bae6fd;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (min-width: 1024px) {
    .homepage-hero-content {
        padding-right: min(16vw, 13rem);
    }
}

@media (max-width: 767px) {
    .homepage-metric-card {
        border-radius: 1.2rem;
    }

    .homepage-hero-image-layer {
        width: 100%;
        opacity: 0.42;
        background-size: 165% 100%;
        background-position: calc(100% + 8px) center;
    }
}

.stat-card {
    animation: scaleIn 0.6s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* ===== TRUST BADGES ===== */
.trust-badge {
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    padding: 1.4rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #ffffff;
    color: #000000;
    border-radius: 1.5rem;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

.trust-badge:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 72, 37, 0.7);
    background: #f9fafb;
}

.trust-badge i,
.trust-badge .lucide,
.trust-badge svg {
    color: #ef4825 !important;
    stroke: currentColor;
}

.homepage-trust-strip {
    position: relative;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(239, 72, 37, 0.85);
}

.homepage-trust-strip .trust-badge {
    padding: 0.95rem 0.8rem;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.homepage-trust-strip .trust-badge h3 {
    font-size: 0.95rem;
    line-height: 1.2;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    position: relative;
    isolation: isolate;
    display: block;
    transition: all 0.3s ease;
    border-radius: 1.8rem;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.category-card:hover::after {
    border-color: rgba(51, 65, 85, 0.42);
}

.homepage-card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: min(92%, 15rem);
    min-height: 2rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 16px rgba(2, 6, 23, 0.2);
}

@media (max-width: 767px) {
    .homepage-card-tag {
        max-width: calc(100% - 0.5rem);
        min-height: 1.9rem;
        padding: 0.45rem 0.82rem;
        font-size: 0.74rem;
    }
}

.homepage-card-link {
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 700;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: white;
    border-radius: 1.8rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: all 0.3s ease;
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
    border-color: rgba(51, 65, 85, 0.25);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

.product-card-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.9rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 58%, rgba(0, 0, 0, 0.9) 100%);
}

.product-card-meta {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.product-card-title {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.product-card-cta {
    width: 100%;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(239, 72, 37, 0.96);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.product-card-cta:hover {
    background: #ef4825;
    border-color: rgba(255, 255, 255, 0.34);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    padding: 2rem;
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.92) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: all 0.3s ease;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
    position: relative;
}

.feature-card:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.96) 100%);
    transform: translateY(-6px);
}

.homepage-feature-index {
    position: absolute;
    top: 1.8rem;
    right: 1.8rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #94a3b8;
}

/* ===== CTA CARD ===== */
.cta-card {
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: none;
}

/* ===== FOOTER ===== */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #f9fafb;
    transform: translateY(-2px);
}

.homepage-cart-btn {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.homepage-cart-btn:hover {
    background: #1f2937;
}

.homepage-section {
    position: relative;
    padding-top: clamp(3.75rem, 7vw, 6rem);
    padding-bottom: clamp(3.75rem, 7vw, 6rem);
}

.homepage-products-cta {
    margin-top: clamp(2.25rem, 4vw, 4rem) !important;
    margin-bottom: clamp(2rem, 3.5vw, 3.75rem) !important;
}

@media (max-width: 767px) {
    .homepage-section {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
    }
}

.homepage-cta {
    position: relative;
    border-radius: 2.5rem;
    background: linear-gradient(135deg, #020617 0%, #0f172a 52%, #1e293b 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
}

.homepage-cta-band {
    width: 100%;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
    margin: 0;
}

.homepage-cta-band .homepage-inline-form {
    border-radius: 0.9rem;
}

.homepage-lead-form-wrap {
    overflow: hidden;
}

.homepage-inline-form {
    position: relative;
    z-index: 1;
    padding: 1.4rem;
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.homepage-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.homepage-inline-form .homepage-primary-action,
.homepage-inline-form .homepage-secondary-action {
    min-width: 0;
    flex: 1 1 12rem;
    max-width: 100%;
}

.homepage-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.homepage-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.homepage-field>span {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.homepage-field input,
.homepage-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.homepage-field textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.homepage-field input::placeholder,
.homepage-field textarea::placeholder {
    color: #94a3b8;
}

.homepage-field input:focus,
.homepage-field textarea:focus {
    outline: none;
    border-color: rgba(125, 211, 252, 0.8);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
    transform: translateY(-1px);
}

.homepage-footer {
    background: #fafafa;
}

.homepage-cta-glow {
    display: none;
}

@media (max-width: 767px) {
    .homepage-form-grid {
        grid-template-columns: 1fr;
    }

    .homepage-inline-form {
        padding: 1rem;
        border-radius: 1.2rem;
    }

    .homepage-form-actions {
        flex-direction: column;
    }
}

/* ===== SKELETON LOADING ===== */
.skeleton-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.skeleton-image {
    width: 100%;
    height: 16rem;
    background: linear-gradient(90deg,
            #f3f4f6 0%,
            #e5e7eb 50%,
            #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-line {
    height: 1rem;
    background: linear-gradient(90deg,
            #f3f4f6 0%,
            #e5e7eb 50%,
            #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.25rem;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-image-container {
        display: none;
    }

    .stat-card {
        position: static !important;
        margin-top: 1rem;
    }

    .homepage {
        background: linear-gradient(180deg, #f4efe7 0%, #ffffff 28%, #ffffff 100%);
    }

    .homepage-cta {
        border-radius: 1.8rem;
    }
}

/* ===== UTILITIES ===== */
.gradient-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

.transition-all {
    transition: all 0.3s ease;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.3s ease;
}

/* ===== ACCORDION ===== */
.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #f9fafb;
}

.accordion-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.open {
    padding: 1rem;
    max-height: 500px;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

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

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    padding: 1.5rem 0;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.3s ease-out;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-out;
}

.modal-content.hidden {
    display: none !important;
}

/* ===== TABLE ===== */
.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f9fafb;
}

th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

tbody tr:hover {
    background: #f9fafb;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease-out;
    z-index: 1000;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-info {
    border-left: 4px solid var(--primary);
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== IMAGE ZOOM ===== */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* ===== PRICE TAG ===== */
.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 1rem;
}

/* ===== QUANTITY SELECTOR ===== */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.quantity-btn {
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #e5e7eb;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    padding: 0.5rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

/* ===== PRODUCT QUICK VIEW ===== */
.quick-view-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.quick-view-content {
    background: white;
    border-radius: 1rem;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-out;
}

/* ===== IMAGE GALLERY ===== */
.image-gallery {
    display: grid;
    gap: 0.5rem;
}

.image-gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
}

.image-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.image-gallery-thumb {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.image-gallery-thumb:hover,
.image-gallery-thumb.active {
    border-color: var(--primary);
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 50;
    display: none;
    animation: fadeInUp 0.2s ease-out;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: #f9fafb;
}

/* ===== ALERT ===== */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ===== RATING STARS ===== */
.rating {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
}

/* ===== CHIP/TAG ===== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.chip-removable {
    cursor: pointer;
    transition: background 0.3s ease;
}

.chip-removable:hover {
    background: #e5e7eb;
}

/* ===== FILTER & SORT ===== */
.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* ===== ADMIN PANEL ===== */
.admin-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FORMS ===== */
.form-input {
    width: 100%;
    padding: 0.82rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.97rem;
    color: var(--text-main);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
    background: #ffffff;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #334155;
    font-size: 0.86rem;
    letter-spacing: 0.01em;
}

#templates-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#templates-modal-grid .template-gallery-card {
    appearance: none;
    width: 100%;
    max-height: 24rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    padding: 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#templates-modal-grid .template-gallery-card:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

#templates-modal-grid .template-gallery-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16), 0 14px 34px rgba(15, 23, 42, 0.12);
}

#templates-modal-grid .template-gallery-card__preview {
    position: relative;
    aspect-ratio: var(--template-preview-ratio, 4 / 3);
    min-height: 11rem;
    max-height: 18rem;
    background: #f8fafc;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

#templates-modal-grid .template-gallery-card__preview-surface {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.14) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, 0.14) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.14) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.14) 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

#templates-modal-grid .template-gallery-card__preview-surface--blank {
    background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.14) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, 0.14) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.14) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.14) 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

#templates-modal-grid .template-gallery-card__preview-content,
#templates-modal-grid .template-gallery-card__preview-image {
    display: block;
    height: 100%;
    max-width: 100%;
}

#templates-modal-grid .template-gallery-card__preview-content svg {
    display: block;
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100%;
    pointer-events: none;
}

#templates-modal-grid .template-gallery-card__preview-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;
    box-sizing: border-box;
}

#templates-modal-grid .template-gallery-card__preview-image {
    position: relative;
    width: auto;
    height: 100%;
    object-fit: contain;
    background: #f8fafc;
}

#templates-modal-grid .template-gallery-card__blank-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem;
}

#templates-modal-grid .template-gallery-card__blank-fallback {
    width: 100%;
    height: 100%;
    background: #ffffff;
}

#templates-modal-grid .template-gallery-card__blank-sheet {
    width: min(76%, 180px);
    height: min(76%, 180px);
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem;
}

#templates-modal-grid .template-gallery-card__blank-dot {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
    position: relative;
}

#templates-modal-grid .template-gallery-card__blank-dot::before {
    content: '';
    position: absolute;
    inset: 0.55rem;
    border-radius: 999px;
    border: 2px solid rgba(59, 130, 246, 0.55);
}

#templates-modal-grid .template-gallery-card__blank-line {
    display: block;
    width: 100%;
    height: 0.55rem;
    border-radius: 999px;
    background: #e2e8f0;
}

#templates-modal-grid .template-gallery-card__blank-line--short {
    width: 55%;
}

#templates-modal-grid .template-gallery-card__blank-line--wide {
    width: 82%;
}

#templates-modal-grid .template-gallery-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.78rem 0.85rem 0.9rem;
    min-width: 0;
}

#templates-modal-grid .template-gallery-card__title {
    color: #0f172a;
    font-size: 0.84rem;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#templates-modal-grid .template-gallery-card__meta {
    color: #64748b;
    font-size: 0.68rem;
    line-height: 1.1;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

#templates-modal-grid .template-gallery-card--loading {
    pointer-events: none;
}

#templates-modal-grid .template-gallery-card__skeleton {
    border-radius: 0.95rem;
    background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 37%, #e2e8f0 63%);
    background-size: 400% 100%;
    animation: templateGalleryShimmer 1.35s ease infinite;
}

#templates-modal-grid .template-gallery-card__skeleton--preview {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

#templates-modal-grid .template-gallery-card__skeleton--title {
    height: 0.9rem;
    width: 72%;
    margin: 0 auto;
}

#templates-modal-grid .template-gallery-card__skeleton--meta {
    height: 0.58rem;
    width: 44%;
    margin: 0 auto;
}

@keyframes templateGalleryShimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

@media (min-width: 640px) {
    #templates-modal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #templates-modal-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

#product-templates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#product-templates-grid .template-toggle-preview {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
    position: relative;
}

#product-templates-grid .template-toggle-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 8px;
    box-sizing: border-box;
}

#product-templates-grid .template-preview-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.template-preview-svg-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}

.template-preview-svg-wrap svg {
    display: block;
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

@media (min-width: 640px) {
    #product-templates-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    #product-templates-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #product-templates-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-main);
}

.checkout-nav {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.checkout-security {
    color: var(--text-muted);
    font-weight: 600;
}

.checkout-security i {
    color: var(--success);
}

.checkout-steps-wrap {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--line);
}

.checkout-step {
    color: #94a3b8;
    font-weight: 600;
}

.checkout-step>div {
    background: #e2e8f0;
    color: #64748b;
}

.checkout-step-active {
    color: #0f172a;
}

.checkout-step-active>div {
    background: var(--primary);
    color: #ffffff;
}

.checkout-step-line {
    background: #d1d5db;
}

.checkout-step-line-active {
    background: var(--primary);
}

.checkout-surface-card {
    border-radius: var(--radius-lg);
}

.checkout-payment-option {
    border: 2px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.8);
}

.checkout-customer-step {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(248, 250, 252, 0.72);
    border-radius: 1rem;
    padding: 1rem;
}

.checkout-customer-step-index {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 0.8rem;
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.checkout-customer-step-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
}

.checkout-customer-step-copy {
    margin-top: 0.2rem;
    font-size: 0.86rem;
    color: #64748b;
}

.checkout-customer-choice {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1rem;
    padding: 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.checkout-customer-choice:hover {
    border-color: rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
}

.checkout-customer-choice.is-active {
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
    background: #ffffff;
}

.checkout-customer-choice-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}

.checkout-customer-choice-copy {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.checkout-inline-action {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.checkout-inline-action .form-input {
    min-width: 0;
    flex: 1 1 auto;
}

.checkout-inline-btn {
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.9rem;
    padding: 0 1rem;
    min-height: 3rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.checkout-inline-btn:hover:not(:disabled) {
    border-color: rgba(15, 23, 42, 0.24);
    background: #f8fafc;
}

.checkout-inline-btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

.checkout-inline-status {
    margin-top: 0.75rem;
    display: block;
    border: 1px solid transparent;
    border-radius: 0.85rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.checkout-placeholder {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: var(--line);
}

.checkout-place-order-btn {
    background: var(--primary);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: var(--shadow-strong);
}

.checkout-place-order-btn:hover {
    background: #17233c;
    transform: translateY(-2px);
}

.checkout-summary {
    border-radius: var(--radius-lg);
}

.checkout-total {
    color: var(--primary);
}

.checkout-shipping-box {
    background: #ecfdf5;
    border-color: #86efac;
}

.checkout-footer {
    background: #0f172a;
    color: #94a3b8;
}

a[href="/checkout.html"].block.w-full {
    border-radius: 0.85rem;
    font-weight: 700;
    background: var(--primary);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.15);
}

a[href="/checkout.html"].block.w-full:hover {
    background: #17233c;
}

@media (max-width: 767px) {
    .checkout-inline-action {
        flex-direction: column;
        gap: 0.65rem;
    }

    .checkout-inline-btn {
        width: 100%;
    }
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ===== CUSTOM CHECKBOX & RADIO ===== */
.custom-checkbox,
.custom-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.custom-radio {
    border-radius: 50%;
}

.custom-checkbox:checked,
.custom-radio:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

.custom-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* ===== SEARCH BAR ===== */
.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

/* ===== UTILITY CLASSES ===== */
.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.pointer-events-none {
    pointer-events: none;
}

.select-none {
    user-select: none;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* ===== ANIMATIONS FOR PAGE TRANSITIONS ===== */
@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

.page-transition {
    animation: pageSlideIn 0.4s ease-out;
}

/* ===== HOVER EFFECTS FOR LINKS ===== */
a {
    text-decoration: none;
    color: inherit;
}

a:not(.btn-primary):not(.btn-secondary):not(.social-icon) {
    position: relative;
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }
}

/* ===== ACCESSIBILITY ===== */
.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;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== CANVA-LIKE CURSOR STYLES ===== */
.cursor-default {
    cursor: default !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.cursor-move {
    cursor: move !important;
}

.cursor-grab {
    cursor: grab !important;
}

.cursor-grabbing {
    cursor: grabbing !important;
}

.cursor-text {
    cursor: text !important;
}

.cursor-crosshair {
    cursor: crosshair !important;
}

/* Resize cursors */
.cursor-nw-resize {
    cursor: nw-resize !important;
}

.cursor-ne-resize {
    cursor: ne-resize !important;
}

.cursor-sw-resize {
    cursor: sw-resize !important;
}

.cursor-se-resize {
    cursor: se-resize !important;
}

.cursor-n-resize {
    cursor: n-resize !important;
}

.cursor-s-resize {
    cursor: s-resize !important;
}

.cursor-e-resize {
    cursor: e-resize !important;
}

.cursor-w-resize {
    cursor: w-resize !important;
}

/* Selection box */
.selection-box {
    position: absolute;
    border: 2px solid #2563eb;
    background: rgba(37, 99, 235, 0.1);
    pointer-events: none;
    z-index: 1000;
}

/* Resize handles */
.resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border: 2px solid #2563eb;
    border-radius: 50%;
    z-index: 1000;
}

.rotate-handle {
    position: absolute;
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid #2563eb;
    border-radius: 50%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.rotate-handle:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
    cursor: grab;
}

.rotate-handle:active {
    cursor: grabbing;
}

.resize-handle:hover {
    background: #2563eb;
    transform: scale(1.2);
}

.resize-handle.nw {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

.resize-handle.ne {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.resize-handle.sw {
    bottom: -6px;
    left: -6px;
    cursor: sw-resize;
}

.resize-handle.se {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

.resize-handle.n {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: n-resize;
}

.resize-handle.s {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: s-resize;
}

.resize-handle.e {
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    cursor: e-resize;
}

.resize-handle.w {
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    cursor: w-resize;
}

/* Element wrapper for selection */
.element-wrapper {
    position: relative;
    display: inline-block;
}

.element-wrapper.selected {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {

    /* Typography */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Container padding */
    .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Navigation - Fixed */
    nav {
        padding: 0 !important;
    }

    nav .flex.justify-between {
        padding: 0 1rem !important;
    }

    nav .hidden.md\:flex {
        display: none !important;
    }

    nav .text-2xl {
        font-size: 1.25rem !important;
    }

    /* Mobile menu button */
    #mobile-menu-btn {
        display: flex !important;
    }

    .md\:hidden.flex.items-center.gap-2 {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.35rem !important;
        flex: 0 0 auto !important;
        min-width: max-content !important;
    }

    #cart-btn-mobile,
    #mobile-menu-btn {
        width: 2.35rem !important;
        height: 2.35rem !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0.55rem !important;
        line-height: 1 !important;
    }

    #cart-btn-mobile .lucide,
    #mobile-menu-btn .lucide,
    #cart-btn-mobile svg,
    #mobile-menu-btn svg {
        width: 1.2rem !important;
        height: 1.2rem !important;
        display: block !important;
        flex-shrink: 0 !important;
    }

    /* Hero section */
    .hero-section {
        padding: 2rem 0 !important;
    }

    .hero-section h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .hero-section p {
        font-size: 1rem !important;
    }

    .hero-image-container {
        display: none !important;
    }

    /* Product grid */
    .grid.grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Product cards */
    .product-card {
        margin-bottom: 1rem;
    }

    /* Forms */
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* Tables */
    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

    /* Admin panel */
    .admin-sidebar {
        width: 100% !important;
        position: relative !important;
    }

    .admin-content {
        margin-left: 0 !important;
    }

    /* Customizer - Improved */
    /* Customizer layout is handled in personalizar.html <style> block */

    /* Resize handles smaller on mobile */
    .resize-handle {
        width: 16px;
        height: 16px;
    }

    /* Tool tabs */
    .tool-tab {
        flex: 1;
        font-size: 0.75rem !important;
        padding: 0.5rem !important;
    }

    .tool-tab span {
        display: none;
    }

    /* Checkout */
    .lg\:col-span-2 {
        grid-column: span 1 !important;
    }

    .lg\:col-span-1 {
        grid-column: span 1 !important;
    }

    /* Footer */
    footer .grid.md\:grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    footer .col-span-2 {
        grid-column: span 1 !important;
    }

    /* Buttons */
    /* Buttons (homepage/marketing pages only — editor overrides in personalizar.html) */
    .homepage .flex.gap-3 button,
    .checkout-page .flex.gap-3 button {
        font-size: 0.875rem !important;
        padding: 0.75rem 1rem !important;
    }

    /* Modal */
    .modal-content {
        width: 95% !important;
        max-height: 90vh !important;
        overflow-y: auto;
    }

    /* Stats cards */
    .stat-card {
        position: relative !important;
        margin: 1rem 0 !important;
    }

    /* Trust badges */
    .trust-badge {
        padding: 1rem !important;
    }

    /* Feature cards */
    .feature-card {
        padding: 1.5rem !important;
    }

    /* Spacing */
    section {
        padding: 2rem 0 !important;
    }

    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-12 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Hide on mobile */
    .hidden-mobile {
        display: none !important;
    }
}

@media (max-width: 640px) {

    /* Extra small screens */
    h1 {
        font-size: 1.75rem !important;
    }

    /* Product grid single column */
    .grid {
        grid-template-columns: 1fr !important;
    }

    #product-templates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    /* Buttons full width */
    .flex.gap-2 {
        flex-direction: column !important;
    }

    .flex.gap-3 {
        flex-direction: column !important;
    }

    .flex.gap-2>*,
    .flex.gap-3>* {
        width: 100% !important;
    }

    /* Form inputs */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Prevent zoom on iOS */

}

@media (max-width: 640px) {

    /* Extra small screens — homepage/marketing typography */
    .homepage h1 {
        font-size: 1.75rem !important;
    }

    /* Homepage/product grid single column on xs */
    .homepage .grid,
    .produtos-page .grid {
        grid-template-columns: 1fr !important;
    }

    /* Homepage CTA buttons stacked */
    .homepage .flex.gap-2,
    .homepage .flex.gap-3 {
        flex-direction: column !important;
    }

    .homepage .flex.gap-2>*,
    .homepage .flex.gap-3>* {
        width: 100% !important;
    }

    /* Checkout form buttons stack */
    .checkout-page .flex.gap-2:not(.items-center),
    .checkout-page .flex.gap-3:not(.items-center) {
        flex-direction: column !important;
    }

    /* Form inputs — prevent iOS zoom on focus */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid.grid-cols-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    /* Larger touch targets — only navigation & CTA elements, not all buttons */
    nav a,
    .btn-primary,
    .btn-secondary,
    .checkout-place-order-btn,
    .homepage-cart-btn {
        min-height: 44px;
    }

    /* Remove hover effects */
    .hover\:bg-blue-700:hover {
        background-color: inherit;
    }

    .hover\:scale-105:hover {
        transform: none;
    }
}

/* ===== CUSTOMIZER SPECIFIC MOBILE STYLES ===== */
.tool-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: #6b7280;
}

.tool-tab.active {
    background: #2563eb;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.tool-tab:hover:not(.active) {
    background: #f3f4f6;
    transform: translateY(-1px);
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* Button improvements */
button,
.btn {
    transition: all 0.2s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active,
.btn:active {
    transform: translateY(0);
}

/* Smooth page transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ===== DARK MODE SUPPORT (Optional) ===== */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* ===== BRAND HARD OVERRIDE: NO BLUE TONES ===== */
:root {
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 22px 52px rgba(0, 0, 0, 0.2);
}

.btn-primary,
.homepage-primary-action,
.checkout-place-order-btn,
a[href="/checkout.html"].block.w-full,
.tool-tab.active,
.homepage-cart-btn,
.app-page #cart-btn,
.app-page button.bg-blue-600.text-white,
.app-page a.bg-blue-600.text-white,
.bg-blue-600 {
    background: #000000 !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.homepage-primary-action:hover,
.checkout-place-order-btn:hover,
a[href="/checkout.html"].block.w-full:hover,
.tool-tab.active:hover,
.homepage-cart-btn:hover,
.app-page #cart-btn:hover,
.app-page button.bg-blue-600.text-white:hover,
.app-page a.bg-blue-600.text-white:hover,
.hover\:bg-blue-700:hover {
    background: #111111 !important;
}

.homepage-cta,
.app-page section.bg-gradient-to-r.from-blue-600.to-indigo-600.text-white.py-16,
.from-blue-600,
.to-indigo-600 {
    background: #000000 !important;
    background-image: none !important;
    border-color: transparent !important;
}

.app-page nav.bg-white.shadow-sm,
.app-page nav.bg-white.shadow-sm.sticky,
.app-page nav.nav-blur {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1) !important;
}

.app-page footer.bg-gray-900,
.app-page .checkout-footer {
    background: #000000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.55) !important;
}

.social-icon,
.brand-logo-badge {
    border: 1px solid rgba(0, 0, 0, 0.14) !important;
    background: #ffffff !important;
}

.text-blue-100,
.text-blue-600,
.text-blue-700,
.text-blue-800,
.text-slate-300,
.text-slate-900 {
    color: #000000 !important;
}

.border-blue-200,
.border-blue-600 {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.bg-blue-50 {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
}

.selection-box,
.resize-handle,
.rotate-handle,
.element-wrapper.selected {
    border-color: #ef4825 !important;
    outline-color: #ef4825 !important;
}

.selection-box {
    background: rgba(239, 72, 37, 0.12) !important;
}

.rotate-handle,
.resize-handle {
    color: #ef4825 !important;
}

.rotate-handle:hover,
.resize-handle:hover {
    background: #ef4825 !important;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .homepage .homepage-mobile-pre-catalog {
        display: none !important;
    }

    .homepage #produtos {
        padding-top: 2rem !important;
    }

    .homepage #produtos .text-center.mb-16 {
        margin-bottom: 1rem !important;
    }

    .homepage #products-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .homepage #products-container .product-card,
    .homepage #products-container .skeleton-card {
        margin-bottom: 0 !important;
    }

    .homepage #products-container .skeleton-image {
        height: 10rem !important;
    }
}

@media (max-width: 767px) {
    .homepage .homepage-cta.homepage-cta-band {
        padding: 0.95rem 0.8rem !important;
        border-radius: 1rem !important;
    }

    .homepage .homepage-cta .grid.lg\:grid-cols-2 {
        gap: 0.85rem !important;
    }

    .homepage .homepage-cta .homepage-inline-form {
        padding: 0.8rem !important;
        border-radius: 0.85rem !important;
    }

    .homepage .homepage-cta .homepage-form-grid {
        gap: 0.55rem !important;
    }

    .homepage .homepage-cta .homepage-field {
        gap: 0.3rem;
    }

    .homepage .homepage-cta .homepage-field > span {
        font-size: 0.66rem !important;
        letter-spacing: 0.05em;
    }

    .homepage .homepage-cta .homepage-field input,
    .homepage .homepage-cta .homepage-field textarea {
        padding: 0.62rem 0.72rem !important;
        font-size: 0.86rem !important;
        line-height: 1.3 !important;
        border-radius: 0.72rem !important;
    }

    .homepage .homepage-cta .homepage-field textarea {
        min-height: 5.2rem !important;
    }

    .homepage .homepage-cta .homepage-form-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem !important;
        margin-top: 0.75rem !important;
    }

    .homepage .homepage-cta .homepage-form-actions > * {
        width: 100% !important;
    }

    .homepage .homepage-cta .homepage-primary-action,
    .homepage .homepage-cta .homepage-secondary-action {
        min-height: 40px !important;
        padding: 0.6rem 0.55rem !important;
        border-radius: 0.7rem !important;
        font-size: 0.78rem !important;
        gap: 0.3rem !important;
    }
}

@media (max-width: 420px) {
    .homepage .homepage-cta .homepage-form-actions {
        grid-template-columns: 1fr;
    }
}
