/* Global page styles */
* {
    box-sizing: border-box;
}

html {
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #fff;
}

body {
    margin: 0;
    padding: 0;
    padding-bottom: 100px;
    min-height: 100vh;
    border: none;
    line-height: 1.85;
    font-size: 16px;
    color: #f1f1f1;
}

body,
button,
input,
select,
textarea {
    font: inherit;
}

main {
    padding-top: 24px;
}

h1,
h2,
h3 {
    color: #ffd700;
    margin: 0 0 0.9rem 0;
}

a {
    color: #00bfff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header,
main,
footer,
section,
aside {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 16px;
}

header {
    padding-top: 20px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

:root {
    --primary: #16a34a;
    --secondary: #1e3a8a;
    --accent: #FFD700;
    --bg: #ffffff;
    --text: #222222;
    --light: #f5f7fa;
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 0;
    background: transparent;
    margin: 0 15px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: bold;
}

section,
aside {
    background-color: transparent;
    border: none;
    padding: 48px 16px;
    margin: 32px 0;
}

footer {
    text-align: center;
    padding: 30px;
    color: #555;
    border-top: 1px solid #ddd;
    background: #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th,
td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #222;
}

tbody tr:nth-child(even) {
    background-color: #141414;
}

figure {
    margin: 1rem 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

ul {
    padding-left: 1.25rem;
}

ul li {
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pricing-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 1rem 0;
}

.pricing-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.25rem;
}

    .products-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 2rem;
    align-items: start;
    margin-top: 24px;
}

    /* Horizontal product row: show cards in a single horizontal scroller */
    .product-grid {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    padding-bottom: 8px;
}

    .product-grid::-webkit-scrollbar { height: 8px; }
    .product-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 4px; }

    .product-image {
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
    width: 100%;
    height: auto;
}

    .product-image img { width: 100%; height: auto; object-fit: cover; display:block; }

    /* Only show the product name (h3) for a cleaner card; hide descriptions and price */
    .product-card .product-info .product-desc,
    .product-card .product-info ul,
    .product-card .price {
    display: none;
}

    .product-card .product-info h3 { margin: 6px 0 0; font-size: 1rem; color: #fff; }

    /* Make the Cold & Flu card a bit smaller */
    .product-card[data-product-id="cold-flu-care"] { flex: 0 0 200px; min-width: 180px; }
}

#second-div {
    background-color: #5c4db2;
}

#third-div {
    background-color: #4da3b2;
}

@media (max-width: 700px) {
    /* remove decorative body border on small screens */

    header,
    main,
    footer,
    section,
    aside {
        padding: 0 12px;
    }

    nav {
        justify-content: center;
    }

    nav a {
        flex: 1 1 120px;
        text-align: center;
    }

    th,
    td {
        padding: 8px;
        font-size: 0.95rem;
    }

    .price {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    /* remove decorative body border on extra-small screens */

    header {
        padding-top: 15px;
    }

    nav a {
        flex: 1 1 100%;
    }

    section,
    aside {
        padding: 12px;
    }

    .pricing-card {
        padding: 1rem;
    }

    .price {
        font-size: 1.4rem;
    }
}
    .container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        grid-auto-rows: auto;
        gap: 10px;
        overflow: auto;
        border: none;
        background-color: transparent;
        padding: 10px;
    }

    .hidden {
        display: none;
    }

    .order-section {
        padding: 30px 20px;
        background-color: transparent;
        border: none;
        border-radius: 0;
    }

    .order-section .order-summary {
        margin-bottom: 20px;
        padding: 20px;
        background: transparent;
        border: none;
        border-radius: 8px;
    }

    .order-section .order-summary h3 {
        margin-bottom: 12px;
        color: var(--accent-teal);
    }

    .order-section .order-summary ul {
        margin: 0;
        padding-left: 1.25rem;
    }

    .order-section .form-row {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .order-section input,
    .order-section textarea {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #333;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.03);
        color: #fff;
    }

    .order-section .order-message {
        margin-top: 20px;
        padding: 16px;
        border-radius: 8px;
        border: 1px solid transparent;
    }

    .order-message--success {
        background: #092a0a;
        color: #b8ffb8;
        border-color: #0f7d17;
    }

    .order-message--error {
        background: #3a1010;
        color: #ffb8b8;
        border-color: #a50f0f;
    }

    .order-message--warning {
        background: #3d3315;
        color: #fff1a8;
        border-color: #a58f2f;
    }
    /* remove stray resize rule and inner borders */

    .container > div {
        border: none;
    }
    

    .item {
        background-color: orange;
        border: 1px solid orangered;
        text-align: center;
        color: white;
        font-family: sans-serif;
        font-size: 1.2rem;
        padding: 20px;
    }
    .project-card {
        transition: 0.3s;
    }
    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
    }

    .tag {
        background-color: #333;
        color: gold;
        padding: 5px 12px;
        border-radius: 20px;
        margin-right: 8px;
        display: inline-block;
        margin-top: 10px;
    }

    .project-card:hover {
        transform: scale(1.05);
        background-color: gold;
    }
    .project-link {
        display: inline-block;
        margin-top: 12px;
        padding: 10px 20px;
        background-color: #00d4ff;
        color: black;
        border-radius: 25px;
        transition: 0.3s;
        font-weight: bold;
        text-decoration: none;
    }


