﻿@tailwind base;
@tailwind components;
@tailwind utilities;

.font-inter {
    font-family: 'Inter', sans-serif;
}

html, body {
    overflow-x: hidden;
    font-family:  Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@keyframes fadeIn {
    from {
        background-color: rgba(0,0,0,0);
    }

    to {
        background-color: rgba(0,0,0,0.4);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s forwards;
}

@keyframes slideIn {
    0% {
        transform: translateX(1.5rem);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bar {
    0%, 100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}


.animate-slideIn {
    animation: slideIn 0.4s forwards;
}

/* Tailwind delay utilities */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}


@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideFadeIn {
    animation: slideFadeIn 0.3s forwards;
}


/*for ps shake*/
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-6px);
    }

    40%, 80% {
        transform: translateX(6px);
    }
}

.animate-shake {
    animation: shake 0.3s ease;
}


@keyframes loading-bar {
    0% {
        transform: translateX(-100%);
    }

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

.animate-loading-bar {
    width: 40%;
    animation: loading-bar 1.2s infinite ease-in-out;
}


.cloudwi-shimmer-bar {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient( 90deg, rgba(77, 175, 255, 0) 0%, /* Transparent */
    rgba(77, 175, 255, 0.7) 30%, /* Cloudwi Blue */
    rgba(168, 221, 255, 1) 60%, /* Neon Highlight */
    rgba(117, 199, 255, 0.7) 90%, /* Cloudwi Light Blue */
    rgba(77, 175, 255, 0) 100% /* Transparent */
    );
    animation: cloudwi-shimmer 1.15s infinite ease-in-out;
    filter: drop-shadow(0 0 4px #A8DDFF);
    border-radius: 100px;
}

@keyframes cloudwi-shimmer {
    0% {
        transform: translateX(-70%);
    }

    100% {
        transform: translateX(200%);
    }
}


/* Slide + Fade animation */
.left-panel-enter {
    opacity: 0;
    transform: translateX(-25px);
}

.left-panel-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.left-panel-exit-active {
    opacity: 0;
    transform: translateX(-25px);
    transition: opacity 0.20s ease, transform 0.20s ease;
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.animate-fadein {
    animation: fadein 0.4s ease-out forwards;
}

/* Allows staggered animation */
[class*="animation-delay-"] {
    animation-fill-mode: both;
}

.animation-delay-0ms {
    animation-delay: 0ms;
}

.animation-delay-100ms {
    animation-delay: 100ms;
}

.animation-delay-200ms {
    animation-delay: 200ms;
}

.animation-delay-300ms {
    animation-delay: 300ms;
}

.animation-delay-400ms {
    animation-delay: 400ms;
}

.animation-delay-500ms {
    animation-delay: 500ms;
}

.animation-delay-600ms {
    animation-delay: 600ms;
}

.animation-delay-700ms {
    animation-delay: 700ms;
}

.animation-delay-800ms {
    animation-delay: 800ms;
}

.animation-delay-900ms {
    animation-delay: 900ms;
}


/*cloudwi-dual-loader*/
.cloudwi-dual-loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.cloudwi-circle {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

    .cloudwi-circle.cloud {
        background: #3ba6e0; /* Sky blue */
    }

    .cloudwi-circle.we {
        background: #ff7f42; /* Orange */
    }

.cloudwi-orbit {
    position: absolute;
    inset: 0;
    animation: cloudwi-orbit 1.6s linear infinite;
    transform-origin: center center;
}

@keyframes cloudwi-orbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.font-grid {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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

.animate-fadeIn {
    animation: fadeIn 0.18s ease-out;
}


@keyframes fadeInSlow {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

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

.animate-fadeInSlow {
    animation: fadeInSlow 0.25s ease-out;
}

.animate-zoomIn {
    animation: zoomIn 0.2s cubic-bezier(.16,.72,.45,1);
}

/*toast message*/
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

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

.animate-fadeInOut {
    animation: fadeInOut 2s ease-in-out forwards;
}

/*confirm dialog*/
@keyframes fadeInSlow {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

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

.animate-fadeInSlow {
    animation: fadeInSlow 0.25s ease-out;
}

.animate-zoomIn {
    animation: zoomIn 0.2s cubic-bezier(.16,.72,.45,1);
}

/*lang dropdown*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

.animate-fadeIn {
    animation: fadeIn 0.15s ease-out;
}


/*total bar*/

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

.animate-fadein {
    animation: fadein 0.4s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(12px);
        opacity: 0;
    }

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

.animate-slideUp {
    animation: slideUp 0.4s ease forwards;
}

/*dashboard table*/

/* Fade-in animation for table rows */
@keyframes rowFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.table-row-animate {
    animation: rowFadeIn 0.45s ease-out forwards;
}

/* Smooth hover highlight */
.table-row-hover:hover {
    background-color: rgba(59,130,246,0.08) !important; /* blue-500/8 */
    transition: background-color 0.25s ease;
}


html, body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}


/* ===== Custom Scrollbar (Chrome, Edge, Safari) ===== */

/* Scrollbar width */
::-webkit-scrollbar {
    width: 6px; /* thinner */
}

/* Scrollbar track */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Scrollbar handle */
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #60A5FA, #3B82F6);
    border-radius: 10px;
}

    /* On hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #2563EB; /* darker sky blue */
    }

/* Ultra-thin horizontal scrollbar */
.table-scroll::-webkit-scrollbar {
    height: 4px; /* thickness */
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #3b82f6; /* blue color */
    border-radius: 10px;
}

.table-scroll::-webkit-scrollbar-track {
    background: transparent;
}


/*logout menu*/
@keyframes slideFadeIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slideFadeIn {
    animation: slideFadeIn 0.35s ease-out forwards;
}



html {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-VariableFont.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body {
    line-height: 1.55;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
}

.ai-buy {
    background-color: #dcfce7; /* green-100 */
    color: #15803d; /* green-700 */
    font-weight: 600;
}

.ai-discount {
    background-color: #fee2e2; /* red-100 */
    color: #b91c1c; /* red-700 */
    font-weight: 600;
}
/*customer value*/
.ai-good {
    background-color: rgba(168, 85, 247, 0.15); /* purple */
    color: #7c3aed;
    font-weight: 600;
}

.ai-normal {
    background-color: rgba(34, 197, 94, 0.15); /* green */
    color: #15803d;
}

.ai-potential {
    background-color: rgba(59, 130, 246, 0.15); /* blue */
    color: #1d4ed8;
}

.ai-risk {
    background-color: rgba(239, 68, 68, 0.15); /* red */
    color: #b91c1c;
    font-weight: 600;
}

/* ≥ 50 : Purple (Good customer) */
.ai-score-purple {
    color: #2e1065; /* very deep purple text */
    background: linear-gradient( 135deg, rgba(139, 92, 246, 0.30), rgba(88, 28, 135, 0.85) );
    font-weight: 600;
}


/* 30–49 : Blue (Potential customer) */
.ai-score-blue {
    color: #1e3a8a; /* deep blue text */
    background: linear-gradient( 135deg, rgba(96, 165, 250, 0.25), rgba(37, 99, 235, 0.50) );
}

.ai-score-red {
    background: radial-gradient(circle at top left, #fecaca, #ef4444);
    color: #7f1d1d;
}

.ai-score-orange {
    color: #7c2d12; /* deep orange text */
    background: linear-gradient( 135deg, rgba(253, 186, 116, 0.55), /* orange-300 */
    rgba(249, 115, 22, 0.70) /* orange-500 */
    );
    font-weight: 600;
}


.ai-score-yellow {
    color: #78350f; /* deep amber text */
    background: linear-gradient( 135deg, rgba(253, 224, 71, 0.45), /* yellow-300 */
    rgba(245, 158, 11, 0.60) /* amber-500 */
    );
}


/* 0–9 : Black (Low impact) */
.ai-score-black {
    color: #111827; /* near-black */
    background-color: rgba(17, 24, 39, 0.04);
}




/*datagrid*/
.row-selected {
    background-color: rgba(124, 58, 237, 0.10) !important; /* light purple */
}

    .row-selected td {
        background-color: rgba(124, 58, 237, 0.10) !important;
    }

/* =========================
   AI Score – Ball Style
   ========================= */

.ai-score-critical,
.ai-score-high,
.ai-score-medium,
.ai-score-low,
.ai-score-green,
.ai-score-yellow,
.ai-score-orange,
.ai-score-red,
.ai-score-blue, .ai-score-purple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    border-radius: 1000px; /* perfect circle */
    font-weight: 500;
    font-size: 0.80rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    /* Hover feedback */
    .ai-score-critical:hover,
    .ai-score-high:hover,
    .ai-score-medium:hover,
    .ai-score-low:hover,
    .ai-score-green:hover,
    .ai-score-yellow:hover,
    .ai-score-orange:hover,
    .ai-score-red:hover,
    .ai-score-blue :hover,
    .ai-score-purple :hover {
        transform: scale(1.1);
        box-shadow: 0 6px 14px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.7);
    }


/* Severity colors */
.ai-score-critical {
    background: radial-gradient(circle at top left, #fecaca, #ef4444);
    color: #7f1d1d;
}

.ai-score-high {
    background: radial-gradient(circle at top left, #fed7aa, #fb923c);
    color: #7c2d12;
}

.ai-score-medium {
    background: radial-gradient(circle at top left, #fef3c7, #facc15);
    color: #713f12;
}

.ai-score-low {
    background: radial-gradient(circle at top left, #bae6fd, #38bdf8);
    color: #075985;
}

.ai-score-normal {
    background: white !important; /* 🔴 remove gradient */
    background-image: none !important; /* 🔴 ensure no radial-gradient */
    box-shadow: none !important; /* 🔴 remove glow */

    color: #15803d; /* green-700 */
    font-weight: 600;
}


/* 10–29 : Green (Normal customer) */
.ai-score-green {
    color: #14532d; /* deep green text */
    background: linear-gradient( 135deg, rgba(34, 197, 94, 0.20), rgba(21, 128, 61, 0.45) );
}



.ai-score-cell {
    vertical-align: middle;
    padding: 4px 8px; /* controls spacing inside cell */
}

/*img in datagrid*/

.img-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}


.grid-thumb {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
}




.img-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: overlayFadeIn 180ms ease-out forwards;
}

    .img-overlay.closing {
        animation: overlayFadeOut 180ms ease-in forwards;
    }


.img-preview {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    cursor: default;
    animation: imageZoomIn 220ms ease-out forwards;
}

    .img-preview.closing {
        animation: imageZoomOut 200ms ease-in forwards;
    }

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes overlayFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

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

@keyframes imageZoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.92);
    }
}

.img-wrapper {
    position: relative;
    display: inline-block;
}


.img-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: transform 0.15s ease, background 0.15s ease;
    z-index: 2; /* 👈 ensure it stays above image */
}




    .img-close-btn:hover {
        background: rgba(0, 0, 0, 0.85);
        transform: scale(1.1);
    }






.cloudwi-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

    .cloudwi-close-btn:hover {
        background: rgba(0, 0, 0, 0.85);
        transform: scale(1.1);
    }

    .cloudwi-close-btn:focus-visible {
        outline: 2px solid rgba(255,255,255,0.8);
        outline-offset: 2px;
    }

.cloudwi-close-icon {
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}


/*show tip on grid cell*/
.ai-cell-multiline {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* show 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: help;
    /* font-size: 1.01rem;  between text-sm and text-base */
}

.ai-tooltip-wrapper {
    position: relative;
    cursor: help;
}

.ai-tooltip {
    position: absolute;
    z-index: 9999;
    max-width: 420px;
    background: #111827; /* dark gray */
    color: #fff;
    font-size: 1.05rem; /* 👈 BIGGER FONT */
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease;
}

.ai-tooltip-wrapper:hover .ai-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

input[type="date"]:focus,
input[type="date"]:focus-visible {
    outline: none;
    box-shadow: none;
}


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


/*banner*/
.ws-banner-root {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    pointer-events: auto; /* ✅ allow hover */
}

.ws-banner {
    height: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300vw; /* safe for rotation */
    transform: translate(-50%, -50%) rotate(var(--banner-angle));
    background: var(--banner-bg);
    display: flex;
    align-items: center;
}


.ws-banner-track {
    width: 100vw; /* 🔥 viewport width */
    overflow: hidden;
    margin: 0 auto;
}

.ws-banner-text:hover {
    animation-play-state: paused;
    cursor: pointer;
}


.ws-banner-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: white;
    transform: translateX(-100%); /* 🔥 CRITICAL */
    animation-name: banner-pingpong;
    animation-duration: var(--banner-duration);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate; /* 🔥 reverse automatically */
}




@keyframes banner-pingpong {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0%);
    }
}


