/* ============ GLOBAL STYLES ============ */
:root {
    --primary-color: #d47b6a;
    --secondary-color: #f9afa0;
    --light-pink: #ffe4dc;
    --dark-brown: #4d2f27;
    --light-bg: #fef0ea;
    --success-green: #2f6b4b;
    --warning-yellow: #f7b731;
    --danger-red: #dc3545;
    --info-blue: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #fff9f5;
    color: #333;
    overflow-x: hidden;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-brown);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 2rem 0 1.5rem;
    position: relative;
    text-align: center;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 30px;
    border-radius: 60px;
    display: inline-block;
    box-shadow: 0 8px 16px rgba(212, 123, 106, 0.2);
}

/* ============ BUTTONS ============ */
.btn-kiddo-primary {
    background: var(--secondary-color);
    border: none;
    border-radius: 60px;
    padding: 15px 40px;
    font-weight: 700;
    color: var(--dark-brown);
    box-shadow: 0 6px 0 #d68d7c;
    transition: 0.1s;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-kiddo-primary:hover {
    background: #ffb8a9;
    color: var(--dark-brown);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #d68d7c;
}

.btn-kiddo-primary:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #d68d7c;
}

.btn-kiddo-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-kiddo-secondary {
    background: white;
    border: 2px solid var(--secondary-color);
    border-radius: 60px;
    padding: 13px 38px;
    font-weight: 700;
    color: var(--primary-color);
    transition: 0.2s;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-kiddo-secondary:hover {
    background: #fff0ec;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============ PRODUCT CARDS ============ */
.product-card {
    background: white;
    border-radius: 30px;
    padding: 20px 15px;
    box-shadow: 0 10px 25px #edd7cf;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #ffe4dc;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px #e3c9bf;
}

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 30px;
    background: var(--light-bg);
    margin-bottom: 15px;
}

.product-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--dark-brown);
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

.badge-kiddo {
    background: var(--secondary-color);
    color: var(--dark-brown);
    border-radius: 40px;
    padding: 5px 12px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
}

/* ============ TOPBAR ============ */
.topbar {
    background: var(--primary-color);
    color: white;
    padding: 10px 0;
}

.topbar a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.topbar a:hover {
    opacity: 0.8;
}

.cart-count {
    background: var(--warning-yellow);
    color: var(--dark-brown);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 20px;
}

/* ============ NAVBAR ============ */
.navbar-kiddo {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.nav-link-custom {
    color: var(--dark-brown);
    font-weight: 600;
    padding: 10px 15px !important;
    transition: 0.3s;
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--primary-color);
    background: rgba(212, 123, 106, 0.1);
    border-radius: 30px;
}

.dropdown-menu {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 15px;
    min-width: 220px;
}

.dropdown-item {
    border-radius: 12px;
    padding: 8px 15px;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* ============ CART PAGE ============ */
.cart-table {
    background: white;
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 15px 25px #edd7cf;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 30px;
}

.remove-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.remove-link:hover {
    color: #a55a48;
    text-decoration: underline;
}

.order-summary-card {
    background: white;
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 15px 25px #edd7cf;
    position: sticky;
    top: 20px;
}

.free-ship-msg {
    background: #e1f0e1;
    border-radius: 60px;
    padding: 15px;
    color: var(--success-green);
    font-weight: 600;
}

.cart-qty {
    width: 50px;
    text-align: center;
    border: 1px solid #ffd2c5;
    border-radius: 20px;
    padding: 5px;
}

/* ============ CHECKOUT PAGE ============ */
.checkout-step {
    background: white;
    border-radius: 40px;
    padding: 25px;
    box-shadow: 0 10px 20px #f0dbd3;
    margin-bottom: 20px;
}

.step-number {
    background: var(--secondary-color);
    color: var(--dark-brown);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 10px;
}

/* ============ AUTH PAGES ============ */
.auth-card {
    background: white;
    border-radius: 70px;
    padding: 50px 40px;
    box-shadow: 0 20px 30px #e9d3ca;
    max-width: 500px;
    margin: 30px auto;
}

.auth-input {
    border: 2px solid #fad4c9;
    border-radius: 60px;
    padding: 14px 20px;
    background: #fff9f5;
    width: 100%;
}

.auth-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(212, 123, 106, 0.25);
    outline: none;
}

