/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #2d2d2d;
    background: #faf9f7;
}

/* ===== NAVBAR ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.logo span {
    color: #5b8def;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #5b8def;
}

.cart-button {
    background: #5b8def;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s, transform 0.15s;
}

.cart-button:hover {
    background: #4a7ad8;
    transform: translateY(-1px);
}

#cart-count {
    background: white;
    color: #5b8def;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #e8f0fe 0%, #f5f0ff 50%, #fef6e8 100%);
    padding: 5rem 1.5rem;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.small-title {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #5b8def;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: #1a1a1a;
}

.hero h1 span {
    color: #5b8def;
}

.hero p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 2rem;
}

.shop-button {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.shop-button:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ===== FEATURES ===== */
.features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
}

.feature:hover {
    transform: translateY(-4px);
}

.feature div {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: #1a1a1a;
}

.feature p {
    font-size: 0.95rem;
    color: #666;
}

/* ===== PRODUCTS ===== */
.products-section {
    background: white;
    padding: 5rem 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title p {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #5b8def;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.section-title span {
    color: #777;
}

.products {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #faf9f7;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 180px;
    background: linear-gradient(135deg, #e8f0fe, #f0e8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
}

.product-image.pillow {
    background: linear-gradient(135deg, #fef6e8, #ffe8f0);
}

.product-info {
    padding: 1.5rem;
}

.category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5b8def;
    font-weight: 600;
}

.product-info h3 {
    font-size: 1.15rem;
    margin: 0.4rem 0;
    color: #1a1a1a;
}

.description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.2rem;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-bottom strong {
    font-size: 1.2rem;
    color: #1a1a1a;
}

.product-bottom button {
    background: #5b8def;
    color: white;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.product-bottom button:hover {
    background: #4a7ad8;
}

/* ===== ABOUT ===== */
.about {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 5rem 1.5rem;
    text-align: center;
}

.about-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-content > p:first-child {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #8ab4f8;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.about-content > p:nth-of-type(2) {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.about .shop-button {
    background: #5b8def;
}

.about .shop-button:hover {
    background: #4a7ad8;
}

/* ===== CONTACT ===== */
.contact {
    padding: 5rem 1.5rem;
    background: #faf9f7;
}

.contact-info {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.contact-info > div {
    background: white;
    padding: 1.8rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-info > div {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.contact-info strong {
    display: block;
    font-size: 1rem;
    color: #1a1a1a;
    margin: 0.4rem 0;
}

.contact-info span {
    font-size: 0.95rem;
    color: #666;
}

/* ===== CART OVERLAY ===== */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: flex-end;
    align-items: stretch;
}

.cart {
    width: 100%;
    max-width: 400px;
    background: white;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-header h2 {
    font-size: 1.3rem;
}

.cart-header button {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cart-header button:hover {
    background: #f0f0f0;
}

#cart-items {
    flex: 1;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 3rem 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.cart-item p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.4rem;
}

.cart-item .remove {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}

.cart-item .remove:hover {
    text-decoration: underline;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.quantity button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.quantity button:hover {
    background: #f5f5f5;
}

.quantity span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-top: 1px solid #eee;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.checkout-button {
    background: #25d366;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.checkout-button:hover {
    background: #1ebe57;
}

/* ===== FOOTER ===== */
footer {
    background: #1a1a1a;
    color: #aaa;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

footer .logo {
    color: white;
    margin-bottom: 0.8rem;
}

footer .logo span {
    color: #5b8def;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 3.5rem 1.2rem;
    }

    .products-section,
    .about,
    .contact {
        padding: 3.5rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.9rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .cart-button {
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }
}
