/* ===================================================================
   Astra Child Theme - custom.css (cleaned & optimized)
   - Keep in /css/custom.css
   =================================================================== */

/* -----------------------
   CSS Variables (brand)
   ----------------------- */
:root {
  --color-brand: #49e600;
  --color-accent: #BB4208;
  --color-danger: #ff4757;
  --color-muted: #6b7280;
  --color-light: #ffffff;
  --max-content-width: 1180px;
  --transition-fast: 0.25s;
}

/* Apply Poppins globally */
html,
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.site-description,
.ast-site-identity,
.ast-builder-menu-1 .menu-item>a,
.ast-builder-layout-element,
.widget,
.wp-block,
p,
a {
  font-family: 'Poppins', sans-serif !important;
}

/* -----------------------
   Image Carousel Customization
   ----------------------- */
.elementor-widget-image-carousel .swiper-slide img,
.elementor-widget-image-carousel .slick-slide img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

@media(max-width:1024px) {

  .elementor-widget-image-carousel .swiper-slide img,
  .elementor-widget-image-carousel .slick-slide img {
    height: 65vh;
  }
}

@media(max-width:768px) {

  .elementor-widget-image-carousel .swiper-slide img,
  .elementor-widget-image-carousel .slick-slide img {
    height: 25vh;
  }
}

/* -----------------------
   Horizontal Category Scroll
   ----------------------- */
.horizontal-category-scroll {
  display: flex;
  gap: clamp(1rem, 5vw, 2rem);
  overflow-x: auto;
  padding: clamp(0.75rem, 2vw, 1.5rem) 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.horizontal-category-scroll::-webkit-scrollbar {
  display: none;
}

.category-item {
  flex: 0 0 auto;
  text-align: center;
  width: clamp(7.5rem, 30vw, 12.5rem);
  transition: transform .3s ease;
}

.category-circle {
  width: clamp(7.5rem, 30vw, 12.5rem);
  height: clamp(7.5rem, 30vw, 12.5rem);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto clamp(0.5rem, 1.5vw, 1rem) auto;
  position: relative;
}

.category-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .4s ease;
}

.category-circle:hover::before {
  transform: scale(1.1);
}

.category-circle[style]::before {
  background-image: inherit;
}

.category-title {
  font-size: clamp(0.9rem, 2vw, 1.125rem);
  font-weight: 600;
  color: #000;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
}

/* Urgency Badge */
.urgency-badge-text {
  position: relative;
  display: inline-block;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 600;
  user-select: none;
  min-width: clamp(7.5rem, 30vw, 12.5rem);
  height: clamp(1rem, 2vw, 1.5rem);
  line-height: 20px;
  overflow: hidden;
}

.urgency-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-danger);
  transition: opacity 1s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.urgency-text.show {
  opacity: 1;
  pointer-events: auto;
}

.urgency-count {
  margin-right: clamp(0.25rem, 1vw, 0.5rem);
}

/* Larger screen tweaks */
@media(min-width:1025px) {
  .category-item {
    width: clamp(9rem, 20vw, 14rem);
  }

  .category-circle {
    width: clamp(9rem, 20vw, 14rem);
    height: clamp(9rem, 20vw, 14rem);
  }

  .category-title {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
  }

  .horizontal-category-scroll {
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
}

/* -----------------------
   Product card & grid/list
   ----------------------- */
.product-card {
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: flex-start;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1/1;
  background: #f8f8f8;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
  transition: transform .4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Add-to-cart circular button */
.add-to-cart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  background: #fff;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-5px);
  transition: all .3s ease;
  text-decoration: none;
}

.product-card:hover .add-to-cart-btn {
  opacity: 1;
  transform: translateY(0);
}

.add-to-cart-btn.added {
  background: var(--color-accent);
}

/* Hover effect */
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-danger);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
}

/* Product info */
.product-info {
  margin-top: 14px;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0;
  line-height: 1.4;
}

.product-price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.old-price {
  text-decoration: line-through;
  font-size: 13px;
  color: #999;
}

