/* =============================================
   HONEY LIFE — ORGANIC MILLETS
   Design System & Component Styles
   ============================================= */

/* ===== DESIGN TOKENS ===== */
:root {
    --honey: #C8861A;
    --honey-light: #F5B942;
    --honey-pale: #FEF3DC;
    --earth: #5C3D11;
    --earth-mid: #8a6245;
    --cream: #FDFAF4;
    --sage: #7A9E7E;
    --sage-light: #EEF5EF;
    --text-dark: #1E1209;
    --text-mid: #6B5744;
    --border: #E8D9C0;
    --white: #ffffff;
    --shadow-sm: 0 2px 12px rgba(30,18,9,0.06);
    --shadow-md: 0 6px 30px rgba(30,18,9,0.10);
    --shadow-lg: 0 12px 50px rgba(30,18,9,0.14);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 50px;
    --transition: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== SPINNER ===== */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .6s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--honey);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(200, 134, 26, 0.35);
    transition: var(--transition);
    z-index: 99;
}

.back-to-top:hover {
    background: var(--earth);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(92, 61, 17, 0.3);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--earth);
}

/* ===== BUTTONS ===== */
.btn {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    border-radius: var(--radius-pill);
}

.btn-primary {
    background: var(--honey) !important;
    border-color: var(--honey) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: var(--earth) !important;
    border-color: var(--earth) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--earth-mid) !important;
    border-color: var(--earth-mid) !important;
    color: #fff !important;
}

.btn-outline-primary {
    border-color: var(--honey) !important;
    color: var(--honey) !important;
}

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

.btn-square   { width: 32px; height: 32px; }
.btn-sm-square{ width: 34px; height: 34px; }
.btn-md-square{ width: 44px; height: 44px; }
.btn-lg-square{ width: 56px; height: 56px; }

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

/* Add-to-cart button */
a.btn.border-secondary {
    border-color: var(--border) !important;
    color: var(--honey) !important;
    font-size: 13px;
    padding: 8px 16px;
}

a.btn.border-secondary:hover {
    background: var(--honey) !important;
    color: #fff !important;
    border-color: var(--honey) !important;
}

/* ===== HERO HEADER ===== */
.hero-header {
    background: linear-gradient(135deg, rgba(254, 243, 220, 0.92) 0%, rgba(253, 250, 244, 0.85) 100%),
                url(../img/hero-img.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 1px solid var(--border);
}

.hero-header h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--honey);
}

.hero-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.15;
    color: var(--earth);
}

/* Carousel */
.carousel-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.carousel-item img {
    border-radius: var(--radius-lg);
}

.carousel-item a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    background: rgba(200, 134, 26, 0.85);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.carousel-control-next,
.carousel-control-prev {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: var(--honey);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
    opacity: 1;
}

.carousel-control-next:hover,
.carousel-control-prev:hover {
    background: var(--earth);
    border-color: #fff;
}

.carousel-control-next { right: 14px; }
.carousel-control-prev { left: 14px; }

/* Page Header */
.page-header {
    position: relative;
    background: linear-gradient(rgba(92, 61, 17, 0.5), rgba(92, 61, 17, 0.3)),
                url(../img/page-title.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .hero-header, .page-header { margin-top: 0 !important; }
}

@media (max-width: 992px) {
    .hero-header, .page-header { margin-top: 0 !important; }
}

/* ===== SECTION HEADERS ===== */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--honey);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    color: var(--earth);
    margin: 0 0 40px;
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 60px 0 40px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.categories .img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.categories .img-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.2),
                border-color 0.25s,
                box-shadow 0.3s;
}

.categories .owl-carousel a:hover .img-container img {
    transform: scale(1.08);
    border-color: var(--honey);
    box-shadow: 0 6px 24px rgba(200, 134, 26, 0.22);
}

.categories .owl-carousel .title {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    transition: color 0.2s;
}

.categories .owl-carousel a:hover .title { color: var(--honey); }

.categories .owl-carousel a {
    text-decoration: none;
    display: block;
    padding: 12px;
}

/* ===== FEATURES ===== */
.featurs .featurs-item .featurs-icon {
    position: relative;
    width: 110px;
    height: 110px;
    background: var(--honey-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featurs .featurs-item .featurs-icon::after {
    content: "";
    width: 30px;
    height: 30px;
    background: var(--earth);
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

/* ===== PRODUCT CARDS (Vegetables / Fruits) ===== */
.limited-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
    display: block;
}

/* Vesitable */
.vesitable .vesitable-item {
    height: 100%;
    transition: var(--transition);
    border-radius: var(--radius-md) !important;
    border-color: var(--border) !important;
    background: var(--white);
    overflow: hidden;
}

.vesitable .vesitable-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--honey) !important;
}

