
/* Modal overlay */
.modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* semi-transparent backdrop */
    z-index: 1050; /* sit above navbar and other content */
    justify-content: center;
    align-items: center;
}

/* When active (you’re adding .style.display = "block") */
.modal.show {
    display: flex; /* flexbox centers content */
}

/* Modal box */
.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    animation: fadeInScale 0.3s ease-out;
}

/* Small fade/scale animation */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}






/* for the toggle button */
.btn-toggle
{ border: none; background: transparent; padding: 0; line-height: 1; }
.btn-toggle:focus { outline: none; box-shadow: none; }

/* ensure subcategories are hidden by default (safety) */
.subcategories {
     display: none;
    }




/* Custom CSS for Woodmart */
:root {
    --primary-color: #f59e0b;
    --secondary-color: #1f2937;
    --dark-color: #111827;
    --light-color: #f8fafc;
    --muted-color: #6b7280;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Sticky Navigation Styles */
.navbar-container {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-container.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem !important;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

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

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

.nav-link:hover::after {
    width: 80%;
}

/* Make modal smoother and clean */
.modal-content {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.modal-header .modal-title {
    font-size: 1.3rem;
}

.custom-checkout-btn {
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    color: white !important;
    transition: all 0.3s ease;
}

.custom-checkout-btn:hover {
    background-color: #e0a800;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px);
    color: white !important;
    text-decoration: none;
}

.custom-checkout-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}


/* Shop Dropdown Styles */
.shop-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0;
    margin-top: 0;
    background-color: white !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1050;
    display: block !important;
}

.shop-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shop-dropdown .dropdown-menu .container-fluid {
    padding: 2rem;
}

.dropdown-header {
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.dropdown-item {
    padding: 0.5rem 0;
    color: var(--muted-color);
    border: none;
    background: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    color: var(--primary-color);
    background: none;
    padding-left: 0.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-swiper {
    z-index: 1;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    z-index: 2;
}

.hero-section .container {
    z-index: 3;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero-section .lead {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.25rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-dark:hover {
    background-color: #f59e0b !important;
    color: white !important;               /* Text stays visible on yellow */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Modern soft shadow */
    transform: translateY(-2px);              /* Slight lift on hover */
    transition: all 0.3s ease;                /* Smooth transition for effect */
}

.btn-dark:active {
    transform: translateY(0); /* back to original position */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.custom-download-btn {
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem; /* make button bigger: top/bottom, left/right */
    font-size: 1.0rem;       /* slightly larger text */
    color: white !important; /* text color white by default */
    text-decoration: none;
}

/* On hover: slightly darker yellow, bigger shadow */
.custom-download-btn:hover {
    background-color: #e0a800; /* slightly darker yellow for hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    color: white; /* keep text black */
    text-decoration: none; /* remove underline if any */
}

/* On click (active): looks pressed down */
.custom-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.hero-nav-prev,
.hero-nav-next {
    z-index: 4;
}

.hero-nav-prev button,
.hero-nav-next button {
    width: 60px;
    height: 60px;
    border: none;
    transition: all 0.3s ease;
}

.hero-nav-prev button:hover,
.hero-nav-next button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

.product-discount {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.wood-type {
    background-color: var(--light-color);
    color: var(--muted-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Carousel Navigation */
.products-prev,
.products-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: white;
    transition: all 0.3s ease;
}

.products-prev:hover,
.products-next:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

/* Stats Counter */
.counter {
    font-size: 3rem;
    font-weight: 700;
}

/* Reviews Section */
.reviews-swiper .swiper-slide {
    height: auto;
}

.reviews-swiper .card {
    border-radius: 16px;
    transition: all 0.3s ease;
}

.reviews-swiper .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Blog Cards */
.blog-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Object fit utility */
.object-fit-cover {
    object-fit: cover;
}

/* Utility Classes */
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }
.z-4 { z-index: 4; }

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

body {
  background-color: #f8f9fa;
}

/* Global background and font */
body {
  background: linear-gradient(to bottom, #f8f9fa, #f2f4f6);
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  color: #333;
}

.checkout-container {
  max-width: 960px;
  margin: auto;
  padding: 1.5rem;
}

/* Section cards */
.section-card {
  background: linear-gradient(145deg, #ffffff, #fdfdfd);
  border: 1px solid #eee;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.section-card:hover {
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Section titles */
.section-title {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #222;
  letter-spacing: 0.5px;
}

/* Form fields */
.form-control, .form-select {
  border-radius: 50px;
  border: 1px solid #ddd;
  padding: 0.75rem 1.25rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.form-control:focus, .form-select:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.25rem rgba(255,193,7,0.25);
}

/* Checkout button */
.custom-checkout-btn {
  background-color: #ffc107;
  color: black !important;
  font-weight: 600;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.custom-checkout-btn:hover {
  background-color: #e0a800;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.custom-checkout-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Installments box */
.installments-option {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* Order summary items */
.order-item {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.order-item img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-right: 1rem;
}

.order-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Typography improvements */
.form-check-label, .small, .text-muted {
  color: #666;
  font-size: 0.9rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
}

/* Subtle dividers */
.section-card:not(:last-child) {
  border-bottom: none;
}

/* Smooth transitions for all */
* {
  transition: all 0.3s ease;
}


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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-nav-prev,
    .hero-nav-next {
        display: none;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .counter {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #d97706;
}


.blog-img {
    width: 100%;
    height: 220px;      /* Adjust to your liking (200–250px works well) */
    object-fit: cover;  /* Crops evenly without stretching */
}


/* FIX reviews white space issue */
#reviews .swiper {
    height: auto !important;
}

#reviews .swiper-wrapper {
    height: auto !important;
    align-items: flex-start !important;
}

#reviews .swiper-slide {
    height: auto !important;
    display: block !important;
}
