/* Beautiful Food v5 - mobile product grid + premium product detail */

/* Home: product tabs keep their current JS behaviour, only the mobile layout changes. */
@media (max-width: 767px) {
  .pet-products-section .pet-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
    scroll-snap-type: none !important;
  }
  .pet-products-section .pet-product-card {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    scroll-snap-align: none !important;
    border-radius: 14px;
  }
  .pet-products-section .pet-card-image img { padding: 10px; }
  .pet-products-section .pet-card-body { padding: 9px; }
  .pet-products-section .pet-card-body h3 {
    height: 43px;
    margin: 6px 0 4px;
    font-size: 10.5px;
    line-height: 1.35;
  }
  .pet-products-section .pet-card-actions { right: 6px; top: 6px; gap: 4px; }
  .pet-products-section .pet-card-actions button { width: 28px; height: 28px; font-size: 11px; }
  .pet-products-section .pet-price { min-height: 38px; }
  .pet-products-section .pet-price strong { font-size: 14px; }
  .pet-products-section .pet-add-cart { height: 34px; margin-top: 5px; padding: 0 5px; font-size: 9px; }
  .pet-products-section .pet-product-tabs {
    margin-left: -3px;
    margin-right: -3px;
    padding: 0 3px 7px;
    scrollbar-width: none;
  }
  .pet-products-section .pet-product-tabs::-webkit-scrollbar { display: none; }
  .pet-products-section .pet-tab-btn { padding: 8px 11px; font-size: 10px; }
}

