/*
================================================
KERAMALL - Main Stylesheet
Theme: Solar Mandala Light (Night Sky / Gold Glow)
პალიტრა აღებულია პროდუქტის ფოტოებიდან:
ღამის ლურჯი #1b2a4a · ოქროსფერი ნათება #d99a34 · თბილი კრემი #f5efe3
================================================
*/

/* --- CSS Variables (Design Tokens) --- */
:root {
    --ink: #2f2618;          /* headlines — მუქი თბილი ყავისფერი (ხის ღობის ტონი) */
    --body-txt: #57503f;
    --muted: #928a76;

    --cream-050: #fbf8f2;
    --cream-100: #f5efe3;    /* light section backgrounds */
    --cream-200: #e9dfcb;    /* borders */
    --cream-300: #d9cbae;

    --night: #1b2a4a;        /* header / footer — ღამის ცის ლურჯი ფოტოებიდან */
    --night-2: #2a3d66;

    --gold: #d99a34;         /* აქცენტი — თბილი ოქროსფერი ნათება */
    --gold-light: #f2b64d;
    --gold-deep: #a8721c;
    --gold-glow: #f6c469;    /* ღია ოქროსფერი მუქ ფონზე */
    --gold-soft: #fdf3dd;    /* რბილი ოქროსფერი ფონი */
    --gold-border: #ecd7a8;

    --violet: #7b5bd6;       /* "ფერადი რეჟიმის" აქცენტი ფოტოებიდან */
    --violet-deep: #5a3fae;

    --red: #c4453c;          /* urgency only */
    --green: #2f7a4a;        /* "მარაგშია" */
    --star: #e8a93b;

    --bg-white: #ffffff;
    --font-main: 'Noto Sans Georgian', 'BPG Arial', 'FiraGO', 'Helvetica Neue', Arial, sans-serif;
}

/* --- Universal Box Sizing --- */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}


/* --- General & Body Styles --- */
body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    background-color: #efe9db;
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(217, 154, 52, 0.28);
}

:focus-visible {
    outline: 3px solid rgba(217, 154, 52, 0.55);
    outline-offset: 2px;
}

.site-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-shadow: 0 8px 30px rgba(27, 42, 74, 0.12);
    background-color: var(--bg-white);
}


/* --- Features Header (Night Sky Style) --- */
.features-header {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
    padding: 28px 20px 24px;
    color: #ffffff;
    text-align: center;
    border-bottom: 3px solid var(--gold);
    border-radius: 0;
    text-shadow: none;
}

.feature-badge {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.feature-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-deep) 100%);
    border: 1.5px solid rgba(246, 196, 105, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 12px;
    box-shadow: 0 0 18px rgba(242, 182, 77, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.feature-icon-circle svg {
    width: 26px;
    height: 26px;
}

.feature-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.feature-sub {
    font-size: 11px;
    color: #e9d5a8;
    margin: 0;
    line-height: 1.3;
    font-weight: 400;
}

@media (max-width: 480px) {
    .features-header {
        padding: 22px 10px 18px;
        gap: 4px;
    }
    .feature-icon-circle {
        width: 48px;
        height: 48px;
    }
    .feature-icon-circle svg {
        width: 22px;
        height: 22px;
    }
    .feature-title {
        font-size: 13px;
    }
    .feature-sub {
        font-size: 10px;
    }
}


/* --- Footer --- */
.site-footer {
    background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
    padding: 25px 20px;
    text-align: center;
    color: #ffffff;
    border-top: 3px solid var(--gold);
    margin-top: 0;
    border-radius: 0;
    text-shadow: none;
}

.site-footer h2 {
    color: #ffffff !important;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.site-footer p {
    font-size: 14px;
    color: #d4d9e4;
    margin: 6px 0;
}

.footer-link {
    color: var(--gold-glow);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fbdda0;
    text-decoration: underline;
}

.site-footer .copyright {
    font-size: 12px;
    margin-top: 15px;
    color: #8f97a8;
}


/* --- Main Product Layout --- */
.product-main-container {
    margin-top: 0;
    padding: 25px 20px;
}

.product-photo-section img,
.feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--cream-200);
    box-shadow: 0 2px 10px rgba(47, 38, 24, 0.07);
    display: block;
}

.product-overview {
    padding: 0;
    background-color: transparent;
    text-align: left;
}