/* =========================
   WS_bestSeller01
   ========================= */

.ws-bs-root {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 6vw;
    background: #f7f5f3;
}

/* ---------- TEXT ---------- */
.ws-bs-text {
    max-width: 420px;
}

.ws-bs-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #222;
}

.ws-bs-subtitle {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 2rem;
}

.ws-bs-btn {
    background: #000;
    color: #fff;
    padding: 0.85rem 2.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .ws-bs-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    }

/* ---------- IMAGES ---------- */
.ws-bs-images {
    position: relative;
    height: 420px;
}

.ws-bs-img {
    position: absolute;
    width: 75%;
    border: 10px solid #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: #fff;
    transition: transform 0.4s ease;
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover; /* or contain */
}



.img-1 {
    left: 0;
    top: 40px;
    transform: rotate(0deg);
}

.img-2 {
    right: 0;
    top: 0;
    transform: rotate(0deg);
}

.ws-bs-images:hover .img-1 {
    transform: rotate(0deg) translateY(-6px);
}

.ws-bs-images:hover .img-2 {
    transform: rotate(0deg) translateY(-6px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .ws-bs-root {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ws-bs-images {
        height: 260px;
        margin-top: 2rem;
    }

    .ws-bs-text {
        margin: 0 auto;
    }
}


/* =========================
   WS_onSale01
   ========================= */
/* =========================
   WS_onSale01 – FINAL
   ========================= */

.ws-sale-root {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 420px;
}

/* ---------- CARD ---------- */
.ws-sale-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* ---------- IMAGE (STATIC) ---------- */
.ws-sale-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: contain; /* no crop */
    background-repeat: no-repeat;
    background-position: center;
}


/* ---------- SUBTLE OPACITY PULSE ---------- */
.ws-sale-card:hover .ws-sale-img {
    animation: ws-soft-pulse 2.8s ease-in-out infinite;
}

@keyframes ws-soft-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.72; /* very subtle */
    }

    100% {
        opacity: 1;
    }
}


