:root {
    --primary: #ff3f6c; /* Myntra Pink */
    --primary-dark: #d5365c;
    --text-main: #282c3f; /* Dark grey */
    --text-muted: #535766; /* Lighter grey */
    --text-light: #7e818c;
    --bg-light: #ffffff;
    --bg-gray: #f5f5f6;
    --border-color: #eaeaec;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --nav-height: 80px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

.section {
    padding: 60px 4%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 40px;
    text-align: left;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
}

/* Navbar */
.navbar {
    min-height: var(--nav-height);
    height: auto;
    background: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    display: block;
    padding: 15px 20px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    text-transform: none;
}

.dropdown-content a:hover {
    color: var(--text-main);
    font-weight: 600;
    background: var(--bg-gray);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-box {
    background: var(--bg-gray);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
}

.search-box i {
    color: var(--text-light);
}

.search-box input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    background: transparent;
    color: var(--text-main);
}

.icon-link {
    font-size: 22px;
    color: var(--text-main);
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.icon-link span.label {
    font-size: 11px;
    font-weight: 600;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: 5px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-btn {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    background: none;
    border: none;
    cursor: pointer;
}

.auth-btn:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    margin-top: var(--nav-height);
    width: 100%;
    height: 60vh;
    background: url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero h1 {
    font-size: 54px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 30px;
}

.btn {
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Category Grid */
.categories {
    padding-top: 40px;
    padding-bottom: 40px;
}

.category-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.category-card {
    text-align: center;
    cursor: pointer;
    padding: 15px;
    transition: var(--transition);
}

.category-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid transparent;
    transition: var(--transition);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
}

.category-card:hover img, .category-card.active img {
    border-color: var(--primary);
    transform: scale(1.05);
}

.category-card:hover h3, .category-card.active h3 {
    color: var(--primary);
}

/* Products Grid */
.products {
    background: var(--bg-light);
}

/* Let Bootstrap row handle .product-grid layout */

.product-card {
    background: var(--white);
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
}

.p-img {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.product-card:hover .p-img img {
    transform: scale(1.05);
}

.p-info {
    padding: 15px;
}

.p-brand {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.p-info h3 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
}

.p-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.p-mrp {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}

.p-discount {
    font-size: 12px;
    color: #ff905a;
    font-weight: 600;
}

.buy-now-btn {
    width: 100%;
    padding: 12px;
    background: var(--white);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover .buy-now-btn {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Modal Styles (Deactivated to use Bootstrap 5 Modal styling)
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary);
}
*/

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-main);
    transition: var(--transition);
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 1px var(--primary);
}

/*
.modal-footer {
    margin-top: 30px;
}
*/

.confirm-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.confirm-btn:hover {
    background: var(--primary-dark);
}

/* Mobile Responsiveness */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .search-box { width: 200px; }
}

@media (max-width: 768px) {
    .nav-links, .search-box { display: none; }
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        padding: 20px 4%;
        gap: 15px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }
    .menu-toggle { display: block; }
    
    /* Navbar actions & container styling to group actions and hamburger together */
    .nav-container { padding: 0 15px; }
    .nav-actions { margin-left: auto; margin-right: 15px; gap: 12px; }
    .icon-link span.label { display: none; }
    
    /* Product card and text scaling to prevent overflow stretching */
    .p-img { height: 250px; }
    .p-info { padding: 10px; }
    .p-brand { font-size: 13px; }
    .p-info h3 { font-size: 12px; margin-bottom: 6px; }
    .p-price-container { flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
    .p-price { font-size: 14px; }
    .p-mrp { font-size: 11px; }
    .p-discount { font-size: 10px; }
    .buy-now-btn { padding: 10px 5px; font-size: 12px; }
    
    .category-card img { width: 80px; height: 80px; }
    .category-card h3 { font-size: 12px; }
    .section { padding: 30px 4%; }
    .hero h1 { font-size: 36px; }
    .hero { height: 50vh; }
    
    /*
    .modal {
        align-items: flex-start;
        padding: 20px 10px;
    }
    
    .modal-content {
        margin: 20px auto;
        padding: 20px;
    }
    
    .close-modal {
        top: 20px;
        right: 20px;
    }
    */
}

/* Cart Sidebar / Toast / Orders Table skipped for brevity but would retain similar minimal styling */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast {
    background: #282c3f;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast .bx-check-circle {
    color: #03a685;
    font-size: 18px;
}

.toast .bx-error-circle {
    color: #ff3f6c;
    font-size: 18px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}