/* Product Detail Page Custom Styling */

:root {
  --primary-color: #ef7b1a;
  --primary-text: #1d324e;
  --secondary-color: #f6c795;
  --accent-dark: #79411c;
  --accent-light: #69798c;
  --accent-medium: #6c8494;
  --neutral: #504f56;
}

/* General Styles */
body {
  color: var(--primary-text);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-text);
}

.color-brand-3 {
  color: var(--primary-color) !important;
}

.btn-brand, .btn-buy {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transition: all 0.3s ease;
}

.btn-brand:hover, .btn-buy:hover {
  background-color: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(239, 123, 26, 0.3);
}

.btn-cart {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  transition: all 0.3s ease;
}

.btn-cart:hover {
  background-color: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(239, 123, 26, 0.3);
}

/* Product Gallery */
.gallery-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(29, 50, 78, 0.1);
}

.product-image-slider figure {
  overflow: hidden;
  transition: transform 0.5s ease;
}

.product-image-slider figure:hover {
  transform: scale(1.02);
}

.product-image-slider img {
  transition: transform 0.8s ease;
}

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

.slider-nav-thumbnails .item-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.slider-nav-thumbnails .slick-current .item-thumb {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.slider-nav-thumbnails .item-thumb:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(29, 50, 78, 0.1);
}

/* Product Info */
.box-product-price h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
}

/* SKU Animation */
.sku-product {
  transition: all 0.3s ease;
}

.sku-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(239, 123, 26, 0.1);
}

@keyframes highlight-sku {
  0% { background-color: rgba(239, 123, 26, 0.3); }
  100% { background-color: rgba(246, 199, 149, 0.1); }
}

.sku-updated {
  animation: highlight-sku 1.5s ease;
}

.price-line {
  color: var(--accent-light) !important;
  text-decoration: line-through;
  font-size: 18px;
}

.product-description {
  color: var(--accent-medium);
  line-height: 1.7;
}

.list-dot li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.list-dot li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.list-dot li:hover {
  transform: translateX(5px);
}

/* Colors and Sizes */
.list-colors li {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.list-colors li.active {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-color);
}

.list-colors li:hover {
  transform: scale(1.15);
}

.list-sizes li {
  padding: 5px 15px;
  border: 1px solid var(--accent-light);
  border-radius: 5px;
  margin-right: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.list-sizes li.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(239, 123, 26, 0.2);
}

.list-sizes li:hover:not(.disabled) {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(29, 50, 78, 0.1);
}

.list-sizes li.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Quantity Input */
.input-quantity {
  border: 1px solid var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.input-quantity:hover {
  border-color: var(--primary-color);
}

.input-quantity input {
  color: var(--primary-text) !important;
}

.minus-cart, .plus-cart {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.minus-cart:hover, .plus-cart:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Tabs */
.nav-tabs-product {
  border-bottom: 2px solid var(--secondary-color);
}

.nav-tabs-product li a {
  color: var(--accent-medium);
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.nav-tabs-product li a:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-tabs-product li a:hover {
  color: var(--primary-color);
}

.nav-tabs-product li a:hover:after {
  width: 100%;
}

.nav-tabs-product li a.active {
  color: var(--primary-color);
}

.nav-tabs-product li a.active:after {
  width: 100%;
}

/* Product Cards */
.card-grid-style-3 {
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(29, 50, 78, 0.05);
}

.card-grid-style-3:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(29, 50, 78, 0.1);
}

.card-grid-style-3 .image-box {
  overflow: hidden;
}

.card-grid-style-3 .image-box img {
  transition: transform 0.8s ease;
}

.card-grid-style-3:hover .image-box img {
  transform: scale(1.08);
}

.card-grid-style-3 .info-right a.color-brand-3 {
  color: var(--primary-text);
  transition: color 0.3s ease;
}

.card-grid-style-3:hover .info-right a.color-brand-3 {
  color: var(--primary-color);
}

/* Tools Buttons */
.tools a {
  background-color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(29, 50, 78, 0.1);
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
}

.card-grid-style-3:hover .tools a {
  opacity: 1;
  transform: translateX(0);
}

.tools a:nth-child(2) {
  transition-delay: 0.1s;
}

.tools a:nth-child(3) {
  transition-delay: 0.2s;
}

.tools a:nth-child(4) {
  transition-delay: 0.3s;
}

.tools a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Reviews */
.comment-list .single-comment {
  transition: all 0.3s ease;
  border-radius: 10px;
}

.comment-list .single-comment:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(29, 50, 78, 0.05);
}

.progress {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--secondary-color);
}

