/* ============================================
   SAKURA DARLING - Main CSS v3.0
   Soft Pink & White Theme
   Premium Florist E-Commerce
   ============================================ */

/* ========== CSS Variables - Soft Palette ========== */
:root {
    /* Primary - Soft Pink */
    --primary: #f5a3c7;
    --primary-dark: #e891b5;
    --primary-light: #fccadf;
    --primary-soft: #fef0f5;
    --primary-bg: #fff5f8;
    
    /* Secondary - Light Pink */
    --secondary: #ffe4ed;
    --secondary-dark: #fdd0e0;
    --secondary-light: #fff0f5;
    
    /* Accent Colors */
    --accent: #f9c0d3;
    --accent-light: #fde8ef;
    
    /* Neutral - Soft Cream & White */
    --cream: #fffaf6;
    --cream-dark: #fdf5ed;
    --white: #ffffff;
    --white-soft: #fefefe;
    --off-white: #fcf9f7;
    
    /* Dark - Soft Grayish Brown (not too dark) */
    --dark: #5a4a55;
    --dark-light: #7a6a75;
    --dark-soft: #8b7b86;
    
    /* Gray Scale - Soft */
    --gray-50: #fcfaf8;
    --gray-100: #f8f5f3;
    --gray-200: #f0edeb;
    --gray-300: #e3dfdd;
    --gray-400: #d1cdcb;
    --gray-500: #b8b4b2;
    --gray-600: #9a9694;
    
    /* Status Colors (soft) */
    --success: #a8d5b5;
    --success-dark: #8bc49c;
    --warning: #f5e0b3;
    --warning-dark: #eed494;
    --danger: #f5b8b8;
    --danger-dark: #efa3a3;
    --info: #b8d8f0;
    --info-dark: #9cc7e8;
    
    /* Shadows - Soft & Diffuse */
    --shadow-xs: 0 1px 3px rgba(90, 74, 85, 0.04);
    --shadow-sm: 0 2px 8px rgba(90, 74, 85, 0.05);
    --shadow-md: 0 4px 16px rgba(90, 74, 85, 0.06);
    --shadow-lg: 0 8px 28px rgba(90, 74, 85, 0.08);
    --shadow-xl: 0 12px 40px rgba(90, 74, 85, 0.1);
    --shadow-hover: 0 12px 32px rgba(245, 163, 199, 0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --border-radius-sm: 6px;
    --border-radius: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-2xl: 32px;
    
    /* Container */
    --container-padding: 1rem;
    --navbar-height: 80px;
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* ========== Custom Scrollbar - Soft ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.2rem); }

p {
    margin-bottom: 1rem;
    color: var(--dark-light);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== Text Styles ========== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-soft {
    color: var(--dark-light);
}

.text-muted-soft {
    color: var(--gray-500);
}

/* ========== Backgrounds ========== */
.bg-soft-pink {
    background: var(--primary-bg);
}

.bg-soft-cream {
    background: var(--cream);
}

.bg-white-soft {
    background: var(--white-soft);
}

.bg-gradient-soft {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--cream) 100%);
}

.bg-gradient-pink {
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--secondary) 100%);
}

/* ========== Loading Screen ========== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.sakura-loading {
    position: relative;
    width: 80px;
    height: 80px;
}

.petal {
    position: absolute;
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 0 50% 50% 50%;
    opacity: 0.6;
    animation: floatPetal 1.5s infinite;
}

.petal:nth-child(1) { top: 0; left: 26px; animation-delay: 0s; }
.petal:nth-child(2) { top: 26px; left: 52px; animation-delay: 0.4s; transform: rotate(90deg); }
.petal:nth-child(3) { top: 52px; left: 26px; animation-delay: 0.8s; transform: rotate(180deg); }
.petal:nth-child(4) { top: 26px; left: 0; animation-delay: 1.2s; transform: rotate(270deg); }

@keyframes floatPetal {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
    50% { transform: rotate(45deg) translateY(-8px); opacity: 0.8; }
}

.loading-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    margin-top: 1rem;
    letter-spacing: 1px;
}

/* ========== Top Bar ========== */
.top-bar {
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 8px 0;
    font-size: 0.75rem;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid var(--secondary);
}