/* ---------- LIGHTNING BAR ---------- */
.ws-sale-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

    .ws-sale-overlay::before {
        content: "";
        position: absolute;
        width: 180%;
        height: 3px;
        background: rgba(255,255,255,0.95);
        transform: rotate(-35deg) translateX(120%);
        transition: transform 0.35s ease;
    }

/* hover IN: right-top → left-bottom */
.ws-sale-card:hover .ws-sale-overlay::before {
    transform: rotate(-35deg) translateX(-120%);
}

/* ---------- TEXT ---------- */
.ws-sale-content {
    position: absolute;
    left: 8%;
    bottom: 22%;
    color: white;
    z-index: 3;
}

    .ws-sale-content.right {
        left: auto;
        right: 8%;
        text-align: right;
    }

.ws-sale-sub {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    opacity: 0.85;
    margin-bottom: 0.4rem;
}

.ws-sale-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.2rem;
}

.ws-sale-link {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: #20c997;
    display: inline-block;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .ws-sale-root {
        grid-template-columns: 1fr;
        height: auto;
    }

    .ws-sale-card {
        height: 300px;
    }

    .ws-sale-title {
        font-size: 2.2rem;
    }
}

.footer-link {
    @apply block text-gray-600 hover:text-gray-900 hover:translate-x-0.5 transition-all leading-relaxed;
}



/* =========================
   FOOTER THEMES (Cloudwi)
   ========================= */

