﻿/* ==========================================================================
   Becky's Baby Shop - Premium Baby Diapers & Wipes
   ========================================================================== */

:root {
    --color-sky: #4fb8e8;
    --color-sky-light: #eaf6ff;
    --color-green: #48b893;
    --color-green-light: #eafff3;
    --color-gray: #f7f9fa;
    --color-dark: #2d3436;
    --color-muted: #5c6b73;
    --color-pink: #f592a6;
    --color-gold: #f2c94c;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 10px 30px rgba(79, 184, 232, 0.12);
    --shadow-hover: 0 16px 40px rgba(79, 184, 232, 0.2);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-dark);
}

a { text-decoration: none; }

.section { padding: 90px 0; }
@media (max-width: 768px) {
    .section { padding: 56px 0; }
}

.text-accent { color: var(--color-sky); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-green);
    background: var(--color-green-light);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.section-heading { max-width: 640px; margin: 0 auto 50px; }
.section-heading h2 { font-size: 2.2rem; margin-bottom: 12px; }
.section-heading p { color: var(--color-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 50px; font-family: var(--font-heading); font-weight: 600; padding: 10px 26px; transition: all 0.25s ease; }
.btn-primary {
    background: var(--color-sky);
    border-color: var(--color-sky);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background: #3aa4d6;
    border-color: #3aa4d6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.btn-outline-primary {
    color: var(--color-sky);
    border-color: var(--color-sky);
}
.btn-outline-primary:hover {
    background: var(--color-sky);
    border-color: var(--color-sky);
    transform: translateY(-2px);
}
.btn-shop { padding: 12px 34px; }
.btn-light { border-radius: 50px; font-weight: 600; }

/* ---------- Top Bar & Navbar ---------- */
.top-bar {
    background: var(--color-dark);
    color: #fff;
    font-size: 0.82rem;
    padding: 8px 0;
}
.top-bar a { color: #fff; font-weight: 600; }

.site-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}
.brand-mark { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--color-dark); }
.brand-accent { color: var(--color-sky); }
.navbar-nav .nav-link { font-weight: 600; color: var(--color-dark); margin: 0 10px; position: relative; }
.navbar-nav .nav-link:hover { color: var(--color-sky); }
.cart-link { color: var(--color-dark); display: inline-flex; }
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-pink);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Hero ---------- */
.hero-section { padding: 70px 0 40px; overflow: hidden; }
.hero-copy .hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .hero-copy .hero-title { font-size: 2.1rem; }
}
.hero-desc { font-size: 1.08rem; color: var(--color-muted); max-width: 520px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; }
.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-dark);
    background: #fff;
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
}
.hero-badge svg { color: var(--color-sky); flex-shrink: 0; }
.hero-visual { position: relative; max-width: 460px; margin: 0 auto; }
.hero-visual::before {
    content: '';
    position: absolute;
    inset: -30px -20px;
    background: linear-gradient(135deg, var(--color-sky-light), var(--color-green-light));
    border-radius: 50% 45% 55% 50% / 55% 50% 50% 45%;
    z-index: 0;
}
.hero-img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* ---------- Categories ---------- */
.categories-section { background: var(--color-gray); }
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.category-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--color-sky-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sky);
}
.category-name { font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem; color: var(--color-dark); }

/* ---------- Products ---------- */
.filter-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.filter-btn {
    border: 2px solid var(--color-sky-light);
    background: #fff;
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 50px;
    transition: all 0.25s ease;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--color-sky);
    border-color: var(--color-sky);
    color: #fff;
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.badge-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    padding: 5px 12px;
    border-radius: 50px;
    color: #fff;
}
.badge-sale { background: var(--color-pink); }
.badge-new { background: var(--color-green); }

.quick-view-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.25s ease;
}
.product-card:hover .quick-view-btn { opacity: 1; transform: translateY(0); }
.quick-view-btn:hover { background: var(--color-sky); color: #fff; }

.product-img-wrap { background: var(--color-gray); overflow: hidden; }
.product-img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.35s ease; }
.product-card:hover .product-img { transform: scale(1.05); }