/* --- Product Title & Basic Info --- */
.product-overview h1 {
    font-size: 24px;
    font-weight: 800;
    margin: 14px 0;
    color: var(--ink);
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.alert {
    font-size: 14px;
    color: var(--red);
    font-weight: 600;
    background-color: #fdf2f1;
    border-left: 3px solid var(--red);
    padding: 10px 14px;
    border-radius: 4px;
    margin: 0 0 12px 0;
}

.subheadline {
    font-size: 15px;
    color: var(--body-txt);
    margin-top: 12px;
    line-height: 1.6;
}

.rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 12px 0;
    color: var(--body-txt);
}

.stars {
    color: var(--star);
    font-size: 17px;
    margin-right: 6px;
    letter-spacing: 1px;
}

.rating-value,
.review-count {
    color: var(--gold-deep);
    font-weight: 700;
    margin-left: 5px;
}


/* --- Benefits List --- */
.benefits-list {
    list-style-type: none;
    padding: 0;
    margin: 18px 0;
    font-size: 14px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    color: var(--ink);
    font-weight: 400;
    line-height: 1.55;
}

.benefits-list li::before {
    content: "✓";
    margin-right: 12px;
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    font-weight: bold;
    font-size: 13px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    box-shadow: 0 2px 4px rgba(168, 114, 28, 0.35);
}

.benefits-list .icon {
    margin-right: 8px;
}

.benefits-list .icon + * {
    color: var(--ink);
    font-weight: 400;
}

.benefits-list .highlight {
    color: var(--gold-deep);
    font-weight: 700;
}


/* --- Purchase Options (Quantity, Color, Size) --- */
.options-section,
.size-section {
    text-align: left;
    padding: 20px 0;
}

.options-section h2,
.size-section h2 {
    font-size: 19px;
    color: var(--ink);
    margin-bottom: 22px;
    text-align: center;
    font-weight: 700;
    line-height: 1.4;
}

.options-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.option {
    border: 2px solid var(--cream-200);
    border-radius: 10px;
    padding: 18px 12px;
    flex: 1;
    max-width: 145px;
    text-align: center;
    background-color: var(--bg-white);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(47, 38, 24, 0.04);
}

.option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 38, 24, 0.08);
}

.option.active {
    border-color: var(--gold);
    background-color: var(--gold-soft);
    box-shadow: 0 4px 14px rgba(217, 154, 52, 0.28);
}

.recommended {
    border-color: var(--violet);
}
.best-value {
    border-color: var(--gold);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    font-size: 11px;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* .red = "პოპულარული" (იისფერი — ფერადი რეჟიმის აქცენტი), .blue = "საუკეთესო" (ოქროსფერი) */
.badge.red {
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
}

.badge.blue {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-deep) 100%);
    color: #2c1f0c;
}

.small-text {
    font-size: 0.8em;
    color: var(--muted);
    display: block;
    margin-top: 4px;
}


/* --- Color Options (თბილი / ფერადი) --- */
.form-group {
    display: block;
    padding: 6px 0 14px;
}

.form-group > label {
    font-size: 19px;
    color: var(--ink);
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.color-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.color-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex: 1;
    max-width: 180px;
    min-width: 0;
}

.color-image {
    width: 100%;
    height: auto;
    border: 3px solid transparent;
    border-radius: 8px;
    transition: border 0.2s ease, transform 0.2s ease;
}

.color-btn:hover .color-image {
    transform: scale(1.03);
}

.color-btn.active .color-image {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 4px 12px rgba(217, 154, 52, 0.3);
}


/* --- Size Options --- */
.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.size-chart-link {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.size-chart-link:hover {
    text-decoration: underline;
    color: var(--gold-deep);
}

.size-options {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.size-option {
    flex: 1;
    max-width: 80px;
    border: 2px solid var(--cream-200);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background-color: var(--bg-white);
    transition: all 0.25s ease;
}

.size-option:hover {
    border-color: var(--cream-300);
    box-shadow: 0 2px 8px rgba(47, 38, 24, 0.08);
}

.size-option.active {
    border-color: var(--gold);
    background-color: var(--gold-soft);
    box-shadow: 0 4px 10px rgba(217, 154, 52, 0.28);
}


/* --- Pricing Section --- */
.pricing-section {
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, var(--cream-100) 100%);
    border-radius: 12px;
    margin-top: 24px;
    border: 1px solid var(--cream-200);
    box-shadow: 0 4px 14px rgba(47, 38, 24, 0.06);
    text-align: left;
}

.pricing-section h2 {
    font-size: 18px;
    color: var(--ink);
    margin: 18px 0 12px 0;
    font-weight: 700;
}

.regular-price {
    color: var(--muted);
    font-size: 15px;
    margin: 0 0 4px 0;
}

.regular-price span {
    text-decoration: line-through;
}

.discounted-price {
    font-size: 28px;
    color: var(--ink);
    font-weight: 800;
    display: flex;
    align-items: center;
    margin: 6px 0 12px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.discounted-price strong {
    color: var(--red);
}

/* ფასდაკლების ჩიპი — ოქროსფერი ლეიბლი, როგორც ფოტოებზე */
.discount-badge {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-deep) 100%);
    color: #2c1f0c;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-left: 0;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(168, 114, 28, 0.35);
}

