:root {
    --bg-page: #f2f4f7;
    --bg-card: #ffffff;
    --text-main: #1a2a49;
    --text-muted: #6b7280;
    --accent: #0f9d58;
    --accent-dark: #0a7c44;
    --danger: #d93025;
    --border: #e5e7eb;
    --shadow: 0 8px 24px rgba(20, 37, 63, 0.08);
    --radius: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: "Noto Sans Georgian", "Arial", "Helvetica", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

.app-shell {
    max-width: 480px;
    margin: 0 auto;
    padding-top: 90px;
    padding-bottom: 90px;
    position: relative;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 54px;
    background: linear-gradient(135deg, #fdf7ec 0%, #f2c67d 60%, #d7924c 100%);
    overflow: hidden;
    z-index: 20;
    box-shadow: var(--shadow);
}

.top-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='80' viewBox='0 0 200 80'%3E%3Cpath d='M10 50 Q30 30 55 34 T95 28 Q110 20 130 26 T170 30 Q185 34 190 28 L182 36 Q184 44 178 50 Q170 57 155 55 Q142 50 120 56 Q100 64 82 60 Q62 56 50 62 T20 58 Q12 56 10 50Z' fill='none' stroke='%23a03820' stroke-width='4' stroke-opacity='0.25'/%3E%3Cpath d='M30 44 Q48 37 70 40 T108 34 Q134 36 156 40 Q168 43 176 40' fill='none' stroke='%23a03820' stroke-width='3' stroke-opacity='0.28' stroke-linecap='round' stroke-dasharray='6 8'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.45;
    pointer-events: none;
}

.top-bar__content {
    padding: 0px 16px;
}

.stock-info {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 600;
    justify-content: center;
    font-size: 15px;
}

.stock-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 4px;
}

.stock-progress__fill {
    height: 100%;
    background: #f87171;
    width: 0%;
    transition: width 0.3s ease;

}

.stock-helper {
    font-size: 12px;
    margin-top: 6px;
    text-align: center;
    margin-block-start: 0.2em;
    margin-block-end: 0em;
}

.page {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #b26424;
    font-size: 14px;
}

