/* ===============================
   Root Variables
================================= */
:root {
  --brown-primary: #ff912f;
  --brown-light: #ff912f;
  --brown-dark: #e6710c;
  --brown-bg-light: #fff4e6;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --border-light: rgba(0, 0, 0, 0.08);
}

/* ===============================
   Typography
================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Fraunces", serif;
}

body,
p,
li,
span,
a,
div {
  font-family: "Lato", sans-serif;
}

/* ===============================
   Text & Background Colors
================================= */
.text-brown-primary {
  color: var(--brown-primary) !important;
}
.text-brown-light {
  color: var(--brown-light) !important;
}
.text-brown-dark {
  color: var(--brown-dark) !important;
}
.bg-brown-light {
  background-color: var(--brown-bg-light) !important;
}
.bg-brown-dark {
  background-color: var(--brown-dark) !important;
}

/* ===============================
   Buttons
================================= */
.btn-brown-primary {
  background-color: var(--brown-primary);
  border-color: var(--brown-primary);
  color: white;
}

.btn-brown-primary:hover {
  background-color: var(--brown-dark);
  border-color: var(--brown-dark);
}

.btn-outline-brown-primary {
  /* border-color: var(--brown-primary); */
  border-color: orange;
  color: var(--brown-primary);
}

.btn-outline-brown-primary:hover {
  /* background-color: var(--brown-primary); */
  border-color: var(--brown-primary);
  color: white;
}

/* ===============================
   Navigation
================================= */
.navbar-brand {
  color: var(--brown-primary) !important;
  font-weight: bold;
}

.nav-link {
  color: var(--text-dark);
  transition: color 0.3s ease;
}

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

.icon-button svg {
  stroke: var(--text-dark);
  transition: stroke 0.3s ease;
}

.icon-button:hover svg {
  stroke: var(--brown-primary);
}

.cart-badge {
  background: var(--brown-primary);
  color: var(--white);
  font-size: 0.75rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.active-nav-link {
  font-weight: 600;
  color: var(--brown-primary) !important;
}

.z-custom {
    z-index: 2000 !important; /* Higher than other sticky elements */
}

/* ===============================
   Product Cards
================================= */
.custom-product-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--border-light);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  overflow: hidden;
  height: 100%;
}

.custom-product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
}

.card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.trending-badge,
.new-badge {
  background: #fef3c7;
  color: var(--brown-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

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

.price-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown-primary);
}



.btn-custom {
  background-color: var(--brown-primary);
  color: var(--white);
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  transition: background 0.2s ease;
}

.btn-custom:hover {
  background-color: var(--brown-dark);
}

/* ===============================
    Slider Footer
================================= */
.hero-carousel,
  .hero-carousel .carousel-item {
    height: 100vh;
  }

  /* Headings and text */
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  /* Responsive adjustments */
  @media (max-width: 800px) {
    .hero-carousel,
    .hero-carousel .carousel-item {
      height: 50vh;
    }

    .hero-title {
      font-size: 1.8rem;
    }

    .hero-subtitle {
      font-size: 1rem;
    }

    .btn-lg {
      font-size: 0.9rem;
      padding: 0.5rem 1.2rem;
    }
  }


  @media (max-width: 767px) {
    .category-title {
      font-size: 1.25rem !important;
    }

    .category-desc,
    .category-count,
    .category-badge span {
      font-size: 0.8rem !important;
    }

    .category-hover-effect p {
      font-size: 0.8rem !important;
    }

    .category-hover-effect i {
      font-size: 1.3rem !important;
    }
    .badge {
      font-size: 0.7rem !important;
      padding: 0.2rem 0.4rem !important;
    }
  }
/* ===============================
    Slider Footer
================================= */

.slider-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.my-slider div {
  background: #555;
  color: #fff;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  border-radius: 10px;
  margin: 5px;
}

.slide-number {
  margin-top: 10px;
  font-size: 1.2em;
  text-align: center;
}

.tns-nav {
  text-align: center;
  margin-top: 10px;
}

.tns-nav button {
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aaa;
  margin: 0 5px;
  padding: 0;
  cursor: pointer;
}

.tns-nav button.tns-nav-active {
  background: var(--brown-primary); /* primary color */
}



/* ===============================
   Category Cards
================================= */
/* ===============================
   Category Cards
================================= */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.category-img {
  transition: all 0.4s ease;
}

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

.category-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 70%);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.category-title {
  font-size: 1.5rem;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

/* ===============================
   Testimonials
================================= */
.testimonial-grid-track {
  display: flex;
  gap: 30px;
  animation: scrollHorizontal 40s linear infinite;
}

@keyframes scrollHorizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 30px));
  }
}

.testimonial-grid-slider:hover .testimonial-grid-track {
  animation-play-state: paused;
}

.testimonial-grid-item {
  flex: 0 0 auto;
  width: 25%;
  min-width: 250px;
}

.testimonial-card {
  background: var(--light-bg);
  border-radius: 15px;
  padding: 25px 20px;
  border: 1px solid rgba(120, 53, 15, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

/* ===============================
   Product Scroll
================================= */
.product-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 53, 15, 0.3) transparent;
}

.product-scroll-track {
  display: flex;
  gap: 30px;
}

.product-card {
  flex: 0 0 auto;
  width: 100%;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.scroll-left {
  left: 10px;
}

.scroll-right {
  right: 10px;
}

/* ===============================
   Responsive Design
================================= */
@media (min-width: 576px) {
  .product-card {
    width: 48%;
  }
}

@media (min-width: 768px) {
  .product-card {
    width: 48%;
  }
  .scroll-btn {
    display: none;
  }
}

@media (min-width: 992px) {
  .product-card {
    width: 32%;
  }
}

@media (min-width: 1200px) {
  .product-card {
    width: 23%;
  }
}

@media (max-width: 768px) {
  .display-4 {
    font-size: 2.5rem;
  }
  .display-5 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 2rem;
  }
  .display-5 {
    font-size: 1.75rem;
  }
  .btn-custom {
    background-color: var(--brown-primary);
    color: var(--white);
    font-weight: 300;
    font-size: 15px;
    padding: 5px 5px;
    border-radius: 10px;
    border: none;
    transition: background 0.2s ease;
  }
}

