/* ============================================================
   VisionCraft Enterprises — Redesigned Style Sheet
   Aesthetic: Earthy Organic / Modern Natural
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --primary:    #1B1A53;
    --secondary:  #18E2F3;
    --accent:     #F4A020;
    --earth:      #4A7C59;
    --earth-light:#7DB08B;
    --cream:      #FBF8F3;
    --sand:       #EDE8DF;
    --dark:       #1A1A2E;
    --text-muted: #6B7280;
    --white:      #FFFFFF;
    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  28px;
    --shadow-sm:  0 2px 12px rgba(27,26,83,.07);
    --shadow-md:  0 8px 32px rgba(27,26,83,.12);
    --shadow-lg:  0 20px 60px rgba(27,26,83,.18);
    --transition: .35s cubic-bezier(.4,0,.2,1);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* ── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--earth-light); border-radius: 99px; }

/* ── Spinner ────────────────────────────────── */
#spinner {
    opacity: 0; visibility: hidden;
    transition: opacity .6s ease, visibility 0s .6s;
    z-index: 99999;
}
#spinner.show {
    transition: opacity .6s ease, visibility 0s;
    visibility: visible; opacity: 1;
}

/* ── Back to Top ────────────────────────────── */
.back-to-top {
    position: fixed; right: 28px; bottom: 28px;
    width: 48px; height: 48px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition); z-index: 99;
}
.back-to-top:hover { background: var(--secondary); color: var(--primary); transform: translateY(-4px); }

/* ── Buttons ────────────────────────────────── */
.btn { font-family: 'DM Sans', sans-serif; font-weight: 600; border-radius: var(--radius-sm); transition: var(--transition); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary); box-shadow: 0 6px 20px rgba(24,226,243,.35); }
.btn-outline-earth { border: 2px solid var(--earth); color: var(--earth); background: transparent; }
.btn-outline-earth:hover { background: var(--earth); color: #fff; }

.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%;
}
.btn-sm-square  { width: 34px;  height: 34px; }
.btn-md-square  { width: 44px;  height: 44px; }
.btn-lg-square  { width: 56px;  height: 56px; }

.bg-back  { background: var(--secondary); }
.bg-back2 { background: var(--primary); }

/* ══════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════ */
.topbar-strip {
    background: var(--primary);
    padding: 9px 0;
    font-size: 13px;
    letter-spacing: .4px;
}
.topbar-strip a { color: rgba(255,255,255,.75); }
.topbar-strip a:hover { color: var(--secondary); }
.topbar-strip i { color: var(--secondary); }

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.fixed-top { transition: var(--transition); }

.navbar-main {
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(27,26,83,.08);
    height: 84px;
}

.navbar-brand img { height: 72px; }

.navbar .navbar-nav .nav-link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    position: relative;
}
.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 16px;
    width: 0; height: 2px;
    background: var(--secondary);
    border-radius: 99px;
    transition: width .3s ease;
}
.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after { width: calc(100% - 32px); }
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active { color: var(--primary); }

/* Search bar */
.navbar-search .search-form {
    border: 1.5px solid #ddd;
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 8px 16px;
    font-size: 14px;
    width: 240px;
    background: var(--cream);
    transition: var(--transition);
}
.navbar-search .search-form:focus {
    outline: none;
    border-color: var(--secondary);
    background: #fff;
    width: 280px;
}
.navbar-search .btn-search {
    background: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #fff;
    padding: 8px 18px;
    font-size: 14px;
    transition: var(--transition);
}
.navbar-search .btn-search:hover { background: var(--secondary); border-color: var(--secondary); color: var(--primary); }

/* Dropdown */
.navbar .dropdown-toggle::after {
    border: none; content: "\f107";
    font-family: "Font Awesome 5 Free"; font-weight: 700;
    vertical-align: middle; margin-left: 6px;
}
@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block; visibility: hidden;
        top: 100%; transform: rotateX(-75deg);
        transform-origin: 0% 0%; border: 0;
        transition: .4s; opacity: 0;
        min-width: 180px; border-radius: var(--radius-md) !important;
        box-shadow: var(--shadow-md);
    }
}
.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg); visibility: visible;
    background: #fff !important; opacity: 1;
}
.dropdown .dropdown-menu a { padding: 10px 18px; font-size: 14px; color: var(--dark); border-radius: var(--radius-sm); }
.dropdown .dropdown-menu a:hover { background: var(--cream); color: var(--primary); }

/* Icon actions */
.nav-icon-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--cream);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}
.nav-icon-btn:hover { background: var(--primary); color: var(--secondary); transform: scale(1.08); }