.product-rating__stars {
    letter-spacing: 2px;
    display: inline-block;
    color: #e2e8f0;
    background: linear-gradient(90deg, #f6ad55 90%, #e2e8f0 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-rating__score {
    color: #1a2a49;
}

.product-rating__count {
    border: none;
    background: transparent;
    color: #0f5c9d;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    text-decoration: underline;
}

.product-rating__count:hover {
    text-decoration: underline;
}

.product-media {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #e5e7eb;
}

.product-media img {
    width: 100%;
    object-fit: cover;
    /* aspect-ratio: 4 / 3; */
}

.product-panel__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-title {
    font-size: 20px;
    margin: 0;
    width: 100%;
    text-align: center;
}

.product-discount {
    margin: 0;
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border-radius: 999px;
    padding: 4px;
    border: 1px solid var(--border);
}

.product-panel__row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.quantity-control input {
    width: 42px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.price-info {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.price-line__sum {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.price-line strong {
    font-size: 18px;
}

.package-select {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

@media (max-width: 360px) {
    .package-select {
        grid-template-columns: repeat(4, minmax(90px, 1fr));
    }
}

@media (max-width: 321px) {
    .package-select {
        grid-template-columns: repeat(2, minmax(84px, 1fr));
    }
}

.package-select__btn {
    border: 1px solid var(--border);
    background: #f9fafb;
    padding: 10px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.package-select__btn.active {
    border-color: var(--accent);
    background: rgba(15, 157, 88, 0.1);
    box-shadow: inset 0 0 0 1px rgba(15, 157, 88, 0.3);
}

.package-select__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.package-select__text strong {
    font-size: 16px;
}

.package-select__text span {
    font-size: 13px;
    color: var(--text-muted);
}

.package-select__btn small {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 10px 16px;
    box-shadow: var(--shadow);
}

.form-card__title {
    margin: 0;
    font-size: 18px;
    margin-bottom: 12px;
}

.sizes-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.size-select {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.size-select label {
    font-weight: 600;
    flex: 0 0 25%;
    max-width: 25%;
    font-size: 15px;
}

.size-select select {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 12px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex: 1 1 70%;
    width: 100%;
}

.size-select select:invalid {
    border-color: rgba(255, 99, 71, 0.7);
    box-shadow: 0 0 0 2px rgba(252, 165, 165, 0.35);
}

.size-select select:valid {
    border-color: rgba(34, 197, 94, 0.65);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.size-select.invalid select {
    border-color: var(--danger);
    box-shadow: 0 0 0 1px rgba(217, 48, 37, 0.2);
}

.size-error {
    font-size: 13px;
    color: var(--danger);
    display: none;
    flex: 1 1 100%;
    margin-top: 4px;
    text-align: center;
}

.size-select.invalid .size-error {
    display: block;
}

.form-group input:invalid {
    border-color: rgba(255, 99, 71, 0.7);
    box-shadow: 0 0 0 2px rgba(252, 165, 165, 0.35);
}

.form-group input:valid {
    border-color: rgba(34, 197, 94, 0.65);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.form-group {
    position: relative;
    margin-bottom: 12px;
}

.form-group::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 47px;
    height: 47px;
    background-color: #f1f5f9;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 14px 0 0 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    pointer-events: none;
}

.form-group--name::before {
    background-image: url('../images_c/icon-user.png');
}

.form-group--phone::before {
    background-image: url('../images_c/icon-phone.png');
}

.form-group input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 14px 14px 14px 62px;
    font-size: 15px;
    background: #fff;
}

.form-error {
    font-size: 13px;
    color: var(--danger);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.form-error:not(:empty) {
    max-height: 40px;
    opacity: 1;
    margin-top: 4px;
}

.btn-primary {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, var(--accent), #34d399);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.form-card input:focus-visible,
.size-select select:focus-visible,
.quantity-control button:focus-visible,
.package-select__btn:focus-visible,
.btn-primary:focus-visible,
.bottom-bar .btn-primary:focus-visible {
    outline: 2px solid rgba(15, 157, 88, 0.55);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.15);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 0 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: var(--shadow);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reviews header {
    text-align: center;
    margin-bottom: 12px;
}

.reviews h2 {
    margin: 6px 0;
}

.reviews .subtitle {
    margin: 0;
    color: var(--text-muted);
}

.owl-carousel .review-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid #1a2a49;
    padding: 16px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 98%;
    margin: 0 auto;
}

#reviewsCarousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.owl-carousel .owl-item {
    display: flex;
    align-items: stretch;
}

.review-card p {
    flex: 1;
}

.reviews .owl-stage-outer {
    padding: 0;
}

#reviewsCarousel {
    padding: 0 5px;
    box-sizing: border-box;
}

.reviews #reviewsCarousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.reviews #reviewsCarousel .owl-dot span {
    width: 10px;
    height: 10px;
    background: #e5e7eb;
    border-radius: 50%;
    display: block;
    transition: background 0.2s;
}

.reviews #reviewsCarousel .owl-dot.active span {
    background: #0f9d58;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-head img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    object-fit: cover;
}

.review-rating {
    color: #fbbf24;
    font-size: 14px;
}

.delivery_payments,
.socials,
.guarantee {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.delivery_payments {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.delivery_payments h3 {
    text-align: center;
    margin-block-start: 0;
    margin-block-end: 8px;
}

.socials h3 {
    text-align: center;
    margin-block-start: 0;
    margin-block-end: 1em;
}

.payment-icons,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.payment-icon {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.payment-icon {
    border-color: #1a2a49;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a2a49;
    text-decoration: none;
}

.social-links img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.delivery-note,
.payment-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    margin-bottom: 12px;
}

.delivery-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.delivery-icon {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
}

.delivery-icon img {
    max-height: 28px;
    width: auto;
}

.guarantee button {
    width: 100%;
    border: none;
    background: transparent;
    text-decoration: underline;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 90px;
    background: #0b1723;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    z-index: 30;
}

.bottom-bar.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 100%);
}

.bottom-bar,
.bottom-bar.is-hidden {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bottom-bar__info {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
}

.bottom-prices {
    display: flex;
    gap: 8px;
    align-items: baseline;
    justify-content: center;
}

.bottom-prices strong,
.bottom-discount {
    color: #22c55e;
    font-weight: 700;
}

.bottom-prices s {
    color: #f87171;
    font-weight: 600;
}

.bottom-bar .btn-primary {
    flex: 0 0 40%;
    animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
}

@media (max-width: 321px) {
    .bottom-bar__info {
        font-size: 14px;
    }

    .product-discount {
        font-size: 13px;
    }

    .size-select label {
        font-size: 14px;
    }
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin: 0 20px;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(15, 157, 88, 0.5);
    }

    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 10px rgba(15, 157, 88, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(15, 157, 88, 0);
    }
}

@media (min-width: 768px) {
    body {
        background: radial-gradient(circle at top, #e0f2fe, #f9fafb);
    }
}

.review-body {
    flex: 1;
    font-size: 14px;
}

.review-foot {
    margin-top: 10px;
}