.top-bar i {
    color: var(--primary);
}

.promo-code strong {
    background: var(--white);
    padding: 2px 8px;
    border-radius: 20px;
    font-family: monospace;
    color: var(--primary-dark);
    font-weight: 600;
}

.date-time {
    font-size: 0.7rem;
    color: var(--dark-light);
}

/* ========== Navbar ========== */
.sticky-navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sticky-navbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.brand-icon {
    font-size: 1.6rem;
    margin-right: 6px;
}

.brand-text {
    color: var(--primary-dark);
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding: 6px 0;
    color: var(--dark);
    font-size: 0.9rem;
}

.nav-link i {
    margin-right: 6px;
    font-size: 0.85rem;
    color: var(--primary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* ========== Navbar Icons ========== */
.navbar-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-icon {
    position: relative;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    color: var(--dark);
}

.nav-icon:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.user-name {
    font-size: 0.8rem;
    margin-left: 5px;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--dark);
}

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 550px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--cream) 100%);
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--dark-light);
    margin-bottom: 24px;
    max-width: 450px;
}

.hero-badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    margin-bottom: 16px;
    box-shadow: var(--shadow-xs);
}

/* ========== Buttons ========== */
.btn {
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
    transform: translateY(-2px);
    border-color: var(--primary-dark);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.75rem;
}

/* ========== Hero Stats ========== */
.hero-stats {
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.7rem;
    margin: 0;
    color: var(--dark-light);
}

/* ========== Floating Elements ========== */
.floating-animation {
    animation: float 4s ease-in-out infinite;
}

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

.floating-sakura {
    position: absolute;
    font-size: 1.5rem;
    pointer-events: none;
    opacity: 0.3;
    animation: floatSakura 10s linear infinite;
    z-index: 0;
}

@keyframes floatSakura {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ========== Section Styles ========== */
.section-padding {
    padding: 60px 0;
}

.section-padding-sm {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 8px;
    background: var(--primary-soft);
    padding: 4px 16px;
    border-radius: 50px;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.section-desc {
    color: var(--dark-light);
    max-width: 550px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* ========== Category Cards ========== */
.category-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: block;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(90, 74, 85, 0.4), transparent 70%);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
    text-align: center;
}

.category-content h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: white;
}

.category-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.75rem;
}

.shop-now {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition);
}

.category-card:hover .shop-now {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Product Cards ========== */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.badge-new,
.badge-best,
.badge-sale {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--success);
    color: white;
}

.badge-best {
    background: var(--warning);
    color: var(--dark);
}

.badge-sale {
    background: var(--danger);
    color: white;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    box-shadow: var(--shadow-xs);
    color: var(--dark-light);
}

.wishlist-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.wishlist-btn.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    background: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    transform: translateY(15px);
}

.product-card:hover .quick-view {
    transform: translateY(0);
}

.quick-view:hover {
    background: var(--primary-dark);
}

.product-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.6rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin: 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.product-rating i {
    font-size: 0.7rem;
    color: #f5b042;
}

.rating-count {
    font-size: 0.6rem;
    color: var(--gray-500);
}

.product-price {
    margin: 8px 0;
}

.current-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    font-size: 0.7rem;
    text-decoration: line-through;
    color: var(--gray-500);
    margin-left: 6px;
}

.discount-badge {
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 50px;
    margin-left: 6px;
}

.btn-add-cart {
    width: 100%;
    padding: 8px;
    background: var(--gray-100);
    border: none;
    border-radius: 50px;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.75rem;
    transition: var(--transition);
    margin-top: auto;
    cursor: pointer;
}

.btn-add-cart:hover:not(:disabled) {
    background: var(--primary-soft);
    color: var(--primary);
}

.btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Flash Sale Section ========== */
.flash-sale-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--secondary) 100%);
    color: var(--dark);
    overflow: hidden;
}

.flash-sale-badge {
    margin-bottom: 16px;
}