.footer-theme-black {
    background: linear-gradient( to bottom, #0f172a, #020617, #000000 );
}

.footer-theme-green {
    background: linear-gradient( to bottom, #065f46 0%, /* green-800 */
    #064e3b 40%, /* green-900 */
    #043f32 70%, /* deep muted green */
    #03362b 100% /* soft dark green (NO black) */
    );
}


.footer-theme-blue {
    background: linear-gradient( to bottom, #1e3a8a 0%, /* blue-800 */
    #1e40af 40%, /* blue-700 */
    #1e3a5f 70%, /* deep muted blue */
    #1b2f4a 100% /* soft dark blue (NO black) */
    );
}

.footer-theme-red {
    background: linear-gradient( to bottom, #991b1b 0%, /* red-800 */
    #7f1d1d 40%, /* red-900 */
    #6b1a1a 70%, /* deep muted red */
    #5a1717 100% /* soft dark red (NO black) */
    );
}

.footer-theme-teal {
    background: linear-gradient( to bottom, #115e59 0%, /* teal-800 */
    #134e4a 40%, /* teal-900 */
    #0f3f3b 70%, /* deep muted teal */
    #0c3532 100% /* soft dark teal (NO black) */
    );
}


.footer-theme-sand {
    background: linear-gradient( to bottom, #d6b98c 0%, /* warm sand */
    #c3a46e 40%, /* muted gold */
    #a88a5b 70%, /* deep sand */
    #8f744d 100% /* soft dark sand */
    );
}



.footer-theme-orange {
    background: linear-gradient( to bottom, #c2410c 0%, /* orange-700 */
    #9a3412 40%, /* orange-800 */
    #7c2d12 70%, /* deep muted orange */
    #6b2a14 100% /* soft dark orange (NO black) */
    );
}

.footer-theme-purple {
    background: linear-gradient( to bottom, #6b21a8 0%, /* purple-700 */
    #581c87 40%, /* purple-800 */
    #4a166e 70%, /* deep muted purple */
    #3b145a 100% /* soft dark purple (NO black) */
    );
}

/* =========================
   FOOTER FONT COLORS
   ========================= */

.footer-font-white {
    color: #f9fafb;
}

.footer-font-gray {
    color: #d1d5db;
}


.footer-font-black {
    color: #111827; /* true neutral black (not harsh #000) */
}

.footer-border {
    border: 1px solid rgba(255,255,255,0.12);
}

.footer-theme-sand .footer-border {
    border-color: rgba(0,0,0,0.15);
}

.footer-theme-sand a:hover {
    background-color: rgba(0,0,0,0.08) !important;
}


.ws-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 180ms cubic-bezier(.4,0,.2,1), box-shadow 180ms cubic-bezier(.4,0,.2,1);
}

    /* Inner hover background (keep gap) */
    .ws-icon-btn::before {
        content: "";
        position: absolute;
        inset: 6px;
        border-radius: 9999px;
        background: rgba(0, 0, 0, 0.08);
        opacity: 0;
        transition: opacity 180ms ease;
    }

/* Desktop hover only */
@media (hover: hover) and (pointer: fine) {
    .ws-icon-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    }

        .ws-icon-btn:hover::before {
            opacity: 1;
        }
}

/* Press feedback */
.ws-icon-btn:active {
    transform: translateY(0) scale(0.96);
}

/* Icon layer */
.ws-icon-btn > .material-icons-outlined,
.ws-icon-btn > .material-icons-round {
    position: relative;
    z-index: 1;
    font-size: 26px;
}
/* Badge */

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 20px;
    padding: 0 3px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    border-radius: 9999px;
    background: #ef4444;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: badge-pop 180ms ease-out;
}

/* Dot mode when >9 */
.cart-badge--dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    padding: 0;
    font-size: 0;
}

/* Smooth pop animation */
@keyframes badge-pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}


.ws-icon-btn,
.ws-icon-btn * {
    text-decoration: none;
}


/*top menu*/
.ws-topmenu {
    display: flex;
    gap: 28px;
    padding: 12px 0px;
    position: relative;
}

.ws-main-item {
    position: relative;
    cursor: pointer;
}

.ws-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    gap: 24px;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    z-index: 50;
}

.ws-submenu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 48px;
}

    .ws-submenu-grid.two-col {
        grid-template-columns: 1fr 1fr;
    }

.ws-sub-item {
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
    transition: background-color .18s ease;
}

.ws-preview img {
    width: 160px;
    height: auto;
    cursor: pointer;
}

.animate-in {
    animation: fadeSlide .25s ease-out;
}

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

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


/* top menu pic*/
/* main menu containers MUST allow overflow */
.ws-topmenu,
.ws-main-item {
    position: relative;
    overflow: visible;
    height: 50px;
    align-items: center;
}

.ws-main-item {
    padding: 12px 0px; /* ⬅️ vertical + horizontal */
}

.ws-sub-item {
    position: relative;
    padding: 8px 6px;
    line-height: 1.35;
    cursor: pointer;
    color: inherit; /* 🔥 KEY FIX */
    transition: color .18s ease, background-color .18s ease;
    border-radius: 6px; /* very subtle */
}

/* submenu overlay */
.ws-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    display: flex;
    gap: 24px;
    border-radius: 0 0 16px 16px; /* top-left, top-right, bottom-right, bottom-left */
    overflow: hidden; /* keep corners clean */
    align-items: flex-start;
    padding-right: 48px;
}

