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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fff;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    z-index: 1000;
    border-bottom: 1px solid #e9e9ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.menu-icon svg {
    width: 24px;
    height: 24px;
}

.header-center {
    display: flex;
    align-items: center;
    flex: 1;
    margin: 0 16px;
}

.myntra-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff3e6c 0%, #ff8a80 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: white;
    letter-spacing: -0.5px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    font-size: 24px;
    color: #282c3f;
    cursor: pointer;
    position: relative;
    width: 28px;
    height: 28px;
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
}

.plus-icon {
    border: 2px solid #282c3f;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 300;
}

.heart-icon {
    font-size: 26px;
    font-weight: 300;
    stroke: #282c3f;
    stroke-width: 1px;
}

.bag-icon {
    font-size: 24px;
    font-weight: 300;
}

/* Search Bar */
.search-container {
    padding: 16px;
    background: #fff;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid #e9e9ed;
}

.search-bar {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px 12px 44px;
    border: none;
    font-size: 16px;
    color: #94969f;
    width: 100%;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94969f;
    font-size: 18px;
}

/* Main Content */
.main-content {
    margin-top: 128px; /* 64px header + 64px search */
    padding-bottom: 80px; /* Space for bottom navigation */
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    background: #fff;
    padding: 20px 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    text-decoration: none;
    color: #282c3f;
}

.category-image {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: #282c3f;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -80%;
    width: 80%;
    height: 100vh;
    background: #fff;
    z-index: 1600;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    background: linear-gradient(135deg, #ff3e6c 0%, #ff8a80 50%, #ffd54f 100%);
    padding: 20px;
    color: white;
    position: relative;
}

.close-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-banner {
    background: linear-gradient(135deg, #ff3e6c 0%, #ff8a80 100%);
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.sidebar-menu {
    padding: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f5;
    text-decoration: none;
    color: #282c3f;
    font-size: 16px;
    font-weight: 500;
}

.menu-item:hover {
    background: #f8f8f9;
}

.menu-arrow {
    color: #94969f;
    font-size: 16px;
}

.menu-badge {
    background: #ff3e6c;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    margin-left: 8px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e9e9ed;
    display: flex;
    height: 64px;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94969f;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 4px;
}

.nav-item.active {
    color: #ff3e6c;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.myntra-nav-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff3e6c 0%, #ff8a80 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    color: white;
}

/* Sale Banner */
.sale-banner {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    color: white;
    text-align: center;
    padding: 16px;
    margin-bottom: 0;
}

.sale-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.sale-code {
    font-size: 14px;
    font-weight: 500;
}

/* Homepage Images */
.homepage-images {
    width: 100%;
}

.homepage-image {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.product-card {
    background: #fff;
    border-right: 0.5px solid #f0f0f0;
    border-bottom: 0.5px solid #f0f0f0;
    cursor: pointer;
    position: relative;
}

.product-image {
    width: 100%;
    /*aspect-ratio: 3/4;*/
    /*position: relative;*/
    /*overflow: hidden;*/
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f8f8f8;
}

.ad-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 500;
}

.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #282c3f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wishlist-btn.active {
    color: #ff3e6c;
}

.rating-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}

.rating-number {
    color: #282c3f;
}

.rating-star {
    color: #03a685;
}

.rating-divider {
    color: #94969f;
}

.rating-count {
    color: #94969f;
}

.product-info {
    padding: 12px;
}

.product-brand {
    font-size: 14px;
    font-weight: 600;
    color: #282c3f;
    margin-bottom: 4px;
}

.product-name {
    font-size: 12px;
    color: #94969f;
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 14px;
    font-weight: 600;
    color: #282c3f;
}

.original-price {
    font-size: 12px;
    color: #94969f;
    text-decoration: line-through;
}

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

/* Product Images */
.img1 {
    background: linear-gradient(135deg, #f5f5dc 0%, #e6ddd4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b7355;
    font-size: 48px;
}

.img2 {
    background: linear-gradient(135deg, #4682b4 0%, #5f9ea0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

.img3 {
    background: linear-gradient(135deg, #daa520 0%, #ffd700 50%, #ff8c00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b4513;
    font-size: 48px;
}

.img4 {
    background: linear-gradient(135deg, #191970 0%, #483d8b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

/* Product Details Page */
.product-details {
    display: none;
    background: #fff;
}

.product-details.active {
    display: block;
}

.product-gallery {
    position: relative;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #d4d5d9;
}

.image-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

.product-detail-info {
    padding: 20px 16px;
}

.product-detail-brand {
    font-size: 20px;
    font-weight: 600;
    color: #282c3f;
    margin-bottom: 4px;
}

.product-detail-name {
    font-size: 16px;
    color: #94969f;
    margin-bottom: 16px;
    line-height: 1.4;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-rating-badge {
    background: #03a685;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-rating-count {
    font-size: 14px;
    color: #94969f;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.detail-current-price {
    font-size: 24px;
    font-weight: 700;
    color: #282c3f;
}

.detail-original-price {
    font-size: 16px;
    color: #94969f;
    text-decoration: line-through;
}

.detail-discount {
    font-size: 16px;
    color: #ff905a;
    font-weight: 600;
}

.size-section {
    margin-bottom: 24px;
}

.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.size-title {
    font-size: 16px;
    font-weight: 600;
    color: #282c3f;
}

.size-guide {
    font-size: 14px;
    color: #ff3e6c;
    font-weight: 600;
    text-decoration: none;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.size-option {
    padding: 12px;
    border: 1px solid #d4d5d9;
    border-radius: 50%;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #282c3f;
    cursor: pointer;
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-option:hover,
.size-option.selected {
    border-color: #ff3e6c;
    color: #ff3e6c;
}

/* Bottom Actions */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 16px;
    display: none;
    gap: 12px;
}

.bottom-actions.active {
    display: flex;
}

.action-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
}

.wishlist-action {
    background: #fff;
    color: #282c3f;
    border: 1px solid #d4d5d9;
}

.add-to-bag {
    background: #ff3e6c;
    color: #fff;
}

/* Shop Page */
.shop-page {
    display: block;
}

.shop-page.hidden {
    display: none;
}
.search-bar-container {
    z-index: 1;
    background: #fff;
    position: fixed;
    top: 56px;
    padding: 16px 8px;
    width: 100%;
}
.search-bar {
    border: 1px solid #e9e9eb;
    border-radius: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 10px 14px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-shadow: 0 4px 10px 0 rgba(40, 44, 63, .10196078431372549);
    box-shadow: 0 4px 10px 0 rgba(40, 44, 63, .10196078431372549);
}
.search-bar-icon {
    width: 16px;
    height: 16px;
}

.text-container {
    color: #686b77;
    font-size:12px;
    padding: 0 5px;
    overflow: hidden;
    line-height: 16px;
}
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    background: linear-gradient(111deg, #ff3f6c, #fc2779);
    color: white;
    padding: 20px;
    position: relative;
}

.close-sidebar {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.promo-banner {
    text-align: center;
    margin-top: 10px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-arrow {
    font-size: 18px;
    color: #999;
    transition: transform 0.3s ease;
}

.menu-badge {
    background: #ff3f6c;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 5px;
}

.submenu {
    background: #f8f9fa;
}

.submenu .menu-item {
    font-size: 14px;
}

.product-thumbnail {
    width: 100%!important;
    height: 100%!important;
    object-fit: fill!important;
    display: block!important;
}