/* RAVENTRAS Coffee Machine Theme - Primary Color #459146 */

/* Custom Animations */
@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 15px rgba(41, 77, 255, 0.2), 0 0 30px rgba(41, 77, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 25px rgba(41, 77, 255, 0.4), 0 0 50px rgba(41, 77, 255, 0.2);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(41, 77, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 16px rgba(41, 77, 255, 0.4), 0 0 24px rgba(41, 77, 255, 0.2);
    }
}

@keyframes text-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
        filter: drop-shadow(0 0 6px rgba(41, 77, 255, 0.6));
    }
}

@keyframes error-shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@keyframes bounce-gentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Floating Navigation */
app-header {
    position: fixed !important;
    top: 0;
    left: 0;
    transform: none;
    z-index: 1000;
    width: 100%;
    max-width: none;
}

#cart-overlay {
    z-index: 2000 !important;
    background: rgba(0, 0, 0, .55) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity .3s ease, visibility 0s linear .3s;
}

#cart-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

#cart-modal-panel {
    z-index: 2010 !important;
}

@media (min-width: 768px) {
    app-header {
        top: 0;
        width: 100%;
    }
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Bottom Sheet */
#mobile-menu {
    background: linear-gradient(to top,
        #ffffff 0%,
        #FAF9F6 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

#mobile-menu .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: #459146 transparent;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #459146;
    border-radius: 2px;
}

#mobile-menu .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #2f6f34;
}

/* Adjust body content to account for fixed header */
@media (max-width: 767px) {
    body > main,
    main {
        margin-top: 66px !important;
    }

    #banner-section {
        margin-top: 66px !important;
    }
}

/* Mobile Menu - Transform utilities */
.translate-y-full {
    transform: translateY(100%);
}

.opacity-0 {
    opacity: 0;
}

.invisible {
    visibility: hidden;
}

/* Ensure mobile menu has proper transition */
#mobile-menu {
    transition: transform 0.3s ease;
}