.vesitable .vesitable-item .vesitable-img {
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.vesitable .vesitable-item .vesitable-img img {
    transition: transform 0.45s ease;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.vesitable .vesitable-item .vesitable-img img:hover {
    transform: scale(1.08);
}

.vesitable .vesitable-item .p-4 {
    background: #fff;
}

.vesitable .vesitable-item h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Price styling */
.text-dark.fs-5.fw-bold {
    color: var(--earth) !important;
    font-size: 17px !important;
}

.text-dark.fs-5.fw-bold s.text-danger {
    color: #c0392b !important;
    font-size: 13px;
    font-weight: 400;
}

/* Owl Nav */
.vesitable .owl-stage {
    margin: 40px 0;
    position: relative;
}

.vesitable .owl-nav .owl-prev,
.vesitable .owl-nav .owl-next {
    position: absolute;
    top: -40px;
    color: var(--honey);
    padding: 5px 22px;
    border: 1.5px solid var(--honey);
    border-radius: var(--radius-pill);
    background: var(--honey-pale);
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
}

.vesitable .owl-nav .owl-prev { right: 80px; }
.vesitable .owl-nav .owl-next { right: 0; }

.vesitable .owl-nav .owl-prev:hover,
.vesitable .owl-nav .owl-next:hover {
    background: var(--honey);
    color: var(--white);
    border-color: var(--honey);
}

/* Fruits */
.fruite .tab-class .nav-item a.active {
    background: var(--honey) !important;
    border-radius: var(--radius-pill) !important;
}

.fruite .tab-class .nav-item a.active span { color: var(--white) !important; }

.fruite .fruite-categorie .fruite-name { line-height: 40px; }

.fruite .fruite-categorie .fruite-name a {
    transition: color 0.2s;
    color: var(--text-dark);
    text-decoration: none;
}

.fruite .fruite-categorie .fruite-name a:hover { color: var(--honey); }

.fruite .fruite-item {
    height: 100%;
    transition: var(--transition);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
}

.fruite .fruite-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.fruite .fruite-item .fruite-img {
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.fruite .fruite-item .fruite-img img {
    transition: transform 0.45s ease;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.fruite .fruite-item .fruite-img img:hover { transform: scale(1.08); }

/* ===== SERVICE ===== */
.service .service-item .service-content {
    position: relative;
    width: 250px;
    height: 130px;
    top: -50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== BANNER ===== */
.banner {
    background: linear-gradient(135deg, var(--honey-pale) 0%, var(--sage-light) 100%);
    border-radius: var(--radius-lg);
}

.banner .banner-btn {
    transition: var(--transition);
    border-radius: var(--radius-pill);
}

.banner .banner-btn:hover {
    background: var(--honey) !important;
    border-color: var(--honey) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== COUNTER / FACTS ===== */
.counter {
    height: 100%;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.counter:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--honey);
}

.counter i {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--honey);
}

.counter h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.counter h1 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0;
    color: var(--earth);
}

/* ===== TESTIMONIALS ===== */
.testimonial-item {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.testimonial .owl-nav .owl-prev,
.testimonial .owl-nav .owl-next {
    position: absolute;
    top: -52px;
    color: var(--honey);
    padding: 5px 22px;
    border: 1.5px solid var(--honey);
    border-radius: var(--radius-pill);
    background: var(--honey-pale);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.testimonial .owl-nav .owl-prev { right: 80px; }
.testimonial .owl-nav .owl-next { right: 0; }

.testimonial .owl-nav .owl-prev:hover,
.testimonial .owl-nav .owl-next:hover {
    background: var(--honey);
    color: var(--white);
}

/* Star ratings */
.fas.fa-star { color: var(--honey-light) !important; }

/* ===== PAGINATION ===== */
.pagination { display: inline-block; }

.pagination a {
    color: var(--text-dark);
    padding: 10px 16px;
    text-decoration: none;
    transition: var(--transition);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 0 3px;
    font-weight: 500;
    display: inline-block;
}

.pagination a.active {
    background: var(--honey);
    color: var(--white);
    border-color: var(--honey);
}

.pagination a:hover:not(.active) {
    background: var(--honey-pale);
    border-color: var(--honey);
    color: var(--honey);
}

.nav.nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--honey) !important;
    color: var(--honey);
}

/* ===== BADGES ===== */
.badge-organic {
    display: inline-block;
    background: var(--sage-light);
    color: var(--sage);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

/* In Stock / Out of Stock */
.badge-instock {
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.badge-outofstock {
    background: #FFEBEE;
    color: #c62828;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--earth) !important;
}

.footer .footer-item .btn-link {
    line-height: 35px;
    color: rgba(255,255,255,.55);
    transition: var(--transition);
    text-decoration: none;
}

.footer .footer-item .btn-link:hover { color: var(--honey-light) !important; }

.footer .footer-item p.mb-4 {
    line-height: 35px;
    color: rgba(255,255,255,.6);
}

/* Footer headings */
.footer h4, .footer h5 {
    font-family: 'Playfair Display', serif;
    color: var(--honey-light);
}

/* ===== UTILITIES ===== */
.text-honey { color: var(--honey) !important; }
.text-earth { color: var(--earth) !important; }
.bg-honey-pale { background: var(--honey-pale) !important; }
.border-honey { border-color: var(--honey) !important; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--honey);
    outline-offset: 3px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fadeup {
    animation: fadeUp 0.55s ease both;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
    .section-title { font-size: 26px; }
    .counter { margin-bottom: 16px; }
    .vesitable .vesitable-item .vesitable-img img { height: 200px; }
}

@media (max-width: 480px) {
    .hero-header h1 { font-size: 32px; }
    .categories .img-container img { width: 90px; height: 90px; }
}
