
/* product css start */
.featured-products {
  padding: 5rem 2rem;
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
}

.section-title, .heading-area h1 {
  font-size: 26px;
  color:black;
  margin-bottom: 45px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  justify-items: center;
}
 .all-products .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.product-card {
  background: var(--card-bg);
  border: 1px solid #dde0e5;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  max-width: 260px;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  aspect-ratio: 1/1;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-section .product-actions button, .home-section .product-actions button {
  background-color: #FF90BB;
  border: none;
  border-radius: 10px;
  width: 45px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}
/* .product-section .product-actions button:hover,
.home-section .product-actions button:hover {
  background-color: var(--primary-color);
} */

.product-actions button i {
  color: white;
}
.product-info {
  padding: .4rem;
  text-align: center;
}

.product-title {
  position: relative;
  font-size: 14px;
   color: #666;
  font-weight: 400;
  margin-bottom: 10px;
  min-height: 2.6em; /* prevents layout shift */
    position: relative;
  line-height: 1.2;
  min-height: 3em;
}

/* Shared animation setup */
/* Both titles overlap, no layout change */
.title-short,
.title-full {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;

  transition: opacity 0.25s ease;
}


/* Default state */
.title-short {
  opacity: 1;
  max-height: 1.4em;
}

.title-full {
  opacity: 0;
  max-height: 0;
}

/* Hover card → swap smoothly */
.product-card:hover .title-short {
  opacity: 0;
  max-height: 0;
}

.product-card:hover .title-full {
  opacity: 1;
  max-height: 5em; /* enough for long titles */
}


.product-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  display: none;
}
.product-rating .stars {
  color: #ffc107;
}
.product-rating .rating-count {
  font-size: 0.9rem;
  color: #666;
}
.product-price.hide{
  visibility: hidden !important;
}
.product-price {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 6px;
}
.product-price .original-price {
  text-decoration: line-through;
  color: #999;
}
.product-price .discounted-price {
  color: var(--primary-color);
  font-weight: 600;
}
.add-to-cart {
  width: 100%;
  padding: 0.4rem;
  background: var(--primary-color);
  color: var(--button-text);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
  white-space: nowrap;
  z-index: 999;
}
.order-now{
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  color: var(--button-text);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
  white-space: nowrap;
}
.add-to-cart:hover {
  background: var(--primary-color-hover);
}
.add-to-cart.out-of-stock {
  background: #ccc;
  cursor: not-allowed;
}
.product-badge {
  position: absolute;
  top: 5px;
  left: 6px;
  padding: 0.25rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}
.product-badge.discount {
  background: var(--primary-color);
  color: white
}
.product-badge.out-of-stock {
  background: #ffa6a6;
  color: #a91c1c;
  top: 40px;
}
.product-image {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 10px;
  background-color: white;
}

/* product css end */

/* product page search css start */
.search-container {
  margin: 20px 0;
  padding: 15px;
  background: var(--search-container-bg);
  border-radius: 8px;
}

.search-container input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--search-input-border);
  border-radius: 8px;
  max-width: 70%;
  width: 100%;
  color: var(--text-color);
}
.search-container form {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.search-container .search-button {
  padding: 10px 40px;
  background: var(--primary-color);
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}
.search-container .clear-search {
  padding: 9px 10px;
  background: var(--primary-color);
  border: none;
  color: white;
  border-radius: 8px;
}
.search-container .search-button:hover,
.search-container .clear-search:hover {
  background-color: var(--primary-color-hover);
}
.search-container .search-feedback {
  text-align: center;
  margin-top: 10px;
  color: var(--primary-color);
}
/* product page search css end */

/* product details page css start */
.product-detail-section .product-image {
  max-width: 35%;
  width: 100%;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.product-detail-section .product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.6s ease;
  object-fit: fill;
}
.product-detail-section .product-image .main-img {
  overflow: hidden;
}

/* Product Info */
.product-detail-section .product-info {
  background-color:white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: baseline;
  flex-direction: column;
  flex-wrap: wrap;
  max-width: 65%;
  width:100%;
}
.product-detail-section .product-info p{
  text-align: left !important;
  color: black;
}
.product-detail-section .product-title {
  font-size: clamp(1.125rem, 0.5rem + 1.25vw, 2rem);
  margin-bottom: 10px;
  color: black;
  text-align: left;
}

.product-detail-section .product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.product-detail-section .stars {
  color: #ffc107;
}

.product-detail-section .rating-count {
  color: #777;
  font-size: 0.9rem;
}

.product-detail-section .product-price {
  margin-bottom: 20px;
}

.product-detail-section .original-price {
  text-decoration: line-through;
  color: #777;
  margin-right: 10px;
}

.product-detail-section .discounted-price {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
}

.product-detail-section .product-description {
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: left;
}
.product-detail-section .product-info .product-specifications {
  text-align: left;
}
.product-detail-section .product-info .product-specifications h3 {
  margin: 0 0 10px 0;
  color: var(--text-color);
}
.product-detail-section .product-info .product-specifications li {
  padding: 7px;
  background-color: #9effdc33;
  border-radius: 6px;
  margin-bottom: 2%;
  color: var(--text-color);
}
/* Product Actions */
.product-detail-section .product-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  position: relative;
  max-width: 80%;
  width: 100%;
}

