/* Color Variables */
:root {
    --primary-color: #ED9C61;
    --bg-color: #FFF4EC;
    --text-color: #523825;
    --heading-color: #4a3320;
    --text-muted: #a6988d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #FFFCF9;
}




/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-color);
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    width: 35px;
    height: 55px;
}

.brand-text {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Right Side Container */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Profile icon ekai cart ekai athara dura */
}

.profile-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    /* margin-left: -190px; meka ain kara */
}

.profile-icon:hover {
    transform: scale(1.08);
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

/* Link Hover Animation */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Cart Button */
.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(239, 160, 102, 0.3);
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s ease;
}










/* Hero Section Styling */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
    /* Oya kiyapu widiyata Gradient background eka */
    background: linear-gradient(to bottom, #FFFCF9 0%, #FFF4EC 30%, #FFF4EC 70%, #FFFCF9 100%);
    min-height: calc(100vh - 80px);
    overflow: hidden;
    gap: 40px;
    /* Depaththa athara ida wadi kara balance wenna */
}

/* Hero Left (Image) */
.hero-left {
    flex: 1.2;
    /* Text eka thiyena kotasata wada poddak wadi ida pramanayak image ekata labadunna */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: slideInLeft 1s ease-out forwards;
}

.hero-img {
    width: 100%;
    /* Image eka container eke palalata loku wenna dila thiyenne */
    max-width: 1100px;
    /* Loku screens waladi hadawata wada loku wena eka nawathwanna */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
}

/* Hero Right (Text & Buttons) */
.hero-right {
    flex: 1;
    animation: slideInRight 1s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Pahatha thiyena Text saha Button styling kalin eka wagemayi... */
.hero-title {
    font-size: 7rem;
    color: var(--heading-color);
    line-height: 1.05;
    margin-bottom: 45px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
    font-weight: 500;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(239, 160, 102, 0.3);
}

.btn-fill {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-fill:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(239, 160, 102, 0.3);
}

.btn-fill .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-fill:hover .arrow {
    transform: translateX(6px);
    /* Arrow eka issarahata yana animation eka */
}

/* Animations Page load weddi */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}










/* Features Cards Section Styling */

.features-section {
    padding: 60px 5%;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Samana thiru 3k */
    gap: 60px;
    max-width: 1800px;
    margin: 0 auto;
    /* Center karanna */
}

/* Card Styling */
.feature-card {
    background-color: var(--bg-color);
    /* Light cream/peach paata */
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10), 2px 2px 8px rgba(0, 0, 0, 0.009);
    transition: transform 0.4s ease, box-shadow 0.4s ease;

    /* Animation setup */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

/* Hover Animation */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.12);
}

/* Icon Container */
.feature-icon {
    width: 75px;
    height: 75px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Text Styling */
.feature-title {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.feature-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 500;
}

/* Staggered Entrance Animations (Eken eka load wenna) */
.card-1 {
    animation-delay: 0.1s;
}

.card-2 {
    animation-delay: 0.3s;
}

.card-3 {
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}










/* About Section */

.about-section {
    padding: 60px 5%;
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 500;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mv-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mv-card h4 {
    font-size: 1.4rem;
    color: var(--heading-color);
    font-weight: 800;
    margin-bottom: 10px;
}

.mv-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}










/* Categories Section Styling */

.categories-section {
    padding: 80px 5%;
}

/* Header & Titles */
.cat-header-container {
    display: flex;
    justify-content: center;
    /* Center the title block */
    position: relative;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cat-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cat-main-title {
    font-size: 2.2rem;
    color: var(--heading-color);
    font-weight: 800;
    letter-spacing: 1px;
}

.cat-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.cat-underline {
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

.view-all {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--primary-color);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    max-width: 1500px;
    margin: 0 auto;
}

/* Individual Card */
.cat-card {
    background-color: var(--bg-color);
    /* Cream color */
    padding: 40px 20px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10), 2px 2px 8px rgba(0, 0, 0, 0.009);
    transition: transform 0.4s ease, box-shadow 0.4s ease;

    /* Animation setup */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;

}

.cat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.12);
}

.cat-icon {
    width: 75px;
    height: 75px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    color: white;
}

.cat-name {
    font-size: 1.4rem;
    color: var(--heading-color);
    font-weight: 800;
    margin-bottom: 25px;
}