.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex-grow: 1; }
.product-category { font-size: 0.72rem; color: var(--color-sky); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 6px 0 8px;
    line-height: 1.35;
    min-height: 2.6em;
}
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars { color: var(--color-gold); font-size: 0.85rem; letter-spacing: 1px; }
.star-empty { color: #e2e6e9; }
.rating-count { font-size: 0.78rem; color: var(--color-muted); }
.product-price { margin-bottom: 14px; }
.price-new { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-dark); }
.price-old { font-size: 0.88rem; color: var(--color-muted); text-decoration: line-through; margin-left: 8px; }
.btn-add-cart { margin-top: auto; font-size: 0.9rem; }

/* ---------- Why Choose Us ---------- */
.why-us-section { background: #fff; }
.feature-box { padding: 20px 10px; }
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-sky-light);
    color: var(--color-sky);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: all 0.3s ease;
}
.feature-box:hover .feature-icon { background: var(--color-sky); color: #fff; transform: rotate(8deg) scale(1.05); }
.feature-box h4 { font-size: 1rem; margin-bottom: 8px; }
.feature-box p { font-size: 0.85rem; color: var(--color-muted); }

/* ---------- Offers ---------- */
.offer-banner {
    border-radius: var(--radius-lg);
    padding: 44px;
    color: #fff;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.offer-blue { background: linear-gradient(135deg, #4fb8e8, #3a8fc7); }
.offer-green { background: linear-gradient(135deg, #48b893, #2f8c6e); }
.offer-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.offer-banner h3 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.offer-banner p { margin-bottom: 20px; opacity: 0.92; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--color-gray); }
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.testimonial-text { color: var(--color-muted); font-size: 0.92rem; margin: 14px 0 20px; line-height: 1.6; }
.testimonial-user { display: flex; align-items: center; gap: 12px; }
.testimonial-user img { width: 44px; height: 44px; border-radius: 50%; }
.testimonial-user strong { display: block; font-size: 0.9rem; }
.testimonial-user span { font-size: 0.78rem; color: var(--color-muted); }

/* ---------- FAQ ---------- */
.accordion-button { font-family: var(--font-heading); font-weight: 600; }
.accordion-button:not(.collapsed) { background: var(--color-sky-light); color: var(--color-sky); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: rgba(79, 184, 232, 0.3); }
.accordion-item { border-radius: var(--radius-sm) !important; overflow: hidden; margin-bottom: 12px; border: 1px solid #eef2f4; }

/* ---------- Newsletter ---------- */
.newsletter-section { padding: 70px 0; background: linear-gradient(135deg, var(--color-sky-light), var(--color-green-light)); }
.newsletter-box h2 { margin-bottom: 10px; }
.newsletter-box p { color: var(--color-muted); margin-bottom: 26px; }
.newsletter-form { display: flex; max-width: 480px; margin: 0 auto; gap: 10px; flex-wrap: wrap; justify-content: center; }
.newsletter-form .form-control { border-radius: 50px; padding: 12px 20px; flex: 1 1 260px; border: 1px solid #d9e6ea; }
.newsletter-form .form-control:focus { box-shadow: 0 0 0 3px rgba(79, 184, 232, 0.15); border-color: var(--color-sky); }
.newsletter-msg { margin-top: 14px; font-weight: 600; color: var(--color-green); min-height: 1.2em; }

/* ---------- Contact ---------- */
.contact-info-box { background: var(--color-gray); border-radius: var(--radius-lg); padding: 34px; height: 100%; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item svg { color: var(--color-sky); flex-shrink: 0; margin-top: 2px; }
.contact-info-item strong { display: block; font-size: 0.95rem; }
.contact-info-item span { color: var(--color-muted); font-size: 0.9rem; }
.map-placeholder {
    margin-top: 10px;
    height: 180px;
    border-radius: var(--radius-md);
    background: repeating-linear-gradient(45deg, #e4eef2, #e4eef2 10px, #dbe7ec 10px, #dbe7ec 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-weight: 600;
    font-size: 0.85rem;
}
.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-soft); }
.contact-form .form-label { font-weight: 600; font-size: 0.88rem; }
.contact-form .form-control { border-radius: var(--radius-sm); padding: 10px 16px; border: 1px solid #e2e8ea; }
.contact-form .form-control:focus { box-shadow: 0 0 0 3px rgba(79, 184, 232, 0.15); border-color: var(--color-sky); }
.contact-msg { margin-top: 14px; font-weight: 600; color: var(--color-green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: #cfd8db; }
.footer-brand { color: #fff; font-weight: 800; margin-bottom: 14px; }
.footer-text { font-size: 0.9rem; color: #a9b4b8; margin-bottom: 20px; }
.footer-heading { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; font-size: 0.88rem; color: #a9b4b8; }
.footer-links a { color: #a9b4b8; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--color-sky); }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.social-icons a:hover { background: var(--color-sky); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; font-size: 0.82rem; color: #8a9599; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-sky);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    z-index: 999;
    transition: all 0.25s ease;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: #3aa4d6; transform: translateY(-4px); }

/* ---------- Reveal animation ---------- */
[data-aos] { opacity: 0; transform: translateY(24px); transition: all 0.7s ease; }
[data-aos].aos-in { opacity: 1; transform: translateY(0); }

/* ---------- Cart & Checkout pages ---------- */
.page-header {
    background: var(--color-sky-light);
    padding: 50px 0;
    text-align: center;
}
.page-header h1 { margin-bottom: 6px; }
.page-header .breadcrumb-nav { color: var(--color-muted); font-size: 0.9rem; }
.page-header .breadcrumb-nav a { color: var(--color-sky); font-weight: 600; }

.cart-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
.cart-table th { border: none; color: var(--color-muted); font-family: var(--font-heading); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0 16px 10px; }
.cart-row { background: #fff; box-shadow: var(--shadow-soft); }
.cart-row td { border: none; padding: 16px; vertical-align: middle; }
.cart-row td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.cart-row td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { width: 66px; height: 66px; object-fit: cover; background: var(--color-gray); border-radius: var(--radius-sm); }
.cart-product-name { font-weight: 600; font-size: 0.92rem; }

.qty-control { display: inline-flex; align-items: center; border: 1px solid #e2e8ea; border-radius: 50px; overflow: hidden; }
.qty-control button { width: 32px; height: 32px; border: none; background: var(--color-gray); font-weight: 700; color: var(--color-dark); }
.qty-control input { width: 42px; border: none; text-align: center; font-weight: 700; }
.qty-control input:focus { outline: none; }

.remove-item-btn { color: var(--color-pink); background: none; border: none; font-weight: 600; font-size: 0.85rem; }
.remove-item-btn:hover { text-decoration: underline; }

.order-summary-box { background: var(--color-gray); border-radius: var(--radius-lg); padding: 30px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 0.95rem; color: var(--color-muted); }
.summary-row.total { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--color-dark); border-top: 1px solid #dfe6e9; padding-top: 16px; margin-top: 6px; }

.empty-cart-box { text-align: center; padding: 80px 20px; }
.empty-cart-box svg { color: var(--color-sky); margin-bottom: 20px; }

.checkout-form-box { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 34px; }
.checkout-form-box h5 { margin-bottom: 20px; }
.payment-option {
    border: 2px solid #e2e8ea;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.payment-option.active { border-color: var(--color-sky); background: var(--color-sky-light); }

.success-box { text-align: center; padding: 80px 20px; }
.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-green-light);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.order-id-box {
    display: inline-block;
    background: var(--color-gray);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 14px 0 26px;
}

/* Quick view modal */
.qv-body { display: flex; gap: 24px; flex-wrap: wrap; padding: 10px; }
.qv-img { flex: 1 1 220px; background: var(--color-gray); border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.qv-img img { width: 100%; height: 100%; object-fit: cover; }
.qv-info { flex: 1 1 260px; }

@media (max-width: 576px) {
    .hero-title { font-size: 1.8rem; }
    .section-heading h2 { font-size: 1.7rem; }
}
