/* General Styles */
body {
    font-family: 'Poppins';
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    line-height: 1.6;
}

h1,
h2,
h3 {
    margin: 0;
    padding: 10px 0;
}

/* Navigation Styles */
nav {
    color: #000;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    align-items: center;
    flex-wrap: wrap;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 10px;
}

nav>div {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav span {
    font-size: 18px;
    font-weight: 700;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 14px;
}

nav ul li {
    display: inline;
}

nav ul li a,
nav ul li button {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
}

nav ul li a:hover,
nav ul li button:hover {
    background: #eef2ff;
    color: #385e87;
}

.logo {
    height: 40px;
}

.logo-text h1 {
    font-size: 20px;
    margin: 0 0 0 8px;
}

h2 {
    text-align: center;
    margin: 20px 0;
}

nav ul li.dropdown {
    position: relative;
}

nav ul li.dropdown>.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    color: #333;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    display: none;
    z-index: 1000;
}

nav ul li.dropdown.open>.dropdown-menu,
nav ul li.dropdown:hover>.dropdown-menu {
    display: block;
}

nav ul li.dropdown>.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    white-space: nowrap;
}

nav ul li.dropdown>.dropdown-menu li a:hover {
    background: rgba(0, 0, 0, 0.06);
}

nav ul li.dropdown>a.dropdown-toggle {
    cursor: pointer;
}

/* Banner Section */
.banner {
    width: 90vw;
    display: flex;
    margin: 0 4.5vw;
}

.banner-text {
    width: 50%;
    position: absolute;
    bottom: 40%;
    left: 10%;
    color: #fff;
}

.banner-button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.banner-button:hover {
    background-color: #0056b3;
}

.banner-button:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.banner-slide-image {
    position: relative;
    overflow: hidden;
}

.banner-slide-image img {
    display: none;
}

.banner-slide-image img.active {
    display: block;
}

.banner-slide-image .prev,
.banner-slide-image .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 20px;
    padding: 6px 12px 10px 11px;
    cursor: pointer;
    z-index: 10;
}

.banner-slide-image .prev {
    left: 1%;
}

.banner-slide-image .next {
    right: 1%;
}

.banner-slide-image .best-seller,
.banner-slide-image .New,
.banner-slide-image .Popular {
    position: absolute;
    top: 32%;
    left: 10%;
    background-color: gold;
    color: black;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    display: none;
    z-index: 10;
}

.banner-slide-image .New {
    background-color: #14e147 !important;
}

.banner-slide-image .Popular {
    background-color: #2feee4 !important;
}

.banner-slide-image .best-seller .star,
.banner-slide-image .New .star,
.banner-slide-image .Popular .star {
    margin-right: 5px;
}

.banner-slide-image img:first-child.active~.New {
    display: block;
}

.banner-slide-image img:nth-child(2).active~.best-seller {
    display: block;
}

.banner-slide-image img:nth-child(3).active~.Popular {
    display: block;
}

/* Product Lineup Section */

.shadprod {
    box-shadow: inset 0 15px 30px rgba(0, 0, 0, 0.8);
    background-color: #141414;
    text-align: center;
    padding-bottom: 30px;
}

.prodh2 {
    margin: 20px 0 0 0;
    color: #fff;
    padding: 20px 0;
    margin-bottom: 10px;
}

.product-line {
    color: white;
    padding: 20px 40px 40px;
}

.category {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #fff;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.category a {
    color: inherit;
    text-decoration: none;
}

.category img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.category h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}

.category p {
    margin-bottom: 15px;
}

/* Featured Products Section */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 40px;
}

.product-link {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    float: right;
    margin-right: 30px;
}

.product-link:hover {
    background-color: #0056b3;
}

/* Why Choose Us Section */

.why-item {
    text-align: center;
}

/* Footer Section */
footer {
    /* modern gradient + subtle texture feel */
    background: radial-gradient(circle at 30% 30%, #1f2937 0%, #111827 70%);
    color: #e5e7eb;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before,
footer::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
footer::before { top: -160px; left: -120px; }
footer::after { bottom: -180px; right: -140px; }

.footer-content {
    max-width: 1540px;
    margin: 0 auto 40px;
    padding: 0 clamp(16px, 4vw, 48px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: clamp(28px, 3vw, 54px);
    align-items: start;
}

.footer-section {
    padding: 0;
}

.footer-section h2 {
    font-size: 18px;
    margin: 0 0 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    position: relative;
}

.footer-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 42px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin: 0 0 10px;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: color .25s ease;
}

.footer-section a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    transition: width .3s ease;
    border-radius: 2px;
}

.footer-section a:hover,
.footer-section a:focus-visible {
    color: #fff;
}

.footer-section a:hover::after,
.footer-section a:focus-visible::after {
    width: 100%;
}

.footer-section a:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 3px;
    border-radius: 4px;
}

.footer-section img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Newsletter */
.footer-section form {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: stretch;
}

.email-subscription {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #293548;
    background: #1e2530;
    border-radius: 50px;
    padding: 6px 14px;
    width: 100%;
    max-width: 390px;
    transition: border-color .25s;
}

.email-subscription:focus-within {
    border-color: #3b82f6;
}

.footer-section input[type="email"] {
    flex: 1;
    font-size: 14px;
    color: #fff;
    border: none;
    background: transparent;
    padding: 4px 0;
}

.footer-section input[type="email"]::placeholder {
    color: #64748b;
}

.footer-section button {
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    border: none;
    color: #fff;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity .25s, transform .25s;
    position: relative;
}

.footer-section button:hover {
    opacity: .9;
    transform: translateY(-2px);
}

.footer-section button:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 3px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    padding: 0;
}

.social-icons a,
.social-icons .icon-link {
    width: 42px;
    height: 42px;
    background: #1f2937;
    border: 1px solid #273549;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 18px;
    transition: background .25s, color .25s, transform .25s, border-color .25s;
    position: relative;
}

.social-icons a:hover,
.social-icons a:focus-visible,
.social-icons .icon-link:hover {
    background: #334155;
    color: #fff;
    border-color: #3b82f6;
    transform: translateY(-3px);
}

.copyright {
    margin: 10px auto 0;
    padding-top: 28px;
    border-top: 1px solid #283343;
    color: #94a3b8;
    font-size: 13px;
    max-width: 1240px;
    text-align: center;
    letter-spacing: .3px;
}

/* Medium breakpoint adjustments */
@media (max-width: 980px) {
    .footer-content {
        gap: 36px;
    }
    .footer-section h2 {
        font-size: 17px;
    }
}

/* Stack newsletter + simplify spacing on narrow screens */
@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .footer-section form {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-section button {
        width: 100%;
        justify-content: center;
    }
}

/* Extra small: full-width single column */
@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .social-icons {
        justify-content: flex-start;
    }
}

/* High contrast preference */
@media (prefers-contrast: more) {
    footer {
        background: #111827;
    }
    .footer-section a {
        color: #e2e8f0;
    }
    .footer-section a::after {
        background: #3b82f6;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .social-icons a,
    .footer-section button,
    .footer-section a::after {
        transition: none;
    }
}