.new-price {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

/* Buttons */
.buy-btn {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  text-decoration: none;
  transition: background .3s;
}

.buy-btn:hover {
  background: #333;
}

/* Responsive small */
@media(max-width:767px) {
  .product-title {
    font-size: 14px;
  }

  .new-price {
    font-size: 14px;
  }

  .old-price {
    font-size: 12px;
  }

  .buy-btn,
  .add-to-cart-btn {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* -----------------------
   Carousel (GSAP kept identical)
   ----------------------- */
.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 320px;
  perspective: 1200px;
  margin: 40px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  padding: 0 1rem;
}

.carousel-item {
  position: absolute;
  width: 260px;
  height: 240px;
  border-radius: 15px;
  overflow: hidden;
  background: #444;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transform-origin: center center;
  transition: box-shadow .3s ease;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 15px;
}

.carousel-item.active {
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  transform: scale(1.05);
}

@media(max-width:768px) {
  .carousel {
    height: 260px;
  }

  .carousel-item {
    width: 200px;
    height: 180px;
  }
}

@media(max-width:480px) {
  .carousel {
    height: 220px;
  }

  .carousel-item {
    width: 160px;
    height: 140px;
  }
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 60px auto;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.faq-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1a1a1a;
}

.faq-item {
  text-align: left;
  margin: 15px 0;
  background: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  background: #fff;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 22px;
  transition: transform .3s ease;
}

.faq-question.active::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 15px 20px;
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  background: #fafafa;
  border-top: 1px solid #eee;
}

/* Particles (minimal) */
#particle-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#particle-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  pointer-events: none;
}

#particle-container>*:not(canvas) {
  position: relative;
  z-index: 1;
}

/* Counter Grid */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.my-counter-widget {
  text-align: center;
  padding: 15px 10px;
  border-radius: 10px;
  background: var(--color-light);
  transition: transform .25s ease;
}

.my-counter-widget:hover {
  transform: translateY(-4px);
}

.counter-number {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 650;
  color: var(--color-accent);
}

.counter-label {
  margin-top: 6px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 500;
  color: var(--color-muted);
}

@media(max-width:768px) {
  .counter-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 15px;
  }

  .my-counter-widget {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }
}

/* Scroll row */
.scroll-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 125% !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch;
  transform: translateX(0);
  will-change: transform;
  left: -150px !important;
}

.scroll-text {
  display: inline-block;
  font-size: clamp(10px, 2vw, 18px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

/* Forms */
.custom-form {
  margin: 20px auto;
  padding: 25px;
  border-radius: 10px;
}

.custom-form h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: #222;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.custom-form label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #f9f9f9;
  transition: all .2s ease;
}

.custom-form input:focus,
.custom-form textarea:focus {
  border-color: #884208;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(136, 66, 8, 0.1);
}

.custom-form textarea {
  height: 90px;
  resize: vertical;
}

.custom-form input[type="submit"] {
  background: #884208;
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  transition: all .3s ease;
  margin-top: 8px;
}

.custom-form input[type="submit"]:hover {
  background: #a55610;
}

@media(max-width:480px) {
  .form-row {
    flex-direction: column;
  }
}

@media(max-width:768px) {
  .custom-form {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  }
}

/* Contact items */
.contact-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #111;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-accent);
}

.contact-item i {
  font-size: 28px;
  color: #8b3e00;
  min-width: 32px;
  text-align: center;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-weight: bold;
  color: #000;
}

/* Layout toggle */
.layout-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 0;
}