.cart-badge {
    position: absolute; top: -5px; left: 24px;
    background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 700;
    border-radius: 99px; min-width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* ══════════════════════════════════════════════
   HERO / BANNER
   ══════════════════════════════════════════════ */
body, html { overflow-x: hidden; }

.hero-wrapper {
    position: relative;
    overflow: hidden;
}
.hero-banner {
    width: 100%; height: 520px;
    object-fit: cover; display: block;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(27,26,83,.72) 0%, rgba(0,0,0,.28) 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 24px;
}
.hero-overlay h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    color: #fff; margin-bottom: 14px;
    text-shadow: 0 4px 24px rgba(0,0,0,.3);
    animation: fadeUp .8s ease both;
}
.hero-overlay p {
    color: rgba(255,255,255,.88);
    font-size: clamp(1rem, 2vw, 1.2rem);
    letter-spacing: 2px; text-transform: uppercase;
    animation: fadeUp .8s .15s ease both;
}
.hero-overlay .hero-cta {
    margin-top: 28px;
    animation: fadeUp .8s .3s ease both;
}
.hero-overlay .hero-cta a {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    font-weight: 700; font-size: 15px;
    padding: 13px 34px; border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(24,226,243,.4);
    transition: var(--transition);
}
.hero-overlay .hero-cta a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(244,160,32,.4); }

.hero-badge {
    position: absolute; top: 24px; right: 24px;
    background: var(--accent); color: #fff;
    font-weight: 700; font-size: 12px; letter-spacing: 1px;
    padding: 6px 16px; border-radius: 99px;
    text-transform: uppercase;
    animation: fadeIn 1s .4s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

@media (max-width: 768px) {
    .hero-banner { height: 300px; }
}
@media (max-width: 480px) {
    .hero-banner { height: 220px; }
}
@media (min-width: 992px) {
    .hero-wrapper { margin-top: 50px !important; }
}
@media (max-width: 992px) {
    .hero-wrapper { margin-top: 84px !important; }
}

/* Carousel */
.carousel-control-next, .carousel-control-prev {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    border: 2px solid rgba(255,255,255,.5);
    backdrop-filter: blur(8px);
    position: absolute; top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}
.carousel-control-next:hover, .carousel-control-prev:hover {
    background: var(--secondary); border-color: var(--secondary);
}
.carousel-control-next { margin-right: 16px; }
.carousel-control-prev { margin-left: 16px; }

/* ══════════════════════════════════════════════
   SECTION COMMON
   ══════════════════════════════════════════════ */
.section-tag {
    display: inline-block;
    background: var(--sand);
    color: var(--earth);
    font-size: 12px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; padding: 5px 16px;
    border-radius: 99px; margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--primary);
}
.section-sub { color: var(--text-muted); font-size: 15px; }

/* ══════════════════════════════════════════════
   CATEGORIES
   ══════════════════════════════════════════════ */
.categories-section {
    padding: 72px 0;
    background: var(--cream);
}
.categories-section .category-item {
    text-align: center;
    transition: var(--transition);
}
.categories-section .category-item a { color: inherit; }
.categories-section .img-container {
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 12px;
}
.categories-section .img-container img {
    width: 140px; height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.categories-section .category-item:hover .img-container img {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(74,124,89,.22);
    border-color: var(--earth-light);
}
.categories-section .category-item .cat-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600; font-size: 14px;
    color: var(--primary);
    letter-spacing: .3px;
}

/* ══════════════════════════════════════════════
   PRODUCT CARDS
   ══════════════════════════════════════════════ */
.products-section { padding: 80px 0; background: var(--white); }

.product-card {
    background: var(--white);
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product-card .product-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--cream);
}
.product-card .product-img-wrap img {
    width: 100%; height: 220px;
    object-fit: cover;
    transition: transform .5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.07); }

.product-card .product-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--earth); color: #fff;
    font-size: 11px; font-weight: 600; letter-spacing: .5px;
    padding: 4px 12px; border-radius: 99px;
}
.product-card .product-badge.sale {
    background: var(--accent);
}
.product-card .product-body {
    padding: 18px 18px 20px;
    flex: 1; display: flex; flex-direction: column;
}
.product-card .product-name {
    font-size: 16px; font-weight: 600;
    color: var(--dark); margin-bottom: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card .product-desc {
    font-size: 13px; color: var(--text-muted);
    line-height: 1.6; margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-price {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
    margin-top: auto;
}
.product-card .price-old {
    font-size: 13px; color: #aaa;
    text-decoration: line-through;
}
.product-card .price-new {
    font-size: 20px; font-weight: 700;
    color: var(--earth);
}
.product-card .btn-add-cart {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--primary); color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 16px; font-size: 14px; font-weight: 600;
    border: 2px solid var(--primary);
    transition: var(--transition); width: 100%;
}
.product-card .btn-add-cart:hover {
    background: transparent; color: var(--primary);
}

/* OWL carousels */
.owl-carousel .owl-stage { padding: 12px 0; }
.owl-nav .owl-prev, .owl-nav .owl-next {
    background: var(--white) !important;
    border: 2px solid var(--earth-light) !important;
    border-radius: 99px !important;
    padding: 6px 22px !important;
    color: var(--primary) !important;
    font-size: 18px !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow-sm);
}
.owl-nav .owl-prev:hover, .owl-nav .owl-next:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--secondary) !important;
}

