/* =========================================
   ULTRA PREMIUM LUXURY ECOMMERCE UI
   Apple + Rolex + Nike + Amazon Premium Feel
========================================= */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: #f4f7fc;
    color: #0f172a;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================
   NAVBAR - GLASS PREMIUM
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 12px 40px rgba(0,0,0,0.04);
    padding: 14px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-section {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-left {
    justify-content: flex-start;
}

.nav-center {
    justify-content: center;
    flex: 2;
}

.nav-right {
    justify-content: flex-end;
    gap: 20px;
}

.logo-img {
    height: 56px;
    transition: 0.4s;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* SEARCH */

.search-container {
    width: 100%;
    max-width: 650px;
    display: flex;
    background: rgba(255,255,255,0.95);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}

.search-container input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 16px 18px;
    font-size: 14px;
}

.search-container button {
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
    padding: 0 28px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.search-container button:hover {
    opacity: 0.92;
}

/* LOGIN + CART */

.cart-icon {
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
}

.cart-icon:hover {
    transform: scale(1.08);
}

.login-btn {
    background: linear-gradient(135deg, #111827, #1e293b);
    color: white;
    padding: 11px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(17,24,39,0.12);
    transition: 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
}

/* =========================
   CATEGORY BAR
========================= */

.category-wrapper {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid #edf2f7;
}

.category-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-item,
.dropbtn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.cat-item:hover,
.dropbtn:hover {
    background: #111827;
    color: white;
    border-color: #111827;
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    background: white;
    min-width: 230px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    z-index: 999;
}

.dropdown-content a {
    display: block;
    padding: 14px 16px;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: #f8fafc;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* =========================
   HERO CINEMATIC SLIDER
========================= */

.slider-container {
    position: relative;
    height: 620px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 0.9s;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(42%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 700px;
    color: white;
}

.slide-content h1 {
    font-size: 62px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 18px;
}

.slide-content p {
    font-size: 19px;
    color: #e2e8f0;
    margin-bottom: 30px;
}

.shop-now {
    display: inline-block;
    padding: 16px 34px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
    font-weight: 700;
    box-shadow: 0 16px 35px rgba(37,99,235,0.18);
    transition: 0.3s;
}

.shop-now:hover {
    transform: translateY(-3px);
}

/* =========================
   PRODUCT SECTION
========================= */

.container {
    padding: 80px 5%;
}

.container h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 45px;
}

/* GRID */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
}

/* PRODUCT CARD */

.product-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    position: relative;
    transition: 0.35s;

    display: flex;
    flex-direction: column;
    min-height: 610px;

    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.08);
}

/* DISCOUNT */

.discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ff3b30, #ff2d55);
    color: white;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 12px 24px rgba(255,59,48,0.18);
}

/* IMAGE */

.product-img {
    width: 100%;
    height: 290px;
    object-fit: cover;
}

/* CONTENT */

.product-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-tag {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    height: 78px;
    overflow: hidden;
    margin-bottom: 16px;
}

/* PRICE */

.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.price {
    font-size: 26px;
    font-weight: 900;
    color: #2563eb;
}

.old-price {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}

/* BUTTONS */

.button-group {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.cart-btn,
.order-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.cart-btn {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    color: #334155;
}

.cart-btn:hover {
    background: #f1f5f9;
}

.order-btn {
    background: linear-gradient(135deg, #111827, #1e293b);
    color: white;
    border: none;
    box-shadow: 0 14px 28px rgba(17,24,39,0.10);
}

.order-btn:hover {
    transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #020617;
    color: white;
    margin-top: 90px;
    padding-top: 80px;
}

.footer-container {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 45px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 18px;
    font-weight: 800;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a,
.social-links a {
    color: #cbd5e1;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul li a:hover,
.social-links a:hover {
    color: #38bdf8;
}

.footer-bottom {
    margin-top: 55px;
    padding: 24px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-center {
        width: 100%;
        order: 3;
    }

    .slider-container {
        height: 430px;
    }

    .slide-content h1 {
        font-size: 34px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .container h2 {
        font-size: 28px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }

    .button-group {
        flex-direction: column;
    }

    .product-card {
        min-height: auto;
    }

    .product-title {
        height: auto;
    }
}