/* Dark Brown Button */
.btn-dark {
    background-color: var(--heading-color);
    /* Dark brown color */
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-dark:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

/* Animation Delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}










/* Prescription Section Styling */

.prescription-section {
    padding: 60px 5%;
    /* White background to make banner pop */
    display: flex;
    justify-content: center;
}

.prescription-banner {
    background-color: #fce1cc;
    /* Light peach/orange background matching image */
    width: 100%;
    max-width: 1200px;
    border-radius: 35px;
    padding: 50px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;

    /* Reveal Animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

/* Background Watermark Icon */
.watermark-cross {
    position: absolute;
    right: -50px;
    bottom: -0px;
    width: 400px;
    height: auto;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

.watermark-cross img {
    width: 100%;
    display: block;
}

/* Text Content */
.presc-text {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.presc-text h2 {
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.presc-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    /* Background ekata galapena dark muted color ekak */
    line-height: 1.6;
    font-weight: 600;
}

/* Upload Button */
.presc-btn-container {
    position: relative;
    z-index: 2;
}

.btn-upload {
    background-color: var(--primary-color);
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(239, 160, 102, 0.3);
}

.btn-upload:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(239, 160, 102, 0.4);
    background-color: #e89254;
    /* Hover weddi poddak dark wenawa */
}

/* Hover Animation for Icon */
.btn-upload svg {
    transition: transform 0.3s ease;
}

.btn-upload:hover svg {
    transform: translateY(-4px);
    /* Arrow eka udata yana animation eka */
}










/* Contact Section Styling */

.contact-section {
    padding: 80px 5%;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-color);
    border-radius: 35px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.contact-card-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    text-align: left;
}

.contact-detail-box {
    background-color: white;
    padding: 25px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.contact-detail-box:hover {
    transform: translateY(-5px);
}

.contact-detail-box svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-detail-box strong {
    display: block;
    color: var(--heading-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-detail-box span {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}









/* Footer Section Styling */

.footer {
    background-color: var(--heading-color);
    /* Dark brown color */
    color: #FFFCF9;
    padding-top: 70px;
    margin-top: 50px;
}

.footer-container {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    /* Column 1 ekata ida wadiyen thiyenawa */
    gap: 40px;
}

.footer-col {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

/* Typography in Footer */
.footer-brand {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #FFFCF9;
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #FFFCF9;
}

.footer-desc {
    color: #d1c8c1;
    /* Light faded brown/gray */
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
    max-width: 90%;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #FFFCF9;
    border-radius: 50%;
    color: #FFFCF9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Lists and Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #d1c8c1;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    /* Hover weddi poddak issarahata yanawa */
}

.footer-text-list {
    list-style: none;
}

.footer-text-list li {
    color: #d1c8c1;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer Bottom Area */
.footer-bottom {
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #8a7a6c;
    /* Muted color for copyright */
    font-size: 0.95rem;
}














/* Responsive Design (Mobile & Tablets) */


/* Navigation */

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        text-align: center;
        gap: 0;
        transition: 0.4s ease-in-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        padding: 20px 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Hamburger Animation to X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

@media (max-width: 600px) {

    /* Mobile eke podi weddi hadaganna */
    .brand-text {
        font-size: 1.1rem;
    }

    .logo-circle,
    .profile-icon {
        width: 35px;
        height: 35px;
    }

    .profile-icon svg {
        width: 20px;
        height: 20px;
    }

    .cart-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .nav-right {
        gap: 8px;
        /* Mobile eke ida ithuru karanna gap eka adu kara */
    }
}







/* Hero Section */

@media (max-width: 990px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        margin-top: 20px;
    }

    .hero-right {
        padding-left: 0;
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 3.8rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        /* Mobile waladi buttons full width wenawa */
    }
}







/* Features Cards Section */

@media (max-width: 990px) {
    .features-container {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet ekedi thiru 2k */
    }
}

@media (max-width: 650px) {
    .features-container {
        grid-template-columns: 1fr;
        /* Mobile ekedi ekama thiruwata (column) wetena widiyata */
        gap: 20px;
    }

    .feature-card {
        padding: 40px 20px;
    }
}







/* Categories Section */

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Tablet waladi thiru 2i */
    }
}

@media (max-width: 768px) {
    .cat-header-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .view-all {
        position: static;
        /* Mobile waladi 'View All' eka madata enawa */
    }
}

@media (max-width: 500px) {
    .categories-grid {
        grid-template-columns: 1fr;
        /* Mobile waladi ekama thiruwata wenas wenawa */
    }

    .cat-main-title {
        font-size: 1.8rem;
    }
}







/* Prescription Section */

@media (max-width: 900px) {
    .prescription-banner {
        flex-direction: column;
        text-align: center;
        padding: 45px 30px;
        gap: 30px;
        border-radius: 25px;
    }

    .presc-text h2 {
        font-size: 1.8rem;
    }

    .watermark-cross {
        right: 50%;
        transform: translate(50%, -50%);
        opacity: 0.5;
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 500px) {
    .presc-text h2 {
        font-size: 1.5rem;
    }

    .presc-text p {
        font-size: 1rem;
    }

    .btn-upload {
        width: 100%;
        justify-content: center;
    }
}







/* Footer Section */

@media (max-width: 990px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        /* Tablet ekedi thiru 2i */
        gap: 50px 30px;
    }

    .footer-desc {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        /* Mobile ekedi 1 thiruwai */
        gap: 40px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        /* Center icons in mobile */
    }

    .footer-links a:hover {
        transform: translateX(0);
        /* Center wela thiyena nisa X-axis transform ain kara */
        transform: translateY(-3px);
    }
}


/* Responsive by device ranges */

@media (min-width: 1025px) and (max-width: 1200px) {
    .hero {
        gap: 24px;
    }

    .hero-title {
        font-size: 5rem;
        margin-bottom: 30px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 28px;
    }

    .features-container {
        gap: 30px;
    }

    .categories-grid {
        gap: 28px;
    }

    .contact-container {
        padding: 48px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 40px 5%;
        gap: 18px;
    }

    .hero-right {
        margin-top: 10px;
    }

    .hero-title {
        font-size: 4.1rem;
        margin-bottom: 22px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .about-container,
    .contact-card-wrap {
        grid-template-columns: 1fr;
    }

    .features-container,
    .categories-grid,
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .contact-container {
        padding: 42px 32px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .navbar {
        padding: 12px 4%;
    }

    .brand-text {
        font-size: 1.15rem;
    }

    .logo-circle,
    .profile-icon {
        width: 42px;
        height: 42px;
    }

    .cart-btn {
        padding: 7px 14px;
        font-size: 0.9rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 32px 5%;
        gap: 12px;
    }

    .hero-title {
        font-size: 3.2rem;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 0.96rem;
        margin-bottom: 16px;
    }

    .hero-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn {
        min-width: 220px;
    }

    .about-container,
    .features-container,
    .categories-grid,
    .contact-card-wrap,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .cat-main-title,
    .contact-info h2 {
        font-size: 1.9rem;
    }

    .contact-container {
        padding: 34px 20px;
    }
}

@media (min-width: 320px) and (max-width: 480px) {
    .navbar {
        padding: 10px 12px;
    }

    .brand {
        gap: 8px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .logo-circle,
    .profile-icon {
        width: 34px;
        height: 34px;
    }

    .logo-img {
        width: 24px;
        height: 34px;
    }

    .profile-icon svg {
        width: 18px;
        height: 18px;
    }

    .cart-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
        gap: 5px;
    }

    .cart-btn svg {
        width: 15px;
        height: 15px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 22px 12px 30px;
        gap: 10px;
    }

    .hero-title {
        font-size: 2.35rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn {
        width: 100%;
        font-size: 0.95rem;
        padding: 12px 18px;
    }

    .about-section,
    .features-section,
    .categories-section,
    .contact-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .about-container,
    .features-container,
    .categories-grid,
    .contact-card-wrap,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .cat-card,
    .contact-detail-box {
        padding: 20px 16px;
    }

    .cat-main-title,
    .contact-info h2 {
        font-size: 1.55rem;
    }

    .cat-header-container {
        gap: 10px;
        margin-bottom: 35px;
    }

    .view-all {
        position: static;
        font-size: 0.9rem;
    }

    .contact-container {
        padding: 26px 14px;
        border-radius: 22px;
    }

    .footer {
        margin-top: 30px;
        padding-top: 46px;
    }

    .footer-container {
        gap: 28px;
        text-align: center;
    }

    .footer-brand {
        font-size: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}