﻿:root {
    --pd-surface: #ffffff;
    --pd-soft: #f3f6fb;
    --pd-border: rgba(148, 163, 184, 0.35);
    --pd-glow: 0 18px 46px rgba(15, 23, 42, 0.14);
    --pd-accent: #10b981;
    --pd-accent-dark: #059669;
    --pd-sky: #0ea5e9;
    --pd-gold: #f59e0b;
    --pd-ink: #0f172a;
  }

  .product-detail {
    position: relative;
    overflow: hidden;
    max-width: 1180px;
    margin-inline: auto;
    border-radius: 26px;
    background: radial-gradient(circle at 12% 8%, rgba(16,185,129,0.12), transparent 45%),
                radial-gradient(circle at 90% 18%, rgba(14,165,233,0.16), transparent 50%),
                #f7f8fb;
  }
  .product-detail::before,
  .product-detail::after {
    content: "";
    position: absolute;
    inset: -40% auto auto -20%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 70%);
    opacity: 0.65;
    z-index: 0;
  }
  .product-detail::after {
    inset: auto -25% -30% auto;
    width: 420px;
    height: 420px;
    opacity: 0.5;
  }
  .product-detail > * {
    position: relative;
    z-index: 1;
  }

  .animate-in {
    animation: fadeUp 0.7s ease both;
    animation-delay: var(--delay, 0s);
  }

  .back-btn {
    border-radius: 999px;
    padding-inline: 0.9rem;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: 0 10px 20px rgba(15,23,42,0.08);
  }

  .detail-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--pd-border);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--pd-glow);
    border-radius: 20px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }
  .detail-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(14,165,233,0.18), rgba(245,158,11,0.2));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
  }
  .detail-card > * {
    position: relative;
    z-index: 1;
  }
  .detail-card:hover::before {
    opacity: 1;
  }
  .detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(15,23,42,0.18);
  }

  .gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(16,185,129,0.18), transparent 55%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
  }

  .badge-row .badge {
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    animation: badgeFloat 3.8s ease-in-out infinite;
  }
  .badge-row .badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #fb7185);
  }
  .badge-row .badge.bg-success {
    background: linear-gradient(135deg, #10b981, #22c55e);
  }
  .badge-row .badge:nth-child(2) {
    animation-delay: 0.3s;
  }

  .product-title {
    color: var(--pd-ink);
    font-size: clamp(1.45rem, 2.8vw, 2.1rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 0.7rem !important;
    text-shadow: 0 12px 24px rgba(15,23,42,0.15);
  }

  .shop-info-card,
  .shop-contact-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(245,247,251,0.95));
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    box-shadow: 0 12px 24px rgba(15,23,42,0.08);
  }

  .shop-info-card .d-flex {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  .shop-name-link {
    color: #0f172a;
    font-weight: 800 !important;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    letter-spacing: -0.01em;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.35rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
  }

  .shop-name-link:hover {
    color: var(--pd-accent-dark);
    text-decoration: underline !important;
    text-underline-offset: 2px;
  }

  .shop-label {
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.01em;
  }

  .vendor-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.26rem 0.62rem;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.28);
    font-weight: 700;
    color: #334155 !important;
  }

  .shop-contact-card .btn {
    min-height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
  }

  .btn-share-entity {
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.22);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(239,246,255,0.96));
    color: var(--pd-ink);
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.10);
  }

  .btn-share-entity:hover,
  .btn-share-entity:focus {
    color: var(--pd-sky);
    border-color: rgba(14, 165, 233, 0.28);
    background: linear-gradient(180deg, #ffffff, #eff6ff);
  }

  .gallery-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
  }

  .gallery-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .gallery-meta-note {
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
  }

  .main-image-wrap {
    position: relative;
    width: 100%;
    max-width: min(100%, 640px);
    margin-inline: auto;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(140deg, rgba(255,255,255,0.75), rgba(236, 253, 245, 0.65));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: clamp(250px, 50vw, 420px);
  }

  .main-image-wrap.gallery-swipe-enabled {
    touch-action: pan-y;
  }

  .main-image-wrap.gallery-swipe-enabled .product-main-image {
    user-select: none;
    -webkit-user-drag: none;
  }

  .photo-cart-cta-form {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    z-index: 3;
  }

  .photo-cart-cta {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 16px 34px rgba(16, 185, 129, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .photo-cart-cta--direct {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
  }

  .photo-cart-cta::after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    background: #059669;
    border-bottom-right-radius: 2px;
  }

  .photo-cart-cta:active {
    transform: scale(0.97);
  }

  .photo-cart-cta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  @media (hover: hover) {
    .photo-cart-cta:hover {
      transform: translateY(-2px) scale(1.03);
      box-shadow: 0 22px 42px rgba(16, 185, 129, 0.48);
    }
  }

  .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
    transition: transform 0.18s ease, background 0.18s ease;
  }

  .gallery-nav.prev {
    left: 12px;
  }

  .gallery-nav.next {
    right: 12px;
  }

  .gallery-nav:active {
    transform: translateY(-50%) scale(0.96);
  }

  @media (hover: hover) {
    .gallery-nav:hover {
      background: rgba(15, 23, 42, 0.78);
      transform: translateY(-50%) scale(1.04);
    }
  }

  .product-main-image {
    width: 100%;
    height: clamp(240px, 50vw, 430px);
    max-height: 68vh;
    object-fit: contain;
    background: linear-gradient(180deg, #f8fafc, #edf2f7);
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: block;
  }

  .product-video-wrap {
    position: relative;
    width: 100%;
    max-width: min(100%, 640px);
    margin-inline: auto;
    overflow: hidden;
    border-radius: 14px;
  }

  .product-video-wrap video {
    width: 100%;
    display: block;
    border-radius: 14px;
  }

  .product-video-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 2;
  }

  .product-video-badge i {
    font-size: 1rem;
    line-height: 1;
  }

  .product-video-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.96));
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
    padding: 1rem;
    text-align: center;
  }

  .product-video-fallback[hidden] {
    display: none !important;
  }

  .product-video-fallback-inner {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    max-width: 320px;
  }

  .product-video-fallback-inner i {
    font-size: 2rem;
    color: #86efac;
  }

  .product-video-fallback-inner strong {
    font-size: 1rem;
    letter-spacing: -0.01em;
  }

  .product-video-fallback-inner span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
  }

  .main-image-wrap.is-portrait .product-main-image {
    height: min(72vh, 560px);
  }

  .main-image-wrap.is-landscape .product-main-image {
    height: clamp(220px, 42vw, 380px);
  }

  .main-image-fallback {
    width: 100%;
    min-height: clamp(240px, 48vw, 320px);
  }

  .main-image-wrap img {
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }
  @media (hover: hover) {
    .main-image-wrap img:hover {
      transform: translateY(-6px) scale(1.02);
      box-shadow: 0 26px 46px rgba(15, 23, 42, 0.22);
    }
  }

  .mini-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-inline: auto;
    max-width: min(100%, 680px);
    padding: 0.35rem 0.15rem 0.2rem;
    scroll-snap-type: x mandatory;
  }
  .mini-gallery .thumbnail {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    scroll-snap-align: center;
  }
  .mini-gallery .thumbnail:hover {
    border-color: var(--pd-accent) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.15);
  }
  .mini-gallery .thumbnail.active {
    border-color: var(--pd-accent) !important;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.25);
  }

  .price-stack .h2,
  .price-stack .h2.fw-bold {
    color: var(--pd-accent);
    text-shadow: 0 14px 26px rgba(16,185,129,0.3);
  }
  .price-stack .text-muted.text-decoration-line-through {
    opacity: 0.7;
  }

  .info-grid .border {
    border-radius: 16px !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    background: linear-gradient(180deg, #ffffff, #f7f9fb);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  @media (hover: hover) {
    .info-grid .border:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
    }
  }

  .action-stack .btn-primary {
    background: linear-gradient(135deg, var(--pd-accent), var(--pd-accent-dark));
    border: none;
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.32);
    position: relative;
    overflow: hidden;
  }
  .action-stack .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
  }
  .action-stack .btn-primary:hover::after {
    transform: translateX(120%);
  }
  .action-stack .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(16, 185, 129, 0.45);
  }

  .cta-add-main {
    border-radius: 14px;
    min-height: 54px;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .cta-add-main-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    font-size: 1rem;
  }

  .cta-add-main-text {
    line-height: 1;
  }

  .description-box .text-muted {
    background: var(--pd-soft);
    border-radius: 12px;
    padding: 0.9rem 1rem;
  }

  .description-title {
    color: #0f172a;
    letter-spacing: -0.01em;
    font-size: 1.02rem;
  }

  .description-content {
    max-height: 220px;
    overflow-y: auto;
    color: #334155 !important;
    font-size: 0.98rem;
    line-height: 1.58;
    letter-spacing: 0.005em;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    white-space: pre-line;
    word-break: break-word;
    font-weight: 500;
  }

  .related-wrap h5 {
    position: relative;
  }
  .related-wrap h5::after {
    content: "";
    display: block;
    width: 46px;
    height: 4px;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--pd-accent), var(--pd-sky));
    border-radius: 999px;
  }

  .related-grid {
    align-items: stretch;
  }

  .related-item-col {
    display: flex;
  }

  .related-link {
    display: flex;
    width: 100%;
  }

  .related-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .related-media-wrap {
    padding: 0.62rem 0.62rem 0.45rem;
  }

  .related-media-frame {
    position: relative;
    width: 100%;
    height: clamp(120px, 28vw, 180px);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: linear-gradient(150deg, rgba(248, 250, 252, 0.98), rgba(236, 253, 245, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .related-media-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 60%, rgba(15, 23, 42, 0.1) 100%);
    pointer-events: none;
  }

  .related-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.28s ease;
  }

  .related-media-frame.is-portrait .related-media-img {
    object-fit: contain;
    padding: 0.3rem;
  }

  .related-media-frame.is-landscape .related-media-img {
    object-fit: cover;
  }

  .related-media-placeholder {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.6rem;
  }

  .related-card-body {
    padding: 0.58rem 0.72rem 0.8rem;
  }

  .related-card .card-title {
    font-size: 0.95rem;
    line-height: 1.28;
    min-height: 2.35em;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #0f172a;
  }

  .related-card .card-text {
    font-size: 1.02rem;
  }

  @media (hover: hover) {
    .related-card:hover .related-media-img {
      transform: scale(1.04);
    }
    .related-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
    }
  }

  @keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @media (prefers-reduced-motion: reduce) {
    .badge-row .badge,
    .main-image-wrap img,
    .info-grid .border,
    .related-card,
    .animate-in {
      animation: none;
      transition: none;
    }
  }

  @media (max-width: 768px) {
    .container-fluid {
      padding-left: 12px;
      padding-right: 12px;
    }
    .product-detail {
      border-radius: 18px;
    }
    .detail-card {
      border-radius: 16px;
    }
    .badge-row {
      justify-content: center;
      flex-wrap: wrap;
    }
    .shop-info-card .d-flex {
      justify-content: center;
      text-align: center;
    }
    .vendor-identity {
      font-size: 0.74rem;
      padding: 0.22rem 0.5rem;
    }
    .shop-contact-card h6 {
      text-align: center;
    }

    .gallery-meta {
      justify-content: center;
      text-align: center;
    }
    .gallery-meta-note {
      width: 100%;
      text-align: center;
    }
    .main-image-wrap {
      max-width: 100%;
      padding: 8px;
      min-height: clamp(245px, 64vw, 380px);
    }
    .product-main-image {
      height: clamp(235px, 64vw, 380px);
      max-height: 58vh;
    }
    .main-image-wrap.is-portrait .product-main-image {
      height: min(66vh, 520px);
    }
    .main-image-wrap.is-landscape .product-main-image {
      height: clamp(215px, 58vw, 350px);
    }
    .mini-gallery {
      justify-content: flex-start;
      padding-left: 0.1rem;
      padding-right: 0.1rem;
    }
    .mini-gallery .thumbnail {
      width: 64px;
      height: 64px;
      flex-basis: 64px;
    }
    .gallery-nav {
      width: 38px;
      height: 38px;
    }
    .gallery-nav.prev {
      left: 8px;
    }
    .gallery-nav.next {
      right: 8px;
    }
    .product-video-badge {
      left: 12px;
      bottom: 12px;
      padding: 0.38rem 0.62rem;
      font-size: 0.78rem;
    }
    .photo-cart-cta-form {
      right: 12px;
      bottom: 12px;
      gap: 0.35rem;
    }
    .photo-cart-cta {
      width: 52px;
      height: 52px;
      font-size: 1.08rem;
    }
    .photo-cart-cta-chip {
      height: 29px;
      padding: 0 0.65rem;
      font-size: 0.72rem;
    }
    .cta-add-main {
      min-height: 52px;
    }
    .cta-add-main-icon {
      width: 32px;
      height: 32px;
      font-size: 0.95rem;
    }
    .btn-lg {
      padding: 0.75rem 1rem;
      font-size: 1rem;
    }
    .product-title {
      font-size: clamp(1.3rem, 5.2vw, 1.58rem);
    }
    .h2 {
      font-size: 1.75rem;
    }
    .related-media-frame {
      height: clamp(110px, 35vw, 170px);
    }
    .related-card .card-title {
      font-size: 0.9rem;
      min-height: 2.3em;
    }
    .description-content {
      font-size: 0.95rem;
      line-height: 1.55;
      max-height: 240px;
    }
  }

  .text-muted::-webkit-scrollbar {
    width: 4px;
  }
  .text-muted::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }
  .text-muted::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
  }

  /* ===== PREMIUM CLEAN OVERRIDES ===== */
  body,
  .product-detail,
  .product-detail .container-fluid,
  .product-detail .detail-card,
  .product-detail .shop-info-card,
  .product-detail .shop-contact-card,
  .product-detail .description-box,
  .product-detail .description-content,
  .product-detail .info-grid .border,
  .product-detail .related-card,
  .product-detail .related-media-frame,
  .product-detail .main-image-wrap,
  .product-detail .main-image-fallback {
    background: #ffffff !important;
  }

  .product-detail {
    max-width: 1160px;
    border-radius: 0;
    overflow: visible;
  }

  .product-detail::before,
  .product-detail::after,
  .detail-card::before,
  .gallery-card::after,
  .related-media-frame::after,
  .action-stack .btn-primary::after,
  .photo-cart-cta::after {
    display: none !important;
  }

  .product-detail .row.g-3,
  .product-detail .row.g-3.g-lg-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .product-detail .mb-4 {
    margin-bottom: 1rem !important;
  }

  .product-detail .mb-3 {
    margin-bottom: 0.8rem !important;
  }

  .back-btn,
  .detail-card,
  .shop-info-card,
  .shop-contact-card,
  .description-box .text-muted,
  .description-content,
  .info-grid .border,
  .related-card {
    box-shadow: none !important;
  }

  .back-btn {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding-inline: 0.95rem;
  }

  .detail-card {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 24px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .detail-card:hover,
  .related-card:hover,
  .info-grid .border:hover,
  .main-image-wrap img:hover,
  .gallery-nav:hover,
  .photo-cart-cta:hover,
  .action-stack .btn-primary:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .shop-info-card,
  .shop-contact-card {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 18px !important;
    padding: 0.8rem 0.95rem !important;
  }

  .shop-name-link {
    background: transparent !important;
    padding: 0 !important;
  }

  .vendor-identity,
  .gallery-meta-chip,
  .photo-cart-cta-chip {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .product-title {
    color: #111827;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem !important;
    text-shadow: none !important;
  }

  .price-stack .h2,
  .price-stack .h2.fw-bold {
    color: #10b981 !important;
    text-shadow: none !important;
  }

  .main-image-wrap {
    padding: 0 !important;
    border-radius: 22px !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    height: clamp(280px, 46vw, 390px);
    min-height: 0;
    overflow: hidden !important;
    contain: paint;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 24px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 0.95rem;
  }

  .product-main-image,
  .main-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: none !important;
  }

  .photo-cart-cta-form {
    right: 14px;
    bottom: 14px;
    gap: 0.4rem;
  }

  .photo-cart-cta-chip {
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }

  .main-image-wrap.is-portrait .product-main-image {
    height: 100%;
  }

  .main-image-wrap.is-landscape .product-main-image {
    height: 100%;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .gallery-nav.prev {
    left: 10px;
  }

  .gallery-nav.next {
    right: 10px;
  }

  .mini-gallery {
    gap: 0.65rem;
    padding: 0.1rem 0.1rem 0.35rem;
    margin-top: 0.05rem;
  }

  .mini-gallery .thumbnail {
    display: block;
    border-radius: 14px;
    border-width: 1px;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05) !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
  }

  .mini-gallery .thumbnail:hover {
    border-color: rgba(148, 163, 184, 0.7) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08) !important;
  }

  .mini-gallery .thumbnail.active {
    border-color: rgba(15, 23, 42, 0.16) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.96), 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
  }

  .info-grid .border {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
  }

  .shop-contact-card .btn,
  .action-stack .btn,
  .cta-add-main {
    min-height: 50px;
    border-radius: 16px !important;
    box-shadow: none !important;
    font-weight: 700;
  }

  .action-stack .btn-primary,
  .cta-add-main,
  .photo-cart-cta {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    border: none !important;
  }

  .photo-cart-cta--direct {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.26) !important;
  }

  .cta-add-main-icon {
    width: 30px;
    height: 30px;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
  }

  .photo-cart-cta {
    width: 52px;
    height: 52px;
  }

  .description-box .text-muted,
  .description-content {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 18px !important;
    padding: 0.85rem 0.95rem !important;
  }

  .description-content {
    max-height: 200px;
    line-height: 1.55;
  }

  .related-card {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 20px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .related-media-wrap {
    padding: 0.7rem 0.7rem 0.45rem;
  }

  .related-media-frame {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .related-media-img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px !important;
    box-shadow: none !important;
    transition: none !important;
  }

  @media (max-width: 768px) {
    .product-detail {
      border-radius: 0;
    }

    .detail-card {
      border-radius: 20px !important;
    }

    .main-image-wrap {
      height: clamp(260px, 72vw, 340px);
      margin-bottom: 0.8rem;
    }

    .product-main-image,
    .main-image-wrap img {
      height: 100%;
      max-height: none;
    }

    .gallery-meta {
      margin-bottom: 0.7rem;
    }

    .mini-gallery {
      gap: 0.55rem;
      padding-bottom: 0.2rem;
    }

    .mini-gallery .thumbnail {
      width: 68px;
      height: 68px;
      flex: 0 0 68px;
    }

    .gallery-nav {
      width: 38px;
      height: 38px;
    }

    .btn-lg,
    .shop-contact-card .btn,
    .action-stack .btn {
      padding: 0.72rem 0.95rem;
      font-size: 0.98rem;
    }
  }
