@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #f0f8ff;                 
    --surface: #ffffff;
    --surface-soft: #e4f0fb;
    --navy: #212164;               
    --navy-soft: rgba(33, 33, 100, 0.08);
    --blue: #138ef3;               
    --sky: #87cefa;                
    --sky-border: #0000ff;         
    --yellow: #f7f765;            
    --yellow-border: #ffff00;
    --gold-light: #f7c948;         
    --gold-deep: #d4a017;         
    --text-dark: #111111;
    --text-body: #45454a;
    --text-muted: #7a7a85;
    --green: #1c9d5b;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--gold-light);
    color: var(--text-dark);
}

#header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(240, 248, 255, 0.8);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid rgba(33, 33, 100, 0.08);
}

#nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    max-height: 52px;
    width: auto;
    transition: transform 0.3s var(--ease);
}

.logo:hover {
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
    padding-bottom: 6px;
    transition: color 0.25s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover {
    color: var(--blue);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

#product {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 70px 40px 60px;
}

.product-image {
    width: 100%;
    max-width: 780px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px -20px rgba(33, 33, 100, 0.25);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.product-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px -18px rgba(33, 33, 100, 0.32);
}

#product-details {
    display: flex;
    padding: 0 40px 80px;
    max-width: 1140px;
    margin: 0 auto;
}

.product-details {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 26px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 50px -24px rgba(33, 33, 100, 0.18);
}

.product-info {
    padding: 0 0 24px;
    border-bottom: 1px solid var(--navy-soft);
}

h1.product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.product-tagline {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--blue);
    margin-top: 6px;
}

.product-description {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 14px;
    max-width: 560px;
}

.rating {
    font-size: 1.2rem;
    margin-top: 14px;
    color: var(--gold-deep);
}

.review {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.price {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    width: fit-content;
}

.price .current-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.1rem;
    color: var(--navy);
}

.price .old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    margin: 0;
    font-size: 1.1rem;
}

.discount {
    background-color: var(--blue);
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 10px;
}

.shipping,
.stock {
    font-size: 1rem;
    padding: 0;
    color: var(--text-body);
}

.shipping {
    color: var(--green);
    font-weight: 500;
}

.buttons {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    padding: 0;
}

.add-to-cart,
.buy-now {
    width: 230px;
    height: 60px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.add-to-cart {
    background-color: var(--sky);
    border: 2px solid var(--sky-border);
    color: var(--navy);
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 255, 0.3);
}

.buy-now {
    background-color: var(--yellow);
    border: 2px solid var(--yellow-border);
    color: var(--text-dark);
}

.buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(212, 160, 23, 0.4);
}

.add-to-cart:active,
.buy-now:active {
    transform: scale(0.97);
}

.trust {
    display: flex;
    gap: 26px;
    padding-top: 20px;
    font-size: 0.95rem;
    color: var(--text-body);
    flex-wrap: wrap;
    border-top: 1px solid var(--navy-soft);
}

.trust p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tick {
    color: var(--green);
    font-size: 1rem;
}

.features {
    padding: 24px;
    font-size: 1rem;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 22px;
}

.features h3 {
    grid-column: 1 / -1;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 4px;
}

.features p {
    color: var(--text-body);
    font-size: 0.95rem;
    padding: 10px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.features p:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -12px rgba(33, 33, 100, 0.25);
}

#similar-prodcuts {
    padding: 50px 40px;
    max-width: 1240px;
    margin: 0 auto;
}

#similar-prodcuts h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 24px;
}

.cards-container {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 6px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--blue) transparent;
}

.card {
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: start;
    background: rgb(201, 223, 241);
    border-radius: var(--radius-md);
    padding: 14px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px -16px rgba(33, 33, 100, 0.35);
}

.product-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: white;
}

.card .product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    color: var(--navy);
    line-height: 1.35;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.product-price .current-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}

.product-price .old-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin: 0;
}

.product-price .discount {
    font-size: 0.7rem;
    padding: 3px 8px;
}

.cards-container::-webkit-scrollbar {
    height: 6px;
}

.cards-container::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 10px;
}

#checkout {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: #12121a;
    border-top: 1px solid #222;
}

.checkout {
    display: flex;
    justify-content: center;
}

.checkout-btn {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    color: #111;
    border: none;
    padding: 20px 80px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    box-shadow: 0 10px 25px rgba(247, 201, 72, 0.25);
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(247, 201, 72, 0.4);
}

.checkout-btn:active {
    transform: scale(0.98);
}

.footer {
    background: var(--navy);
    padding: 55px 20px 40px;
}

.footer-content {
    max-width: 720px;
    margin: auto;
    text-align: center;
}

.brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: white;
}

.tagline {
    color: #b8b8d8;
    margin-bottom: 28px;
    font-size: 0.85rem;
}

.contact p {
    margin: 8px 0;
    color: #cfcfe0;
    font-size: 0.85rem;
    line-height: 1.7;
}

.contact strong {
    color: white;
    font-weight: 600;
}

.legal {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.legal p {
    font-size: 0.72rem;
    color: #9090b0;
    line-height: 1.6;
}

@media (max-width: 900px) {
    #nav-bar {
        padding: 16px 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    #product {
        padding: 50px 20px 40px;
    }

    #product-details {
        padding: 0 20px 60px;
    }

    .product-details {
        padding: 26px;
    }

    h1.product-name {
        font-size: 2.1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    #similar-prodcuts {
        padding: 36px 24px;
    }

    .checkout-btn {
        padding: 16px 50px;
        font-size: 1rem;
    }
}

@media (max-width: 560px) {
    .nav-links {
        gap: 12px;
    }

    .nav-link {
        font-size: 0.78rem;
    }

    .buttons {
        flex-direction: column;
    }

    .add-to-cart,
    .buy-now {
        width: 100%;
    }

    .trust {
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}