.layout-toggle button {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-toggle button:hover {
  background: #f0f8ff;
  border-color: var(--color-brand);
}

.layout-toggle button.active {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

@media(max-width:767px) {
  .layout-toggle {
    display: none !important;
  }
}

/* Shop container */
.shop-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.shop-sidebar {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  position: sticky;
  top: 100px;
  align-self: start;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  z-index: 10;
  width: 100%;
}

.shop-sidebar .widget,
.shop-sidebar .woof_container {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.shop-sidebar .widget-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.shop-sidebar input[type="checkbox"],
.shop-sidebar input[type="radio"] {
  accent-color: var(--color-brand);
}

/* WOOF forced width */
.shop-sidebar .woof,
.shop-sidebar .woof_sid_auto_shortcode,
.shop-sidebar .woof_container {
  width: 100% !important;
  float: none !important;
  display: block !important;
  clear: both;
}

/* Grid view */
ul.products.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
}

ul.products.grid-view li.product {
  list-style: none;
}

ul.products.grid-view .custom-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

ul.products.grid-view img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform .3s ease;
}

ul.products.grid-view img:hover {
  transform: scale(1.05);
}

ul.products .description {
  display: none;
}

/* List view */
ul.products.list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
}

ul.products.list-view li.product {
  list-style: none;
}

ul.products.list-view .custom-product-card {
  display: flex;
  gap: 20px;
  padding: 18px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  transition: all .3s ease;
}

ul.products.list-view .product-image {
  flex: 0 0 200px;
}

ul.products.list-view img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform .3s ease;
}

ul.products.list-view .product-details {
  flex: 1;
  text-align: left;
}

ul.products.list-view .woocommerce-loop-product__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color .3s ease;
}

ul.products.list-view .description {
  display: block;
  color: #555;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.custom-product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-brand);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}

.custom-product-card .woocommerce-loop-product__title {
  font-size: 18px;
  font-weight: 600;
  margin: 12px 0;
  color: #333;
  transition: color .3s ease;
}

.custom-product-card .price {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-top: 8px;
}

ul.products.grid-view li.product .star-rating {
  display: block;
  margin: 8px auto 0 auto;
  text-align: center;
  float: none;
}

/* Responsive shop */
@media(max-width:992px) {
  .shop-container {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
    margin-bottom: 20px;
    padding: 15px;
  }

  .layout-toggle {
    justify-content: center;
    margin-bottom: 20px;
  }

  ul.products.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  ul.products.list-view .custom-product-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  ul.products.list-view .product-image,
  ul.products.list-view img {
    width: 100%;
    height: auto;
  }

  ul.products.list-view .product-details {
    text-align: center;
  }
}

/* My Account */
.woocommerce-account .myaccount-container {
  display: flex;
  gap: 25px;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.woocommerce-MyAccount-navigation {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 18px;
  padding: 25px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
  margin-bottom: 12px;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  background: #f9fafb;
  transition: all .3s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, .3);
}

.woocommerce-MyAccount-content {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  min-height: 450px;
  animation: fadeIn .4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(max-width:768px) {
  .woocommerce-account .myaccount-container {
    flex-direction: column
  }

  .woocommerce-MyAccount-navigation {
    width: 100%
  }
}

/* Checkout & forms */
.woocommerce-checkout form.checkout {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
}

.woocommerce form .form-row {
  margin-bottom: 18px;
}

.woocommerce form .form-row label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  font-size: 14px;
  color: #333;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  background: #fafafa;
  transition: border-color .2s ease, background .2s ease;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--color-brand);
  background: #fff;
  outline: none;
}

.woocommerce-checkout .col2-set {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  flex: 1;
  min-width: 320px;
}

.woocommerce-checkout-review-order-table {
  border-radius: 8px;
  border: 1px solid #eee;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 12px 15px;
}

.woocommerce-checkout-payment {
  background: #fafafa;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #eee;
}

#place_order {
  background: var(--color-brand);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 6px;
  width: 100%;
  text-align: center;
  transition: background .2s ease;
}

#place_order:hover {
  background: #005f8d;
}

/* Force full width for WooCommerce containers */
.woocommerce-page .ast-container,
.woocommerce-page .site-content>.ast-container {
  max-width: 100% !important;
  padding-left: 1% !important;
  padding-right: 1% !important;
}

.woocommerce-page .ast-woocommerce-container {
  padding: 0 !important;
  margin: 0 auto !important;
}

