/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #2A6BFF;
    --primary-dark: #1A4FCC;
    --primary-light: #4A8AFF;
    --secondary: #00C9A7;
    --accent: #FF6B9D;
    --dark: #1A1F36;
    --light: #F8FAFF;
    --gradient-primary: linear-gradient(135deg, #2A6BFF 0%, #00C9A7 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --border-radius: 16px;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--light);
}

a {
    text-decoration: none !important;
}

/* ===== NAVBAR ===== */
.navbar-custom {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-custom .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: var(--primary);
}

/* Cart button */
.cart-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== SEARCH FORM (NAVBAR) – MOBILE FIRST ===== */
.navbar-custom form.d-flex {
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    flex-direction: column;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Shared input style */
.navbar-custom .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    height: 42px;
    padding: 0.6rem 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.navbar-custom .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(42, 107, 255, 0.1);
    outline: none;
}

/* Search button */
.searchbutton {
    height: 42px;
    width: 100%;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0;
    white-space: nowrap;
}

/* ===== HOME SECTION ===== */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #2A6BFF20 0%, #00C9A720 100%);
    text-align: center;
}

.home-text {
    max-width: 100%;
    margin-bottom: 2rem;
}

.home-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-text p {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.home-text a {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.home-text a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.home-image {
    width: 100%;
    height: 250px;
    background: url('Hariware Done Photos/Kailash plastic logo.jpg') center/contain no-repeat;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== PRODUCT SECTION ===== */
.product-section {
    padding: 2rem 0;
}

.product-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

/* Card container */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* Image wrapper */
.image-container {
    position: relative;
    padding: 0.75rem;
    height: 100px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Card body */
.product-card .card-body {
    text-align: center;
    padding: 0.5rem 0.75rem 0.8rem;
}

.product-card .card-body h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* ===== FEATURE BOXES ===== */
.feature-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.feature-box p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== PAGE SECTIONS ===== */
.page-section {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ABOUT SECTION ===== */
.about-img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    width: 100%;
    margin-bottom: 1.5rem;
}

#about h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#about p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.text-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 800;
}

/* ===== CONTACT FORM (if you enable later) ===== */
.contact-form {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1A1F36 0%, #0F1425 100%);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

footer p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
}

.product-info a {
    color: #9ca3af;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.product-info a:hover {
    color: white;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Make footer contact block wrap nicely on mobile */
.footer .mb-2.d-flex {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

/* ====== RESPONSIVE MEDIA QUERIES ====== */

/* >= 576px (small devices) */
@media (min-width: 576px) {

    .navbar-custom form.d-flex {
        flex-direction: row;
        align-items: center;
        width: auto;
        margin-top: 0;
        margin-bottom: 0;
    }

    .navbar-custom .form-control {
        width: 200px;
        height: 45px;
        font-size: 0.95rem;
    }

    .searchbutton {
        width: auto;
        height: 45px;
        padding: 0 1.2rem;
        font-size: 0.9rem;
    }

    .home-text h1 {
        font-size: 2.2rem;
    }

    .home-text p {
        font-size: 1rem;
    }

    .home-image {
        height: 300px;
    }

    .product-card {
        min-height: 160px;
    }

    .image-container {
        height: 100px;
    }

    .product-card .card-body h5 {
        font-size: 0.95rem;
    }

    .navbar-custom .navbar-brand {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 2rem;
    }

    #about h3 {
        font-size: 1.8rem;
    }

    .feature-box {
        padding: 2rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon i {
        font-size: 1.8rem;
    }

    .feature-box h4 {
        font-size: 1.3rem;
    }
}

/* >= 768px (tablets) */
@media (min-width: 768px) {

    .navbar-custom form.d-flex {
        width: auto;
        flex-direction: row;
    }

    .navbar-custom .form-control {
        width: 240px;
    }

    .searchbutton {
        width: 105px;
    }

    .home-container {
        flex-direction: row;
        min-height: 90vh;
        padding: 3rem 2rem;
        text-align: left;
    }

    .home-text {
        flex: 1;
        max-width: 600px;
        margin-bottom: 0;
    }

    .home-image {
        flex: 1;
        height: 350px;
    }

    .home-text h1 {
        font-size: 2.8rem;
    }

    .home-text p {
        font-size: 1.1rem;
    }

    .product-section h2 {
        font-size: 2.2rem;
    }

    .product-card {
        min-height: 170px;
    }

    .image-container {
        height: 110px;
    }

    .contact-form {
        padding: 2.5rem;
    }

    footer {
        padding: 3rem 0 1rem;
    }

    footer h5 {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.4rem;
    }

    #about h3 {
        font-size: 2rem;
    }

    .text-primary {
        font-size: 2.5rem;
    }

    .page-section {
        padding: 3rem 0;
    }
}

/* >= 992px (large tablets / small laptops) */
@media (min-width: 992px) {

    .navbar-custom form.d-flex {
        gap: 15px;
    }

    .navbar-custom .form-control {
        width: 270px;
    }

    .searchbutton {
        width: 110px;
    }

    .navbar-custom {
        padding: 1rem 0;
    }

    .navbar-custom .navbar-brand {
        font-size: 1.8rem;
    }

    .home-container {
        padding: 4rem 3rem;
    }

    .home-text h1 {
        font-size: 3.2rem;
    }

    .home-text p {
        font-size: 1.15rem;
    }

    .home-text a {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .home-image {
        height: 400px;
        border-radius: 30px;
    }

    .product-section {
        padding: 3rem 0;
    }

    .product-section h2 {
        font-size: 2.6rem;
        margin-bottom: 2rem;
    }

    .product-card {
        min-height: 180px;
    }

    .image-container {
        height: 120px;
    }

    .contact-form {
        padding: 3rem;
        max-width: 600px;
    }

    .feature-box {
        padding: 2.5rem;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .feature-icon i {
        font-size: 2rem;
    }

    .feature-box h4 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    #about h3 {
        font-size: 2.2rem;
    }

    .page-section {
        padding: 4rem 0;
    }
}

/* >= 1200px (desktops) */
@media (min-width: 1200px) {

    .navbar-custom form.d-flex {
        gap: 20px;
    }

    .navbar-custom .form-control {
        width: 300px;
    }

    .searchbutton {
        width: 120px;
        height: 44px;
    }

    .home-container {
        padding: 5rem 4rem;
    }

    .home-text h1 {
        font-size: 3.8rem;
        line-height: 1.1;
    }

    .home-text p {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }

    .home-text a {
        padding: 1.2rem 3rem;
        font-size: 1.1rem;
    }

    .home-image {
        height: 500px;
    }

    .product-section h2 {
        font-size: 3rem;
    }

    .product-card {
          min-height: 176px;
    }

    .image-container {
        height: 130px;
    }

    .product-card .card-body h5 {
        font-size: 1rem;
    }

    .contact-form {
        padding: 3.5rem;
        max-width: 700px;
    }

    .page-section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 3.2rem;
        margin-bottom: 3rem;
    }

    #about h3 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    #about p {
        font-size: 1.05rem;
    }

    .text-primary {
        font-size: 3rem;
    }

    .feature-icon {
        width: 90px;
        height: 90px;
    }

    .feature-icon i {
        font-size: 2.2rem;
    }
}

/* >= 1400px (wide screens) */
@media (min-width: 1400px) {
    .home-text h1 {
        font-size: 4.2rem;
    }

    .home-image {
        height: 550px;
    }

    .product-section h2 {
        font-size: 3.4rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* MOBILE CART beside brand */
.mobile-cart {
    display: inline-flex;
}

/* Hide mobile cart on desktop (≥992px) */
@media (min-width: 992px) {
    .mobile-cart {
        display: none !important;
    }
}

