/*
================================================
GEOSHOPPER - Main Stylesheet
================================================
*/

/* Universal Box Sizing */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}


/* --- General & Body Styles --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.site-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

/* --- Header & Footer --- */
header, .site-footer {
    background-color: #a8c0e1;
    padding: 15px 20px;
    text-align: center;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}
header {
    border-radius: 8px;
}

.site-footer {
    border-top: 1px solid #a8c0e1;
    margin-top: 30px;
    border-radius: 8px;
}

header p, .site-footer p {
    font-size: 14px;
    color: #ffffff;
    margin: 5px 0;
}

.footer-link {
    color: #ffd04f;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.site-footer .copyright {
    font-size: 12px;
    margin-top: 15px;
}


/* --- Main Product Layout --- */
.product-main-container {
    margin-top: 20px;
}

.product-photo-section img, .feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-overview {
    padding: 0;
    background-color: #fff;
    text-align: left;
}

/* --- Product Sections --- */

.product-overview h1 {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.alert {
    font-size: 14px;
    color: #d32f2f;
    font-weight: bold;
}

.subheadline {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

.rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 10px 0;
}

.stars {
    color: #FFD700;
    font-size: 16px;
    margin-right: 5px;
}

.rating-value, .review-count {
    color: #1976d2;
    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: #333;
    font-weight: normal;
}

.benefits-list li::before {
    content: "✔";
    margin-right: 10px;
    color: #4caf50;
    font-weight: bold;
    font-size: 18px;
}
.benefits-list .icon {
    margin-right: 8px;
}
.benefits-list .icon + * {
    color: #333;
    font-weight: normal;
}
.benefits-list .highlight {
    color: #4caf50;
    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: #333;
    margin-bottom: 15px;
    text-align: center;
}

.options-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    max-width: 140px;
    text-align: center;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.option.active {
    border-color: #ffa500;
    background-color: #fff8e1;
}

.recommended { border-color: #d32f2f; }
.best-value { border-color: #1976d2; }

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    font-size: 12px;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
}

.badge.red { background-color: #d32f2f; }
.badge.blue { background-color: #1976d2; }

.small-text {
    font-size: 0.8em;
    color: #555;
}

.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;
}

.color-btn.active .color-image {
    border-color: #ffa500;
}


.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.size-chart-link {
    font-size: 14px;
    color: #888;
    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 #ddd;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s;
}
.size-option:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); }
.size-option.active {
    border-color: #ffa500;
    background-color: #fff8e1;
}

/* --- Pricing, Timer & Order Form --- */
.pricing-section {
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.regular-price {
    color: #999;
    font-size: 16px;
}
.regular-price span { text-decoration: line-through; }

.discounted-price {
    font-size: 28px;
    color: #d32f2f;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin: 5px 0;
}
.discount-badge {
    background-color: #1976d2;
    color: #fff;
    font-size: 12px;
    padding: 4px 7px;
    border-radius: 4px;
    margin-left: 10px;
}

.stock-info {
    font-size: 14px;
    margin: 10px 0;
}
.in-stock { color: #2e7d32; font-weight: bold; }
#countdown { font-weight: bold; color: #d32f2f; }
.delivery-date { font-weight: bold; }

.order-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}
.order-form label {
    font-size: 14px;
    color: #333;
    margin-bottom: -10px;
}
.order-form input[type="text"],
.order-form input[type="tel"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.order-form input:focus {
    border-color: #1976d2;
    outline: none;
}


/* --- Buttons (Consolidated) --- */
.order-button, .my-custom-scroll-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    color: #ffffff;
    background-color: #4caf50;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    margin: 10px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.order-button:hover, .my-custom-scroll-button:hover {
    background-color: #45a049;
    transform: scale(1.02);
}

.cart-icon {
    margin-right: 8px;
    font-size: 20px;
}


/* --- Other Sections (Guarantees, Features, etc.) --- */
.money-back-section {
    display: flex;
    align-items: center;
    background-color: #fff8e1;
    padding: 15px;
    border-radius: 8px;
    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; }
.money-back-content p:last-child { font-size: 14px; color: #555; }

.feature-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px 0;
}

.shipping-timer {
    text-align: center;
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
}

#shippingCountdown {
    font-size: 22px;
    color: #d32f2f;
}

.stock-remaining {
    color: #d32f2f;
    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: #f9fafb;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-section h1 {
    text-align: center;
    margin-top: 0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    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: #1976d2;
    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;
}