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

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.5;
  color: #333;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
margin-bottom: 0;
}
h2
{
  font-size: 18px;
}
h3
{
  font-size: 14px;
}
/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Reused Styles */
.text-primary {
  color: #ee4d2d !important; /* Shopee orange */
}

.btn-shopee-primary {
  background-color: #ee4d2d;
  border-color: #ee4d2d;
  color: #fff;
  padding: 10px 20px;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.2s;
  border-radius: 4px;
}

.btn-shopee-primary:hover {
  background-color: #d43f21;
  border-color: #d43f21;
  color: #fff;
  transform: translateY(-2px);
}

.btn-shopee-outline {
  border: 1px solid #ee4d2d;
  color: #ee4d2d;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.2s, transform 0.2s;
  border-radius: 4px;
  background-color: #fff;
}

.btn-shopee-outline:hover {
  background-color: #ee4d2d;
  color: #fff;
  transform: translateY(-2px);
}

.text-sm {
  font-size: 0.85rem;
}

/* Single Product Section */
.single-product-section {
  padding: 2.5rem 0;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.single-product-inner {
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.single-product-inner:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Category Sidebar */
.category-sidebar {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
}

.category-sidebar h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #ee4d2d;
  padding-bottom: 0.5rem;
}

.category-sidebar ul {
  list-style: none;
  padding: 0;
}

.category-sidebar ul li {
  margin-bottom: 0.75rem;
}

.category-sidebar ul li a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.2s, background-color 0.2s;
}

.category-sidebar ul li a:hover {
  color: #ee4d2d;
  background-color: #fff0e6;
  padding-left: 0.5rem;
}

.category-menu-btn {
  display: none;
  width: 100%;
  background-color: #ee4d2d;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.category-menu-btn:hover {
  background-color: #d43f21;
}

.category-menu-btn i {
  margin-right: 0.5rem;
}

/* Product Summary */
.product-title {
  font-size: 1.5rem; /* Reduced from 1.8rem */
  font-weight: 700;
  margin-bottom: 1rem;
  color: #222;
  line-height: 1.3;
}

.product-title a {
  color: #222;
  text-decoration: none;
}

.product-title a:hover {
  color: #ee4d2d;
}

/* Product Gallery */
.product-img-gallery {
  padding: 0;
  margin-bottom: 1.5rem;
}

.slider__flex {
  display: flex;
  flex-direction: column;
}

.slider__images .main-slider {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.slider__images .slider__image img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.slider__images .swiper-slide:hover img {
  transform: scale(1.05);
}

.slider__thumbs .thumb-slider {
  width: 100%;
}

.slider__thumbs .swiper-slide {
  opacity: 0.6;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  transition: opacity 0.2s, border-color 0.2s;
}

.slider__thumbs .swiper-slide:hover,
.slider__thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: #ee4d2d;
}

.slider__thumbs .slider__image img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}

/* Product Price */
.product-price {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  background-color: #fff0e6;
  padding: 1rem;
  border-radius: 6px;
}

.product-price .price {
  font-size: 2rem;
  font-weight: 700;
  color: #ee4d2d;
}

.product-price .original-price {
  font-size: 1.1rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 1.5rem;
}

.product-price .discount {
  background-color: #ee4d2d;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-left: 1rem;
}

/* Product Stock */
.product-stock {
  margin-bottom: 1.5rem;
}

.product-stock .text-sm {
  color: #555;
  font-weight: 500;
}

/* Product Variants */
.product-variants {
  margin-bottom: 1.5rem;
}

.product-variants h6 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #222;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.variant-btn {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s, transform 0.2s;
}

.variant-btn:hover,
.variant-btn.active {
  border-color: #ee4d2d;
  background-color: #fff0e6;
  color: #ee4d2d;
  transform: translateY(-2px);
}

/* Product Quantity */
.product-quantity {
  margin-bottom: 1.5rem;
}

.product-quantity h6 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #222;
}