.flash-sale-badge .badge {
    background: var(--white);
    color: var(--primary);
    padding: 6px 16px;
    font-size: 0.75rem;
    border-radius: 50px;
}

.flash-sale-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.flash-sale-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--dark-light);
}

.countdown-timer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.countdown-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 10px 16px;
    text-align: center;
    min-width: 65px;
    box-shadow: var(--shadow-sm);
}

.countdown-number {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    display: block;
    color: var(--primary);
}

.countdown-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-light);
}

/* ========== Feature Cards ========== */
.feature-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--dark-light);
}

/* ========== Testimonials ========== */
.testimonials-section {
    background: var(--primary-bg);
}

.testimonial-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.testimonial-rating {
    margin-bottom: 12px;
}

.testimonial-rating i {
    font-size: 0.8rem;
    margin-right: 2px;
    color: #f5b042;
}

.testimonial-comment {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--dark-light);
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--gray-200);
    padding-top: 12px;
}

.author-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.testimonial-author h4 {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.testimonial-author p {
    font-size: 0.65rem;
    color: var(--gray-500);
    margin: 0;
}

/* ========== Newsletter Section ========== */
.newsletter-section {
    background: var(--secondary);
}

.newsletter-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.newsletter-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.newsletter-title {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    margin-bottom: 8px;
}

.newsletter-desc {
    color: var(--dark-light);
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.newsletter-form {
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    background: var(--gray-100);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    background: transparent;
    border: none;
    padding: 12px 18px;
    font-size: 0.85rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.newsletter-note {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 12px;
}

/* ========== Footer ========== */
.footer {
    background: var(--cream);
    color: var(--dark-light);
    padding: 50px 0 25px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-soft), var(--primary), var(--primary-soft));
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
    color: var(--primary-dark);
}

.footer-logo .logo-icon {
    font-size: 1.5rem;
    margin-right: 5px;
}

.footer-desc {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--dark-light);
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 34px;
    height: 34px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--dark-light);
    box-shadow: var(--shadow-xs);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-title {
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--dark-light);
    transition: var(--transition);
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    width: 20px;
    color: var(--primary);
    font-size: 0.85rem;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 38px;
    height: 38px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ========== Floating WhatsApp ========== */
.floating-wa {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 999;
}

.floating-wa:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.wa-tooltip {
    position: absolute;
    left: 58px;
    background: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.floating-wa:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ========== Cart & Checkout ========== */
.cart-item {
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.cart-summary,
.order-summary {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.summary-item.total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: none;
    padding-top: 12px;
}

.checkout-form {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-section-title {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary);
}

.payment-methods {
    background: var(--gray-100);
    padding: 16px;
    border-radius: var(--border-radius);
}

/* ========== Toast Notifications ========== */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    padding: 10px 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    border-left: 3px solid;
}

.toast-notification.toast-success {
    border-left-color: var(--success);
}

.toast-notification.toast-success i {
    color: var(--success);
}

.toast-notification.toast-error {
    border-left-color: var(--danger);
}

.toast-notification.toast-error i {
    color: var(--danger);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .section-padding {
        padding: 50px 0;
    }
    .hero-section {
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }
    .hero-section {
        min-height: auto;
        text-align: center;
        padding: 40px 0;
    }
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
    .hero-stats .stat-item {
        margin-bottom: 10px;
    }
    .countdown-timer {
        justify-content: center;
    }
    .countdown-item {
        min-width: 55px;
        padding: 8px 12px;
    }
    .countdown-number {
        font-size: 1rem;
    }
    .newsletter-wrapper {
        padding: 25px 20px;
    }
    .floating-wa {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.3rem;
    }
    .product-title {
        font-size: 0.8rem;
    }
    .current-price {
        font-size: 0.9rem;
    }
}

/* ========== Print ========== */
@media print {
    .navbar, .footer, .floating-wa, .back-to-top, 
    .newsletter-section, .hero-buttons, .pagination {
        display: none !important;
    }
    body {
        background: white;
    }
    .product-card, .cart-item, .order-summary {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