#mobile-menu-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Subtle Grid Background */
.subtle-grid-bg {
    background-image:
        linear-gradient(rgba(41, 77, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 77, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Modern Border Effects */
.modern-border {
    border: 1px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(135deg, #d4b88a, #b8956a) border-box;
}

.gradient-text {
    background: linear-gradient(135deg, #c9a86c 0%, #b8956a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Coffee Machine Theme Overrides */
body {
    background: linear-gradient(180deg, #FAF9F6 0%, #F5F3EF 100%) !important;
    color: #333;
}

/* Dark theme card */
.dark-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
}

/* Dark theme section backgrounds */
.section-dark {
    background: linear-gradient(180deg, #F5F3EF 0%, #FAF9F6 50%, #F5F3EF 100%);
}

/* Ensure main content has proper dark background */
main {
    background: linear-gradient(180deg, #F5F3EF 0%, #FAF9F6 100%);
}

/* Text colors for dark theme */
.text-secondary {
    color: rgba(24, 130, 240, 0.7) !important;
}

/* Badge styling for dark theme */
.badge {
    background: linear-gradient(135deg, #c9a86c 0%, #b8956a 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(41, 77, 255, 0.3);
}

/* Modern button outline for dark theme */
.modern-button-outline {
    background: transparent;
    color: #c9a86c;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #c9a86c;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-button-outline:hover {
    background: #c9a86c;
    color: white;
    box-shadow: 0 4px 15px rgba(41, 77, 255, 0.3);
}

.modern-text-shimmer {
    background: linear-gradient(90deg, #c9a86c 0%, #b8956a 50%, #c9a86c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s linear infinite;
}

.smooth-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smooth-hover:hover {
    box-shadow: 0 8px 30px rgba(41, 77, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(41, 77, 255, 0.3);
}

/* Asymmetrical Grid Layouts */
.asym-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
}

.asym-grid .main-card {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.asym-grid .side-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.asym-grid .side-card:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.asym-grid .side-card:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.asym-grid .side-card:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
}

/* Modern Button */
.modern-button {
    background: linear-gradient(135deg, #c9a86c 0%, #b8956a 100%);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(41, 77, 255, 0.3);
}

.modern-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.modern-button:hover::before {
    left: 100%;
}

.modern-button:hover {
    box-shadow: 0 8px 25px rgba(41, 77, 255, 0.4);
    transform: translateY(-2px);
}

/* Outline Button */
.modern-button-outline {
    background: transparent;
    color: #c9a86c;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #c9a86c;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-button-outline:hover {
    background: #c9a86c;
    color: white;
    box-shadow: 0 4px 15px rgba(41, 77, 255, 0.3);
    transform: translateY(-2px);
}

/* Card Styling - Modern Light Theme */
.modern-card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Subtle gradient overlay */
.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(41, 77, 255, 0.02) 0%,
        rgba(255, 107, 107, 0.01) 50%,
        rgba(41, 77, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

/* Top accent line */
.modern-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        #c9a86c 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Ensure card content is above pseudo-elements */
.modern-card > * {
    position: relative;
    z-index: 2;
}

.modern-card:hover::before {
    opacity: 1;
}

.modern-card:hover::after {
    opacity: 1;
}

.modern-card:hover {
    border-color: rgba(41, 77, 255, 0.2);
    box-shadow:
        0 8px 30px rgba(41, 77, 255, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

/* Card with shadow */
.modern-card.elevated {
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.1);
}

.modern-card.elevated:hover {
    box-shadow:
        0 8px 30px rgba(41, 77, 255, 0.15),
        0 16px 50px rgba(0, 0, 0, 0.12);
}

/* Card with icon hover effect */
.modern-card.icon-hover .card-icon {
    transition: all 0.3s ease;
}

.modern-card.icon-hover:hover .card-icon {
    background: linear-gradient(135deg, #d4b88a, #b8956a);
    color: white;
    box-shadow: 0 4px 15px rgba(41, 77, 255, 0.4);
}

/* Service Card */
.service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    border-color: rgba(41, 77, 255, 0.2);
    box-shadow: 0 8px 30px rgba(41, 77, 255, 0.12);
    transform: translateY(-4px);
}

.service-card .service-icon {
    background: linear-gradient(135deg, #E4EEFA, #F5F3EF);
    color: #c9a86c;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #d4b88a, #b8956a);
    color: white;
    box-shadow: 0 4px 15px rgba(41, 77, 255, 0.4);
}

/* Swiper Customization */
.swiper-button-next, .swiper-button-prev {
    color: #c9a86c !important;
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: #c9a86c;
    color: white !important;
    box-shadow: 0 4px 15px rgba(41, 77, 255, 0.3);
}

.swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: linear-gradient(135deg, #d4b88a, #b8956a) !important;
    box-shadow: 0 0 10px rgba(41, 77, 255, 0.4);
}

/* Scrollbar Customization */
html {
    scrollbar-width: thin;
    scrollbar-color: #459146 #edf3ed;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #74b875, #459146);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #459146, #2f6f34);
}

/* Banner Section Enhancement */
.banner-enhanced {
    background: linear-gradient(135deg, rgba(41, 77, 255, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    border: 1px solid rgba(41, 77, 255, 0.15);
    backdrop-filter: blur(10px);
}

/* Text Effects */
.gradient-text-blue {
    background: linear-gradient(135deg, #c9a86c 0%, #b8956a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge */
.badge {
    background: linear-gradient(135deg, #c9a86c 0%, #b8956a 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(41, 77, 255, 0.3);
}

.badge-outline {
    background: transparent;
    color: #c9a86c;
    border: 1.5px solid #c9a86c;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Input Fields */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #c9a86c;
    box-shadow: 0 0 0 3px rgba(41, 77, 255, 0.1);
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: #666;
}

/* Error State */
input.border-red-500,
textarea.border-red-500,
select.border-red-500 {
    border-color: #ef4444 !important;
}

input.border-red-500:focus,
textarea.border-red-500:focus,
select.border-red-500:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.text-red-400 {
    color: #ef4444;
}

/* Success State */
input.border-green-500,
textarea.border-green-500 {
    border-color: #10b981 !important;
}

input.border-green-500:focus,
textarea.border-green-500:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Responsive Design Optimizations */
@media (max-width: 768px) {
    .asym-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .asym-grid .main-card {
        grid-column: 1;
        grid-row: 1;
    }

    .asym-grid .side-card:nth-child(1),
    .asym-grid .side-card:nth-child(2),
    .asym-grid .side-card:nth-child(3),
    .asym-grid .side-card:nth-child(4) {
        grid-column: 1;
    }

    /* Mobile header adjustments */
    app-header .container {
        padding: 0 0.75rem;
    }

    app-header .text-3xl {
        font-size: 1.5rem;
    }

    /* Mobile banner adjustments */
    #banner-section h2 {
        font-size: 2.5rem;
    }

    /* Mobile service cards */
    #services .service-card {
        padding: 1.5rem;
    }

    /* Mobile section spacing */
    section {
        margin-top: 3rem !important;
        margin-bottom: 3rem !important;
    }
}

@media (max-width: 640px) {
    .modern-button,
    .modern-button-outline {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .modern-card {
        padding: 1rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-card .w-16 {
        width: 3rem;
        height: 3rem;
        font-size: 1.125rem;
    }
}

/* Performance optimizations */
.modern-card,
.service-card,
.modern-button {
    will-change: transform;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-pulse-glow,
    .animate-text-shimmer,
    .animate-icon,
    .animate-error-shake,
    .animate-bounce-gentle {
        animation: none;
    }

    .smooth-hover:hover {
        transform: none;
    }
}

/* Final link and header action color normalization */
a,
a:visited { color: inherit; }
a:hover { color: inherit; }

.coffee-header .market-action,
.coffee-header .market-action:link,
.coffee-header .market-action:visited,
.coffee-header .market-action:hover,
.coffee-header .market-action:focus,
.coffee-header .market-action:active {
    color: #fff !important;
}
.coffee-header .market-action > i { color: inherit !important; }
.coffee-header .market-action:active,
.coffee-header .market-action.is-current {
    border-color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.14);
}
.coffee-header .market-action:focus-visible {
    outline: 2px solid rgba(255,255,255,.9) !important;
    outline-offset: 1px;
}
*:focus-visible { outline-color: #459146; }

/* Shop marketplace UI */
.shop-page-main { background: #eaeded !important; }
.shop-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 2px 2px 10px; color: #687069; font-size: .74rem; }
.shop-breadcrumb a { color: #397d3d; }
.shop-breadcrumb i { color: #a3aaa4; font-size: .55rem; }
.shop-toolbar { position: sticky; top: 137px; z-index: 25; margin-bottom: 12px; padding: 14px 17px; border: 1px solid #d5d9d9; border-radius: 8px; background: rgba(255,255,255,.97); box-shadow: 0 2px 5px rgba(15,17,17,.08); backdrop-filter: blur(10px); }
.shop-toolbar-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.shop-toolbar h1 { color: #202420; font-size: 1.3rem; font-weight: 700; }
.shop-toolbar p { margin-top: 2px; color: #6b7280; font-size: .7rem; }
.shop-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.shop-filter-trigger { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #459146; border-radius: 5px; color: #2f6f34; font-size: .75rem; font-weight: 700; }
.shop-view-toggle { display: flex; padding: 3px; border: 1px solid #d5d9d9; border-radius: 5px; background: #f7f8f7; }
.shop-view-toggle button { width: 31px; height: 30px; border-radius: 4px; color: #687069; }
.shop-view-toggle button.is-active { background: #459146; color: white !important; }
.shop-sort-select { min-height: 38px; padding: 7px 32px 7px 10px; border: 1px solid #cfd5cf; border-radius: 5px; background: white; color: #303630; font-size: .74rem; outline: none; cursor: pointer; }
.shop-sort-select:focus { border-color: #459146; box-shadow: 0 0 0 2px rgba(69,145,70,.14); }
.shop-layout { position: relative; display: grid; grid-template-columns: minmax(0, 238px) minmax(0, 1fr); align-items: start; gap: 12px; }
.shop-sidebar { width: 100%; min-width: 0; max-width: 238px; padding: 0; box-sizing: border-box; background: white; }
.shop-sidebar-card { overflow: hidden; border: 1px solid #d5d9d9; border-radius: 8px; background: white; box-shadow: 0 1px 2px rgba(15,17,17,.08); }
.shop-sidebar-title { align-items: center; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid #e5e7eb; background: #f3f7f3; color: #29462e; font-size: .8rem; font-weight: 700; }
.shop-sidebar-title i { margin-right: 6px; }
.shop-sidebar-title a { color: #397d3d; font-size: .66rem; font-weight: 600; }
.shop-filter-heading { padding: 12px 14px 7px; color: #505850; font-size: .72rem; font-weight: 700; }
#category-filter { padding: 0 7px 10px; }
.shop-filter-option { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 6px 8px; border-radius: 5px; color: #3f463f; font-size: .74rem; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.shop-filter-option:hover { background: #f1f7f1; color: #2f6f34; }
.shop-filter-option:has(input:checked) { background: #e7f2e7; color: #2f6f34; font-weight: 700; }
.shop-filter-option > span:nth-of-type(2) { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.shop-brand-avatar { width: 28px; height: 28px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; background: #edf6ed; color: #397d3d; font-size: .62rem; font-weight: 700; }
.shop-filter-check { margin-left: auto; color: #459146; opacity: 0; font-size: .66rem; }
.shop-filter-option:has(input:checked) .shop-filter-check { opacity: 1; }
.shop-filter-close { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cfd5cf; border-radius: 5px; color: #397d3d; }
.shop-products-panel { position: relative; min-width: 0; min-height: 500px; padding: 12px; border: 1px solid #d5d9d9; border-radius: 8px; background: white; box-shadow: 0 1px 2px rgba(15,17,17,.08); }
.shop-product-grid > product-card { min-width: 0; height: 100%; }
.shop-list-card { padding: 16px; border: 1px solid #e1e5e1; border-radius: 7px; background: white; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.shop-list-card:hover { border-color: #aeb8ae; box-shadow: 0 3px 9px rgba(15,17,17,.1); }

@media (min-width: 1024px) {
    .shop-sidebar { position: sticky !important; top: 224px; }
}

@media (max-width: 1023px) {
    .shop-toolbar { top: 91px; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { width: min(320px, 88vw); max-width: none; padding: 18px; box-shadow: 10px 0 35px rgba(0,0,0,.2); }
    .shop-sidebar-card { border: 0; box-shadow: none; }
}

@media (max-width: 767px) {
    .shop-page-main { padding: 8px !important; }
    .shop-breadcrumb { margin-bottom: 7px; font-size: .65rem; }
    .shop-toolbar { top: 66px; margin-bottom: 8px; padding: 11px; }
    .shop-toolbar-main { flex-direction: column; align-items: stretch; gap: 10px; }
    .shop-toolbar-main > div:first-child { min-width: 0; }
    .shop-toolbar h1 { font-size: 1.05rem; line-height: 1.3; }
    .shop-toolbar p { margin-top: 3px; font-size: .64rem; line-height: 1.4; }
    .shop-toolbar-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); width: 100%; gap: 8px; }
    .shop-toolbar-actions > .flex { width: 100%; min-width: 0; margin-left: 0 !important; }
    .shop-view-toggle { display: none; }
    .shop-sort-select { width: 100%; max-width: none; min-width: 0; min-height: 38px; padding: 6px 30px 6px 10px; font-size: .69rem; }
    .shop-filter-trigger { min-width: 92px; min-height: 38px; justify-content: center; padding: 6px 11px; font-size: .7rem; }
    .shop-products-panel { padding: 7px; }
    .shop-list-card { padding: 10px; }
}

/* Product detail marketplace UI */
.product-page-main { background: #eaeded !important; }
product-detail { display: block; min-width: 0; }

.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 2px 2px 12px;
    color: #687069;
    font-size: .76rem;
    white-space: nowrap;
    overflow: hidden;
}
.pd-breadcrumb a { color: #397d3d; }
.pd-breadcrumb a:hover { text-decoration: underline; }
.pd-breadcrumb i { color: #9ca3af; font-size: .55rem; }
.pd-breadcrumb span { overflow: hidden; text-overflow: ellipsis; }

.pd-main-card,
.pd-section-card {
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 17, 17, .08);
}
.pd-main-card { padding: 22px; }
.pd-main-layout {
    display: grid;
    grid-template-columns: minmax(340px, 1.08fr) minmax(330px, 1fr) minmax(280px, 330px);
    align-items: start;
    gap: 26px;
}
.pd-gallery-column,
.pd-info-column,
.pd-buybox { min-width: 0; }
.pd-gallery-column { position: sticky; top: 152px; }
.pd-gallery {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #e1e5e1;
    border-radius: 7px;
    background: white;
}
.pd-gallery .swiper-slide { padding: 12px !important; border: 0 !important; border-radius: 0 !important; }
.pd-gallery .swiper-pagination { bottom: 8px !important; }
.pd-gallery .swiper-pagination-bullet { width: 6px; height: 6px; background: #8a968b; opacity: .45; }
.pd-gallery .swiper-pagination-bullet-active { width: 18px; border-radius: 6px; background: #459146; opacity: 1; }
.pd-thumbnails { display: flex; gap: 8px; margin-top: 10px; padding: 2px; overflow-x: auto; scrollbar-width: thin; }
.pd-thumbnails .thumbnail-item { width: 64px !important; height: 64px !important; border-radius: 6px !important; background: white; }
.pd-gallery-hint { margin-top: 8px; color: #7b827c; font-size: .68rem; text-align: center; }
.pd-gallery-hint i { margin-right: 5px; color: #459146; }

.pd-info-column { padding: 3px 0; }
.pd-label-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 11px; }
.pd-brand,
.pd-new-label { padding: 4px 9px; border-radius: 4px; font-size: .7rem; font-weight: 700; }
.pd-brand { border: 1px solid rgba(69,145,70,.25); background: #edf6ed; color: #2f6f34; }
.pd-new-label { background: #459146; color: white; }
.pd-product-title { color: #171a18; font-size: clamp(1.18rem, 1.6vw, 1.55rem); font-weight: 600; line-height: 1.38; }
.pd-rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 13px; font-size: .76rem; }
.pd-rating-row > strong { color: #b45309; }
.pd-stars { display: flex; gap: 2px; font-size: .7rem; }
.pd-rating-row > a { padding-left: 9px; border-left: 1px solid #d5d9d9; color: #397d3d; }
.pd-sales { display: inline-flex; align-items: center; gap: 5px; color: #c2410c; font-weight: 600; }
.pd-divider { height: 1px; margin: 16px 0; background: #e5e7eb; }
.pd-description h2,
.pd-features h2 { margin-bottom: 8px; color: #242824; font-size: .88rem; font-weight: 700; }
.pd-description p { color: #5f665f; font-size: .78rem; line-height: 1.65; }
.pd-features { margin-top: 18px; }
.pd-features h2 i { margin-right: 6px; color: #459146; }
.pd-features ul { display: grid; gap: 8px; }
.pd-features li { display: flex; align-items: flex-start; gap: 8px; color: #4b514c; font-size: .76rem; line-height: 1.5; }
.pd-features li > i { margin-top: 4px; color: #459146; font-size: .65rem; }
.pd-features > a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #397d3d; font-size: .72rem; font-weight: 700; }
.pd-service-note { display: flex; gap: 10px; margin-top: 18px; padding: 12px; border: 1px solid #d9ead9; border-radius: 6px; background: #f3f8f3; }
.pd-service-note > i { margin-top: 2px; color: #459146; }
.pd-service-note strong,
.pd-service-note span { display: block; }
.pd-service-note strong { color: #29462e; font-size: .76rem; }
.pd-service-note span { margin-top: 3px; color: #687069; font-size: .68rem; line-height: 1.45; }

.pd-buybox { position: sticky; top: 152px; padding: 18px; border: 1px solid #cfd5cf; border-radius: 8px; background: white; box-shadow: 0 4px 14px rgba(15,17,17,.08); }
.pd-deal-label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 4px; background: #fee2e2; color: #b91c1c; font-size: .68rem; font-weight: 700; }
.pd-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pd-price-row > strong { color: #b45309; font-size: 1.65rem; line-height: 1.1; white-space: nowrap; }
.pd-price-row > span { padding: 3px 6px; border-radius: 3px; background: #dc2626; color: white; font-size: .68rem; font-weight: 700; }
.pd-original-price { margin-top: 5px; color: #6b7280; font-size: .72rem; }
.pd-tax-note { margin-top: 3px; color: #7b827c; font-size: .63rem; }
.pd-buybox-divider { height: 1px; margin: 14px 0; background: #e5e7eb; }
.pd-stock { color: #198754; font-size: .86rem; font-weight: 700; }
.pd-stock i { margin-right: 5px; }
.pd-delivery-list { display: grid; gap: 11px; margin-top: 13px; }
.pd-delivery-list > div { display: flex; align-items: flex-start; gap: 9px; }
.pd-delivery-list > div > i { width: 16px; margin-top: 2px; color: #459146; text-align: center; }
.pd-delivery-list strong,
.pd-delivery-list small { display: block; }
.pd-delivery-list strong { color: #343934; font-size: .7rem; }
.pd-delivery-list small { margin-top: 2px; color: #767d77; font-size: .62rem; }
.pd-buybox-actions { display: grid; gap: 8px; margin-top: 16px; }
.pd-add-cart,
.pd-buy-now,
.pd-wishlist { width: 100%; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; font-size: .8rem; font-weight: 700; transition: filter .15s ease, background-color .15s ease; }
.pd-add-cart { background: #459146; color: white; }
.pd-buy-now { border: 1px solid #2f6f34; background: white; color: #2f6f34; }
.pd-wishlist { min-height: 36px; border: 1px solid #d5d9d9; color: #4f5750; font-size: .72rem; }
.pd-add-cart:hover,
.pd-buy-now:hover { filter: brightness(.94); }
.pd-buy-now:hover { background: #edf6ed; }
.pd-secure { margin-top: 11px; color: #757c76; font-size: .61rem; text-align: center; }
.pd-secure i { margin-right: 4px; color: #459146; }

.pd-content-section { margin-top: 14px; }
.pd-section-card { padding: 22px; }
.pd-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: #202420; font-size: 1.18rem; font-weight: 700; }
.pd-section-title > span { color: #6b7280; font-size: .72rem; font-weight: 400; }
.pd-spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e5e7eb; border-left: 1px solid #e5e7eb; }
.pd-spec-item { min-width: 0; display: grid; grid-template-columns: minmax(95px, .8fr) minmax(0, 1.2fr); border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.pd-spec-item span,
.pd-spec-item strong { min-width: 0; padding: 10px; overflow-wrap: anywhere; font-size: .7rem; line-height: 1.4; }
.pd-spec-item span { background: #f5f7f5; color: #687069; }
.pd-spec-item strong { color: #303630; font-weight: 600; }
.pd-reviews-grid { display: block; columns: 2; column-gap: 12px; }
.pd-reviews-grid > div {
    width: 100%;
    display: inline-block;
    margin: 0 0 12px;
    padding: 16px !important;
    break-inside: avoid;
    vertical-align: top;
    border-radius: 7px !important;
    box-shadow: none !important;
}
.pd-recommendations { margin-bottom: 22px; }
.pd-recommendations .swiper-wrapper { align-items: stretch; }
.pd-recommendations .swiper-slide { height: auto; display: flex; }
.pd-recommendations product-card { width: 100%; }

@media (max-width: 1199px) {
    .pd-main-layout { grid-template-columns: minmax(300px, .9fr) minmax(340px, 1.1fr); }
    .pd-buybox { position: static; grid-column: 1 / -1; }
    .pd-buybox-actions { grid-template-columns: 1fr 1fr .8fr; }
    .pd-secure { text-align: left; }
    .pd-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .product-page-main { padding: 8px !important; }
    .pd-breadcrumb { margin: 2px 2px 8px; font-size: .66rem; }
    .pd-main-card { padding: 10px; }
    .pd-main-layout { grid-template-columns: 1fr; gap: 16px; }
    .pd-gallery-column { position: static; }
    .pd-gallery { aspect-ratio: 1 / 1; }
    .pd-gallery .swiper-slide { padding: 8px !important; }
    .pd-thumbnails .thumbnail-item { width: 52px !important; height: 52px !important; }
    .pd-gallery-hint { display: none; }
    .pd-info-column { padding: 0 2px; }
    .pd-product-title { font-size: 1.02rem; line-height: 1.42; }
    .pd-rating-row { gap: 6px; margin-top: 9px; font-size: .68rem; }
    .pd-description p { font-size: .72rem; }
    .pd-features li { font-size: .7rem; }
    .pd-service-note { margin-top: 14px; }
    .pd-buybox { grid-column: auto; padding: 14px; }
    .pd-price-row > strong { font-size: 1.4rem; }
    .pd-buybox-actions { grid-template-columns: 1fr 1fr; }
    .pd-wishlist { grid-column: 1 / -1; }
    .pd-content-section { margin-top: 10px; }
    .pd-section-card { padding: 14px 10px; }
    .pd-section-title { margin-bottom: 12px; font-size: 1rem; }
    .pd-spec-grid { grid-template-columns: 1fr; }
    .pd-spec-item { grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); }
    .pd-spec-item span,
    .pd-spec-item strong { padding: 8px; font-size: .65rem; }
    .pd-reviews-grid { columns: 1; column-gap: 0; }
    .pd-reviews-grid > div { margin-bottom: 8px; padding: 13px !important; }
}

/* Coffee theme overrides */
:root {
    --coffee-primary: #459146;
    --coffee-primary-dark: #2f6f34;
    --coffee-primary-light: #74b875;
    --coffee-surface: #f7fbf7;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Sarabun", "Noto Sans Thai", sans-serif;
    background: #eaeded;
}

body > main,
main {
    margin-top: 137px !important;
    background: #eaeded !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--coffee-primary-dark), var(--coffee-primary-light)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.modern-button {
    background: linear-gradient(135deg, var(--coffee-primary), var(--coffee-primary-dark)) !important;
    box-shadow: 0 8px 20px rgba(69, 145, 70, .24) !important;
}

.modern-button-outline {
    color: var(--coffee-primary) !important;
    border-color: var(--coffee-primary) !important;
}

.modern-button-outline:hover {
    background: var(--coffee-primary) !important;
}

.text-primary { color: var(--coffee-primary) !important; }
.text-primary-dark { color: var(--coffee-primary-dark) !important; }
.bg-primary { background-color: var(--coffee-primary) !important; }
.bg-primary-dark { background-color: var(--coffee-primary-dark) !important; }
.border-primary { border-color: var(--coffee-primary) !important; }
.from-primary {
    --tw-gradient-from: #459146 var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgb(69 145 70 / 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
.from-primary-light {
    --tw-gradient-from: #74b875 var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgb(116 184 117 / 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
.to-primary { --tw-gradient-to: #459146 var(--tw-gradient-to-position) !important; }
.to-primary-light { --tw-gradient-to: #74b875 var(--tw-gradient-to-position) !important; }
.to-primary-dark { --tw-gradient-to: #2f6f34 var(--tw-gradient-to-position) !important; }
[class~="bg-primary/5"] { background-color: rgba(69, 145, 70, .05) !important; }
[class~="bg-primary/10"] { background-color: rgba(69, 145, 70, .10) !important; }
[class~="bg-primary/20"] { background-color: rgba(69, 145, 70, .20) !important; }
[class~="border-primary/20"] { border-color: rgba(69, 145, 70, .20) !important; }
[class~="border-primary/30"] { border-color: rgba(69, 145, 70, .30) !important; }

.coffee-header { transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s ease; }

.market-header-main {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(360px, 2.25fr) minmax(270px, 1fr);
    align-items: center;
    gap: 1rem;
}

.market-logo-link {
    width: 170px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 6px;
    background-color: #fff;
}

.market-logo-image {
    width: 158px;
    height: 42px;
    display: block;
    object-fit: contain;
    object-position: left center;
    border-radius: 5px;
}

.market-header-search {
    width: 100%;
    max-width: 58rem;
    justify-self: center;
}

.market-header-actions {
    justify-self: end;
}

.coffee-utility a { transition: color .2s ease; }
.coffee-utility a:hover { color: white; text-decoration: underline; }

.market-action {
    min-height: 3.25rem;
    padding: .35rem .55rem;
    border: 1px solid transparent;
    border-radius: .35rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: white;
    white-space: nowrap;
    transition: border-color .2s ease, background-color .2s ease;
}

.market-action:hover { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); }
.market-action small, .market-action strong { display: block; line-height: 1.05; }
.market-action small { font-size: .65rem; font-weight: 400; color: rgba(255,255,255,.78); }
.market-action strong { margin-top: .18rem; font-size: .75rem; }

.market-nav { overflow: visible; justify-content: center; scrollbar-width: none; }
.market-nav::-webkit-scrollbar { display: none; }
.market-nav-item {
    position: relative;
    padding: .55rem .72rem;
    border: 0;
    border-radius: .25rem .25rem 0 0;
    color: rgba(255, 255, 255, .9);
    transition: color .2s ease, background-color .2s ease;
}

.market-nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, .09);
}

.market-nav-item.is-current {
    color: white;
    background: rgba(255, 255, 255, .13);
    font-weight: 700;
}

.market-nav-item.is-current::after {
    content: "";
    position: absolute;
    left: .65rem;
    right: .65rem;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #bfe6c0;
}

.market-nav-item:focus { outline: none; }
.market-nav-item:focus-visible {
    outline: none !important;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75);
}

.market-category-wrap {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.category-menu-trigger .category-chevron {
    transition: transform .2s ease;
}

.category-menu-trigger.is-open .category-chevron {
    transform: rotate(180deg);
}

.market-category-menu {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 1px);
    left: 0;
    width: 22rem;
    padding-bottom: .65rem;
    overflow: hidden;
    border: 1px solid rgba(47, 111, 52, .18);
    border-radius: 0 0 .8rem .8rem;
    background: white;
    color: #1f2937;
    box-shadow: 0 18px 40px rgba(22, 62, 27, .22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transform-origin: top left;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.market-category-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#header-category-list {
    max-height: min(62vh, 480px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(69,145,70,.35) transparent;
}

.market-category-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: .15rem .55rem;
    padding: .7rem .8rem;
    border-radius: .6rem;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.market-category-link:hover,
.market-category-link.is-current {
    background: rgba(69, 145, 70, .1);
    color: #2f6f34;
    transform: translateX(3px);
}

.market-category-link strong,
.market-category-link small { display: block; }
.market-category-link strong { font-size: .88rem; }
.market-category-link small { margin-top: .12rem; color: #6b7280; font-size: .7rem; font-weight: 400; }

.market-category-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .55rem;
    background: rgba(69, 145, 70, .11);
    color: #397d3d;
}

.market-category-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: .6rem .75rem 0;
    padding: .65rem;
    border-top: 1px solid #e5e7eb;
    color: #397d3d;
    font-size: .8rem;
    font-weight: 700;
}

.mobile-category-accordion {
    overflow: hidden;
    border: 1px solid rgba(69, 145, 70, .22);
    border-radius: .9rem;
    background: rgba(69, 145, 70, .035);
}

.mobile-category-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1rem;
    color: #1f2937;
}

.mobile-category-toggle.is-open { color: #2f6f34; }
.mobile-category-chevron { color: #459146; transition: transform .22s ease; }
.mobile-category-toggle.is-open .mobile-category-chevron { transform: rotate(180deg); }

.mobile-category-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
}

.mobile-category-panel.is-open { grid-template-rows: 1fr; }
.mobile-category-panel-inner { min-height: 0; overflow: hidden; padding: 0 .6rem; }
.mobile-category-panel.is-open .mobile-category-panel-inner { padding-bottom: .65rem; }

.mobile-category-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .68rem .75rem;
    border-top: 1px solid rgba(69, 145, 70, .12);
    color: #374151;
    font-size: .86rem;
    font-weight: 600;
}

.mobile-category-link > span {
    width: 1.8rem;
    color: #459146;
    text-align: center;
}

.mobile-category-link:active { background: rgba(69, 145, 70, .1); }
.mobile-category-all { color: #2f6f34; font-weight: 700; }

.policy-content h2 {
    margin-bottom: .65rem;
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 700;
}

.policy-content ul,
.policy-content ol {
    padding-left: 1.4rem;
}

.policy-content ul { list-style: disc; }
.policy-content ol { list-style: decimal; }
.policy-content li + li { margin-top: .4rem; }

.coffee-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: .75rem .8rem;
    border-radius: .9rem;
    color: #374151;
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
    transition: color .25s ease, background-color .25s ease;
}

.coffee-nav-link:hover,
.coffee-nav-link.active {
    color: var(--coffee-primary-dark);
    background: rgba(69, 145, 70, .09);
}

.coffee-nav-link.active::after {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: .35rem;
    height: 2px;
    border-radius: 999px;
    background: var(--coffee-primary);
}

.coffee-dropdown-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1rem;
    border-radius: .8rem;
    color: #374151;
    font-size: .9rem;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.coffee-dropdown-link i { width: 1.25rem; color: var(--coffee-primary); text-align: center; }
.coffee-dropdown-link:hover { color: var(--coffee-primary-dark); background: #edf7ed; transform: translateX(4px); }

.coffee-action {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: transform .25s ease, color .25s ease, background-color .25s ease;
}

.coffee-action:hover { color: var(--coffee-primary-dark); background: #edf7ed; transform: translateY(-2px); }

.coffee-badge {
    position: absolute;
    top: -.2rem;
    right: -.2rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--coffee-primary);
    color: white;
    font-size: .62rem;
    font-weight: 700;
    box-shadow: 0 0 0 2px white;
}

.coffee-quick-card {
    min-height: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    border: 1px solid rgba(69, 145, 70, .16);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .82);
    color: #374151;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(47, 111, 52, .06);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), border-color .3s ease, box-shadow .3s ease;
}

.coffee-quick-card i { font-size: 1.7rem; color: var(--coffee-primary); }
.coffee-quick-card:hover { transform: translateY(-6px); border-color: var(--coffee-primary); box-shadow: 0 16px 36px rgba(47, 111, 52, .14); }

*:focus-visible { outline-color: var(--coffee-primary) !important; }
::selection { background: rgba(69, 145, 70, .25); color: #1f3b22; }

@media (max-width: 1023px) {
    .market-header-main {
        grid-template-columns: auto minmax(260px, 1fr) auto;
        gap: .65rem;
    }

    body > main, main { margin-top: 91px !important; }
    #banner-section { margin-top: 91px !important; }
}

@media (max-width: 767px) {
    .market-header-main {
        display: flex;
        gap: .5rem;
    }

    .market-header-actions { margin-left: auto; }
    .market-logo-link { width: 112px; height: 42px; }
    .market-logo-image { width: 108px; height: 36px; }
    app-header { top: 0 !important; width: 100% !important; }
    body > main, main { margin-top: 66px !important; }
    #banner-section { margin-top: 66px !important; }
    .coffee-quick-card { min-height: 7rem; padding: .75rem; text-align: center; font-size: .9rem; }
}

/* Animation Classes */
.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-icon {
    animation: icon-bounce 2s ease-in-out infinite;
}

.animate-error-shake {
    animation: error-shake 0.5s ease-in-out;
}

.animate-bounce-gentle {
    animation: bounce-gentle 2s ease-in-out infinite;
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 50%,
        transparent 100%);
    margin: 4rem 0;
}

/* Marketplace homepage */
.market-home {
    background: #eaeded !important;
}

.market-home-shell {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 14px 16px 36px;
}

.marketplace-hero {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 260px;
    gap: 12px;
    min-height: 330px;
}

.marketplace-category-rail,
.marketplace-main-promo,
.marketplace-side-card,
.commerce-panel,
.marketplace-benefits,
.market-service-grid > div,
.market-newsletter {
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 17, 17, .08);
}

.marketplace-category-rail {
    overflow: hidden;
}

.marketplace-category-rail h2 {
    padding: 13px 15px;
    background: #f3f7f3;
    color: #1f5130;
    font-size: .88rem;
    font-weight: 700;
}

.marketplace-category-rail h2 i { margin-right: 8px; }
.marketplace-category-rail > a,
#marketplace-category-rail-list > a {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 8px 14px;
    border-top: 1px solid #edf0ed;
    color: #333;
    font-size: .83rem;
    transition: background-color .15s ease, color .15s ease;
}
.marketplace-category-rail > a > i:first-child,
#marketplace-category-rail-list > a > i:first-child { color: #459146; text-align: center; }
.marketplace-category-rail > a > i:last-child,
#marketplace-category-rail-list > a > i:last-child { color: #a3a3a3; font-size: .62rem; }
.marketplace-category-rail > a:hover,
#marketplace-category-rail-list > a:hover { background: #f1f8f1; color: #2f6f34; }

.marketplace-rail-help {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px;
    padding: 10px;
    border-radius: 6px;
    background: #edf6ed;
    color: #2f6f34;
}
.marketplace-rail-help > i { font-size: 1.25rem; }
.marketplace-rail-help small,
.marketplace-rail-help strong { display: block; line-height: 1.2; }
.marketplace-rail-help small { color: #5f6b61; font-size: .67rem; }
.marketplace-rail-help strong { margin-top: 2px; font-size: .76rem; }

.marketplace-main-promo {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr);
    align-items: center;
    padding: clamp(22px, 4vw, 48px);
    background: linear-gradient(110deg, #e7f3e8 0%, #f7fbf7 58%, #dcebdc 100%);
}

.marketplace-promo-copy { position: relative; z-index: 2; }
.marketplace-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    color: #c2410c;
    font-size: .78rem;
    font-weight: 700;
}
.marketplace-promo-copy h1 { color: #17211a; font-size: clamp(1.8rem, 3vw, 2.9rem); font-weight: 700; line-height: 1.16; }
.marketplace-promo-copy h1 strong { color: #397d3d; }
.marketplace-promo-copy p { max-width: 560px; margin: 12px 0 18px; color: #4d5b50; font-size: .92rem; line-height: 1.55; }
.marketplace-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 6px;
    background: #459146;
    color: white;
    font-size: .86rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(47, 111, 52, .25);
}
.marketplace-main-promo > img { position: relative; z-index: 1; width: 100%; max-height: 260px; object-fit: cover; border-radius: 7px; mix-blend-mode: multiply; }
.marketplace-discount-bubble {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 74px;
    height: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    border-radius: 50%;
    background: #c2410c;
    color: white;
    box-shadow: 0 5px 15px rgba(194, 65, 12, .25);
    transform: rotate(5deg);
}
.marketplace-discount-bubble small { font-size: .6rem; }
.marketplace-discount-bubble strong { font-size: 1.15rem; }

.marketplace-side-deals { display: grid; grid-template-rows: 1fr 1.18fr; gap: 12px; }
.marketplace-side-card { overflow: hidden; padding: 16px; }
.marketplace-side-card small,
.marketplace-side-card strong,
.marketplace-side-card span { display: block; }
.marketplace-side-card small { color: #6b7280; font-size: .72rem; }
.marketplace-side-card strong { margin-top: 4px; color: #1f2937; font-size: 1rem; line-height: 1.3; }
.marketplace-side-card span { margin-top: 4px; color: #397d3d; font-size: .75rem; }
.marketplace-guide-card { display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, #fff 0%, #edf6ed 100%); text-decoration: none; }
.marketplace-guide-card .marketplace-side-action { margin-top: 12px; padding: 8px 12px; border-radius: 5px; background: #459146; color: white; text-align: center; font-size: .8rem; font-weight: 700; transition: background-color .15s ease; }
.marketplace-guide-card:hover .marketplace-side-action { background: #397d3d; }
.marketplace-mini-deal {
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, #ffffff 0%, #f3f7f3 100%);
}
.marketplace-mini-deal > div { width: 100%; }

.marketplace-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 12px;
    padding: 12px 18px;
}
.marketplace-benefits > div { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 16px; border-right: 1px solid #e5e7eb; }
.marketplace-benefits > div:last-child { border-right: 0; }
.marketplace-benefits i { color: #459146; font-size: 1.35rem; }
.marketplace-benefits strong,
.marketplace-benefits small { display: block; line-height: 1.25; }
.marketplace-benefits strong { color: #232f3e; font-size: .8rem; }
.marketplace-benefits small { margin-top: 2px; color: #687069; font-size: .68rem; }

.commerce-panel { margin-top: 14px; padding: 18px; overflow: hidden; }
.commerce-flash-panel { border-top: 4px solid #ef4444; }
.market-section-header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.market-section-header h2 { color: #202020; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.market-section-header p { margin-top: 3px; color: #6b7280; font-size: .75rem; }
.market-section-icon { width: 38px; height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: #459146; color: white; }
.market-see-all { display: inline-flex; align-items: center; gap: 6px; color: #2f6f34; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.market-see-all:hover { text-decoration: underline; }
.market-countdown { display: flex; align-items: center; gap: 5px; margin-left: auto; font-size: .74rem; }
.market-countdown > span { margin-right: 4px; color: #6b7280; }
.market-countdown strong { min-width: 29px; padding: 5px 4px; border-radius: 4px; background: #232f3e; color: white; text-align: center; font-variant-numeric: tabular-nums; }
.market-countdown b { color: #232f3e; }
.market-product-swiper { overflow: visible; padding: 2px 1px 5px; }
.market-product-swiper .swiper-wrapper { align-items: stretch; }
.market-product-swiper .swiper-slide { height: auto; display: flex; }
.market-product-swiper product-card { width: 100%; height: auto; display: block; }

.market-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(140px, 1fr));
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(69,145,70,.3) transparent;
    scroll-snap-type: x proximity;
}
.market-category-grid a { min-width: 0; padding: 15px 10px; border: 1px solid #e1e5e1; border-radius: 7px; background: #fff; text-align: center; scroll-snap-align: start; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.market-category-grid a:hover { border-color: #459146; box-shadow: 0 4px 12px rgba(47, 111, 52, .12); transform: translateY(-2px); }
.market-category-grid span { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #edf6ed; color: #397d3d; font-size: 1.25rem; }
.market-category-grid strong,
.market-category-grid small { display: block; }
.market-category-grid strong { margin-top: 9px; color: #222; font-size: .82rem; }
.market-category-grid small { margin-top: 3px; color: #737373; font-size: .66rem; }
.market-slider-btn { width: 32px; height: 32px; border: 1px solid #cbd5cb; border-radius: 5px; background: white; color: #397d3d; transition: background-color .15s ease, color .15s ease; }
.market-slider-btn:hover { background: #459146; color: white; }

.market-promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.market-promo-tile { min-height: 190px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; overflow: hidden; border: 1px solid #d5d9d9; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(15, 17, 17, .08); }
.market-promo-tile > div { padding: 20px; position: relative; z-index: 2; }
.market-promo-tile small { color: #459146; font-size: .7rem; font-weight: 700; }
.market-promo-tile h2 { margin-top: 5px; color: #1f2937; font-size: 1.1rem; font-weight: 700; }
.market-promo-tile p { margin: 6px 0 12px; color: #6b7280; font-size: .74rem; line-height: 1.45; }
.market-promo-tile span { color: #397d3d; font-size: .75rem; font-weight: 700; }
.market-promo-tile img { width: 100%; height: 100%; object-fit: cover; }
.market-promo-help { grid-template-columns: 1fr auto; background: linear-gradient(135deg, #397d3d, #245c2b); color: white; }
.market-promo-help small,
.market-promo-help h2,
.market-promo-help p,
.market-promo-help span { color: white; }
.market-promo-help > i { padding-right: 28px; color: rgba(255,255,255,.2); font-size: 5rem; }

.market-brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.market-brand-grid > a { aspect-ratio: 1.85 / 1; border: 1px solid #dfe5df; border-radius: 7px; background: #f4f7f4; }
.market-brand-grid .market-brand-image { object-fit: contain; object-position: center; transform: scale(.94); }
.market-brand-grid > a:hover .market-brand-image { transform: scale(1); }
.market-brand-grid > a > div:last-child { padding: 16px !important; }

.market-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.market-service-grid > div { padding: 18px; }
.market-service-grid i { color: #459146; font-size: 1.4rem; }
.market-service-grid h3 { margin-top: 9px; color: #1f2937; font-size: .9rem; font-weight: 700; }
.market-service-grid p { margin-top: 4px; color: #6b7280; font-size: .7rem; line-height: 1.45; }

.market-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}
.market-review-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #dfe5df;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 17, 17, .06);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.market-review-card:hover {
    border-color: #b7c8b7;
    box-shadow: 0 5px 14px rgba(47, 111, 52, .1);
}
.market-review-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.market-review-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e7f3e7;
    color: #397d3d;
    font-weight: 800;
}
.market-review-author-copy { min-width: 0; }
.market-review-author-copy strong,
.market-review-author-copy span { display: block; }
.market-review-author-copy strong { overflow: hidden; color: #1f2937; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.market-review-author-copy span { margin-top: 2px; color: #6b7280; font-size: .7rem; }
.market-review-verified { margin-left: auto; color: #397d3d; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.market-review-rating { display: flex; align-items: center; gap: 8px; margin-top: 17px; }
.market-review-rating span { display: flex; gap: 3px; color: #f5b400; font-size: .84rem; }
.market-review-rating strong { color: #374151; font-size: .75rem; }
.market-review-text {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.44em;
    margin-top: 13px;
    color: #4b5563;
    font-size: .84rem;
    line-height: 1.72;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
@media (min-width: 768px) and (max-width: 1023px) {
    .market-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .market-review-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.market-newsletter { display: grid; grid-template-columns: 1fr minmax(340px, .72fr); align-items: center; gap: 28px; margin-top: 14px; padding: 24px 28px; background: #232f3e; color: white; }
.market-newsletter small { color: #a7d7a8; font-size: .72rem; font-weight: 700; }
.market-newsletter h2 { margin-top: 3px; font-size: 1.35rem; font-weight: 700; }
.market-newsletter p { margin-top: 5px; color: #d5d9d9; font-size: .78rem; }
.market-newsletter form { display: flex; }
.market-newsletter input { min-width: 0; flex: 1; padding: 11px 13px; border-radius: 6px 0 0 6px; background: white; color: #222; outline: none; }
.market-newsletter button { padding: 0 18px; border-radius: 0 6px 6px 0; background: #459146; color: white; font-size: .78rem; font-weight: 700; white-space: nowrap; }

.market-home product-card .modern-card {
    border: 1px solid #e1e5e1 !important;
    border-radius: 6px !important;
    background: white !important;
    box-shadow: none !important;
}
.market-home product-card .modern-card:hover { border-color: #aeb8ae !important; box-shadow: 0 3px 9px rgba(15, 17, 17, .12) !important; transform: none !important; }
.market-home product-card .modern-button { border-radius: 5px !important; box-shadow: none !important; }
.market-product-content { min-height: 205px; }
.market-product-meta { min-height: 18px; }
.market-product-title { height: 38px; min-height: 38px; }
.market-product-sales { height: 18px; min-height: 18px; }
.market-product-price {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    overflow: hidden;
}
.market-product-current-price,
.market-product-original-price { min-width: 0; }
.market-product-original-price {
    overflow: hidden;
    text-overflow: ellipsis;
}
.market-cart-button { height: 34px; min-height: 34px; }

@media (max-width: 1199px) {
    .marketplace-hero { grid-template-columns: 210px minmax(0, 1fr); }
    .marketplace-side-deals { display: none; }
    .market-category-grid { grid-template-columns: repeat(6, minmax(135px, 1fr)); }
}

@media (max-width: 1023px) {
    .market-home-shell { padding-top: 10px; }
    .marketplace-hero { grid-template-columns: 1fr; min-height: 300px; }
    .marketplace-main-promo { min-height: 300px; }
    .market-promo-grid { grid-template-columns: 1fr 1fr; }
    .market-promo-grid > :last-child { grid-column: 1 / -1; min-height: 145px; }
    .marketplace-benefits { grid-template-columns: 1fr 1fr; }
    .marketplace-benefits > div:nth-child(2) { border-right: 0; }
    .marketplace-benefits > div:nth-child(-n+2) { padding-bottom: 10px; border-bottom: 1px solid #e5e7eb; }
    .marketplace-benefits > div:nth-child(n+3) { padding-top: 10px; }
}

@media (max-width: 767px) {
    .market-home-shell { padding: 8px 8px 24px; }
    .marketplace-hero { min-height: auto; }
    .marketplace-main-promo {
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow: hidden;
    }
    .marketplace-promo-copy {
        order: 2;
        width: 100%;
        max-width: none;
        padding: 17px 16px 18px;
        overflow-wrap: anywhere;
    }
    .marketplace-kicker { margin-bottom: 7px; font-size: .69rem; }
    .marketplace-promo-copy h1 { font-size: 1.42rem; line-height: 1.2; }
    .marketplace-promo-copy p { margin: 7px 0 13px; font-size: .73rem; line-height: 1.45; }
    .marketplace-cta { padding: 8px 12px; font-size: .74rem; }
    .marketplace-main-promo > img {
        position: static;
        order: 1;
        width: 100%;
        height: 150px;
        max-height: none;
        flex: 0 0 auto;
        object-fit: cover;
        border-radius: 0;
        mix-blend-mode: normal;
    }
    .marketplace-discount-bubble { top: 10px; right: 10px; width: 58px; height: 58px; border-width: 3px; }
    .marketplace-discount-bubble strong { font-size: .9rem; }
    .marketplace-benefits { padding: 9px 6px; }
    .marketplace-benefits > div { justify-content: flex-start; gap: 8px; padding-left: 9px; padding-right: 9px; }
    .marketplace-benefits i { font-size: 1rem; }
    .marketplace-benefits strong { font-size: .68rem; }
    .marketplace-benefits small { display: none; }
    .commerce-panel { margin-top: 10px; padding: 12px 10px; }
    .market-section-header { margin-bottom: 10px; }
    .market-section-header h2 { font-size: 1rem; }
    .market-section-header p { display: none; }
    .market-section-icon { width: 32px; height: 32px; }
    .market-countdown > span { display: none; }
    .market-see-all { font-size: .68rem; }
    .market-category-grid { grid-template-columns: repeat(6, minmax(118px, 1fr)); gap: 7px; }
    .market-category-grid a { padding: 11px 5px; }
    .market-category-grid span { width: 38px; height: 38px; font-size: 1rem; }
    .market-category-grid strong { font-size: .7rem; }
    .market-category-grid small { display: none; }
    .market-promo-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
    .market-promo-grid > :last-child { grid-column: auto; }
    .market-promo-tile { min-height: 145px; }
    .market-promo-tile > div { padding: 15px; }
    .market-brand-grid { grid-template-columns: 1fr; gap: 8px; }
    .market-brand-grid > a { aspect-ratio: 2.1 / 1; }
    .market-review-grid { grid-template-columns: 1fr; gap: 10px; }
    .market-review-card { padding: 16px; }
    .market-service-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
    .market-service-grid > div { padding: 13px; }
    .market-newsletter { grid-template-columns: 1fr; gap: 15px; margin-top: 10px; padding: 20px 16px; }
    .market-newsletter form { width: 100%; }
    .market-newsletter button { padding: 0 12px; }
    .market-product-content { min-height: 190px; padding: 10px !important; }
    .market-product-title { height: 34px; min-height: 34px; font-size: .72rem !important; line-height: 1.2 !important; }
    .market-product-sales { height: 17px; min-height: 17px; font-size: .65rem !important; }
    .market-product-price {
        height: 48px;
        min-height: 48px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 1px;
        overflow: hidden;
    }
    .market-product-current-price { width: 100%; font-size: 1rem !important; line-height: 1.15; }
    .market-product-original-price { width: 100%; font-size: .68rem !important; line-height: 1.1; }
    .market-cart-button { height: 38px; min-height: 38px; }
}

@media (max-width: 379px) {
    .market-home-shell { padding-left: 5px; padding-right: 5px; }
    .marketplace-main-promo > img { height: 132px; }
    .marketplace-promo-copy { padding: 14px 13px 15px; }
    .marketplace-promo-copy h1 { font-size: 1.25rem; }
    .marketplace-promo-copy p { font-size: .68rem; }
    .marketplace-discount-bubble { width: 52px; height: 52px; }
}

/* Account center */
.account-page-main {
    background:
        radial-gradient(circle at 8% 0%, rgba(116, 184, 117, .14), transparent 28rem),
        linear-gradient(180deg, #f5f8f5 0%, #edf2ee 100%) !important;
}

order-details { display: block; }
.account-center { display: grid; gap: 28px; }

.account-profile-card,
.account-order-card,
.account-empty-state {
    border: 1px solid #dce6dd;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 35px rgba(34, 63, 38, .08);
}

.account-profile-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 20px;
}

.account-profile-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #2f6f34, #74b875 62%, #b7ddb8);
}

.account-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.account-profile-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account-avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(69, 145, 70, .22);
    border-radius: 18px;
    background: linear-gradient(145deg, #edf7ed, #dcefdc);
    color: #397d3d;
    font-size: 1.55rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.account-eyebrow,
.account-section-eyebrow {
    display: block;
    color: #397d3d;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account-profile-title h1 { margin-top: 2px; color: #18321d; font-size: clamp(1.55rem, 2.8vw, 2.1rem); font-weight: 700; line-height: 1.2; }
.account-profile-title p { margin-top: 5px; color: #677069; font-size: .82rem; }
.account-logout-button {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid #efcaca;
    border-radius: 10px;
    background: #fff;
    color: #bc3434;
    font-size: .8rem;
    font-weight: 700;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.account-logout-button:hover { border-color: #e7aaaa; background: #fff5f5; transform: translateY(-1px); }

.account-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.account-info-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e1e8e2;
    border-radius: 13px;
    background: #f9fbf9;
}
.account-info-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #e7f2e7;
    color: #397d3d;
    font-size: .9rem;
}
.account-info-card > div { min-width: 0; }
.account-info-card small { display: block; color: #778078; font-size: .68rem; }
.account-info-card strong { display: block; margin-top: 3px; overflow: hidden; color: #253229; font-size: .84rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.account-orders-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 2px; }
.account-orders-heading h2 { margin-top: 2px; color: #1f2b22; font-size: 1.55rem; font-weight: 700; line-height: 1.25; }
.account-orders-heading p { margin-top: 5px; color: #747c75; font-size: .78rem; }
.account-order-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #cfe1d0;
    border-radius: 999px;
    background: #eaf4ea;
    color: #397d3d;
    font-size: .74rem;
    font-weight: 700;
}

.account-orders-list { display: grid; gap: 18px; }
.account-order-card { overflow: hidden; border-radius: 18px; }
.account-order-card.is-highlighted { border-color: #74b875; box-shadow: 0 0 0 3px rgba(69, 145, 70, .12), 0 12px 35px rgba(34, 63, 38, .09); }
.account-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 22px;
    border-bottom: 1px solid #e7ece8;
    background: linear-gradient(180deg, #fff 0%, #fbfcfb 100%);
}
.account-order-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.account-order-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #e7f2e7; color: #397d3d; font-size: .78rem; }
.account-order-title-row h2 { color: #202b23; font-size: 1rem; font-weight: 700; }
.account-order-title-row h2 span { font-variant-numeric: tabular-nums; }
.account-latest-badge { padding: 4px 8px; border-radius: 999px; background: #e8f3e8; color: #397d3d; font-size: .64rem; font-weight: 700; }
.account-order-date { display: flex; align-items: center; gap: 6px; margin: 6px 0 0 40px; color: #7b827c; font-size: .7rem; }
.account-order-status { flex: 0 0 auto; padding: 6px 11px; border-radius: 999px; font-size: .7rem; font-weight: 700; }

.account-order-items { display: grid; gap: 10px; padding: 16px 22px; }
.account-order-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 11px 13px;
    border: 1px solid #e2e8e3;
    border-radius: 13px;
    background: #fff;
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}
.account-order-item:hover { border-color: #a9cca9; background: #fbfdfb; transform: translateY(-1px); }
.account-order-image { width: 68px; height: 68px; padding: 5px; border: 1px solid #e5e9e5; border-radius: 11px; background: #fff; }
.account-order-image img { width: 100%; height: 100%; object-fit: contain; }
.account-order-product { min-width: 0; }
.account-order-product p { display: -webkit-box; overflow: hidden; color: #28322b; font-size: .82rem; font-weight: 600; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.account-order-product span { display: inline-block; margin-top: 7px; padding: 3px 8px; border-radius: 999px; background: #f0f3f0; color: #717972; font-size: .65rem; }
.account-order-price { padding-left: 10px; color: #263129; font-size: .88rem; font-weight: 700; white-space: nowrap; }

.account-order-summary { display: grid; gap: 8px; padding: 15px 22px 17px; border-top: 1px solid #e7ece8; background: #f7faf7; }
.account-order-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #687069; font-size: .74rem; }
.account-order-summary .account-order-discount { color: #397d3d; }
.account-order-summary .account-order-total { padding-top: 2px; color: #28322b; font-size: .86rem; font-weight: 700; }
.account-order-total strong { color: #397d3d; font-size: 1.15rem; }

.account-empty-state { padding: 55px 24px; border-radius: 18px; text-align: center; }
.account-empty-state > span { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 20px; background: #e7f2e7; color: #397d3d; font-size: 1.7rem; }
.account-empty-state h2 { color: #253128; font-size: 1.35rem; font-weight: 700; }
.account-empty-state p { margin-top: 6px; color: #747c75; font-size: .8rem; }
.account-empty-state a { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 17px; border-radius: 10px; background: #459146; color: #fff; font-size: .8rem; font-weight: 700; }

@media (max-width: 767px) {
    .account-page-main { padding: 14px 10px 34px !important; }
    .account-center { gap: 22px; }
    .account-profile-card { padding: 19px 16px 16px; border-radius: 16px; }
    .account-profile-header { align-items: stretch; flex-direction: column; gap: 15px; }
    .account-avatar { width: 50px; height: 50px; border-radius: 14px; font-size: 1.2rem; }
    .account-profile-title { gap: 12px; }
    .account-profile-title h1 { font-size: 1.55rem; }
    .account-profile-title p { font-size: .72rem; }
    .account-logout-button { width: 100%; padding: 9px 14px; }
    .account-info-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
    .account-info-card { padding: 11px 12px; border-radius: 11px; }
    .account-info-icon { width: 34px; height: 34px; }
    .account-orders-heading { align-items: flex-end; gap: 10px; }
    .account-orders-heading h2 { font-size: 1.28rem; }
    .account-orders-heading p { max-width: 230px; font-size: .68rem; }
    .account-order-count { padding: 6px 9px; font-size: .65rem; }
    .account-order-card { border-radius: 15px; }
    .account-order-header { align-items: flex-start; padding: 15px; }
    .account-order-title-row { gap: 7px; }
    .account-order-icon { width: 28px; height: 28px; }
    .account-order-title-row h2 { max-width: 230px; font-size: .87rem; overflow-wrap: anywhere; }
    .account-order-date { margin-left: 35px; font-size: .63rem; }
    .account-order-status { padding: 5px 8px; font-size: .62rem; }
    .account-order-items { gap: 8px; padding: 12px; }
    .account-order-item { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 9px; }
    .account-order-image { width: 56px; height: 56px; border-radius: 9px; }
    .account-order-product p { font-size: .72rem; }
    .account-order-product span { margin-top: 4px; font-size: .6rem; }
    .account-order-price { grid-column: 2; padding: 0; color: #397d3d; font-size: .76rem; }
    .account-order-summary { padding: 13px 15px 15px; }
    .account-order-total strong { font-size: 1rem; }
}

@media (max-width: 379px) {
    .account-orders-heading { align-items: flex-start; flex-direction: column; }
    .account-order-header { flex-direction: column; gap: 10px; }
    .account-order-date { margin-left: 0; }
    .account-order-title-row h2 { max-width: calc(100vw - 100px); }
}

/* Link styles */
a {
    color: #c9a86c;
    transition: color 0.3s ease;
}

a:hover {
    color: #1E3DB8;
}

/* Product image placeholder */
.product-image-placeholder {
    background: linear-gradient(135deg, #FAF9F6, #E4EEFA);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Toast notifications */
.toast {
    background: #ffffff;
    border-left: 4px solid #c9a86c;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.info {
    border-left-color: #3b82f6;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid rgba(41, 77, 255, 0.1);
    border-top-color: #c9a86c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Price styling */
.price {
    color: #c9a86c;
    font-weight: 700;
}

.price-original {
    color: #666;
    text-decoration: line-through;
    font-size: 0.875em;
}

.price-discount {
    background: linear-gradient(135deg, #d4b88a, #b8956a);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 600;
}

/* Star rating */
.star-rating {
    color: #fbbf24;
}

.star-rating .empty {
    color: #e5e7eb;
}

/* Tag styles */
.tag {
    background: #FAF9F6;
    color: #666;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #c9a86c;
    color: white;
}

.tag.active {
    background: #c9a86c;
    color: white;
}

/* Card tags overlay */
.card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #d4b88a, #b8956a);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(41, 77, 255, 0.3);
    z-index: 10;
}

/* Product discount badge: stays opposite the wishlist action. */
.product-discount-badge,
.product-new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 6px;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .2);
    pointer-events: none;
}

.product-discount-badge { background: #c62828; }
.product-new-badge { background: #397d3d; }
.product-new-badge.has-discount { top: 46px; }

@media (max-width: 767px) {
    .product-discount-badge,
    .product-new-badge {
        top: 8px;
        right: 8px;
        min-height: 24px;
        padding: 3px 7px;
        font-size: .68rem;
    }

    .product-new-badge.has-discount { top: 38px; }
}

/* Wishlist button */
.wishlist-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    background: #c9a86c;
    color: white;
    transform: scale(1.1);
}

.wishlist-btn.active {
    background: #c9a86c;
    color: white;
}

/* Cart badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #d4b88a, #b8956a);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(41, 77, 255, 0.4);
}

/* Footer styling */
.footer {
    background: #2D3748;
    color: #fff;
}

.footer-link {
    color: #666;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #c9a86c;
}

/* Social media icons */
.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #c9a86c;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(41, 77, 255, 0.4);
}

/* Divider */
.divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Notice box */
.notice-box {
    background: linear-gradient(135deg, #E4EEFA, #F5F3EF);
    border-left: 4px solid #c9a86c;
    padding: 16px 20px;
    border-radius: 8px;
}

.notice-box.info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left-color: #3b82f6;
}

.notice-box.success {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left-color: #10b981;
}

.notice-box.warning {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-left-color: #ffa000;
}

/* Quantity selector */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    overflow: hidden;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    background: #FAF9F6;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-selector button:hover {
    background: #c9a86c;
    color: white;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    border-right: 1px solid rgba(0, 0, 0, 0.12);
}

/* Progress bar */
.progress-bar {
    height: 8px;
    background: #E4EEFA;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4b88a, #b8956a);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Tab navigation */
.tab-nav {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.tab-item {
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #666;
}

.tab-item:hover {
    color: #c9a86c;
}

.tab-item.active {
    color: #c9a86c;
    font-weight: 600;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4b88a, #b8956a);
}

/* Accordion */
.accordion-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

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

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

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #666;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #c9a86c;
}

.breadcrumb span {
    color: #666;
}

/* Search box */
.search-box {
    position: relative;
}

.search-box input {
    padding-right: 45px;
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #c9a86c;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #1E3DB8;
    box-shadow: 0 2px 8px rgba(41, 77, 255, 0.4);
}

/* Filter sidebar */
.filter-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-item:hover {
    background: #FAF9F6;
}

.filter-item.active {
    background: linear-gradient(135deg, #d4b88a, #b8956a);
    color: white;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #c9a86c;
}

/* ===== Enhanced Animations & Effects ===== */

/* Fade In Up Animation */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.5s ease-out forwards;
}

/* Staggered Animation Delays */
.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

/* Scale In Animation */
@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scale-in 0.3s ease-out forwards;
}

/* Slide In From Left */
@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slide-in-left 0.4s ease-out forwards;
}

/* Slide In From Right */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slide-in-right 0.4s ease-out forwards;
}

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(41, 77, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    pointer-events: none;
    animation: ripple 0.6s linear;
}

/* Shine Effect */
@keyframes shine {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }
    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: translateX(-100%) skewX(-15deg);
    animation: shine 3s infinite;
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(41, 77, 255, 0.3);
}

.magnetic-btn:active {
    transform: scale(0.98);
}

/* Text Gradient Animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animated-gradient-text {
    background: linear-gradient(90deg, #d4b88a, #b8956a, #c9a86c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

/* Border Glow Animation */
@keyframes border-glow {
    0%, 100% {
        border-color: rgba(41, 77, 255, 0.3);
        box-shadow: 0 0 10px rgba(41, 77, 255, 0.1);
    }
    50% {
        border-color: rgba(41, 77, 255, 0.6);
        box-shadow: 0 0 20px rgba(41, 77, 255, 0.3);
    }
}

.border-glow-animated {
    animation: border-glow 2s ease-in-out infinite;
}

/* Loading Skeleton */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

/* Pulse Ring Animation */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid #c9a86c;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Counter Animation */
@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter {
    display: inline-block;
    animation: count-up 0.5s ease-out forwards;
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image Zoom Effect */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Text Reveal Animation */
@keyframes text-reveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.text-reveal {
    animation: text-reveal 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    animation: fade-in-up 0.5s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }

/* Parallax Scroll Effect */
.parallax-slow {
    will-change: transform;
}

/* Glass Morphism Enhanced */
.glass-morphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Neon Border Animation */
@keyframes neon-border {
    0%, 100% {
        box-shadow:
            0 0 5px rgba(41, 77, 255, 0.2),
            0 0 10px rgba(41, 77, 255, 0.1),
            inset 0 0 5px rgba(41, 77, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 10px rgba(41, 77, 255, 0.4),
            0 0 20px rgba(41, 77, 255, 0.2),
            inset 0 0 10px rgba(41, 77, 255, 0.2);
    }
}

.neon-border-animated {
    animation: neon-border 2s ease-in-out infinite;
}

/* Typing Effect */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing-effect::after {
    content: '|';
    animation: blink 1s infinite;
}

/* Morphing Shape */
@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.morphing-shape {
    animation: morph 8s ease-in-out infinite;
}

/* Wave Animation */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(5px);
    }
}

.wave-text span {
    display: inline-block;
    animation: wave 1s ease-in-out infinite;
}

.wave-text span:nth-child(1) { animation-delay: 0s; }
.wave-text span:nth-child(2) { animation-delay: 0.1s; }
.wave-text span:nth-child(3) { animation-delay: 0.2s; }
.wave-text span:nth-child(4) { animation-delay: 0.3s; }
.wave-text span:nth-child(5) { animation-delay: 0.4s; }

/* 3D Card Flip */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Spotlight Effect */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(41, 77, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.spotlight:hover::before {
    opacity: 1;
}

/* Bounce In Animation */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Rotating Border */
@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.rotating-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: conic-gradient(from 0deg, #d4b88a, #b8956a, #c9a86c);
    border-radius: inherit;
    animation: rotate-border 3s linear infinite;
    z-index: -1;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
    background: rgba(41, 77, 255, 0.3);
    color: #2D3748;
}

::-moz-selection {
    background: rgba(41, 77, 255, 0.3);
    color: #2D3748;
}

/* Focus Visible Styles */
*:focus-visible {
    outline: 2px solid #c9a86c;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