.progress-bar {
  background-color: var(--primary-color);
  transition: width 1.5s ease;
}

/* Pincode Check */
.delivery-check {
  background-color: rgba(246, 199, 149, 0.2);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

#checkPincode {
  border-color: var(--secondary-color);
  transition: all 0.3s ease;
}

#checkPincode:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(239, 123, 26, 0.2);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.slide-up {
  animation: slideUp 0.8s ease forwards;
}

.slide-right {
  animation: slideRight 0.8s ease forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Styles */
@media (max-width: 991px) {
  .pl-30.pl-mb-0 {
    padding-left: 0 !important;
    margin-top: 30px;
  }
  
  .box-product-style-size .row > div {
    margin-bottom: 15px;
  }
}

@media (max-width: 767px) {
  .list-colors li, .list-sizes li {
    margin-bottom: 10px;
  }
  
  .box-product-price h3 {
    font-size: 24px;
  }
  
  .card-grid-style-3 {
    margin-bottom: 20px;
  }
}

/* Modal Styling */
#ModalQuickview .modal-content {
  border-radius: 15px;
  overflow: hidden;
}

#ModalQuickview .btn-close {
  background-color: var(--primary-color);
  color: white;
  opacity: 1;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 10;
  transition: all 0.3s ease;
}

#ModalQuickview .btn-close:hover {
  transform: rotate(90deg);
}

/* Featured Box Styling */
.box-featured-product {
  border-radius: 15px;
  overflow: hidden;
  background-color: rgba(246, 199, 149, 0.1);
  padding: 20px;
}

.item-featured {
  transition: all 0.3s ease;
  padding: 15px;
  border-radius: 10px;
}

.item-featured:hover {
  background-color: white;
  box-shadow: 0 10px 20px rgba(29, 50, 78, 0.1);
  transform: translateY(-5px);
}

.featured-icon {
  transition: all 0.3s ease;
}

.item-featured:hover .featured-icon {
  transform: scale(1.2);
}

/* Custom Breadcrumb */
.breadcrumbs-div {
  background-color: rgba(246, 199, 149, 0.2);
}

.breadcrumb {
  padding: 15px 0;
}

.breadcrumb li a {
  color: var(--accent-medium) !important;
  transition: all 0.3s ease;
}

.breadcrumb li a:hover {
  color: var(--primary-color) !important;
}

/* Product Label */
.label.bg-brand-2 {
  background-color: var(--primary-color) !important;
  animation: pulse 2s infinite;
}

/* Star Rating */
.rating img {
  filter: invert(61%) sepia(75%) saturate(1548%) hue-rotate(346deg) brightness(98%) contrast(92%);
}

/* Newsletter Section */
.box-newsletter {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-dark) 100%);
}

.btn-brand-2 {
  background-color: var(--primary-text) !important;
  transition: all 0.3s ease;
}

.btn-brand-2:hover {
  background-color: var(--accent-dark) !important;
  transform: translateY(-2px);
}

/* Loading Animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(29, 50, 78, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Variant Availability Message */
.variant-availability-message {
  animation: fadeIn 0.5s ease;
}

/* Product Features Animation */
.list-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideFeatureIn 0.5s ease forwards;
}

.list-features li:nth-child(1) {
  animation-delay: 0.1s;
}

.list-features li:nth-child(2) {
  animation-delay: 0.2s;
}

.list-features li:nth-child(3) {
  animation-delay: 0.3s;
}

.list-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
}

@keyframes slideFeatureIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
