/*
================================================
NEOGADGETS - Main Stylesheet
Theme: Camping Lantern + Garland (Night / Green / Amber)
პალიტრა აღებულია პროდუქტის ფოტოებიდან:
night #101c2e · green #3f9a4d · amber #e8b23e · olive #5c6a45
================================================
*/

/* --- Design Tokens --- */
:root {
    --night:      #101c2e;   /* header / footer / timer (ღამის ცა) */
    --night-deep: #0a1320;
    --ink:        #26302b;   /* strong text */
    --body-txt:   #4b554d;
    --muted:      #8a8f83;

    --paper:  #edeae2;       /* page canvas */
    --card:   #f8f7f2;       /* section cards */
    --border: #e2ddd2;

    --green:      #3f9a4d;   /* მწვანე — სათაურებisა და badge-ების ფერი */
    --green-deep: #2e7a3c;
    --green-soft: #ebf5ea;

    --amber:        #e8b23e; /* გირლიანდის თბილი შუქი */
    --amber-bright: #f4c96a;
    --amber-soft:   #fdf4dd;

    --olive: #5c6a45;        /* კორპუსის ფერი — მეორადი აქცენტი */

    --red: #d0433c;          /* urgency only */

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 5px 16px rgba(16, 28, 46, 0.10);
    --font-main: 'Noto Sans Georgian', 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: var(--paper);
    color: var(--body-txt);
}

::selection {
    background: rgba(232, 178, 62, 0.35);
}

:focus-visible {
    outline: 3px solid rgba(63, 154, 77, 0.5);
    outline-offset: 2px;
}

.site-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(16, 28, 46, 0.14);
    background-color: #ffffff;
}

@media (min-width: 760px) {
    .site-container {
        margin: 20px auto;
        border-radius: 18px;
    }
}

/* --- Header & Footer --- */
header, .site-footer {
    background-color: var(--night);
    padding: 15px 20px;
    text-align: center;
    color: #ffffff;
}
header {
    border-radius: var(--radius);
}

.site-footer {
    background-color: var(--night-deep);
    border-top: 1px solid var(--night-deep);
    margin-top: 30px;
    border-radius: var(--radius);
}

header p, .site-footer p {
    font-size: 14px;
    color: #d9dfd6;
    margin: 5px 0;
}

.footer-link {
    color: var(--amber-bright);
    text-decoration: none;
}

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

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

/* სპეციალური შემოთავაზების სტილური წარწერა — ქარვისფერი "კოცონის" ჩიპი */
.special-offer-title {
    background: linear-gradient(180deg, var(--amber-bright) 0%, #dfa62e 100%);
    color: #241c08;
    display: inline-block;
    padding: 12px 35px;
    border-radius: 999px;
    box-shadow: 0 5px 15px rgba(232, 178, 62, 0.35);
    font-size: 20px;
    font-weight: 800;
    margin-top: 5px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.45);
}


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

.product-photo-section img, .feature-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    border: 1px solid rgba(16, 28, 46, 0.10);
    box-shadow: var(--shadow-card);
}

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

/* --- Product Sections --- */

.product-overview h1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ink);
    margin: 10px 0;
}

.alert {
    font-size: 14px;
    color: var(--red);
    font-weight: bold;
}

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

.rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 10px 0;
}

.stars {
    color: var(--amber);
    font-size: 16px;
    margin-right: 5px;
}

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

.benefits-list {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
    font-size: 14px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--body-txt);
    line-height: 1.55;
    font-weight: normal;
}

.benefits-list li::before {
    content: "✔";
    margin-right: 10px;
    color: var(--green);
    font-weight: bold;
    font-size: 18px;
}
.benefits-list .icon {
    margin-right: 8px;
}
.benefits-list .icon + * {
    color: var(--body-txt);
    font-weight: normal;
}
.benefits-list .highlight {
    color: var(--green-deep);
    font-weight: bold;
}

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

.options-section h2, .size-section h2 {
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 15px;
    text-align: center;
}

/* განახლებული უჯრების დიზაინი */
.options-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: stretch; 
}

.option {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 22px 10px 15px;
    flex: 1;
    max-width: 150px;
    text-align: center;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(16, 28, 46, 0.05);
}

.option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(16, 28, 46, 0.12);
}

.option.active {
    border-color: var(--green); 
    background-color: #f4f9f1;
    box-shadow: 0 6px 15px rgba(63, 154, 77, 0.22);
}

.recommended { border-color: var(--amber); }
.best-value { border-color: var(--green); }

.qty-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}

.price-main {
    font-size: 26px; 
    font-weight: bold;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 5px;
}