/* ============ PRODUCT DETAILS ============ */
.main-zoom-img {
    width: 100%;
    border-radius: 40px;
    background: var(--light-bg);
    aspect-ratio: 1/1;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 20px;
    background: #f7e2da;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.2s;
}

.thumb-img:hover,
.thumb-img.active-thumb {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    font-size: 1.2rem;
    color: #b18b7e;
    text-decoration: line-through;
}

.discount-badge {
    background: #b0d9c1;
    color: #205f3b;
    font-weight: 700;
    border-radius: 40px;
    padding: 5px 15px;
    display: inline-block;
}

.size-option,
.color-option {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.size-option {
    background: white;
    border: 2px solid #ffd2c5;
    border-radius: 40px;
    padding: 8px 18px;
    font-weight: 600;
    transition: 0.2s;
}

.size-option:hover,
.size-option.active-size {
    background: #ffe0d6;
    border-color: var(--primary-color);
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #ffd2c5;
    transition: 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.product-description-card {
    background: white;
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 15px 25px #edd7cf;
}

/* ============ CATEGORY PAGE ============ */
.filter-sidebar {
    background: white;
    border-radius: 30px;
    padding: 25px 18px;
    box-shadow: 0 10px 20px #f0dbd3;
    border: 1px solid #ffe4dc;
    position: sticky;
    top: 20px;
}

.filter-title {
    font-weight: 800;
    color: #b28171;
    border-bottom: 2px dashed #fad4c9;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sort-radio label {
    display: block;
    padding: 8px 15px;
    background: #fef2ed;
    border-radius: 40px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.1s;
}

.sort-radio input:checked + label {
    background: #fccfc1;
    color: #4d2f27;
    font-weight: 700;
}

/* ============ VIDEO SLIDER ============ */
.video-slider-wrap {
    background: #f6ede8;
    border-radius: 50px;
    padding: 30px 20px;
    margin: 30px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.video-slider-wrap::-webkit-scrollbar {
    height: 8px;
}

.video-slider-wrap::-webkit-scrollbar-track {
    background: #f5dfd7;
    border-radius: 20px;
}

.video-slider-wrap::-webkit-scrollbar-thumb {
    background: #dbb6ab;
    border-radius: 20px;
}

.video-card {
    display: inline-block;
    width: 260px;
    margin: 0 12px;
    background: #ffeae3;
    border-radius: 40px;
    padding: 16px 12px 20px;
    white-space: normal;
    vertical-align: top;
    box-shadow: 0 10px 14px #e7cfc4;
    transition: 0.2s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card iframe {
    border-radius: 30px;
}

/* ============ WHY CHOOSE US ============ */
.why-icon {
    background: white;
    border-radius: 50px;
    padding: 30px 20px;
    box-shadow: 0 10px 20px #edd7cf;
    transition: 0.3s;
}

.why-icon:hover {
    transform: translateY(-5px);
    background: #ffeae3;
}

.why-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-icon h5 {
    font-weight: 700;
    color: var(--dark-brown);
}

/* ============ TESTIMONIALS ============ */
.testimonial-card {
    background: white;
    border-radius: 40px;
    padding: 30px;
    box-shadow: 0 15px 25px #edd7cf;
    margin-bottom: 20px;
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: #ffeae3;
}

.testimonial-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.5;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.testimonial-card h6 {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============ FOOTER ============ */
.footer-kiddo {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-kiddo a {
    color: rgba(255,255,255,0.7);
    transition: 0.3s;
}

.footer-kiddo a:hover {
    color: white;
    text-decoration: none;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-top: 30px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title span {
        padding: 8px 20px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .cart-item-img {
        width: 60px;
        height: 60px;
    }
    
    .thumb-img {
        width: 50px;
        height: 50px;
    }
    
    .btn-kiddo-primary,
    .btn-kiddo-secondary {
        padding: 12px 20px;
    }
    
    .product-card {
        padding: 15px 10px;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .order-summary-card {
        position: static;
        margin-top: 20px;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .video-card {
        width: 220px;
    }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s ease forwards;
}