/* ==========================
   Aceroleon styles.css
   Complete file — header fixed + original site styles preserved
   Paste/overwrite your existing styles.css with this content
   ========================== */

/* Basic page settings */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Generic page container used site-wide (non-header) */
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

/* ==========================
   FIXED HEADER LAYOUT
   (Complete, self-contained header CSS)
   ========================== */

/* Header background bar */
header {
    background: #1a2a3a;
    color: white;
    border-bottom: #e8491d 3px solid;
}

/* Full-width header bar container dedicated for header elements */
.header-bar {
    width: 100%;
    max-width: 1400px;   /* center column width, change to taste */
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Branding (logo + title) on the left */
#branding {
    display: flex;
    align-items: center;
}

/* Branding title */
#branding h1 {
    margin: 0;
    padding-left: 8px;
    font-size: 32px;
    line-height: 1;
}

/* Navigation list (centered in desktop) */
header nav {
    /* nav area is centered by flex container (header-bar) + auto margins */
    display: block;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
    white-space: nowrap; /* prevent long wrapping on desktop */
}

/* Links styling (keeps your uppercase design) */
header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 18px;
    display: inline-block;
}

/* current / highlight color */
header .highlight, header .current a {
    color: #e8491d;
    font-weight: bold;
}

/* hover */
header a:hover {
    color: #e8491d;
    transition: 0.3s;
}

/* Cart icon (keeps it top-right on desktop) */
#cart-icon {
    position: relative;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Cart count badge */
#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e8491d;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

/* ==========================
   MOBILE HEADER ADJUSTMENTS
   (clean, predictable two-row behavior)
   ========================== */
@media (max-width: 768px) {

    /* grid gives precise control: branding left, cart right on row 1; nav across row 2 */
    .header-bar {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        padding: 10px 12px;
        gap: 6px;
    }

    /* Branding sits on first row, left */
    #branding {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    /* Cart top-right */
    #cart-icon {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin-right: 6px;
    }

    /* Nav spans full width below */
    header nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin-top: 6px;
    }

    header nav ul {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap; /* allow one wrap if necessary on very small screens */
        padding: 0;
        margin: 0;
    }

    header a {
        font-size: 14px;
    }

    /* Slightly smaller branding text on mobile */
    #branding h1 {
        font-size: 20px;
    }

}

/* ==========================
   Logo anchor helper (keeps logo + text aligned)
   ========================== */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Ensure no extra transform on branding heading */
.logo-link h1 {
    text-transform: none;
    font-size: 32px;
    margin: 0;
}

/* Default logo SVG sizing class (if using inline svg) */
.logo {
    width: 47px;
    height: 50px;
    cursor: pointer;
    fill: #ffffff;
    transition: fill 0.3s ease;
}
.logo:hover { fill: #ffffff; }

/* ==========================
   Showcases, features, product grid, etc.
   (kept from your original file — unchanged)
   ========================== */

#showcase {
    min-height: 100px;
    background: url('img/freezedriedlemons3.jpeg?v=1') no-repeat center center/cover;
    text-align: center;
    color: #ffffff;
    position: relative;
}
#showcase h1 {
    margin-top: 0px;
    font-size: 40px;
    margin-bottom: 0px;
}
#showcase p {
    font-size: 15px;
}
#showcase {
    transition: background-image 1s ease-in-out;
}

#features {
    margin-top: 20px;
}

/* Default (desktop) — keeps your 4× layout */
.feature-box {
    float: left;
    width: 25%;
    padding: 0px;
    text-align: center;
    cursor: pointer;
}

/* Tablets (≈768px and below) — 2 per row */
@media (max-width: 900px) {
    .feature-box { width: 50%; }
}

/* Phones (≈480px and below) — 1 per row */
@media (max-width: 480px) {
    .feature-box { width: 100%; margin-bottom: 15px; }
}

.feature-box-link {
   display: block;
   text-decoration: none;
   color: inherit;
}

/* Footer */
footer {
  padding: 5px;
  margin-top: 5px;
  color: #ffffff;
  background-color: #1a2a3a;
  text-align: center;
  border-top: #e8491d 3px solid;
}

