/* ========================================
   Nyorixa - Plant E-commerce CSS
   ======================================== */

:root {
    --green-primary: #2d7a3a;
    --green-dark: #1a5227;
    --green-light: #e8f5e9;
    --green-accent: #4caf50;
    --green-muted: #81c784;
    --cream: #f9f6f0;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --border-light: #e8f5e9;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
}

/* ---- Announcement Bar ---- */
.announcement-bar {
    background: var(--green-primary);
    color: #fff;
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ---- Navbar ---- */
.navbar {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* Nyorixa navbar logo image */
.navbar-logo-img {
    height: 52px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    background: transparent;
}

/* Search */
.search-input-group {
    width: 400px;
}

.search-input {
    border: 2px solid var(--border-light);
    border-right: none;
    border-radius: 25px 0 0 25px !important;
    padding: 8px 16px;
    font-size: 0.875rem;
    background: #f8f9fa;
}

.search-input:focus {
    border-color: var(--green-primary);
    box-shadow: none;
    background: #fff;
}

.search-btn {
    background: var(--green-primary);
    color: #fff;
    border-radius: 0 25px 25px 0 !important;
    border: 2px solid var(--green-primary);
    padding: 8px 16px;
}

.search-btn:hover { background: var(--green-dark); color: #fff; }

/* Nav icons */
.nav-icons { position: relative; }

.nav-icon-link {
    color: var(--text-dark);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.nav-icon-link:hover { color: var(--green-primary); }

.cart-link { position: relative; }

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--green-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav links */
.navbar-nav .nav-link {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-dark) !important;
    padding: 8px 12px;
    transition: color 0.2s;
    position: relative;
}

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

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--green-primary);
}

.dropdown-menu {
    border-radius: var(--radius-sm);
    padding: 8px 0;
    font-size: 0.875rem;
}

.dropdown-item {
    padding: 6px 20px;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background: var(--green-light);
    color: var(--green-primary);
}

/* ---- Hero Slider ---- */
.hero-carousel {
    position: relative;
}

.hero-slide {
    min-height: 520px;
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 50%, #81c784 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slide-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 65%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin: 16px 0 32px;
}

.btn-hero {
    background: var(--green-primary);
    color: #fff;
    padding: 14px 36px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
    display: inline-block;
    border: none;
}

.btn-hero:hover {
    background: var(--green-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45,122,58,0.4);
}

.carousel-indicators [data-bs-target] {
    background-color: var(--green-primary);
    width: 30px;
    height: 3px;
    border-radius: 2px;
}

/* ---- Section Titles ---- */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--green-primary);
    margin: 12px 0 32px;
}

/* ---- Product Cards ---- */
.product-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
}

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

.product-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--green-light);
    transition: transform 0.4s;
}

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

.product-img-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--green-primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-card-sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e53935;
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-card-body {
    padding: 16px;
}

.product-card-category {
    font-size: 0.7rem;
    color: var(--green-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.product-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.price-original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-add-cart {
    background: var(--green-primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 12px;
}

.btn-add-cart:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

/* ---- Category Cards ---- */
.category-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 1;
}

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

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 20px 12px 12px;
}

.category-card-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
}

.category-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8f5e9, #a5d6a7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius);
    transition: all 0.3s;
    cursor: pointer;
}

.category-placeholder:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---- Nature Banner Section ---- */
.natures-best {
    background: linear-gradient(135deg, #f1f8e9, #e8f5e9);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.natures-best-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: 100%;
}

.testimonial-stars {
    color: #f9a825;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.875rem;
}

.testimonial-location {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Marquee Strip ---- */
.marquee-strip {
    background: var(--green-primary);
    overflow: hidden;
    padding: 10px 0;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

.marquee-content span {
    margin: 0 20px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Buttons ---- */
.btn-primary-green {
    background: var(--green-primary);
    color: #fff;
    border: 2px solid var(--green-primary);
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-green:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-green {
    background: transparent;
    color: var(--green-primary);
    border: 2px solid var(--green-primary);
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-green:hover {
    background: var(--green-primary);
    color: #fff;
}

/* ---- Cart Page ---- */
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-img-placeholder {
    width: 80px;
    height: 80px;
    background: var(--green-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.cart-summary-card {
    background: var(--green-light);
    border-radius: var(--radius);
    padding: 24px;
}

/* ---- Product Detail ---- */
.product-detail-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
}

.product-detail-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
}

.product-info-badge {
    background: var(--green-light);
    color: var(--green-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plant-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.plant-info-item {
    background: var(--cream);
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plant-info-icon { font-size: 1.2rem; }

.plant-info-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plant-info-value {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---- Forms & Auth ---- */
.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--green-primary);
    margin-bottom: 8px;
}

/* ---- Footer ---- */
.footer {
    background: #1a3320;
    color: #d4e8d6;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #aad5a0;
    line-height: 1.6;
}

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

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.social-link:hover { background: var(--green-primary); color: #fff; }

.footer-heading {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

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

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

.footer-links a {
    color: #aad5a0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

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

.footer-contact li {
    color: #aad5a0;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact i { color: var(--green-muted); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aad5a0;
    font-size: 0.8rem;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: all 0.3s;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover { background: #128c7e; color: #fff; transform: scale(1.1); }

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ---- Feature Strips ---- */
.feature-strip {
    background: var(--cream);
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--green-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.feature-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Breadcrumb ---- */
.page-header {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    padding: 24px 0;
    margin-bottom: 32px;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--green-dark);
    margin-bottom: 4px;
}

/* ---- Badge colors ---- */
.bg-primary-green { background: var(--green-primary) !important; }
.text-primary-green { color: var(--green-primary) !important; }

/* ---- Checkout Steps ---- */
.checkout-header {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

/* ---- Order Success ---- */
.success-check {
    width: 80px;
    height: 80px;
    background: var(--green-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-slide { min-height: 350px; }
    .hero-title { font-size: 1.8rem; }
    .hero-slide-img { width: 100%; opacity: 0.4; }
    .hero-content { padding: 40px 20px; }
    .search-input-group { width: 100%; }
    .section-title { font-size: 1.5rem; }
    .product-detail-img { height: 280px; }
    .product-detail-placeholder { height: 280px; }
    .auth-card { padding: 24px; }
}