/* preview column */
.ws-preview {
    min-width: 160px;
    overflow: visible;
}

    /* image hover effect */
    .ws-preview img {
        width: 160px;
        height: auto;
        object-fit: contain;
        transition: transform .25s ease, box-shadow .25s ease;
        cursor: pointer;
        border-radius: 14px;
    }

        .ws-preview img:hover {
            transform: scale(1.04);
            box-shadow: 0 12px 28px rgba(0,0,0,.18);
        }


.ws-main-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px; /* space between text and arrow */
}

    /* arrow */
    .ws-main-item::after {
        content: "▾";
        font-size: 16px;
        color: currentColor; /* inherits FontColor */
        opacity: 0.7;
        transform: translateY(1px);
        transition: transform .2s ease, opacity .2s ease;
    }

.ws-main-text {
    transition: color .25s ease;
}

.ws-main-item:hover .ws-main-text {
    color: inherit; /* stays white, but ensures full opacity */
}

.ws-main-item::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: currentColor;
    opacity: .85;
    transform: translateX(-50%);
    transition: width .25s ease;
}




.ws-sub-item:hover {
    color: inherit;
    background-color: var(--ws-selected-bg);
   /* background: rgba(0, 0, 0, 0.05);*/
}

.ws-sub-item.active {
 /*   background: rgba(0, 0, 0, 0.10);*/
    background-color: var(--ws-selected-bg);
    /*font-weight: 500;*/
}

/* ===== SUBMENU ITEMS – DARK MODE ===== */

.ws-topmenu.dark .ws-sub-item:hover {
    background: rgba(255, 255, 255, .08);
}

.ws-topmenu.dark .ws-sub-item.active {
    background: rgba(255, 255, 255, .14);
}



.ws-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; /* more breathing room */
    width: 420px; /* ⬅️ was ~220px → now ~2x */
}


    .ws-preview-grid img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        background: #fff;
        border-radius: 14px;
        padding: 12px; /* ⬅️ slightly more padding */
        cursor: pointer;
        transition: transform .45s cubic-bezier(.4,0,.2,1), box-shadow .45s cubic-bezier(.4,0,.2,1);
        background: linear-gradient( 145deg, #ffffff 0%, #f3f3f3 100% );
        box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 14px 28px rgba(0,0,0,.22);
    }


        .ws-preview-grid img:hover {
            transform: scale(1.06);
            box-shadow: 0 14px 30px rgba(0,0,0,.25);
        }



    .ws-preview-grid img {
        animation: imgIn .25s ease;
    }

@keyframes imgIn {
    from {
        opacity: 0;
        transform: scale(.96);
    }

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


.ws-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 2px;
}


.ws-more-btn {
    border: none;
    padding: 0;
    position: relative;
    margin-left: auto;
    margin-bottom: 8px;
}

    .ws-more-btn::after {
        content: "";
        display: block;
        height: 2px;
        background: currentColor;
        width: 0;
        transition: width .2s ease;
    }

    .ws-more-btn:hover::after {
        width: 100%;
    }


.ws-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    transition: left .15s ease, right .15s ease;
}

    /* 🔥 when overflow → flip */
    .ws-submenu.flip-left {
        left: auto;
        right: 0;
    }


.ws-preview-title {
    align-self: flex-end; /* 🔥 right aligned */
    font-size: 16px; /* bigger, but not shouting */
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 12px;
    color: inherit;
    opacity: .9;
}

.ws-preview-title {
    text-transform: uppercase;
}


/* default = light themes */


.ws-topmenu {
    display: flex;
    align-items: center;
}

.ws-topmenu-search {
    margin-left: auto; /* 🔥 far right */
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 6px 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(0,0,0,.12);
    transition: background .2s ease, border-color .2s ease;
}


.ws-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 120px;
    color: inherit;
    transition: width .25s ease;
}

    .ws-search-input::placeholder {
        opacity: .6;
    }

.ws-search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .12s ease;
}

    .ws-search-btn span {
        font-size: 18px;
        opacity: .65;
    }

    .ws-search-btn:hover {
        background: rgba(0,0,0,.08);
    }

    .ws-search-btn:active {
        transform: scale(.92);
    }



.ws-topmenu-search:focus-within {
    border-color: rgba(0,0,0,.25);
    background: rgba(255,255,255,.85);
}

    .ws-topmenu-search:focus-within .ws-search-input {
        width: 180px; /* 🔥 expands when active */
    }



.ws-topmenu.dark .ws-topmenu-search {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.25);
}

.ws-topmenu.dark .ws-search-btn:hover {
    background: rgba(255,255,255,.18);
}

.ws-topmenu.dark .ws-search-btn span {
    color: #fff;
}

.ws-topmenu.dark .ws-search-input::placeholder {
    color: rgba(255,255,255,.6);
}



.ws-menu-toggle {
    order: 0;
}




/* =========================
   DESKTOP BASE (IMPORTANT)
   ========================= */

/* ===== DESKTOP BASE ===== */
.ws-menu-toggle {
    display: none; /* 🔥 hide on desktop */
}


.ws-mainmenu {
    display: flex; /* 🔥 horizontal */
    flex-direction: row; /* 🔥 horizontal layout */
    align-items: center;
    position: static; /* 🔥 normal document flow */
}

.ws-main-item {
    padding: 0 6px; /* horizontal spacing */
    white-space: nowrap;
}


.ws-mainmenu {
    order: 1;
}

.ws-topmenu-search {
    order: 2;
}


/* ensure correct positioning context */
.ws-topmenu {
    position: relative;
}