/* ══════════════════════════════════════════════
   FEATURES / USP STRIP
   ══════════════════════════════════════════════ */
.features-strip {
    background: var(--primary);
    padding: 48px 0;
}
.feature-item {
    display: flex; align-items: center; gap: 18px;
}
.feature-item .feat-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 2px solid rgba(24,226,243,.4);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--secondary);
    flex-shrink: 0;
    transition: var(--transition);
}
.feature-item:hover .feat-icon {
    background: var(--secondary);
    color: var(--primary);
}
.feature-item h5 {
    color: #fff; font-size: 15px; margin: 0 0 4px;
}
.feature-item p { color: rgba(255,255,255,.6); font-size: 13px; margin: 0; }

/* ══════════════════════════════════════════════
   STATS / FACTS
   ══════════════════════════════════════════════ */
.facts-section {
    padding: 80px 0;
    background: var(--sand);
}
.fact-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 24px;
    text-align: center;
    border: 1.5px solid var(--sand);
    transition: var(--transition);
}
.fact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.fact-card .fact-icon {
    width: 72px; height: 72px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 20px;
}
.fact-card h1 {
    font-size: 2.8rem; font-weight: 700;
    color: var(--primary); margin-bottom: 6px;
}
.fact-card p { color: var(--text-muted); font-size: 14px; margin: 0; font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }

/* ══════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════ */
.testimonial-section { padding: 80px 0; background: var(--white); }

.testimonial-item {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1.5px solid var(--sand);
    position: relative;
}
.testimonial-item .quote-icon {
    position: absolute; top: 24px; right: 24px;
    font-size: 32px; color: var(--sand);
}
.testimonial-item .review-text {
    font-size: 15px; line-height: 1.8;
    color: #444; margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1.5px solid var(--sand);
}
.testimonial-item .reviewer-img {
    width: 56px; height: 56px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid var(--earth-light);
}
.testimonial-item .reviewer-name { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 2px; }
.testimonial-item .reviewer-role { font-size: 12px; color: var(--text-muted); }
.testimonial-item .stars i { color: var(--accent); font-size: 13px; }

/* Testimonial owl overrides */
.testimonial-section .owl-nav .owl-prev {
    position: absolute; top: -52px; right: 0;
}
.testimonial-section .owl-nav .owl-next {
    position: absolute; top: -52px; right: 88px;
}

/* ══════════════════════════════════════════════
   BANNER / CTA STRIP
   ══════════════════════════════════════════════ */
.cta-section {
    background: linear-gradient(135deg, var(--earth) 0%, #2d5a3d 100%);
    padding: 72px 0; position: relative; overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; top: -50px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.cta-section::after {
    content: '';
    position: absolute; bottom: -80px; left: -40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(24,226,243,.08);
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,.8); }
.cta-section .btn-cta {
    background: var(--secondary); color: var(--primary);
    font-weight: 700; padding: 13px 36px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(24,226,243,.4);
    transition: var(--transition);
}
.cta-section .btn-cta:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

/* ══════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════ */
.pagination { display: inline-flex; gap: 6px; }
.pagination a {
    color: var(--dark); padding: 9px 16px;
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-sm);
    transition: var(--transition); font-size: 14px;
}
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover:not(.active) { background: var(--cream); border-color: var(--earth-light); }

/* ══════════════════════════════════════════════
   PAGE HEADER
   ══════════════════════════════════════════════ */
.page-header {
    position: relative;
    background: linear-gradient(rgba(27,26,83,.55), rgba(27,26,83,.7)), url(../img/page-title.jpg) center/cover no-repeat;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
    background: var(--dark);
}
.footer .footer-item .btn-link {
    display: block; line-height: 38px;
    color: rgba(255,255,255,.5);
    transition: var(--transition);
    padding: 0; font-weight: 400;
}
.footer .footer-item .btn-link:hover { color: var(--secondary) !important; padding-left: 6px; }
.footer .footer-item p.mb-4 { line-height: 1.9; color: rgba(255,255,255,.55); }

.footer-divider { border-color: rgba(255,255,255,.1); }

/* ══════════════════════════════════════════════
   SEARCH MODAL
   ══════════════════════════════════════════════ */
#searchModal .modal-content { background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }

/* ══════════════════════════════════════════════
   TABS (Shop)
   ══════════════════════════════════════════════ */
.nav.nav-tabs .nav-link {
    border: none; border-bottom: 2px solid transparent;
    color: var(--text-muted); font-weight: 500;
    transition: var(--transition);
}
.nav.nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--earth) !important;
    color: var(--primary) !important;
}

/* ══════════════════════════════════════════════
   RESPONSIVE TWEAKS
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .feature-item { flex-direction: column; text-align: center; }
    .navbar-search .search-form { width: 160px; }
}
@media (max-width: 576px) {
    .fact-card h1 { font-size: 2rem; }
}