.quantity-selector {
  width: auto;
  max-width: 180px;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.quantity-selector .qty-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.1rem;
  line-height: 1;
  background-color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.quantity-selector .qty-btn:hover {
  background-color: #ee4d2d;
  color: #fff;
}

.quantity-selector .qty-input {
  width: 70px;
  text-align: center;
  padding: 0.6rem;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 0.95rem;
  background-color: #fafafa;
}

/* Product Description */
.product-txt {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Product Add to Cart */
.product-add-cart {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.75rem;
}

.product-add-cart li.btn_box a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 140px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.product-add-cart li.btn_box .btn-shopee-primary {
  box-shadow: 0 2px 6px rgba(238, 77, 45, 0.3);
}

/* Sticky Action Bar for Mobile */
.sticky-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 1rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.sticky-action-bar .product-add-cart {
  margin: 0;
  justify-content: center;
}

/* Product Tabs */
.product-tabs {
  margin-top: 2rem;
}

.product-tabs .nav-tabs {
  border-bottom: 2px solid #ee4d2d;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.product-tabs .nav-tabs .nav-item {
  flex: 0 0 auto;
}

.product-tabs .nav-tabs .nav-link {
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  text-align: center;
  cursor: pointer;
}

.product-tabs .nav-tabs .nav-link:hover,
.product-tabs .nav-tabs .nav-link.active {
  color: #ee4d2d;
  border-bottom: 3px solid #ee4d2d;
}

.product-tabs .tab-content {
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  min-height: 200px;
}

.product-tabs .tab-pane {
  transition: opacity 0.3s ease;
}

.product-tabs .tab-pane.fade {
  opacity: 0;
}

.product-tabs .tab-pane.fade.show {
  opacity: 1;
}

/* Reviews */
.review-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.review-item strong {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}

.review-item .text-warning i {
  font-size: 0.95rem;
  color: #f4b619;
}

/* Responsive Design */
@media (max-width: 768px) {
  .single-product-section {
    padding: 1.5rem 0;
  }

  .single-product-inner {
    padding: 1.25rem;
  }

  .product-title {
    font-size: 1.2rem; /* Reduced from 1.4rem */
  }

  .category-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    padding-top: 60px;
  }

  .category-sidebar.active {
    display: block;
    transform: translateX(0);
  }

  .category-menu-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .category-menu-btn.active i.fa-bars::before {
    content: '\f00d';
  }

  .slider__images .slider__image img {
    height: 250px;
  }

  .slider__thumbs .slider__image img {
    height: 70px;
  }

  .product-price {
    padding: 0.75rem;
  }

  .product-price .price {
    font-size: 1.6rem;
  }

  .product-price .original-price {
    font-size: 0.95rem;
  }

  .product-price .discount {
    font-size: 0.8rem;
  }

  .product-add-cart {
    display: none;
  }

  .sticky-action-bar {
    display: block;
  }

  .product-tabs .nav-tabs {
    flex-wrap: nowrap;
    justify-content: space-between;
    border-bottom: none;
    background-color: #f5f5f5;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
  }

  .product-tabs .nav-tabs .nav-item {
    flex: 1;
  }

  .product-tabs .nav-tabs .nav-link {
    font-size: 0.9rem;
    padding: 0.75rem 0.5rem;
    border-radius: 4px;
    border-bottom: none;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0 0.25rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-tabs .nav-tabs .nav-link:hover,
  .product-tabs .nav-tabs .nav-link.active {
    background-color: #ee4d2d;
    color: #fff;
    border-bottom: none;
    box-shadow: 0 2px 6px rgba(238, 77, 45, 0.3);
  }

  .product-tabs .tab-content {
    padding: 1.25rem;
    border-radius: 4px;
  }

  .product-tabs .tab-content .product-txt {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .review-item {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .product-tabs .nav-tabs .nav-link {
    font-size: 0.85rem;
    padding: 0.6rem 0.4rem;
  }

  .product-title {
    font-size: 1.1rem; /* Further reduced for small screens */
  }
}

/* Swiper Adjustments */
.swiper-container {
  width: 100%;
}

.ml-2 {
  margin-left: 0.5rem;
}