.ws-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 8px;
    cursor: pointer;
}

@media (min-width: 1025px) {
    .ws-mainmenu {
        padding-left: 20px;
    }
}


@media (max-width: 1024px) {

    .ws-main-row {
        padding: 16px 20px;
    }


    /* backdrop layer */
    .ws-mobile-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,.25);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: 2500;
    }

    /* mobile mega submenu panel */
    .ws-mobile-mega {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: inherit;
        z-index: 3000;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        box-shadow: 0 18px 40px rgba(0,0,0,.25);
        -webkit-overflow-scrolling: touch; /* 🔥 smooth iOS scrolling */
    }

    /* header */
    .ws-mm-header {
        display: flex;
        align-items: center;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(0,0,0,.08);
        position: sticky;
        top: 0;
        background: inherit;
        z-index: 1;
    }

    .ws-mm-back {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 6px;
    }

    .ws-mm-title {
        font-size: 16px; /* 🔥 bigger, clear hierarchy */
        font-weight: 700;
        letter-spacing: 0.06em; /* slightly reduced, more readable */
        text-transform: uppercase;
        margin-left: 8px;
        line-height: 1.2;
    }

    .ws-mm-spacer {
        flex: 1;
    }

    /* submenu list */
    .ws-mm-list {
        padding: 10px 14px;
    }

    .ws-mm-item {
        padding: 10px 6px;
        display: flex;
        justify-content: space-between;
        cursor: pointer;
    }

        .ws-mm-item .count {
            opacity: .6;
        }

    /* preview grid */
    .ws-mm-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px 14px;
    }

        .ws-mm-grid img {
            width: 100%;
            height: 100%; /* frame stays same size */
            object-fit: contain; /* 🔥 image shrinks inside */
            padding: 22px; /* 🔥 controls image size */
            box-sizing: border-box;
            background: #fff; /* frame background */
            border-radius: 14px;
            box-shadow: 0 8px 18px rgba(0,0,0,.12);
            cursor: pointer;
            aspect-ratio: 1 / 1; /* square frame */
            
        }


    .ws-mm-more {
        margin: 10px 14px 20px;
        width: calc(100% - 28px);
        padding: 12px;
        border: none;
        border-radius: 999px;
        cursor: pointer;
    }

    /* remove CSS arrows */
    .ws-main-item::after {
        content: none !important;
    }

    /* mobile main menu */
    .ws-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 26px;
    }

    .ws-mainmenu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        background: inherit;
        z-index: 1000;
    }

        .ws-mainmenu.open {
            display: flex;
        }

    .ws-main-item {
        width: 100%;
        padding: 0;
    }

    /* disable desktop mega submenu on mobile */
    .ws-submenu {
        display: none !important;
    }

  
}


@media (max-width: 768px) {

    .hide-mobile {
        display: none;
    }

    .ws-topmenu {
        padding: 8px 12px;
    }

    .ws-main-item {
        font-size: 16px;
    }

    /* hide mega submenu completely */
    .ws-submenu {
        display: none !important;
    }
}



/* ===== MOBILE SUBMENU ===== */

.ws-mobile-submenu {
    padding-left: 20px;
    padding-bottom: 8px;
}

.ws-mobile-sub-item {
    padding: 10px 0;
    font-size: 15px;
    cursor: pointer;
    color: inherit;
}

    .ws-mobile-sub-item .count {
        opacity: .6;
        margin-left: 4px;
    }



    .ws-mobile-sub-item:active {
        opacity: .6;
    }







.ws-arrow {
    transition: transform .25s ease;
    opacity: .6;
}

    .ws-arrow.open {
        transform: rotate(180deg);
    }




.ws-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease;
    padding-left: 28px;
}

    .ws-mobile-submenu.open {
        max-height: 600px; /* large enough */
        opacity: 1;
    }


.ws-mobile-sub-item {
    padding: 10px 0;
    font-size: 15px;
    opacity: .9;
}

    .ws-mobile-sub-item:active {
        opacity: .6;
    }


.no-scroll {
    overflow: hidden;
   
}

/* lock background scroll */
html.no-scroll,
body.no-scroll {
    overflow: hidden;
}

html.no-scroll {
    outline: 3px solid red;
}

body.no-scroll {
    outline: 3px solid blue;
}

.ws-mm-back span {
    font-size: 22px;
    opacity: .85;
    transition: transform .2s ease, opacity .2s ease;
}

.ws-mm-back:active span {
    transform: translateX(-2px);
    opacity: 1;
}




/* main product image container */
.ws-pro-img {
    height: 310px; /* desktop default */
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* main product image */
    .ws-pro-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform .3s ease;
    }

        /* hover zoom */
        .ws-pro-img img:hover {
            transform: scale(1.04);
        }

/* responsive tuning */
@media (max-width: 1024px) {
    .ws-pro-img {
        height: 180px;
    }
}

@media (max-width: 640px) {
    .ws-pro-img {
        height: 150px;
    }
}



/* base card */
.ws-pro-card {
    background: #fff;
}

/* sharp black frame */
.ws-frame {
    border: 1.8px solid #000; /* crisp black */
}

/* rounded vs sharp */
.ws-frame-round {
    border-radius: 14px;
}

.ws-frame-sharp {
    border-radius: 0;
}


/* MEDIA FRAME: fixed height, CLIPPED */
.ws-media-frame {
    height: 450px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden; /* 🔥 REQUIRED */
}

