/* ==========================================
   STYLEHUB - Global & Base Styles
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fafafa;
    color: #333;
    overflow-x: hidden;
}

/* ==========================================
   Header & Navigation (Desktop)
========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e63946;
}

.nav-btn {
    background-color: #e63946 !important;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    transition: background 0.3s, transform 0.2s !important;
}

.nav-btn:hover {
    background-color: #d62828 !important;
    transform: scale(1.05);
}

/* ==========================================
   Banners
========================================== */
.banner {
    margin-top: 65px;
    width: 100%;
    height: 400px;
    background: no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* ==========================================
   Product Sections & Grids
========================================== */
.section {
    padding: 40px 5%;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: #111;
    border-left: 5px solid #e63946;
    padding-left: 15px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-info {
    padding: 15px;
    text-align: center;
}

.card-info h3 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 5px;
}

.card-info p {
    color: #e63946;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.details-btn {
    display: block;
    width: calc(100% - 30px);
    margin: 0 auto 15px auto;
    padding: 10px;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.details-btn:hover {
    background-color: #e63946;
}

/* ==========================================
   MOBILE VIEW & RESPONSIVE FIXES (Max-width: 768px)
========================================== */
@media(max-width: 768px) {
    header {
        padding: 5px 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 0.85rem;
    }

    nav ul {
        display: flex;
        gap: 3px;
        align-items: center;
        list-style: none;
    }

    nav ul li a {
        font-size: 0.55rem !important;
        padding: 2px;
    }

    .nav-btn {
        padding: 2px 5px !important;
        font-size: 0.55rem !important;
    }

    /* HERO CONTAINER AUR SLIDES KO MOBILE PAR FIX KARNE KE LIYE */
    .hero {
        height: 160px !important;
        min-height: 160px !important;
        margin-top: 45px;
        position: relative;
        overflow: hidden;
    }

    .slide,
    .slide img {
        height: 160px !important;
        object-fit: cover;
    }

    .hero-text {
        padding: 0 10px;
    }

    .hero-text h1 {
        font-size: 1rem !important;
        margin-bottom: 2px;
    }

    .hero-text p {
        font-size: 0.6rem !important;
    }
}

@media(max-width: 768px) {
    header {
        padding: 5px 8px;
        display: flex;
        justify-content: space-width;
        align-items: center;
    }

    /* LOGO KA SIZE CHOTA KAR DIYA HAI TAAKE JAGAH BATCHE */
    .logo {
        font-size: 0.8rem !important;
        letter-spacing: 0.5px;
    }

    nav ul {
        display: flex;
        gap: 4px;
        align-items: center;
        list-style: none;
    }

    nav ul li a {
        font-size: 0.55rem !important;
        padding: 2px;
    }

    .nav-btn {
        padding: 2px 6px !important;
        font-size: 0.55rem !important;
        border-radius: 6px;
    }

    /* Hero Banner fix */
    .hero {
        height: 160px !important;
        margin-top: 40px;
    }

    .slide,
    .slide img {
        height: 160px !important;
        object-fit: cover;
    }

    .hero-text h1 {
        font-size: 0.95rem !important;
    }

    .hero-text p {
        font-size: 0.55rem !important;
    }
}


/* Cart Items List */
.cart-items {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    gap: 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex-grow: 1;
}

.item-details h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #111;
}

.item-details p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 2px;
}

.item-price {
    font-weight: 700;
    color: #e63946;
    font-size: 1.05rem;
}

.remove-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.remove-btn:hover {
    color: #cc0000;
}

