* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

:root {
    --myntra-pink: #ff3f6c;
    --myntra-pink-dark: #e63660;
    --text-primary: #282c3f;
    --text-secondary: #696b79;
    --text-light: #94969f;
    --bg-light: #f4f4f5;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --success: #03a685;
    --star: #ff905a;
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    display: block;
}

/* ============ NAVBAR ============ */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-container {
    max-width: 1550px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 80px;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-categories {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.nav-link {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
    color: var(--text-primary);
    padding: 28px 0;
    position: relative;
    border-bottom: 4px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--myntra-pink);
    border-bottom-color: var(--myntra-pink);
}

.tag-new {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    color: var(--myntra-pink);
    margin-left: 2px;
    transform: translateY(-6px);
}

.nav-search {
    flex: 1;
    max-width: 540px;
    background: var(--bg-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 40px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search:focus-within {
    background: var(--bg-white);
    box-shadow: 0 0 0 2px var(--border);
}

.nav-search i {
    color: var(--text-secondary);
    margin-right: 12px;
    font-size: 15px;
}

.nav-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--text-primary);
    height: 100%;
}

.nav-search input::placeholder {
    color: var(--text-secondary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.nav-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.nav-action:hover {
    color: var(--myntra-pink);
}

.nav-action i {
    font-size: 18px;
}

.badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--myntra-pink);
    color: var(--bg-white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

/* ============ HERO CAROUSEL ============ */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 16/5;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.carousel-btn:hover {
    background: var(--bg-white);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--bg-white);
    transform: scale(1.3);
}

/* ============ SECTION TITLE ============ */
.section-title {
    max-width: 1550px;
    margin: 0 auto;
    padding: 40px 30px 24px;
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    line-height: 1;
}

/* ============ CATEGORY TILES ============ */
.category-tiles {
    background: var(--bg-white);
}

.category-grid {
    max-width: 1550px;
    margin: 0 auto;
    padding: 0 30px 20px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.category-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-card img {
    aspect-ratio: 1/1;
    object-fit: cover;
}

.category-card p {
    padding: 10px 8px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ============ OFFER BANNERS ============ */
.offer-banners {
    max-width: 1550px;
    margin: 0 auto;
    padding: 20px 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.offer-banner {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-banner:hover {
    transform: scale(1.015);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.offer-banner img {
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* ============ PRODUCTS ============ */
.products-section {
    background: var(--bg-white);
    padding-bottom: 40px;
}

.product-grid {
    max-width: 1550px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 12px 34px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--bg-light);
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
}

.wishlist-btn:hover {
    background: var(--bg-white);
    transform: scale(1.1);
}

.wishlist-btn i {
    font-size: 15px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.wishlist-btn.active i {
    color: var(--myntra-pink);
    font-weight: 900;
}

.add-to-bag {
    position: absolute;
    bottom: -50px;
    left: 10px;
    right: 10px;
    padding: 10px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
    text-align: center;
    transition: bottom 0.3s ease, background 0.2s ease, color 0.2s ease;
    z-index: 3;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.product-card:hover .add-to-bag {
    bottom: 10px;
}

.add-to-bag:hover {
    background: var(--myntra-pink);
    color: var(--bg-white);
    border-color: var(--myntra-pink);
}

.add-to-bag.added {
    background: var(--myntra-pink);
    color: var(--bg-white);
    border-color: var(--myntra-pink);
}

.product-details {
    padding: 14px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-brand {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-name {
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

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

.price-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-original {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-discount {
    font-size: 13px;
    font-weight: 700;
    color: var(--star);
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(3,166,133,0.08);
    border-radius: 4px;
    width: fit-content;
    font-size: 12px;
    font-weight: 700;
    color: var(--success);
}

.product-rating i {
    font-size: 10px;
    color: var(--success);
}

/* ============ BRANDS ============ */
.brands-section {
    padding-bottom: 40px;
    background: var(--bg-white);
}

.brands-grid {
    max-width: 1550px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.brand-card {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-white);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.brand-card img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* ============ FOOTER ============ */
.footer {
    background: #fafbfc;
    border-top: 1px solid var(--border);
    padding-top: 50px;
}

.footer-container {
    max-width: 1550px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-col a:hover {
    color: var(--myntra-pink);
}

.footer-col p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
    font-weight: 500;
}

.app-download {
    display: flex;
    gap: 12px;
    margin-bottom: 34px;
}

.app-download img {
    width: 140px;
    height: 42px;
    object-fit: contain;
    border-radius: 4px;
    background: #000;
    cursor: pointer;
}

.social-icons {
    display: flex;
    gap: 14px;
}

.social-icons a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e9e9ed;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: var(--myntra-pink);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.social-icons a i {
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 30px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
    .category-grid { grid-template-columns: repeat(6, 1fr); }
    .product-grid { grid-template-columns: repeat(5, 1fr); }
    .nav-container { padding: 0 20px; gap: 16px; }
    .nav-categories { gap: 18px; }
    .section-title { padding: 32px 20px 20px; font-size: 26px; }
    .category-grid, .product-grid, .brands-grid, .offer-banners { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 1024px) {
    .nav-categories { display: none; }
    .nav-search { max-width: none; }
    .category-grid { grid-template-columns: repeat(5, 1fr); }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .brands-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-container { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .hero-carousel { aspect-ratio: 16/6; }
}

@media (max-width: 768px) {
    .nav-container { height: 64px; padding: 0 14px; gap: 10px; }
    .logo svg { width: 50px; height: 26px; }
    .nav-action span { display: none; }
    .nav-actions { gap: 16px; }
    .nav-action i { font-size: 20px; }
    .category-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 14px; }
    .brands-grid { grid-template-columns: repeat(3, 1fr); padding: 0 14px; }
    .offer-banners { padding: 14px; gap: 12px; }
    .section-title { padding: 24px 14px 16px; font-size: 22px; }
    .hero-carousel { aspect-ratio: 16/8; }
    .carousel-btn { width: 36px; height: 36px; }
    .add-to-bag { font-size: 11px; padding: 8px 10px; bottom: -44px; }
    .product-card:hover .add-to-bag { bottom: 8px; }
    .footer-container { grid-template-columns: 1fr; padding: 0 20px 30px; gap: 28px; }
    .footer-bottom { padding: 20px; }
    .section-title { letter-spacing: 0.2px; }
    .product-brand { font-size: 13px; }
    .product-details { padding: 10px 8px 12px; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .offer-banners { grid-template-columns: 1fr; }
    .section-title { font-size: 18px; padding: 20px 14px 12px; }
    .nav-search i { margin-right: 8px; }
    .nav-search { height: 36px; padding: 0 10px; }
    .nav-search input { font-size: 12px; }
    .hero-carousel { aspect-ratio: 4/3; }
    .price-current { font-size: 13px; }
    .price-original, .price-discount { font-size: 11px; }
    .app-download { flex-wrap: wrap; }
    .app-download img { width: 120px; height: 38px; }
}
