/* Orion - dense marketplace theme.
   Tokens: cool neutral surfaces, the tenant's primary for actions,
   and a shelf-label yellow reserved for prices and deals. */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wdth,wght@62.5..100,100..900&display=swap');

:root {
    --o-page: #EEF0F3;
    --o-panel: #FFFFFF;
    --o-sunk: #F6F7F9;
    --o-ink: #1F2430;
    --o-muted: #5F6673;
    --o-faint: #8A909B;
    --o-line: #DADDE3;
    --o-line-soft: #E8EAEE;
    --o-tag: #FFE14D;
    --o-tag-ink: #1F2430;
    --o-sale: #D4231A;
    --o-ok: #13824B;
    --o-primary: var(--bw-theme-primary, rgb(17, 80, 97));

    --o-r-ctl: 4px;
    --o-r-card: 6px;
    --o-r-panel: 8px;
}

body {
    background: var(--o-page);
    color: var(--o-ink);
    font-family: "Noto Sans Georgian", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.is-navigating {
    pointer-events: none;
    opacity: 0.5;
}

a,
button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

/* Keyboard focus: globals.css strips outlines, Orion puts a visible one back */
.o-root a:focus-visible,
.o-root button:focus-visible,
.o-root input:focus-visible,
.o-root select:focus-visible,
.o-root textarea:focus-visible {
    outline: 2px solid var(--o-primary) !important;
    outline-offset: 2px;
}

/* Component classes live in the components layer so Tailwind utilities
   (hidden, lg:flex, sizes...) can still override them. */
@layer components {

/* ---------- Type ---------- */

/* Condensed heavy cut used for headings and figures */
.o-cond {
    font-stretch: 75%;
    font-variation-settings: "wdth" 75;
}

.o-h1 {
    font-stretch: 75%;
    font-variation-settings: "wdth" 75;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.005em;
}

.o-h2 {
    font-stretch: 75%;
    font-variation-settings: "wdth" 75;
    font-weight: 750;
    font-size: 21px;
    line-height: 1.15;
}

.o-h3 {
    font-stretch: 80%;
    font-variation-settings: "wdth" 80;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
}

.o-num {
    font-variant-numeric: tabular-nums;
}

/* ---------- Surfaces ---------- */

.o-container {
    width: 100%;
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 1024px) {
    .o-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.o-panel {
    background: var(--o-panel);
    border: 1px solid var(--o-line);
    border-radius: var(--o-r-panel);
}

.o-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--o-line-soft);
}

/* ---------- Controls ---------- */

.o-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--o-r-ctl);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s, filter .15s;
}

.o-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.o-btn-primary {
    background: var(--o-primary);
    color: #fff;
}

.o-btn-primary:hover:not(:disabled) {
    filter: brightness(1.12);
}

.o-btn-ink {
    background: var(--o-ink);
    color: #fff;
}

.o-btn-ink:hover:not(:disabled) {
    background: #353C4B;
}

.o-btn-line {
    background: var(--o-panel);
    color: var(--o-ink);
    border: 1px solid var(--o-line);
}

.o-btn-line:hover:not(:disabled) {
    border-color: var(--o-ink);
}

.o-btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.o-btn-lg {
    height: 48px;
    padding: 0 22px;
    font-size: 15px;
}

.o-input,
.o-root .o-form input[type="text"],
.o-root .o-form input[type="email"],
.o-root .o-form input[type="password"],
.o-root .o-form input[type="tel"],
.o-root .o-form input[type="number"],
.o-root .o-form input[type="date"],
.o-root .o-form select,
.o-root .o-form textarea {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: var(--o-panel);
    border: 1px solid var(--o-line);
    border-radius: var(--o-r-ctl);
    color: var(--o-ink);
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}

.o-root .o-form textarea {
    height: auto;
    min-height: 120px;
    padding: 10px 12px;
}

.o-input:focus,
.o-root .o-form input:focus,
.o-root .o-form select:focus,
.o-root .o-form textarea:focus {
    border-color: var(--o-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--o-primary) 18%, transparent);
}

.o-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--o-ink);
}

.o-link {
    color: var(--o-primary);
    font-weight: 600;
}

.o-link:hover {
    text-decoration: underline;
}

/* ---------- Price tag: the shelf label ---------- */

.o-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    padding: 3px 8px 2px;
    background: var(--o-tag);
    color: var(--o-tag-ink);
    border-radius: 3px;
    font-stretch: 75%;
    font-variation-settings: "wdth" 75;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Small notch on the left edge, like a hanging shelf label */
.o-tag::before {
    content: "";
    align-self: center;
    width: 5px;
    height: 5px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--o-panel);
}

