/* ===== MODERN PRODUCT PAGE CSS ===== */
:root {
 --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --success: #27ae60;
  --warning: #f39c12;
  --light: #f5f7fa;
  --dark: #2c3e50;
  --text: #333;
  --text-light: #7f8c8d;
  --border: #e0e0e0;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
  --container-width: 1400px;
  --section-padding: 30px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background-color: var(--light);
  line-height: 1.6;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== BREADCRUMB ===== */
/* ===== ENHANCED BREADCRUMB SECTION ===== */
.bradcaump1 {
  background-color: var(--primary);
  padding: 16px 0;
  margin-bottom: var(--section-padding);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navi-1 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: white;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.navi-1 a {
  color: rgba(255,255,255,0.9);
  transition: var(--transition);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  position: relative;
}

.navi-1 a:hover {
  color: white;
  background-color: rgba(255,255,255,0.1);
}

.navi-1 a:not(:first-child)::before {
  content: '/';
  position: absolute;
  left: -10px;
  color: rgba(255,255,255,0.5);
}

.navi-1 span {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
}

.navi-1 .zmdi-chevron-right {
  font-size: 18px;
  margin: 0 2px;
}

/* Current page indicator */
.navi-1 span:last-child {
  color: white;
  font-weight: 500;
  padding-left: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navi-1 {
    font-size: 14px;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 10px;
  }
  
  .navi-1 a {
    padding: 2px 6px;
  }
  
  .navi-1 .zmdi-chevron-right {
    font-size: 16px;
  }
}

/* ===== PRODUCT CONTAINER ===== */
.product_main {
  display: flex;
  flex-direction: column;
  padding: 0 15px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .product_main {
    flex-direction: row;
    gap: 30px;
  }
}

/* ===== IMAGE SECTION ===== */
.imagesec {
  width: 100%;
  position: relative;
  margin-bottom: 20px;
}

@media (min-width: 992px) {
  .imagesec {
    width: 45%;
    position: sticky;
    top: 100px;
    align-self: flex-start;
  }
}

.imagezoom {
  display: flex;
  flex-direction: column-reverse;
  gap: 15px;
}

@media (min-width: 768px) {
  .imagezoom {
    flex-direction: row;
  }
}

.zoomlist {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

@media (min-width: 768px) {
  .zoomlist {
    flex-direction: column;
    width: 80px;
    overflow-y: auto;
    max-height: 500px;
  }
}

.zoomlist ul {
  display: flex;
  gap: 10px;
}

@media (min-width: 768px) {
  .zoomlist ul {
    flex-direction: column;
  }
}

.zoomlist li {
  width: 70px;
  height: 70px;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.zoomlist li:hover {
  border-color: var(--secondary);
}

.zoomlist img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bigimg {
  width: 100%;
  aspect-ratio: 1/1;
  position: relative;
}

.bigimg1 {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

.bigimg1 img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== SHARE BUTTONS ===== */
.share-wrapper {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.share-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}

.share-icon:hover {
  transform: scale(1.1);
}

.social-icons {
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 8px;
}

.share-wrapper:hover .social-icons {
  display: flex;
}

.social-icons a {
  color: var(--text);
  font-size: 18px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 4px;
}

.social-icons a:hover {
  background-color: var(--light);
  color: var(--secondary);
}

/* ===== PRODUCT DETAILS ===== */
.detailsec {
  width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}


@media (min-width: 992px) {
  .detailsec {
    width: 55%;
  }
}

.protitle h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.protitle h3 {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 15px;
}

.hdn-line {
  height: 1px;
  background-color: var(--border);
  margin: 15px 0;
}

/* ===== RATING BADGES ===== */
.title_rating_bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.star_review_block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.05);
  padding: 6px 12px;
  border-radius: 20px;
}

.rating_star1 {
  color: #FFA41C;
  font-size: 14px;
  display: flex;
  gap: 2px;
}

.rating_average {
  font-weight: 600;
  color: var(--text);
}

.total_review_count h3 {
  font-size: 14px;
  color: var(--text-light);
}

.badges_container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.trusted.premium.twinkle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #000000, #2c2c2c);
  color: gold;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid gold;
}

.badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.badge.best_seller {
  background: #FFD700;
  color: black;
}

.badge.verified {
  background: var(--success);
  color: white;
}

/* ===== PRICE SECTION ===== */
.main_buy_detail {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}


.our_price {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.new__price1, .new__price2 {
  display: flex;
  flex-direction: column;
}

.new__price1 h3, .new__price2 h3 {
  font-size: 14px;
  color: var(--success);
  margin-bottom: 5px;
}

.new__price1 span {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
}

.new__price2 span {
  font-size: 28px;
  font-weight: 700;
  color: var(--success);
}

.old__prize1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.old__prize1 h3 {
  font-size: 16px;
  color: var(--text-light);
  text-decoration: line-through;
}

/* ===== AVAILABILITY ===== */
.availability {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  font-size: 15px;
}

.availability span:first-child {
  color: var(--text-light);
}

.availability span:last-child {
  color: var(--success);
  font-weight: 500;
}

/* ===== COLOR SELECTOR ===== */
.color1 {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 15px;
}

.color1 span:first-child {
  color: var(--text-light);
}

.color1 span:last-child {
  font-weight: 500;
}

.color2 ul {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.color2 ul li {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.color2 ul li:hover, 
.color2 ul li.selected {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px var(--secondary);
}

.color2 ul li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CAPACITY SELECTOR ===== */
.capacity {
  margin-bottom: 15px;
}

.capacity p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.capacity ul {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.capacity ul li {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.capacity ul li:hover, 
.capacity ul li.selected {
  background-color: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* ===== SIZE SELECTOR ===== */
.select__size {
  width: 100%;
  max-width: 200px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 15px;
  transition: var(--transition);
}

.select__size:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* ===== QUANTITY SELECTOR ===== */
.qty1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 15px;
}

.qty1 span {
  color: var(--text-light);
}

.select__size1 {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 15px;
}

/* ===== CATEGORIES ===== */
.cat1 {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  font-size: 15px;
}

.cat1 span {
  color: var(--text-light);
}

.cat_list1 li a {
  color: var(--secondary);
  transition: var(--transition);
}

.cat_list1 li a:hover {
  text-decoration: underline;
}

/* ===== ACTION BUTTONS ===== */
#is_cart_box_show {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.fr__btn {
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

.fr__btn:not(.buy_now) {
  background-color: var(--secondary);
  color: white;
}

.fr__btn:not(.buy_now):hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.buy_now {
  background-color: var(--success);
  color: white;
}

.buy_now:hover {
  background-color: #219955;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== RIGHT SIDE DETAILS ===== */
.rightside_buy_detail {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.rightside_buy_detail span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.rightside_buy_detail i {
  color: var(--success);
}

.gst_save {
  font-size: 14px;
  color: var(--text-light);
  margin: 10px 0;
}

.rightside_buy_detail a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

.rightside_buy_detail a:hover {
  text-decoration: underline;
}

/* ===== PRODUCT DESCRIPTION ===== */
.below_buynow {
  margin-top: 30px;
}

/*.product-short-desc-container {*/
/*  background: white;*/
/*  padding: 15px;*/
/*  border-radius: 8px;*/
/*  box-shadow: var(--shadow);*/
/*  margin-bottom: 20px;*/
/*}*/

/*.product-short-desc-text {*/
/*  font-size: 15px;*/
/*  line-height: 1.6;*/
/*  color: var(--text);*/
/*}*/




/* Product Description Container Styles */
.product-short-desc-container {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    line-height: 1.6;
    color: #212121;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Heading Styles */
.product-short-desc-container h1,
.product-short-desc-container h2,
.product-short-desc-container h3,
.product-short-desc-container h4,
.product-short-desc-container h5,
.product-short-desc-container h6 {
    color: #212121;
    margin: 0 0 15px;
    font-weight: 500;
    line-height: 1.3;
}

.product-short-desc-container h1 {
    font-size: 28px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.product-short-desc-container h2 {
    font-size: 24px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.product-short-desc-container h3 {
    font-size: 20px;
}

.product-short-desc-container h4 {
    font-size: 18px;
}

.product-short-desc-container h5 {
    font-size: 16px;
}

.product-short-desc-container h6 {
    font-size: 14px;
    color: #666;
}

/* Paragraph Styles */
.product-short-desc-container p {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
    line-height: 1.7;
}

/* List Styles */
.product-short-desc-container ul,
.product-short-desc-container ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.product-short-desc-container li {
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.product-short-desc-container ul {
    list-style-type: disc;
}

.product-short-desc-container ol {
    list-style-type: decimal;
}

/* Table Styles */
.product-short-desc-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 15px;
}

.product-short-desc-container th,
.product-short-desc-container td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.product-short-desc-container th {
    background-color: #f9f9f9;
    font-weight: 500;
    color: #212121;
}

/* Link Styles */
.product-short-desc-container a {
    color: #2874f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-short-desc-container a:hover {
    color: #1a5cb8;
    text-decoration: underline;
}

/* Highlight Styles */
.product-short-desc-container strong,
.product-short-desc-container b {
    font-weight: 600;
    color: #212121;
}

.product-short-desc-container em,
.product-short-desc-container i {
    font-style: italic;
}

/* Responsive Font Sizing */
@media (max-width: 992px) {
    .product-short-desc-container h1 {
        font-size: 24px;
    }
    
    .product-short-desc-container h2 {
        font-size: 22px;
    }
    
    .product-short-desc-container h3 {
        font-size: 19px;
    }
    
    .product-short-desc-container p,
    .product-short-desc-container li {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .product-short-desc-container {
        padding: 15px;
    }
    
    .product-short-desc-container h1 {
        font-size: 22px;
    }
    
    .product-short-desc-container h2 {
        font-size: 20px;
    }
    
    .product-short-desc-container h3 {
        font-size: 18px;
    }
    
    .product-short-desc-container p,
    .product-short-desc-container li {
        font-size: 14px;
    }
    
    .product-short-desc-container th,
    .product-short-desc-container td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .product-short-desc-container {
        padding: 12px;
    }
    
    .product-short-desc-container h1 {
        font-size: 20px;
    }
    
    .product-short-desc-container h2 {
        font-size: 18px;
    }
    
    .product-short-desc-container h3 {
        font-size: 16px;
    }
    
    .product-short-desc-container p,
    .product-short-desc-container li {
        font-size: 13px;
    }
    
    .product-short-desc-container table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Special Styles for Specific Containers */
#attr_desc12 {
    background-color: #f9f9f9;
    border-left: 4px solid #2874f0;
}

#attr_desc23 {
    background-color: #f5faff;
    border-left: 4px solid #388e3c;
}

#attr_desc32 {
        background-color: #f9f9f9;
    border-left: 4px solid #388e3c;
}
/* Image Styles */
.product-short-desc-container img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

/* Blockquote Styles */
.product-short-desc-container blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #f9f9f9;
    border-left: 4px solid #2874f0;
    font-style: italic;
    color: #555;
}

/* Code/Pre Styles */
.product-short-desc-container pre,
.product-short-desc-container code {
    font-family: 'Courier New', Courier, monospace;
    background: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 14px;
}

.product-short-desc-container pre {
    padding: 10px;
    overflow-x: auto;
    margin: 15px 0;
}


/* ===== SPECS TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table tr {
  border-bottom: 1px solid var(--border);
}

.data-table tr:last-child {
  border-bottom: none;
}

.data-table .header1 {
  padding: 12px 15px;
  background-color: #f8f9fa;
  font-weight: 600;
  text-align: left;
  width: 30%;
}

.data-table .content {
  padding: 12px 15px;
}

/* ===== LAYOUT STYLES ===== */
.layout-wrapper {
  margin-bottom: 30px;
}

.layout {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .layout {
    flex-direction: row;
  }
  
  .layout-2 {
    flex-direction: row-reverse;
  }
}

.layout img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .layout img {
    width: 40%;
  }
}

.layout > div {
  padding: 20px;
}

.layout h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark);
}

.layout p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

/* ===== REVIEW SECTION ===== */
.reviews-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.reviews-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.average-rating {
  text-align: center;
  min-width: 120px;
}

.average-rating-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
}

.average-stars {
  color: #FFA41C;
  font-size: 20px;
  margin: 5px 0;
}

.total-reviews {
  color: var(--text-light);
  font-size: 14px;
}

.star-distribution {
  flex: 1;
}

.star-row {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.bar {
  flex: 1;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin: 0 10px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: #FFA41C;
}

.percentage {
  width: 40px;
  text-align: right;
  color: var(--text-light);
  font-size: 14px;
}

.write-review-btn {
  background: #FFD814;
  color: var(--dark);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.write-review-btn:hover {
  background: #F7CA00;
  transform: translateY(-2px);
}

/* ===== MODAL STYLES ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
}

.close-modal {
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--dark);
}

.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.star-rating {
  display: flex;
  gap: 5px;
  margin: 10px 0;
}

.star {
  font-size: 24px;
  color: #e0e0e0;
  cursor: pointer;
  transition: var(--transition);
}

.star.active, .star:hover {
  color: #FFA41C;
}

.star-text {
  color: #FFA41C;
  font-weight: 500;
  min-height: 20px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 15px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
}

.file-upload-wrapper {
  margin-top: 10px;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: #f5f7fa;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-label:hover {
  background: #e0e6ed;
}

.file-upload-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 5px;
}

.image-preview-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.image-preview-container img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.btn-primary {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1001;
}

.toast.show {
  opacity: 1;
}

/* ===== DELIVERY BADGES ===== */
.delivery-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.delivery-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 14px;
}

.delivery-badge i {
  color: var(--success);
  font-size: 16px;
}

/* Free Delivery */
.delivery-badge.free-delivery i {
  color: var(--success);
}

/* COD Available */
.delivery-badge.cod i {
  color: var(--warning);
}

/* Secure Transaction */
.delivery-badge.secure i {
  color: var(--secondary);
}

/* 7 Days Replacement */
.delivery-badge.replacement i {
  color: var(--accent);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .our_price {
    flex-direction: column;
    gap: 10px;
  }
  
  .detailsec-1 {
    flex-direction: column;
  }
  
  .main_buy_detail, 
  .rightside_buy_detail {
    width: 100%;
  }
  
  .reviews-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .average-rating {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 20px;
    width: 100%;
  }
  
  .star-distribution {
    width: 100%;
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .fr__btn {
    width: 50%;
  }
  
  .write-review-btn {
    width: 100%;
    justify-content: center;
  }
  
  .star-rating .star {
    font-size: 20px;
  }
}









/* Variant Selection Styles */
.pro_color li, .select__i li {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pro_color li.selected, .select__i li.selected {
    border: 2px solid #2874f0;
    box-shadow: 0 0 5px rgba(40, 116, 240, 0.5);
}

.pro_color li.selected:after, .select__i li.selected:after {
    content: "✓";
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #2874f0;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Smooth transitions for price changes */
#price1, .old__prize1 h3, .new__price2 span {
    transition: all 0.3s ease;
}

/* Image zoom effect */
.bigimg1 img {
    transition: transform 0.3s ease;
}

.bigimg1 img:hover {
    transform: scale(1.05);
}

/* Loading state */
.loading-state {
    position: relative;
    opacity: 0.7;
}

.loading-state:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 10;
}
























/* Recently Viewed Section Styles */
.recently-viewed-section {
    padding: 40px 0;
    margin: 40px 0;
    background-color: #f9fafb;
    position: relative;
}

.recently-viewed-section .container {
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-prev,
.carousel-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.carousel-prev:disabled,
.carousel-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recently-viewed-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(25% - 15px);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 20px;
}

.recently-viewed-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.recently-viewed-carousel.no-transition {
    scroll-behavior: auto;
}

.recently-viewed-carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.recently-viewed-carousel.dragging .product-card {
    cursor: grab;
    user-select: none;
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    scroll-snap-align: start;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2563eb;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.product-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    padding: 20px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-btn,
.quick-view-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: #f43f5e;
    color: white;
}

.quick-view-btn:hover {
    background: #2563eb;
    color: white;
}

.add-to-cart-btn {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card:hover .add-to-cart-btn {
    bottom: 0;
}

.add-to-cart-btn:hover {
    background: #1e40af;
}

.product-info {
    padding: 16px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    position: relative;
    unicode-bidi: bidi-override;
    color: #e5e7eb;
}

.stars::before {
    content: '★★★★★';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--percent);
    overflow: hidden;
    color: #f59e0b;
}

.rating-count {
    font-size: 12px;
    color: #6b7280;
}

.product-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.product-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #2563eb;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.original-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount {
    font-size: 14px;
    font-weight: 500;
    color: #10b981;
}

.no-products {
    text-align: center;
    padding: 40px 0;
    color: #6b7280;
    grid-column: 1 / -1;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .recently-viewed-carousel {
        grid-auto-columns: calc(33.333% - 14px);
    }
}

@media (max-width: 992px) {
    .recently-viewed-carousel {
        grid-auto-columns: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .recently-viewed-carousel {
        grid-auto-columns: calc(100% - 0px);
        gap: 15px;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* Touch screen styles */
@media (hover: none) {
    .product-actions {
        opacity: 1;
        transform: translateY(0);
    }
    
    .add-to-cart-btn {
        bottom: 0;
    }
}






.wishlist-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90%;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.wishlist-toast.show {
    opacity: 1;
}
.wishlist-active i {
    color: #ff4d4f;
    font-weight: bold;
}







/*cart css*/
/* Cart animations */
.jk-mobile-icon-count,
.jk-icon-count {
    display: inline-block;
    transition: transform 0.3s ease;
}

.fr__btn .fa-spinner {
    margin-right: 8px;
}

/* Alert messages */
#cart_attr_msg {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Button animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fr__btn.added {
    animation: pulse 0.5s;
}