/* CTA button */
.cta-button {
    display: inline-block;
    background: #e8491d;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 18px;
    margin-top: 20px;
}
.cta-button:hover { background: #d13d0f; }

/* Cart panel styles (unchanged) */
#cart {
    background: white;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
#cart h2 { margin-top: 0; }
#cart-items { list-style-type: none; padding: 0; }
#cart-items li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#cart-total { font-weight: bold; margin-top: 20px; text-align: right; }

/* Product grid / cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.product-card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}
.product-card:hover { transform: translateY(-10px); }
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-info { padding: 10px; }
.product-title { font-size: 1.5rem; margin-bottom: 5px; }
.product-description { font-size: 1rem; color: #666; margin-bottom: 5px; }
.product-price { font-size: 1.25rem; font-weight: bold; color: #e8491d; }

/* Buttons */
.btn {
    display: inline-block;
    background: #e8491d;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
    border-radius: 4px;
}
.btn:hover { background: #1a2a3a; }

/* Remove button */
.remove-btn {
    background: #ff4136;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}
.remove-btn:hover { background: #d63a30; }

/* Misc */
.product-title-hightlight { color: #e8491d; }
.product-card h3 { margin-top: 0; }
.product-card button {
    background: #e8491d;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
}
.product-card button:hover { background: #c73c15; }
.product-card button:active { background: #e8491d; }

/* Modal/dialog helpers */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover, .close:focus { color: black; cursor: pointer; }

/* Title modal */
#title-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); }
#title-modal-content { background-color: #fefefe; margin: 15% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 600px; text-align: center; }

/* Interface layout */
.interface-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.interface-info { flex: 1; padding-right: 40px; }
.interface-visual { flex: 1; }

/* Cart icon (kept again to ensure no conflicts) */
#cart-icon { position: relative; font-size: 24px; cursor: pointer; }
#cart-count { position: absolute; top: -10px; right: -10px; background: #e8491d; color: white; border-radius: 50%; padding: 2px 6px; font-size: 12px; }

/* Contact section */
#contact {
  background: #ffffff;
  padding: 40px 0;
}
#contact h2 { color: #1a2a3a; text-align: center; margin-bottom: 30px; }
.contact-form { background: #f9f9f9; border-radius: 5px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.form-group textarea { height: 150px; }
.form-group button { display: inline-block; background: #e8491d; color: #ffffff; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; }
.form-group button:hover { background: #c73c15; }
#contact-info { background: #1a2a3a; color: #ffffff; padding: 10px; }
#contact-info h2 { text-align: center; margin-bottom: 10px; }
.contact-details { display: flex; justify-content: space-around; flex-wrap: wrap; }
.contact-item { text-align: center; margin-bottom: 20px; }
.contact-item i { font-size: 24px; margin-bottom: 10px; }

/* Checkout form / order summary */
.checkout-form { background: white; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.1); margin-top: 20px; }
.checkout-form h2 { margin-top: 0; }
#order-summary { margin-top: 20px; background: white; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
#order-summary table { width: 100%; border-collapse: collapse; }
#order-summary th, #order-summary td { text-align: left; padding: 8px; border-bottom: 1px solid #ddd; }
#order-summary th { background-color: #f2f2f2; }

/* Coming Soon Ribbon */
.product-card.ribbon-wrapper { position: relative; overflow: hidden; }
.ribbon {
    position: absolute;
    top: 12px;
    right: -50px;
    background: #e8491d;
    color: white;
    padding: 6px 0;
    width: 200px;
    text-align: center;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Price display helpers */
.product-price { font-size: 1.1em; margin-bottom: 10px; }
.old-price { text-decoration: line-through; color: #777; margin-right: 8px; }
.sale-price { font-weight: bold; }
.discount-tag { font-weight: bold; margin-left: 8px; font-size: 0.9em; }

/* Demo launcher styling */
#demo-wrapper { margin-top: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
#launch-demo-btn { background: #e8491d; color: white; padding: 14px 28px; border: none; border-radius: 6px; font-size: 18px; cursor: pointer; margin-bottom: 20px; }
#launch-demo-btn:hover { opacity: 0.85; }
#demo-frame { width: 100%; max-width: 900px; height: 600px; border: 2px solid #ccc; border-radius: 8px; display: none; margin-top: 20px; }
@media (max-width: 768px) { #demo-frame { height: 700px; } }

/* Product details heading spacing */
#product-details h3.section-title { margin-top: 40px; }

/* Two-column capability layout */
.capability-row { display: flex; gap: 30px; align-items: flex-start; margin: 30px 0; }
.capability-text { flex: 1; min-width: 250px; }
.capability-visual { flex: 0 0 200px; max-width: 200px; }

/* Animated frame styling */
.animated-frame { width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.15); position: relative; }
.animated-img { width: 100%; display: block; animation: pulseShift 3.5s ease-in-out infinite alternate; opacity: 0.95; }
@keyframes pulseShift { 0% { transform: translateY(0px) scale(1); opacity: 0.92; } 100% { transform: translateY(-6px) scale(1.02); opacity: 1; } }

/* Mobile friendly capability stack */
@media (max-width: 800px) {
    .capability-row { flex-direction: column; align-items: center; text-align: center; }
    .capability-visual { max-width: 80%; margin-top: 20px; }
}

/* Snubber wide option */
.capability-row.snubber-wide .capability-text { flex: 1.6; min-width: 320px; }
.capability-row.snubber-wide .capability-visual { flex: 0 0 400px; max-width: 400px; }