.unit-price-box {
    background-color: var(--green-soft);
    color: var(--green-deep);
    width: 100%;
    padding: 6px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    margin-top: auto; 
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    font-size: 12px;
    color: #fff;
    border-radius: 20px; 
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* .red = "პოპულარული" (ქარვისფერი ჩიპი), .blue = "საუკეთესო" (მწვანე) */
.badge.red {
    background: linear-gradient(180deg, var(--amber-bright), #dda32a);
    color: #241c08;
}
.badge.blue {
    background: linear-gradient(180deg, #4aae5c, var(--green-deep));
}

.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: var(--radius-sm);
  transition: border 0.2s ease;
}

.color-btn.active .color-image {
    border-color: var(--green);
}


.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

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

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

.size-option {
    flex: 1;
    max-width: 80px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--ink);
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s;
}
.size-option:hover { box-shadow: 0 2px 6px rgba(16, 28, 46, 0.12); }
.size-option.active {
    border-color: var(--green);
    background-color: var(--green-soft);
}

/* --- Pricing, Timer & Order Form --- */
.pricing-section {
    padding: 20px;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 20px;
    box-shadow: 0 2px 6px rgba(16, 28, 46, 0.06);
    text-align: left;
}

.pricing-section h2 {
    color: var(--ink);
    font-size: 18px;
}

.regular-price {
    color: var(--muted);
    font-size: 16px;
}
.regular-price span { text-decoration: line-through; }

.discounted-price {
    font-size: 28px;
    color: var(--red);
    font-weight: bold;
    display: flex;
    align-items: center;
    margin: 5px 0;
}
.discount-badge {
    background-color: var(--green);
    color: #fff;
    font-size: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    margin-left: 10px;
}

.stock-info {
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.6;
}
.in-stock { color: var(--green-deep); font-weight: bold; }
#countdown { font-weight: bold; color: var(--red); }
.delivery-date { font-weight: bold; color: var(--ink); }

.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}
.order-form label {
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: -10px;
}
.order-form input[type="text"],
.order-form input[type="tel"] {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    font-family: inherit;
    color: var(--ink);
    border: 1px solid #d6d1c4;
    border-radius: var(--radius-sm);
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.order-form input::placeholder { color: #a39e90; }
.order-form input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(63, 154, 77, 0.16);
    outline: none;
}


/* --- Buttons (Consolidated) --- */
.order-button, .my-custom-scroll-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-family: inherit;
    color: #ffffff;
    background: linear-gradient(180deg, #4aae5c 0%, #379149 55%, var(--green-deep) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-align: center;
    margin: 10px auto;
    box-shadow: 0 7px 16px rgba(46, 122, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.order-button:hover, .my-custom-scroll-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(46, 122, 60, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

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

.order-button:disabled {
    filter: grayscale(0.5) brightness(1.1);
    cursor: not-allowed;
    transform: none;
}

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


/* --- Other Sections (Guarantees, Features, etc.) --- */
.money-back-section {
    display: flex;
    align-items: center;
    background-color: var(--amber-soft);
    border: 1px solid #efd9a5;
    padding: 15px;
    border-radius: var(--radius);
    margin-top: 20px;
}

.badge-icon {
    width: 50px;
    height: auto;
    margin-right: 15px;
}

.money-back-content p { margin: 0; }
.money-back-content p:first-child { font-weight: bold; font-size: 16px; color: var(--ink); }
.money-back-content p:last-child { font-size: 14px; color: var(--body-txt); }

.feature-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px 0;
}

/* ღამის ზოლი — კემპინგის ფოტოების განწყობა, ქარვისფერი წამზომით */
.shipping-timer {
    text-align: center;
    background-color: var(--night);
    color: #e9eef4;
    padding: 20px;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
    box-shadow: var(--shadow-card);
}

#shippingCountdown {
    font-size: 22px;
    color: var(--amber-bright);
}

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


/* ===============================================
   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: 15px;
        margin-top: 20px;
    }
    .mobile-features {
        display: none;
    }

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

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

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

/* Smaller screen adjustments */
@media (max-width: 799px) {
    .site-container {
        padding: 10px;
    }
    .mobile-features {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   STYLES FOR INFO SECTIONS
   =============================================== */
.info-section {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 2px 5px rgba(16, 28, 46, 0.05);
}

.info-section h1 {
    text-align: center;
    color: var(--ink);
    margin-top: 0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e4dfd3;
    font-size: 22px;
}

#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-color: var(--olive);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 16px;
}


/* ADD THIS RULE TO HIDE THE SIZE SECTION */
.size-section {
    display: none;
}

.form-group {
    display: none;
}


/* ===============================================
   MODAL (POPUP) STYLES
   =============================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 19, 32, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
}
.modal-content {
    background: #ffffff;
    padding: 30px; 
    border-radius: 14px; 
    border: 1px solid var(--border);
    max-width: 420px; width: 90%; text-align: center;
    box-shadow: 0 12px 30px rgba(10, 19, 32, 0.28);
    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: 1px solid #d6d1c4;
    border-radius: var(--radius-sm); font-size: 16px; color: var(--ink);
    font-family: inherit; box-sizing: border-box; transition: all 0.2s ease;
}
.modal-content input::placeholder { color: #a39e90; }
.modal-content input:focus { 
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(63, 154, 77, 0.16);
    outline: none; 
}
.btn-confirm {
    width: 100%; padding: 15px; 
    background: linear-gradient(180deg, #4aae5c 0%, #379149 55%, var(--green-deep) 100%);
    color: #ffffff;
    border: none; border-radius: 10px; font-size: 18px; font-weight: 800;
    font-family: inherit;
    box-shadow: 0 7px 16px rgba(46, 122, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    cursor: pointer; margin-top: 15px; transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-confirm:hover { 
    filter: brightness(1.06); transform: translateY(-1px); 
}
.btn-confirm:disabled { background: #c9c5ba; color: #ffffff; box-shadow: none; cursor: not-allowed; transform: none; filter: 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: 14px;
    box-shadow: 0 12px 30px rgba(16, 28, 46, 0.16);
    text-align: center;
    border-top: 6px solid var(--green);
}

.thank-you-card .icon {
    font-size: 50px;
    color: var(--green);
    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-color: var(--green-deep);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.thank-you-card .home-btn:hover {
    background-color: #256632;
}

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