/* Premium product detail */
.pet-product-page { padding-bottom: 55px; }
.pet-product-breadcrumb {
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid #e8ebf2;
  border-radius: 14px;
  background: #fff;
}
.pet-product-breadcrumb > li + li:before { color: #b3bcc9; }
.pet-product-breadcrumb a { color: #697386; font-size: 11px; font-weight: 700; }

.pet-product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 22px;
  align-items: start;
}
.pet-product-gallery-card,
.pet-product-buy-card,
.pet-product-detail-card {
  background: #fff;
  border: 1px solid #e8ebf2;
  border-radius: 22px;
  box-shadow: 0 10px 34px rgba(15, 23, 42, .045);
}
.pet-product-gallery-card { padding: 18px; }
.pet-product-gallery-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 8px; }
.pet-product-stock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 900;
  background: #f1f5f9; color: #64748b;
}
.pet-product-stock-badge i { font-size: 7px; }
.pet-product-stock-badge.is-in { background: #ecfdf3; color: #15803d; }
.pet-product-stock-badge.is-out { background: #fff1f2; color: #be123c; }
.pet-product-quick-actions { display: flex; gap: 7px; }
.pet-product-quick-actions button {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid #e6e9f0; background: #fff; color: #64748b;
  transition: .2s ease;
}
.pet-product-quick-actions button:hover { background: #6d28d9; color: #fff; border-color: #6d28d9; transform: translateY(-1px); }

#product-product .pet-product-gallery.thumbnails { margin: 0; padding: 0; overflow: visible; }
.pet-product-main-image {
  min-height: 510px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #ffffff 58%, #faf9ff 100%);
  border: 1px solid #f0edf8;
}
.pet-product-main-image img {
  width: 100%; height: 510px; max-width: 100%;
  object-fit: contain; padding: 28px;
  transition: transform .25s ease;
}
.pet-product-main-image:hover img { transform: scale(1.035); }
.pet-product-zoom {
  position: absolute; right: 14px; bottom: 14px;
  padding: 8px 11px; border-radius: 10px;
  background: rgba(15,23,42,.82); color: #fff;
  font-size: 10px; font-weight: 900;
  backdrop-filter: blur(6px);
}
.pet-product-zoom i { margin-right: 5px; }
.pet-product-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pet-product-thumbs a {
  width: 72px; height: 72px; border: 1px solid #e4e7ee; border-radius: 12px;
  background: #fff; padding: 5px; display: flex; align-items: center; justify-content: center;
}
.pet-product-thumbs a:hover,.pet-product-thumbs a.active { border-color: #8b5cf6; box-shadow: 0 6px 16px rgba(109,40,217,.10); }
.pet-product-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pet-product-gallery-note {
  display: flex; align-items: center; gap: 10px; margin-top: 13px;
  padding: 11px 13px; border-radius: 13px; background: #f8fafc; color: #64748b;
}
.pet-product-gallery-note > i { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #ede9fe; color: #6d28d9; }
.pet-product-gallery-note span { display: flex; flex-direction: column; }
.pet-product-gallery-note strong { color: #1f2937; font-size: 10px; }
.pet-product-gallery-note small { margin-top: 2px; font-size: 9px; }

.pet-product-buy-card { padding: 24px; position: sticky; top: 14px; }
.pet-product-brandline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pet-product-brand {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; background: #f3f0ff; color: #6d28d9 !important;
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .35px;
}
.pet-product-sale { background: #ef4444; color: #fff; border-radius: 9px; padding: 6px 9px; font-size: 10px; font-weight: 900; }
.pet-product-buy-card h1 { margin: 0 0 11px; font-size: 27px; line-height: 1.2; letter-spacing: -.45px; color: #0f172a; }
.pet-product-ratingline { display: flex; align-items: center; gap: 10px; min-height: 22px; margin-bottom: 14px; }
.pet-stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.pet-review-link { color: #7b8494; font-size: 10px; font-weight: 800; }
.pet-product-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 15px; }
.pet-product-meta span { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid #edf0f4; border-radius: 12px; background: #fbfcfe; min-width: 0; }
.pet-product-meta small { color: #8993a4; font-size: 9px; font-weight: 700; }
.pet-product-meta strong { color: #24324a; font-size: 11px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.pet-product-pricebox { padding: 15px 0; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; margin-bottom: 16px; }
.pet-product-pricebox strong { display: block; color: #0f172a; font-size: 31px; line-height: 1.05; letter-spacing: -.5px; }
.pet-product-old-price { display: block; margin-bottom: 2px; color: #98a2b3; font-size: 12px; text-decoration: line-through; }
.pet-product-pricebox small { display: block; color: #8b95a6; font-size: 9px; margin-top: 5px; }
.pet-product-discounts { display: grid; gap: 5px; margin: -5px 0 15px; }
.pet-product-discounts span { font-size: 10px; color: #5b6473; }
.pet-product-discounts i { color: #7c3aed; margin-right: 5px; }
.pet-option-title { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 10px; }
.pet-option-title span { font-size: 12px; font-weight: 900; color: #1f2937; }
.pet-option-title small { font-size: 9px; color: #9aa3b0; }
.pet-product-form .form-group { margin-bottom: 12px; }
.pet-product-form .control-label { margin-bottom: 5px; font-size: 10px; font-weight: 800; color: #5b6473; }
.pet-product-form .form-control { height: 43px; border: 1px solid #dfe4ec; border-radius: 10px; box-shadow: none; font-size: 11px; }
.pet-product-form textarea.form-control { height: auto; }
.pet-product-form .form-control:focus { border-color: #9b7cf0; box-shadow: 0 0 0 3px rgba(109,40,217,.07); }
.pet-choice-list { display: flex; flex-wrap: wrap; gap: 7px; }
.pet-choice { margin: 0 !important; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e0e4eb; border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 10px; }
.pet-choice img { width: 30px; height: 30px; object-fit: contain; }
.pet-choice b { color: #6d28d9; }
.pet-buy-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: end; margin-top: 5px; }
.pet-quantity-wrap > label { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 800; color: #5b6473; }
.pet-quantity-control { height: 48px; display: grid; grid-template-columns: 34px 1fr 34px; border: 1px solid #dfe4ec; border-radius: 12px; overflow: hidden; }
.pet-quantity-control button { border: 0; background: #f7f8fb; color: #475569; }
.pet-quantity-control button:hover { background: #ede9fe; color: #6d28d9; }
.pet-quantity-control .form-control { height: 46px; border: 0; border-radius: 0; padding: 0; text-align: center; font-weight: 900; box-shadow: none; }
.pet-product-cart-btn { height: 48px; border: 0; border-radius: 12px; background: linear-gradient(135deg,#6d28d9,#8b5cf6); color: #fff; font-size: 12px; font-weight: 900; box-shadow: 0 10px 22px rgba(109,40,217,.20); }
.pet-product-cart-btn:hover,.pet-product-cart-btn:focus { color: #fff; background: linear-gradient(135deg,#5b21b6,#7c3aed); transform: translateY(-1px); }
.pet-product-cart-btn:disabled { background: #cbd5e1; box-shadow: none; }
.pet-product-cart-btn i { margin-right: 7px; }
.pet-whatsapp-order {
  display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px;
  margin-top: 10px; padding: 11px 13px; border-radius: 13px;
  background: #ecfdf3; border: 1px solid #bbf7d0; color: #166534 !important;
  transition: .2s ease;
}
.pet-whatsapp-order:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(22,101,52,.10); }
.pet-whatsapp-order > i:first-child { width: 38px; height: 38px; border-radius: 11px; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.pet-whatsapp-order span { display: flex; flex-direction: column; min-width: 0; }
.pet-whatsapp-order strong { font-size: 10.5px; }
.pet-whatsapp-order small { font-size: 8.5px; color: #4d7b5d; margin-top: 1px; }
.pet-minimum-info { margin: 10px 0 0; padding: 9px 11px; border-radius: 10px; font-size: 10px; }
.pet-purchase-assurance { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.pet-purchase-assurance > span { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 7px; padding: 9px; border: 1px solid #edf0f4; border-radius: 11px; }
.pet-purchase-assurance i { grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: #f3f0ff; color: #6d28d9; }
.pet-purchase-assurance b { font-size: 9.5px; color: #334155; }
.pet-purchase-assurance small { font-size: 8px; color: #929bab; }

.pet-product-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.pet-product-service-grid > div { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid #e8ebf2; border-radius: 15px; background: #fff; }
.pet-product-service-grid i { width: 37px; height: 37px; flex: 0 0 37px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #f3f0ff; color: #6d28d9; font-size: 15px; }
.pet-product-service-grid span { display: flex; flex-direction: column; min-width: 0; }
.pet-product-service-grid strong { font-size: 10px; color: #26354a; }
.pet-product-service-grid small { font-size: 8.5px; color: #9099a8; margin-top: 2px; }

.pet-product-detail-card { padding: 0; overflow: hidden; margin-top: 16px; }
#product-product .pet-product-tabs-detail { margin: 0; padding: 0 20px; border-bottom: 1px solid #e8ebf2; background: #fbfcfe; }
#product-product .pet-product-tabs-detail > li > a { margin: 0; border: 0; border-bottom: 3px solid transparent; padding: 15px 12px 12px; color: #6b7280; font-size: 11px; font-weight: 900; }
#product-product .pet-product-tabs-detail > li.active > a,
#product-product .pet-product-tabs-detail > li > a:hover { color: #6d28d9; background: transparent; border: 0; border-bottom: 3px solid #7c3aed; }
#product-product .pet-product-tabs-detail i { margin-right: 6px; }
.pet-product-tab-content { padding: 24px; }
.pet-description-heading span,.pet-related-heading span { color: #7c3aed; font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.pet-description-heading h2,.pet-related-heading h2 { margin: 4px 0 15px; font-size: 21px; color: #0f172a; }
.pet-description-body { color: #4b5563; font-size: 13px; line-height: 1.75; }
.pet-description-body p { margin-bottom: 12px; }
.pet-description-body img { max-width: 100%; height: auto !important; border-radius: 12px; }
.pet-spec-table { margin-bottom: 0; }
.pet-spec-table th { background: #f8fafc; color: #27364c; font-size: 11px; }
.pet-spec-table td { border-top: 1px solid #edf0f4 !important; font-size: 11px; color: #5b6473; }
.pet-review-write { margin-top: 18px; padding-top: 18px; border-top: 1px solid #edf0f4; }
.pet-review-write h3 { font-size: 18px; }
.pet-review-form .form-control { border-radius: 10px; border-color: #dfe4ec; box-shadow: none; }
.pet-review-rating label { cursor: pointer; color: #f59e0b; margin: 0 2px; }
.pet-review-submit { background: #6d28d9; color: #fff; border: 0; border-radius: 10px; padding: 9px 17px; font-weight: 900; }

.pet-related-section { margin-top: 28px; }
.pet-related-heading { display: flex; align-items: end; justify-content: space-between; }
.pet-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pet-related-card { background: #fff; border: 1px solid #e8ebf2; border-radius: 16px; overflow: hidden; transition: .2s ease; }
.pet-related-card:hover { transform: translateY(-3px); border-color: #ddd6fe; box-shadow: 0 13px 30px rgba(15,23,42,.06); }
.pet-related-image { position: relative; aspect-ratio: 1/1; background: #fff; }
.pet-related-image > a { display: block; width: 100%; height: 100%; }
.pet-related-image img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.pet-related-image button { position: absolute; top: 8px; right: 8px; width: 31px; height: 31px; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff; color: #64748b; }
.pet-related-body { padding: 11px; }
.pet-related-body h3 { height: 43px; overflow: hidden; margin: 0 0 7px; font-size: 11px; line-height: 1.35; }
.pet-related-body h3 a { color: #334155; }
.pet-related-rating { min-height: 15px; color: #f59e0b; font-size: 9px; }
.pet-related-price { min-height: 40px; display: flex; flex-direction: column; justify-content: center; }
.pet-related-price span { color: #9aa3b0; font-size: 9px; text-decoration: line-through; }
.pet-related-price strong { color: #0f172a; font-size: 15px; }
.pet-related-cart { width: 100%; height: 33px; border: 0; border-radius: 9px; background: #0f4c75; color: #fff; font-size: 9px; font-weight: 900; }
.pet-related-cart:hover { background: #6d28d9; }
.pet-product-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; color: #7c3aed; }
.pet-product-tags a { padding: 5px 8px; border-radius: 999px; background: #f3f0ff; color: #5b21b6; font-size: 9px; font-weight: 800; }
.pet-mobile-buybar { display: none; }

@media (max-width: 1100px) {
  .pet-product-shell { grid-template-columns: minmax(0, 1fr) 380px; }
  .pet-product-main-image,.pet-product-main-image img { min-height: 450px; height: 450px; }
  .pet-product-service-grid { grid-template-columns: repeat(2, 1fr); }
  .pet-related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .pet-product-page { width: 94%; padding-bottom: 92px; }
  .pet-product-breadcrumb { margin-bottom: 10px; padding: 9px 11px; white-space: nowrap; overflow-x: auto; }
  .pet-product-shell { display: block; }
  .pet-product-gallery-card { padding: 11px; border-radius: 17px; }
  .pet-product-main-image { min-height: 360px; height: 360px; border-radius: 14px; }
  .pet-product-main-image img { min-height: 0; height: 360px; padding: 18px; }
  .pet-product-zoom { right: 9px; bottom: 9px; }
  .pet-product-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .pet-product-thumbs a { flex: 0 0 60px; width: 60px; height: 60px; }
  .pet-product-gallery-note { display: none; }
  .pet-product-buy-card { position: static; margin-top: 10px; padding: 17px; border-radius: 17px; }
  .pet-product-buy-card h1 { font-size: 21px; }
  .pet-product-pricebox strong { font-size: 26px; }
  .pet-product-meta { gap: 6px; }
  .pet-buy-row { grid-template-columns: 105px 1fr; }
  .pet-whatsapp-order { grid-template-columns: 35px 1fr auto; padding: 9px 10px; }
  .pet-purchase-assurance { grid-template-columns: 1fr 1fr; }
  .pet-product-service-grid { grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0; }
  .pet-product-service-grid > div { padding: 10px; gap: 7px; }
  .pet-product-service-grid i { width: 32px; height: 32px; flex-basis: 32px; }
  .pet-product-detail-card { border-radius: 17px; margin-top: 10px; }
  #product-product .pet-product-tabs-detail { display: flex; overflow-x: auto; padding: 0 9px; white-space: nowrap; }
  #product-product .pet-product-tabs-detail > li { float: none; flex: 0 0 auto; }
  #product-product .pet-product-tabs-detail > li > a { padding: 13px 9px 10px; font-size: 10px; }
  .pet-product-tab-content { padding: 16px; }
  .pet-description-heading h2 { font-size: 17px; }
  .pet-description-body { font-size: 12px; }
  .pet-related-section { margin-top: 20px; }
  .pet-related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .pet-related-body { padding: 9px; }
  .pet-related-body h3 { font-size: 10px; }
  .pet-related-cart { font-size: 8.5px; }
  .pet-mobile-buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; align-items: center;
    padding: 9px 3%; background: rgba(255,255,255,.96); border-top: 1px solid #e6e9ef;
    box-shadow: 0 -10px 30px rgba(15,23,42,.10); backdrop-filter: blur(12px);
  }
  .pet-mobile-buybar > div { display: flex; flex-direction: column; }
  .pet-mobile-buybar small { color: #8791a1; font-size: 8px; }
  .pet-mobile-buybar strong { color: #0f172a; font-size: 16px; }
  .pet-mobile-buybar button { height: 43px; border: 0; border-radius: 11px; background: linear-gradient(135deg,#6d28d9,#8b5cf6); color: #fff; font-size: 10px; font-weight: 900; }
  .pet-mobile-buybar button:disabled { background: #cbd5e1; }
}

@media (max-width: 390px) {
  .pet-product-main-image,.pet-product-main-image img { height: 320px; min-height: 320px; }
  .pet-product-buy-card { padding: 14px; }
  .pet-product-buy-card h1 { font-size: 19px; }
  .pet-product-service-grid { grid-template-columns: 1fr; }
  .pet-product-service-grid > div:nth-child(n+3) { display: none; }
  .pet-products-section .pet-card-body h3 { font-size: 10px; }
  .pet-products-section .pet-add-cart { font-size: 8.5px; }
}