/* categories  */

/* Categories Page Styles */

/* Hero Section */
.categories-hero {
  background: linear-gradient(
    135deg,
    var(--primary-brown-bg) 0%,
    rgba(255, 244, 230, 0.9) 100%
  );
  position: relative;
  overflow: hidden;
}

.min-vh-80 {
  min-height: 80vh;
}

/* Category Cards */
.category-card {
  background: white;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-2px) scale(1.001);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.category-img {
  transition: all 0.4s ease;
}

.category-card:hover .category-img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

.category-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.category-card:hover .category-overlay {
  opacity: 0;
  transform: translateY(20px);
}

.category-title {
  font-size: 1.5rem;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.category-card:hover .category-title {
  transform: translateY(-20px);
}

.category-desc {
  transform: translateY(0);
  transition: transform 0.4s ease 0.1s;
}

.category-card:hover .category-desc {
  transform: translateY(-20px);
}

.category-count {
  transform: translateY(0);
  transition: transform 0.4s ease 0.2s;
}

.category-card:hover .category-count {
  transform: translateY(-20px);
}

.category-badge {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.4s ease;
}

.category-card:hover .category-badge {
  transform: translateY(-20px);
  opacity: 0;
}

/* New Hover Effect */
.category-hover-effect {
  background: linear-gradient(
    135deg,
    var(--primary-brown) 0%,
    var(--primary-brown-dark) 100%
  );
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 20px;
}

.category-card:hover .category-hover-effect {
  opacity: 0.9;
  transform: scale(1);
}

.category-hover-effect i {
  transform: translateX(-20px);
  transition: transform 0.4s ease 0.1s;
}

.category-card:hover .category-hover-effect i {
  transform: translateX(0);
}

.category-hover-effect p {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.2s;
}

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

/* Focus state for accessibility */
.category-card:focus {
  outline: 2px solid var(--primary-brown);
  outline-offset: 2px;
}

/* Featured Products */
.featured-product {
  transition: all 0.3s ease;
}

.featured-product:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Stats Section */
.stat-item {
  padding: 2rem 1rem;
}

/* Button hover effects */
.btn-brown-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(120, 53, 15, 0.3);
}

.btn-outline-brown-primary:hover {
  transform: translateY(-2px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .categories-hero .display-2 {
    font-size: 2.5rem;
  }

  .category-card:hover {
    transform: translateY(-5px) scale(1.01);
  }

  .category-hover-effect {
    display: none;
  }

  .category-overlay {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .category-card:hover .category-overlay {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .category-card:hover .category-title,
  .category-card:hover .category-desc,
  .category-card:hover .category-count {
    transform: translateY(0) !important;
  }

  .category-card:hover .category-badge {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
}

/* contact */

/* Contact Page - Minimal Custom CSS */

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

/* Card hover effects for contact cards */
.card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-2px);
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-brown);
  box-shadow: 0 0 0 0.2rem rgba(120, 53, 15, 0.1);
}

/* product details */

.main-image {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.main-image.zoomed {
  cursor: zoom-out;
  transform: scale(1.5);
  z-index: 1000;
  position: relative;
}
.product-scroll-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-scroll-track::-webkit-scrollbar {
  display: none;
}
/* Related Products Section Styles */
.related-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--border-light);
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.related-img-container {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background: var(--light-bg);
}

.related-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.related-card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.related-card-footer {
  padding: 0 1.5rem 1.5rem;
}

.related-card-link {
  color: inherit;
  display: block;
  flex-grow: 1;
}

.related-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.related-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.related-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

.related-badge {
  background: var(--primary-brown-bg);
  color: var(--primary-brown);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
}

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

.related-cart-btn {
  background: var(--primary-brown);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.3s ease;
  cursor: pointer;
}

.related-cart-btn:hover {
  background: var(--primary-brown-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .related-card-body {
    padding: 1rem;
  }

  .related-card-footer {
    padding: 0 1rem 1rem;
  }

  .related-card-title {
    font-size: 1rem;
  }

  .related-card-text {
    font-size: 0.85rem;
  }

  .related-cart-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* checkout */

.checkout-step.active .step-number {
  background-color: var(--brown-primary);
  color: white;
}

.checkout-step.completed .step-number {
  background-color: #28a745;
  color: white;
}

.payment-method-card {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method-card:hover,
.payment-method-card.selected {
  border-color: var(--brown-primary);
  background-color: var(--brown-bg-light);
}

/*  */
/* -------- Cart Responsive Fix -------- */
@media (max-width: 992px) {
  .card-body h6 {
    font-size: 1rem;
  }
  .card-body p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .card-body .row {
    text-align: center;
  }

  .card-body img {
    max-width: 80px;
    margin-bottom: 0.5rem;
  }

  .input-group {
    justify-content: center;
  }

  .btn-outline-danger.btn-sm {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .card-body img {
    max-width: 70px;
  }

  .fw-semibold {
    font-size: 0.9rem;
  }

  .text-brown-primary {
    font-size: 0.95rem;
  }

  .input-group input {
    max-width: 40px;
  }
}

@media (max-width: 576px) {
  .input-group.flex-column {
    align-items: stretch;
  }
  .input-group.flex-column .btn .form-control {
    width: 100% !important;
  }
}