@media (max-width: 1024px) {
    .ws-media-frame {
        height: 320px;
    }
}

@media (max-width: 640px) {
    .ws-media-frame {
        height: 280px;
    }
}

/* IMAGE AREA */
.ws-media-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 16px;
    overflow: hidden; /* 🔥 REQUIRED */
}

    /* IMAGE ITSELF */
    .ws-media-img img {
        max-width: 100%;
        max-height: 100%; /* 🔥 REQUIRED */
        object-fit: contain;
        transition: transform 0.35s ease; /* smooth animation */
        padding: 18px 18px 18px;
    }

    /* hover effect */
    .ws-media-img:hover img {
        transform: scale(1.06); /* 🔥 zoom level */
    }

/* THUMBNAIL STRIP (always reserved) */
.ws-media-thumbs {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-bottom: 12px;
}


/* 🔥 NO THUMBNAILS → perfect vertical centering */
.ws-media-frame.no-thumbs .ws-media-img {
    flex: 1;
    align-items: center;
}

/* 🔥 NO THUMBNAILS → remove reserved space */
.ws-media-frame.no-thumbs .ws-media-thumbs {
    height: 0;
    padding: 0;
    overflow: hidden;
}




/* ===== IMAGE PREVIEW OVERLAY ===== */
.ws-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* preview image */
.ws-preview-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    background: #fff;
}

/* close button */
.ws-preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* 🔥 round background */

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px; /* size of X */
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, 0.45); /* 🔥 round background under X */
    border: none;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

    .ws-preview-close:hover {
        background: rgba(0, 0, 0, 0.65);
        transform: scale(1.1);
    }