.button,
.cta-button,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.cta-button,
.btn-primary {
    background-color: #00bfff;
    color: #0b111e;
}

.btn-secondary {
    background-color: #ffd700;
    color: #111;
}

.button:hover,
.cta-button:hover,
.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Ensure CTA buttons used in pages match the nav-cta style */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 2px solid var(--accent-teal);
    color: var(--accent-teal);
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.cta-button:hover {
    background-color: var(--accent-teal);
    color: var(--bg-dark);
    box-shadow: 0 6px 18px rgba(0,245,212,0.12);
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.products-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 2rem;
    align-items: start;
    margin-top: 24px;
}

.product-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
    background-color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s;
    box-shadow: 0 5px 18px rgba(0,0,0,0.8);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(0,0,0,0.18);
}

.height {
    height: 100px;
    overflow: hidden;
}
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 80px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(180deg,#25D366,#1da851);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    text-decoration: none;
    z-index: 997;
}

.whatsapp-float svg {
    display: block;
}

.whatsapp-label {
    font-weight: 700;
}

@media (max-width: 480px) {
    .whatsapp-float {
        padding: 10px;
    }
    .whatsapp-label { display: none; }
}

.product-image img {
    width: 100%;
    display: block;
    height: auto;
}

.product-info ul {
    margin: 0;
    padding-left: 1rem;
    list-style: disc;
}

.button-group {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.cart-panel {
    background-color: transparent;
    border: none;
    border-radius: 12px;
    padding: 30px 20px;
}

.cart-panel h2 {
    margin-top: 0;
    color: var(--accent-teal);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    color: #d3d3d3;
}

.cart-item strong {
    color: #fff;
}

.cart-total {
    font-size: 1.1rem;
    margin-top: 1rem;
    color: #fff;
}

.detail-panel {
    display: grid;
    gap: 20px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    padding: 30px 20px;
    margin: 20px 0;
}

.detail-panel .detail-image {
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
}

.detail-panel .detail-image img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.product-features {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        position: static;
    }
}

@media (max-width: 700px) {
    .detail-panel {
        gap: 0.8rem;
        padding: 1rem;
        margin: 1rem 0;
    }

    .detail-panel h2 {
        font-size: 1.2rem;
    }

    .detail-panel .detail-image {
        max-height: 250px;
    }

    .detail-panel .detail-image img {
        max-height: 250px;
        object-fit: cover;
    }

    .product-features {
        font-size: 0.9rem;
    }

    .contact-section {
        padding: 40px 6%;
    }

    .contact-grid {
        gap: 16px;
    }

    .contact-method {
        padding: 20px 16px;
    }

    .contact-method h3 {
        font-size: 16px;
    }

    .contact-form-section {
        max-width: 100%;
        padding: 24px 16px;
        margin: 40px auto;
    }

    .contact-form-section h2 {
        font-size: 1.3rem;
    }

    .contact-form-section input,
    .contact-form-section textarea,
    .contact-form-section select {
        font-size: 16px;
        padding: 10px 12px;
    }
}