.o-tag-lg {
    font-size: 32px;
    padding: 5px 12px 4px;
}

.o-tag-lg::before {
    width: 7px;
    height: 7px;
    margin-right: 8px;
}

/* Plain price (no discount) keeps the condensed figures but no label */
.o-price {
    font-stretch: 75%;
    font-variation-settings: "wdth" 75;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--o-ink);
}

.o-price-lg {
    font-size: 32px;
}

.o-was {
    color: var(--o-faint);
    text-decoration: line-through;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.o-off {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 6px;
    background: var(--o-sale);
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */

header.o-header {
    background: var(--o-panel);
}

.o-mega-scroll::-webkit-scrollbar,
.o-hscroll::-webkit-scrollbar {
    width: 6px;
    height: 0;
}

.o-mega-scroll::-webkit-scrollbar-thumb {
    background: var(--o-line);
    border-radius: 3px;
}

.o-hscroll {
    scrollbar-width: none;
}

/* ---------- Rich text (pages, blog, product description) ---------- */

.o-prose {
    color: var(--o-ink);
    font-size: 15px;
    line-height: 1.7;
    max-width: 75ch;
}

.o-prose h1,
.o-prose h2,
.o-prose h3 {
    font-stretch: 80%;
    font-variation-settings: "wdth" 80;
    font-weight: 750;
    line-height: 1.2;
    margin: 1.4em 0 .5em;
}

.o-prose h1 { font-size: 26px; }
.o-prose h2 { font-size: 21px; }
.o-prose h3 { font-size: 17px; }

.o-prose p,
.o-prose ul,
.o-prose ol {
    margin: 0 0 1em;
}

.o-prose ul { list-style: disc; padding-left: 1.3em; }
.o-prose ol { list-style: decimal; padding-left: 1.3em; }

.o-prose a {
    color: var(--o-primary);
    text-decoration: underline;
}

.o-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--o-r-card);
}

.o-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1em;
}

.o-prose td,
.o-prose th {
    border: 1px solid var(--o-line);
    padding: 8px 10px;
    text-align: left;
}

}

/* Third-party overrides stay unlayered so they beat the libraries' own CSS */
/* ---------- Swiper ---------- */

#hero-slider-section .swiper-pagination {
    position: absolute;
}

.o-hero .swiper-pagination {
    position: absolute;
    left: 24px !important;
    bottom: 18px !important;
    width: auto !important;
    display: flex;
    gap: 6px;
}

.o-hero .swiper-pagination-bullet {
    width: 22px;
    height: 4px;
    margin: 0 !important;
    border-radius: 2px;
    background: rgba(255, 255, 255, .45);
    opacity: 1;
}

.o-hero .swiper-pagination-bullet-active {
    background: #fff;
}

.swiper-container .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--o-line);
    border-radius: 9999px;
    opacity: 1;
}

.swiper-container .swiper-pagination-bullet-active {
    background-color: var(--o-ink);
}

.swiper-container.deal-of-the-day .swiper,
.swiper-container.related-products .swiper {
    padding-bottom: 0;
}

/* ---------- Toasts ---------- */

.toast-base {
    padding: 0.75rem 1rem;
    border-radius: var(--o-r-ctl);
    font-size: 0.9375rem;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.25s ease, fadeOut 0.25s ease 2.8s forwards;
}

.toast-error {
    background: var(--o-sale);
}

.toast-success {
    background: var(--o-ok);
}

.toast-info {
    background: #2563EB;
}

.toast-warning {
    background: #B7791F;
}

.Toastify__toast {
    border-radius: var(--o-r-ctl) !important;
    font-family: inherit !important;
    font-size: 14px;
}

/* ---------- Misc carried from the base theme ---------- */

.variant-check.hidden {
    display: none !important;
}

@media (min-width: 768px) {
    main {
        min-height: calc(100vh - 520px);
    }
}

#payment-pending-wrapper .hidden {
    display: none !important;
}

#payment-pending-wrapper {
    --loader-size: 96px;
    --loader-color: var(--o-primary);
}

#payment-pending-wrapper .loader-box {
    position: relative;
    width: var(--loader-size);
    height: var(--loader-size);
    display: flex;
    align-items: center;
    justify-content: center;
}

#payment-pending-wrapper .loader {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--loader-color);
    border-bottom-color: var(--o-line);
    animation: spin 1s linear infinite;
}

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

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

    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background-image: linear-gradient(90deg,
            #E3E6EA 0%,
            #F1F2F5 40%,
            #E3E6EA 80%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .shimmer,
    #payment-pending-wrapper .loader {
        animation-duration: 3s;
    }

    .o-root *,
    .o-root *::before,
    .o-root *::after {
        transition-duration: 0.01ms !important;
    }
}