/* share social start */
section.product-detail-section{
  background-color: #6bd4ff1a;
}
.product-detail-section .social-sharing h3 {
  margin-bottom: 10px;
  color: black;
}
.product-detail-section a.social-share {
  font-size: 30px;
  color: var(--primary-color);
}
/* share social end*/

/* Related Products start*/

.related-products-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.related-products .heading-title-md{
  margin: 20px 0;
}
.related-products .product-card {
  border: 1px solid #dde0e5;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  max-width: 200.66px;
  width: 100%;
  min-height: 209px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-products .product-image{
  max-width: 100%;
  width: 100%;
  box-shadow: none;
  padding: 10px;
  background-color: transparent;
}
.related-products .product-actions{
  display: none;
}
.related-products .product-info {
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  flex-direction: column;
  flex-wrap: wrap;
  max-width: 100%;
  width: 100%;
  background-color: white;
}
.related-products .product-title {
  font-size: clamp(0.8rem, 0.76rem + 0.19999999999999996vw, 1rem);
  color: black;
  word-wrap: break-word;
  text-align: center;
}
.related-products .discounted-price{
  font-size: clamp(1rem, 0.9107142857142857rem + 0.17857142857142858vw, 1.125rem);
}
.related-products .product-price{
  margin-bottom: 5px;
}
.related-products .product-actions-buttons{
  width: 100%;
}
.related-products .quantity-selector{
  gap: 10px;
  width: 100%;
}
.related-products button.quantity-btn{
  width: 25px !important;
  height: 25px !important;
}
.related-products .quantity-selector input{
  width: 50px !important;
  height: 25px !important;
}
/* Related Products end */

/* Delivery and Return Info */
.product-detail-section .delivery-info,
.product-detail-section .return-policy {
  margin-top: 20px;
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-detail-section .delivery-info h3,
.product-detail-section .return-policy h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.product-detail-section .delivery-info p,
.product-detail-section .return-policy p {
  color: #555;
  line-height: 1.6;
}

.product-detail-section .product-detail .product-content {
  display: flex;
  gap: 20px;
}
/* product details page css end */

.product-thumbnails {
  display: flex;
  gap: 10px; /* Space between thumbnails */
  overflow-x: auto; /* Enable horizontal scrolling if needed */
  padding: 10px 0;
}

.thumbnail-image {
  width: 100px !important; /* Set thumbnail width */
  height: 100px !important; /* Set thumbnail height */
  object-fit: cover; /* Maintain aspect ratio */
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s ease-in-out;
}

.thumbnail-image:hover,
.thumbnail-image.active {
  border: 2px solid var(--primary-color)
}


.category-slider-section {
  margin: 10px 0;
  position: relative;
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.product-section .swiper-slide {
  height: auto;
}

.product-section .swiper-button-next,
.product-section .swiper-button-prev {
  position: static;
  margin: 0 5px;
  color: black;
  background: var(--primary-color);
  border-radius: 10px;
  padding: 10px 20px;
}

.product-section .swiper-button-next::after,
.product-section .swiper-button-prev::after {
  font-size: 24px;
}
p.product-quantity {
    font-size: 12px;
    margin: .1rem 0 .5rem 0;
    position: absolute;
    z-index: 9;
    top: 40%;
    writing-mode: sideways-lr;
    color: #000000;
    background: #f4f4f4;
    left: 0;
    padding: 5px 0;
}
.related-products p.product-quantity{
  background-color: transparent;
}
.product-detail p.product-quantity {
      position: static;
      z-index: 9;
      writing-mode: horizontal-tb;
}
.product-detail button.quantity-btn, .product-detail .quantity-selector input {
  width: 20%;
  height: 40px;
}
.product-detail .quantity-selector input {
  width: 50%;
}
.product-detail .quantity-selector{
    gap: 10px;
    width: 39%;
}
.related-products .quantity-selector{
  width: 100%;
}
/* Existing product grid styles */



.pagination-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pagination {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 12px;
}

.page-item {
  display: inline-block;
}

.page-link {
    display: inline-block;
    padding: 5px 40px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    background-color: black;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
    border: 1px solid rgba(0, 123, 255, 0.4);
}
.page-link i{
  font-size: 20px;
}
.page-link:hover:not(.disabled) {
  background-color: black;
  color: #fff;
  box-shadow: 0 16px 32px rgba(0, 123, 255, 0.5);
  border: 1px solid rgba(0, 123, 255, 0.8);
}

.page-item.disabled .page-link {
  background-color: black;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 123, 255, 0.4);
  border: 1px solid rgba(0, 123, 255, 0.8);
}

.page-item.current .page-link {
  background-color: black;
  color: #fff;
  border-color: var(--primary-color);
  cursor: default;
  box-shadow: 0 4px 12px rgba(229, 75, 11, 1);
}



/* filtering product page css start */
.product-page {
  display: flex;
  gap: 1rem;
}

.product-page .product-grid{
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 1rem;
}
.filter-sidebar {
    width: 350px;
    padding: 20px;
    background-color: var(--sky-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(255 255 255 / 31%);
    position: sticky;
    top: 100px;
    height: fit-content;
    color: black;
}

.filter-sidebar h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.filter-group input[type="number"],
.filter-group select {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.filter-group input[type="radio"] {
  margin-right: 6px;
}

.product-listing {
  flex: 1;
}

/* filtering product page css end */