.stock-info {
    font-size: 14px;
    margin: 12px 0;
    line-height: 1.6;
    color: var(--body-txt);
}

.in-stock {
    color: var(--green);
    font-weight: 700;
}

#countdown {
    font-weight: 700;
    color: var(--red);
    font-variant-numeric: tabular-nums;
}

.delivery-date {
    font-weight: 700;
    color: var(--ink);
}


/* --- Order Form --- */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 18px 0;
}

.order-form label {
    font-size: 14px;
    color: var(--ink);
    margin-bottom: -10px;
    font-weight: 600;
}

.order-form input[type="text"],
.order-form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1.5px solid var(--cream-200);
    border-radius: 8px;
    background-color: var(--bg-white);
    color: var(--ink);
    transition: all 0.2s ease;
    font-family: inherit;
}

.order-form input::placeholder { color: #a89f8c; }

.order-form input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 154, 52, 0.18);
}


/* --- Buttons (CTA) — ოქროსფერი ნათება, როგორც ფოტოების ბეჯები --- */
.order-button,
.my-custom-scroll-button {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    color: #2c1f0c;
    background: linear-gradient(135deg, #f6c469 0%, var(--gold) 55%, #c07f1f 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-align: center;
    margin: 12px auto;
    box-shadow: 0 6px 18px rgba(192, 127, 31, 0.4);
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    font-family: inherit;
}

.order-button:hover,
.my-custom-scroll-button:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-deep) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 114, 28, 0.5);
}

.order-button:active,
.my-custom-scroll-button:active {
    transform: translateY(0);
}

.order-button:disabled {
    background: #c9c2b2;
    color: #7c7669;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.cart-icon {
    margin-right: 10px;
    font-size: 20px;
}


/* --- Money Back Section --- */
.money-back-section {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gold-soft) 0%, #f8e9c6 100%);
    padding: 18px;
    border-radius: 10px;
    margin-top: 22px;
    border: 1px solid var(--gold-border);
}

.badge-icon {
    width: 54px;
    height: auto;
    margin-right: 16px;
}

.money-back-content p {
    margin: 0;
}

.money-back-content p:first-child {
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
}

.money-back-content p:last-child {
    font-size: 13px;
    color: var(--body-txt);
    margin-top: 4px;
}


/* --- Feature Section (Image Grid) --- */
.feature-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 0;
}


/* --- Shipping Timer (ღამის ცა + ოქროსფერი წამზომი) --- */
.shipping-timer {
    text-align: center;
    background: linear-gradient(135deg, var(--night) 0%, var(--night-2) 100%);
    padding: 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    margin: 22px 0;
    color: #fff;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 14px rgba(27, 42, 74, 0.2);
}

.shipping-timer p {
    margin: 0;
    line-height: 1.5;
}

#shippingCountdown {
    font-size: 24px;
    color: var(--gold-glow);
    font-variant-numeric: tabular-nums;
    display: inline-block;
    margin: 0 4px;
}

.stock-remaining {
    color: var(--red);
    font-weight: 700;
    margin: 0 4px;
}


/* ===============================================
   Responsive Logic for Mobile vs Desktop
   =============================================== */

/* Default (Mobile) View: Hide the desktop-only images */
.desktop-features {
    display: none;
}


/* Tablet & Desktop Views */
@media (min-width: 800px) {
    .desktop-features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 20px;
    }
    .mobile-features {
        display: none;
    }

    .product-main-container {
        display: flex;
        gap: 40px;
        align-items: flex-start;
        padding: 30px 30px;
    }

    .product-image-column {
        flex: 1;
        position: sticky;
        top: 20px;
    }

    .product-details-column {
        flex: 1;
    }

    .product-overview h1 {
        font-size: 28px;
    }
}