@media (max-width: 700px) {
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

   body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #222;
    padding: 0;
   }

   .main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 8%;
    background-color: rgba(11, 17, 30, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
   }

   .logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    flex-shrink: 0;
   }

   .logo span {
    color: var(--accent-teal);
   }

   .nav-links {
    display: flex;
    gap: 30px;
    flex: 1;
   }

   .nav-links a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s;
    padding: 0;
    background: none;
    border: none;
    margin: 0 15px;
   }

   .nav-links a:hover, .nav-links a.active {
    color: #16a34a;
   }

   /* Search Bar */
    .search-bar {
     display: flex;
     align-items: center;
     background-color: transparent;
     border: none;
     border-radius: 0;
     padding: 8px 6px;
     gap: 10px;
     flex: 1;
     max-width: none;
    }

   .search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 14px;
    outline: none;
    font-family: inherit;
   }

   .search-bar input::placeholder {
    color: var(--text-grey);
   }

   .search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    color: var(--text-grey);
   }

   /* Fixed Bottom Navigation */
    .bottom-nav {
     position: fixed;
     bottom: 0;
     left: 0;
     right: 0;
     display: flex;
     justify-content: space-around;
     align-items: center;
     background-color: transparent;
     border-top: 1px solid rgba(255, 255, 255, 0.06);
     padding: 6px 0 10px 0;
     z-index: 998;
     height: 62px;
    }

    .nav-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     width: auto;
     height: auto;
     font-size: 22px;
     text-decoration: none;
     color: #999;
     transition: color 0.3s, transform 0.2s;
     border-radius: 0;
     gap: 4px;
     padding: 4px 6px;
    }

   .nav-item:hover {
    color: var(--text-white);
    transform: translateY(-1px);
   }

   .nav-item.active {
    color: #ffd700;
   }

   .nav-label {
    font-size: 12px;
    line-height: 1.2;
    color: inherit;
    white-space: nowrap;
   }

   .nav-item.active .nav-label {
    color: #ffd700;
   }

   .account-page main {
    padding: 60px 8% 90px 8%;
   }

   .account-panel {
    max-width: 420px;
    margin: 0 auto;
    padding: 30px 24px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
   }

   .account-panel-header {
    margin-bottom: 24px;
    text-align: center;
   }

   .account-heading {
    font-size: 1.2rem;
    color: #fff;
    margin: 10px 0 0;
    line-height: 1.4;
    font-weight: 600;
   }

   .account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
   }

   .login-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
   }

   .login-toggle.active,
   .login-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.28);
   }

   .account-form {
    display: grid;
    gap: 18px;
   }

   .form-label {
    color: #ccc;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
   }

   .account-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    color: #fff;
    font-size: 1rem;
   }

   .account-form input::placeholder {
    color: #777;
   }

   .remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
   }

   .remember-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
   }

   .remember-row input {
    width: auto;
    accent-color: var(--accent-teal);
   }

   .forgot-link {
    color: #2ecc71;
    text-decoration: none;
    font-weight: 600;
   }

   .forgot-link:hover {
    text-decoration: underline;
   }

   .signup-cta {
    width: 100%;
    background-color: #dc2626;
    color: #fff;
    border-radius: 14px;
    padding: 14px 0;
    font-weight: 700;
    border: none;
   }

   .signup-cta:hover {
    background-color: #b91c1c;
   }

   .account-signup-text {
    text-align: center;
    color: #ccc;
    margin-top: 16px;
    font-size: 0.95rem;
   }

   .alt-signup {
    color: #22c55e;
    font-weight: 700;
    text-decoration: none;
   }

   .alt-signup:hover {
    text-decoration: underline;
   }

   .hero-section {
    padding: 120px 8% 80px 8%;
    display: flex;
    align-items: center;
    min-height: 60vh;
   }

    .hero-content {
     max-width: 720px;
     margin: 0 auto;
    }


.badge {
    background-color: rgba(0, 245, 212, 0.1);
    color: var(--accent-teal);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 24px;
    line-height: 1.14;
    margin-top: 20px;
}

.hero-content p {
    font-size: 1rem;
    color: var(--text-grey);
    margin-bottom: 36px;
    line-height: 1.9;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Allow pages using .hero to share hero-section styles */
.hero {
    padding: 140px 8% 90px 8%;
    display: flex;
    align-items: center;
    min-height: 64vh;
}
    transition: transform 0.2s;
    display: inline-block;
    margin-right: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 8%;
}

/* alias singular class used in some pages */
.feature-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 8%;
}

.feature-card {
    background-color: rgba(255,255,255,0.03);
    padding: 30px 26px;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.14);
}

.feature-card h3 {
    margin-top: 0;
    font-size: 20px;
    color: var(--accent-teal);
}

.feature-card p {
    color: var(--text-grey);
    margin: 0;
    line-height: 1.6;
}

/* Testimonials section */
.testimonials {
    padding: 60px 8%;
}

.testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--accent-teal);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background-color: transparent;
    border: none;
    border-radius: 8px;
    padding: 30px 20px;
    line-height: 1.8;
}

.testimonial-text {
    color: var(--text-grey);
    font-size: 15px;
    margin: 0 0 12px 0;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent-teal);
    margin: 0;
    font-size: 14px;
}

/* Contact info grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-block {
    background-color: transparent;
    border: none;
    border-radius: 8px;
    padding: 20px;
}

.contact-block h3 {
    margin-top: 0;
    font-size: 16px;
    color: var(--accent-teal);
}

.contact-block p {
    margin: 8px 0 0 0;
    line-height: 1.6;
    color: #fff;
}

.contact-block a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
}

.contact-block a:hover {
    text-decoration: underline;
}

/* Product description styling */
.product-desc {
    font-size: 14px;
    color: var(--text-grey);
    margin: 8px 0 12px 0;
    line-height: 1.5;
}

/* Form select styling */
.order-section select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #333;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.order-section select:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 8px rgba(0, 245, 212, 0.2);
}