/* Order Summary & Checkout Box */
.cart-summary {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.cart-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

/* Payment Options Style */
.payment-options {
    margin: 20px 0;
    text-align: left;
}

.payment-options label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #333;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.radio-group label {
    font-weight: normal;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 0;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.checkout-btn:hover {
    background-color: #d62828;
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    padding: 40px;
    color: #777;
    font-size: 1.1rem;
}

/* Mobile View Media Queries */
@media(max-width: 768px) {
    header {
        padding: 12px 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 12px;
    }

    nav ul li a {
        font-size: 0.85rem;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem !important;
    }

    .container {
        margin-top: 80px;
        padding: 0 15px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        position: relative;
    }

    .cart-item img {
        width: 100%;
        height: 160px;
    }

    .remove-btn {
        position: absolute;
        top: 15px;
        right: 15px;
    }
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fafafa;
    color: #333;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e63946;
}

/* Nav Shop Now Button Style */
.nav-btn {
    background-color: #e63946 !important;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    transition: background 0.3s, transform 0.2s !important;
}

.nav-btn:hover {
    background-color: #d62828 !important;
    transform: scale(1.05);
}

/* Hero Slider Styles */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    background: #000;
    overflow: hidden;
    margin-top: 65px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomEffect 8s infinite alternate;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

.hero-text {
    position: absolute;
    bottom: 25%;
    left: 8%;
    color: #fff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
    z-index: 10;
    animation: fadeInUp 1.2s ease-in-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.section {
    padding: 60px 5%;
    text-align: center;
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #111;
}

.section p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover img {
    transform: scale(1.05);
}

.card-info {
    padding: 15px;
    text-align: center;
}

.card-info h3 {
    font-size: 1.1rem;
    color: #222;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: #e63946;
    transform: scale(1.03);
}

/* Mobile Responsive */
@media(max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    nav ul {
        gap: 10px;
    }

    nav ul li a {
        font-size: 0.8rem;
    }

    .nav-btn {
        padding: 5px 10px;
        font-size: 0.8rem !important;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .section {
        padding: 40px 4%;
    }

    .section h2 {
        font-size: 1.8rem;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fafafa;
    color: #333;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e63946;
}

.nav-btn {
    background-color: #e63946 !important;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    transition: background 0.3s, transform 0.2s !important;
}

.nav-btn:hover {
    background-color: #d62828 !important;
    transform: scale(1.05);
}

/* Top Banner Style */
.banner {
    margin-top: 65px;
    width: 100%;
    height: 400px;
    background: url('man-banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.1rem;
    font-weight: 300;
}

.section {
    padding: 40px 5%;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: #111;
    border-left: 5px solid #e63946;
    padding-left: 15px;
}

/* Grid Layout */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-info {
    padding: 15px;
    text-align: center;
}

.card-info h3 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 5px;
}

.card-info p {
    color: #e63946;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.details-btn {
    display: block;
    width: calc(100% - 30px);
    margin: 0 auto 15px auto;
    padding: 10px;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.details-btn:hover {
    background-color: #e63946;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 15px;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 400px;
    max-width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: scaleUp 0.3s ease-in-out;
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.modal img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.option-group {
    margin-bottom: 15px;
    text-align: left;
}

.option-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #444;
}

.option-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #d62828;
}

/* Mobile View Media Queries */
@media(max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media(max-width: 768px) {
    header {
        padding: 12px 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 12px;
    }

    nav ul li a {
        font-size: 0.85rem;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 0.8rem !important;
    }

    .banner {
        height: 260px;
        margin-top: 55px;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 0.9rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section {
        padding: 25px 3%;
    }

    .section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .card img {
        height: 180px;
    }
}

@media(max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    nav ul li:not(:last-child):not(:nth-last-child(2)) {
        display: none;
    }

    /* Chhote mobile par navigation short karne ke liye agar zaroorat ho */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fafafa;
    color: #333;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e63946;
}

.nav-btn {
    background-color: #e63946 !important;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    transition: background 0.3s, transform 0.2s !important;
}

.nav-btn:hover {
    background-color: #d62828 !important;
    transform: scale(1.05);
}

/* Top Banner Style */
.banner {
    margin-top: 65px;
    width: 100%;
    height: 400px;
    background: url('woman-banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.1rem;
    font-weight: 300;
}

.section {
    padding: 40px 5%;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: #111;
    border-left: 5px solid #e63946;
    padding-left: 15px;
}

/* Grid Layout */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-info {
    padding: 15px;
    text-align: center;
}

.card-info h3 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 5px;
}

.card-info p {
    color: #e63946;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.details-btn {
    display: block;
    width: calc(100% - 30px);
    margin: 0 auto 15px auto;
    padding: 10px;
    background-color: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.details-btn:hover {
    background-color: #e63946;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 15px;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 400px;
    max-width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: scaleUp 0.3s ease-in-out;
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.modal img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.option-group {
    margin-bottom: 15px;
    text-align: left;
}

.option-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #444;
}

.option-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #d62828;
}



/* Mobile View Fix for Header Navigation Links & Hero Banner */
@media screen and (max-width: 768px) {

    /* Header Container Adjustments */
    header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Logo size compact for mobile screen space */
    .logo {
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    /* Navbar List Item Layout Adjustments */
    nav {
        display: flex !important;
        align-items: center !important;
    }

    nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 3px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        align-items: center !important;
    }

    nav ul li {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Target all links (Home, Men, Women, Cart) to be visible */
    nav ul li a {
        display: inline-block !important;
        font-size: 0.55rem !important;
        padding: 2px 3px !important;
        white-space: nowrap !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Action Button (Shop Now) adjustments */
    .nav-btn,
    nav ul li a.nav-btn {
        padding: 3px 6px !important;
        font-size: 0.55rem !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
    }

    /* Hero Banner Mobile Adjustment */
    .hero {
        height: 160px !important;
        min-height: 160px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .slide,
    .slide img {
        height: 160px !important;
        width: 100% !important;
        object-fit: cover !important;
    }


}

/* Mobile Grid Fix for 2 Products per Line */
@media screen and (max-width: 768px) {
    .grid-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 5px !important;
    }

    .card {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .card img {
        height: 140px !important;
    }

    .card-info {
        padding: 8px !important;
    }

    .card-info h3 {
        font-size: 0.8rem !important;
    }

    .card-info p {
        font-size: 0.75rem !important;
        margin-bottom: 6px !important;
    }

    .details-btn {
        width: calc(100% - 16px) !important;
        padding: 6px !important;
        font-size: 0.75rem !important;
        margin: 0 auto 8px auto !important;
    }
}