/* Smaller screen adjustments */
@media (max-width: 799px) {
    .site-container {
        padding: 0;
    }
    .product-main-container {
        padding: 20px 14px;
    }
    .mobile-features {
        grid-template-columns: 1fr;
    }
    .product-overview h1 {
        font-size: 22px;
    }
    .options-container {
        flex-wrap: wrap;
    }
    .option {
        max-width: none;
        min-width: 90px;
    }
}


/* ===============================================
   STYLES FOR INFO SECTIONS
   =============================================== */
.info-section {
    background-color: var(--bg-white);
    border: 1px solid var(--cream-200);
    border-radius: 12px;
    padding: 24px;
    margin-top: 26px;
    box-shadow: 0 2px 8px rgba(47, 38, 24, 0.04);
    position: relative;
}

/* სათაურის "✦" გამყოფი — მანდალას ორნამენტის ნიშანი */
.info-section h1 {
    text-align: center;
    margin-top: 0;
    padding-bottom: 18px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--cream-200);
    font-size: 22px;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.2px;
    position: relative;
}

.info-section h1::after {
    content: "\2726";
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-white);
    padding: 0 12px;
    color: var(--gold);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

#how-to-buy .benefits-list {
    counter-reset: steps-counter;
    list-style-type: none;
}

#how-to-buy .benefits-list li::before {
    counter-increment: steps-counter;
    content: counter(steps-counter);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-deep) 100%);
    color: white;
    font-weight: 800;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(168, 114, 28, 0.35);
}


/* --- Hidden Sections (preserved from original) --- */
.size-section {
    display: none;
}


/* --- Watching count animation (subtle pulse for live feel) --- */
.watchingCount {
    display: inline-block;
}


/* ===============================================
   MODAL (POPUP) STYLES
   =============================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(27, 42, 74, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
}
.modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--cream-200);
    max-width: 420px; width: 90%; text-align: center;
    box-shadow: 0 12px 34px rgba(27, 42, 74, 0.3);
    color: var(--body-txt);
}
.modal-content h2 {
    margin-top: 0; font-size: 22px; color: var(--ink);
    text-shadow: none;
    margin-bottom: 15px;
    font-weight: bold;
}
.modal-content p { color: var(--body-txt); font-size: 14px; margin-bottom: 20px; line-height: 1.5; }
.modal-content input {
    width: 100%; padding: 13px; margin: 10px 0;
    background-color: #fff; border: 1.5px solid var(--cream-200);
    border-radius: 8px; font-size: 16px; color: var(--ink);
    font-family: inherit; box-sizing: border-box; transition: all 0.2s ease;
}
.modal-content input::placeholder { color: #a89f8c; }
.modal-content input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217, 154, 52, 0.18);
    outline: none;
}
.btn-confirm {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg, #f6c469 0%, var(--gold) 55%, #c07f1f 100%);
    color: #2c1f0c;
    border: none; border-radius: 10px; font-size: 18px; font-weight: bold;
    font-family: inherit;
    box-shadow: 0 6px 18px rgba(192, 127, 31, 0.4);
    cursor: pointer; margin-top: 15px; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-confirm:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-deep) 100%);
    transform: translateY(-1px);
}
.btn-confirm:disabled { background: #c9c2b2; color: #7c7669; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-skip {
    width: 100%; padding: 12px; background: transparent; color: var(--muted);
    border: none; font-size: 14px; font-family: inherit; cursor: pointer; margin-top: 10px;
    text-decoration: underline; transition: color 0.2s ease;
}
.btn-skip:hover { color: var(--red); }


/* ===============================================
   THANK YOU / FINAL THANK YOU PAGE STYLES
   =============================================== */
.thank-you-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.thank-you-card {
    background-color: #ffffff;
    max-width: 500px;
    width: 100%;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(27, 42, 74, 0.16);
    text-align: center;
    border-top: 6px solid var(--gold);
}

.thank-you-card .icon {
    font-size: 50px;
    color: var(--gold-deep);
    margin-bottom: 15px;
}

.thank-you-card h1 {
    font-size: 24px;
    color: var(--ink);
    margin-bottom: 10px;
}

.thank-you-card p {
    font-size: 15px;
    color: var(--body-txt);
    line-height: 1.6;
    margin-bottom: 25px;
}

.thank-you-card .home-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #f6c469 0%, var(--gold) 55%, #c07f1f 100%);
    color: #2c1f0c;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: filter 0.2s ease;
}

.thank-you-card .home-btn:hover {
    filter: brightness(0.92);
}

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