/* Contact page styles */
.contact-section {
    padding: 60px 8%;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.contact-method {
    background-color: transparent;
    border: none;
    border-radius: 8px;
    padding: 30px 20px;
}

.contact-method h3 {
    margin-top: 0;
    font-size: 18px;
    color: var(--accent-teal);
}

.contact-method p {
    margin: 8px 0;
    line-height: 1.6;
}

.contact-desc {
    font-size: 14px;
    color: var(--text-grey);
    margin-top: 12px;
}

.contact-method a {
    color: var(--accent-teal);
    font-weight: 600;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-form-section {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px 30px;
    background-color: transparent;
    border: none;
    border-radius: 0;
}

.contact-form-section h2 {
    text-align: center;
    margin-top: 0;
}

.contact-form-section p {
    text-align: center;
    color: var(--text-grey);
    margin-bottom: 24px;
}

.contact-form-section form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-section .form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form-section label {
    font-weight: 600;
    color: var(--accent-teal);
}

.contact-form-section input,
.contact-form-section textarea,
.contact-form-section select {
    padding: 10px 14px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #0B111E;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus,
.contact-form-section select:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 8px rgba(0, 245, 212, 0.15);
}

.contact-form-section button {
    align-self: flex-start;
}

/* Responsive header, hero and nav tweaks for small screens */
@media (max-width: 900px) {
    .main-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 5%;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    .search-bar {
        max-width: none;
        width: 100%;
        order: 3;
        padding: 60px 6% 40px 6%;
    }
}

@media (max-width: 700px) {
    .hero-content h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 6%;
    }

    .feature-card {
        padding: 24px 18px;
    }

    .feature-card h2,
    .feature-card h3 {
        font-size: 18px;
    }

    .testimonials {
        padding: 40px 6%;
    }

    .testimonials h2 {
        font-size: 28px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .button,
    .cta-button,
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.1rem;
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button-group {
        flex-direction: column;
    }

    .products-layout {
        gap: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        padding: 16px;
    }

    .product-image {
        max-height: 220px;
    }

    .product-image img {
        max-height: 220px;
        object-fit: cover;
        width: 100%;
    }

    .detail-panel {
        gap: 0.8rem;
        padding: 20px 12px;
        margin: 20px 0;
    }

    .detail-panel h2 {
        font-size: 1.2rem;
    }

    .contact-section {
        padding: 40px 6%;
    }

    .contact-grid {
        gap: 16px;
    }

    .contact-method {
        padding: 20px 16px;
    }

    .contact-form-section {
        max-width: 100%;
        padding: 24px 16px;
        margin: 40px auto;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 5%;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 16px;
        flex-basis: 100%;
    }

    .nav-links {
        gap: 12px;
        font-size: 13px;
    }

    .search-bar {
        max-width: none;
        width: 100%;
        flex-basis: 100%;
        order: 3;
    }

    .search-bar input::placeholder {
        font-size: 12px;
    }

    .bottom-nav {
        height: 65px;
        padding: 6px 0;
    }

    .nav-item {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .hero-content h1 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .nav-links a {
        flex: none;
        text-align: center;
        font-size: 0.9rem;
        padding: 0;
    }

    .product-grid, .testimonial-grid, .pricing-container {
        grid-template-columns: 1fr;
    }

    /* Scale down feature cards for mobile */
    .feature-card {
        padding: 20px 12px;
    }

    .feature-card h2,
    .feature-card h3 {
        font-size: 16px;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    /* Scale down buttons for mobile */
    .button,
    .cta-button,
    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .hero-buttons {
        gap: 8px;
    }

    .button-group {
        gap: 0.6rem;
        flex-direction: column;
    }

    /* Reduce image sizes for mobile */
    .product-image {
        max-height: 200px;
        overflow: hidden;
    }

    .product-image img {
        max-height: 200px;
        object-fit: cover;
    }

    /* Testimonials text size reduction */
    .testimonial-card {
        padding: 20px 12px;
    }

    .testimonial-text {
        font-size: 0.85rem;
    }

    .testimonial-author {
        font-size: 0.8rem;
    }

    /* Hero section padding reduction */
    .hero, .hero-section {
        padding: 40px 5% 30px 5%;
        min-height: auto;
    }

    /* Badge and text scaling */
    .badge {
        font-size: 12px;
        padding: 4px 12px;
    }

    /* Product card text reduction */
    .product-desc {
        font-size: 0.85rem;
    }

    .product-card {
        padding: 16px;
    }

    .product-card h3 {
        font-size: 1rem;
    }

    .price {
        font-size: 1.3rem;
    }

    /* Contact section mobile adjustments */
    .contact-grid {
        gap: 16px;
    }

    .contact-method {
        padding: 20px 12px;
    }

    .contact-method h3 {
        font-size: 16px;
    }

    .contact-form-section {
        padding: 24px 12px;
        margin: 40px auto;
    }

    .detail-panel {
        padding: 16px;
    }
}