/* arrows */
.ws-preview-arrow {
    font-size: 72px;
    width: 72px; /* bigger click area */
    height: 72px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

    

    .ws-preview-arrow.left {
        left: 30px;
    }

    .ws-preview-arrow.right {
        right: 30px;
    }

    .ws-preview-arrow:hover,
    .ws-preview-close:hover {
        opacity: 0.7;
    }

@keyframes previewFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

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

.ws-preview-overlay {
    animation: previewFadeIn 0.25s ease-out;
}



@keyframes previewImageFade {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

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

.ws-preview-img {
    animation: previewImageFade 0.25s ease;
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

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

.ws-preview-img.slide-right {
    animation: slideFromRight 0.35s ease;
}

.ws-preview-img.slide-left {
    animation: slideFromLeft 0.35s ease;
}


@keyframes previewFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ws-preview-img {
    animation: previewFade 1.2s ease;
}




@keyframes previewFade {
    from {
        opacity: 0;
        transform: scale(0.785);
    }

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



/* Zoom overlay fade-in */
.ws-zoom-fade-in {
    animation: wsZoomFadeIn 220ms ease-out;
}

@keyframes wsZoomFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

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


/* Zoom image scale-in on change */
.ws-zoom-scale {
    animation: wsZoomScale 680ms ease-out;
}

@keyframes wsZoomScale {
    from {
        transform: scale(0.96);
        opacity: 0.85;
    }

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




.ws-preview-img-detail {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    /* fade effect */
    opacity: 0;
    animation: previewFadeIn 1.8s ease forwards;
}

@keyframes previewFadeIn {
    from {
        opacity: 0.1;
        transform: scale(0.95);
    }

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



.ws-magnifier {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid #ddd;
    background-repeat: no-repeat;
    background-size: 200% 200%;
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
    pointer-events: none;
    z-index: 20;
}



.qty-btn {
    @apply w-8 h-8 rounded-full flex items-center 
    justify-center text-lg font-medium transition-all 
    duration-150
    hover:bg-black 
    hover:text-white 
    active:scale-95;
}


.ws-back-btn {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .ws-back-btn:hover {
        background: #222;
        transform: translateY(-50%) scale(1.05);
    }

    .ws-back-btn:active {
        transform: translateY(-50%) scale(0.95);
    }


.year-radio {
    width: 18px;
    height: 18px;
    accent-color: black;
    cursor: pointer;
}

/* DESKTOP: floating left of centered list */
.year-filter {
    position: absolute;
    left: -220px;
    top: 120px;
    width: 180px;
}

/* MOBILE / TABLET: show ABOVE the list */
@media (max-width: 1024px) {
    .year-filter {
        position: static; /* 🔥 put it back into normal flow */
        width: auto;
        margin-bottom: 24px; /* space below selector */
        left: auto;
        top: auto;
    }
}

.year-radio {
    width: 18px;
    height: 18px;
    accent-color: black;
    cursor: pointer;
}



/* LINK */
.ws-lang-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.4);
}

    .ws-lang-link:hover {
        border-bottom: 1px solid transparent;               
    }

.ws-lang-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}

/* 👇 only icon changes color */
.ws-lang-link:hover .ws-lang-icon {
    transform: rotate(18deg);
    color: #16a34a;
}



/* OVERLAY */
.ws-lang-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

/* DRAWER */
.ws-lang-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: linear-gradient( 180deg, #ffffff 0%, #e6ecff 50%, #cfd8ff 100% );
    /* 👇 rounded only on left side */
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    box-shadow: -6px 0 20px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.ws-lang-header {
    padding: 28px 16px 16px 28px; /* top right bottom left */
    
    font-weight: 600;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ws-lang-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* LIST */
.ws-lang-list {
    overflow-y: auto;
    flex: 1;
    padding-left: 28px;
}

.ws-lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    
    cursor: pointer;
    transition: background 0.2s ease;
}

    .ws-lang-item:hover {
        background: #f5f5f5;
    }

/* FLAG */
.ws-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

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

    to {
        transform: translateX(0);
    }
}

.ws-lang-header,
.ws-lang-list {
    background: transparent;
}



.ws-lang-line {
    font-size: 14px;
    color: #1f2937;
}

.ws-lang-native {
    color: #6b7280;
    font-weight: 400;
}

.ws-lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #ececec;
    transition: background 0.2s ease;
}

    .ws-lang-item:hover {
        background: rgba(99,102,241,0.08);
    }

    .ws-lang-item.active {
        font-weight: 600;
    }

    .ws-lang-item.selected .ws-lang-line {
        font-weight: 700;
        color: #111;
    }



/* ==============================
   WS COVER 01
   ============================== */

.ws-cover-root {
    width: 100%;
    height: 40vh;
    min-height: 280px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-cover-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient( to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55) );
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-cover-content {
    text-align: center;
    color: white;
    padding: 0 20px;
}

.ws-cover-title-line {
    font-size: clamp(20px, 2.5vw, 44px);
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* subtle animation */
.ws-cover-title-line {
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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





.ws-textcard-root {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 60px;
}

    .ws-textcard-root.reverse {
        flex-direction: row-reverse;
    }

.ws-textcard-text {
    flex: 1;
}

.ws-textcard-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
}

.ws-textcard-content {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.ws-textcard-img {
    flex: 1;
}

    .ws-textcard-img img {
        width: 100%;
        border-radius: 12px;
        object-fit: cover;
    }

.ws-textcard-btn {
    margin-top: 30px;
    padding: 12px 28px;
    border: none;
    background: #111;
    color: white;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
}

    .ws-textcard-btn:hover {
        background: #444;
    }

/* Mobile */
@media (max-width: 768px) {
    .ws-textcard-root {
        flex-direction: column;
        gap: 40px;
    }
}




/* ==============================
   WS SHOPS 01
   ============================== */

.ws-shops-root {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 40px;
}

.ws-shops-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

    .ws-shops-title h2 {
        font-size: 28px;
        font-weight: 600;
        letter-spacing: 2px;
    }

    .ws-shops-title .line {
        flex: 1;
        height: 3px;
        background: #ddd;
        max-width: 120px;
    }

.ws-shops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
}

.ws-shop-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ws-shop-info {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Mobile */
@media (max-width: 768px) {
    .ws-shops-grid {
        grid-template-columns: 1fr;
    }
}


.ws-shop-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 30px;
    background: #111;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

    .ws-shop-map-btn:hover {
        background: #444;
    }


/* ==============================
   SHOP IMAGE HOVER ZOOM
   ============================== */

.ws-shop-img-wrap {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
}

    .ws-shop-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .ws-shop-img-wrap:hover img {
        transform: scale(1.05);
    }


.ws-textcard-content {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    white-space: pre-line; /* 👈 THIS FIXES IT */
}


.ws-text-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ws-location-icon,
.ws-phone-icon,
.ws-mail-icon {
    font-size: 18px;
    color: #555;
}

.fps-page {
    min-height: 100vh;
    background: #ffffff; /* ✅ white background */
    display: flex; /* ✅ center everything */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center; /* ✅ center text */
    font-family: 'Segoe UI', sans-serif;
}

/* Logo */
.fps-logo img {
    height: 48px;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 40px;
}

/* Title */
.fps-title {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #111;
}

/* Input wrapper */
.fps-input {
    width: 100%;
    max-width: 520px;
}

    /* Input */
    .fps-input input {
        width: 100%;
        padding: 16px 18px;
        border-radius: 12px;
        border: 1px solid #ccc;
        background: #f8f8f8;
        font-size: 15px;
        outline: none;
        transition: all 0.2s ease;
    }

        .fps-input input:focus {
            border-color: #111;
            background: white;
        }

/* Note */
.fps-note {
    max-width: 520px;
    margin-top: 20px;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

/* Button container */
.fps-actions {
    margin-top: 40px;
}

/* Button */
.fps-btn {
    padding: 12px 36px;
    border-radius: 999px;
    border: none;
    background: #111;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .fps-btn:hover {
        background: #000;
        transform: translateY(-1px);
    }


/* Page wrapper */
.fps-wrapper {
    width: 100%;
    background: #ffffff;
    padding-bottom: 180px;
}

/* Centered container */
.fps-box {
    width: 100%;
    max-width: 520px;
    margin: 60px auto 0 auto; /* ✅ top margin + horizontal center */
}

@media (max-width: 768px) {

    .fps-box {
        width: 80%; /* ✅ 80% on mobile */
        max-width: none; /* remove fixed limit */
        margin: 100px auto 120px auto;
    }
}

/* Logo */
.fps-logo img {
    height: 45px;
    margin-bottom: 40px;
}

/* Title */
.fps-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #111;
}

/* Input */
.fps-input input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #bbb;
    background: #f5f5f5;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

    .fps-input input:focus {
        border-color: #111;
        background: #ffffff;
    }

/* Note */
.fps-note {
    margin-top: 20px;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

/* Button container */
.fps-actions {
    display: flex;
    justify-content: flex-end; /* ✅ right aligned */
    margin-top: 50px;
}

/* Button */
.fps-btn {
    padding: 12px 30px;
    border-radius: 999px;
    border: none;
    background: #111;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

    .fps-btn:hover {
        background: #000;
        transform: translateY(-1px);
    }