/* Single product limits & urgency */
.single-product .product {
  max-width: var(--max-content-width);
  margin: auto;
  padding: 15px 20px;
  position: relative;
}

.custom-sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-danger);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
  z-index: 10;
}

.woocommerce-product-details__short-description {
  font-size: 15px;
  line-height: .6;
  color: #444;
  margin: 8px 0 12px;
  padding: 12px 14px;
  background: #f9f9f9;
  border: 1px solid #eaeaea;
  border-radius: 8px;
}

.woocommerce-Tabs-panel {
  font-size: 14px;
  line-height: 1;
  color: #333;
  padding: 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 21px;
  font-weight: 700;
  color: #111;
  margin: 10px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.woocommerce div.product p.price del {
  color: #888;
  font-size: 15px;
  font-weight: 400;
}

.woocommerce div.product p.price ins {
  color: #111;
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
}

/* Urgency styling */
.urgency-wrapper {
  margin: 6px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #d63031;
  position: relative;
  height: 20px;
  overflow: hidden;
}

.urgency-wrapper .urgency-text {
  opacity: 0;
  transform: translateY(15%);
  transition: opacity .5s ease, transform .5s ease;
  position: absolute;
  left: 0;
  width: 100%;
  justify-content: flex-start;
}

.urgency-wrapper .urgency-text.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.urgency-wrapper .stock-count {
  font-weight: 700;
  color: #e84118;
}

/* Add to cart & buy now */
.single_add_to_cart_button {
  margin-bottom: 8px !important;
  padding: 12px 18px !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
}

.buy-now-btn {
  background: linear-gradient(135deg, var(--color-danger), #ff6b6b);
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 13px 20px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all var(--transition-fast) ease;
  margin: 8px 0 14px;
  font-size: 15px;
}

.buy-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
}

/* Product features & extra-links */
.product-features {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.product-features div {
  flex: 1;
  text-align: center;
}

.extra-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 6px 0;
  font-size: 14px;
  font-weight: 600;
  flex-wrap: wrap;
}

.extra-links .extra-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid #ddd;
  border-radius: 30px;
  background: #fafafa;
  transition: all .2s ease;
  font-size: 14px;
  white-space: nowrap;
}

.extra-links .extra-link:hover {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
}

.extra-links .icon {
  font-size: 16px;
  line-height: 1;
}

/* Hide inside sticky header if present */
.ast-sticky-add-to-cart-action-wrap .buy-now-btn,
.ast-sticky-add-to-cart-action-wrap .extra-links,
.ast-sticky-add-to-cart-action-wrap .extra-link {
  display: none !important;
}

/* Responsive adjustments for extra-links */
@media(max-width:480px) {
  .extra-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .extra-links .extra-link {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
    min-width: 120px;
  }
}

/* Related products horizontal on mobile */
@media(max-width:768px) {
  .related.products ul.products {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding-bottom: 10px;
  }

  .related.products ul.products li.product {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    scroll-snap-align: start;
  }

  .related.products ul.products::-webkit-scrollbar {
    display: none;
  }

  .related.products ul.products {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Accessibility: focus states */
.buy-btn:focus,
.buy-now-btn:focus,
.add-to-cart-btn:focus,
.layout-toggle button:focus,
.extra-link:focus {
  outline: 3px solid rgba(0, 115, 230, .16);
  outline-offset: 2px;
}

/* Snackbar */
#snackbar {
  visibility: hidden;
  min-width: 250px;
  background: #323232;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 14px 20px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  font-size: 16px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .3s, bottom .3s;
}

#snackbar.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* Footer contact */
.footer-contact {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-contact .contact-item {
  display: flex;
  font-size: 15px;
  color: #fff;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

@media(max-width:768px) {
  .footer-contact {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Product gallery tweaks */
.woocommerce-product-gallery__image img {
  border-radius: 12px;
}

.woocommerce-product-gallery__trigger {
  display: none !important;
  pointer-events: none;
}

/* End of custom.css */