/* Amar Kashimpur — Single Product (auto, no Elementor template) */
body.akc-is-single-product {
  background: #F4F9F7;
}
.akc-sp {
  --sp-p: #0A7C6E;
  --sp-ph: #08695E;
  --sp-accent: #F59E0B;
  --sp-bg: #F4F9F7;
  --sp-card: #fff;
  --sp-text: #17211F;
  --sp-muted: #6B7F7A;
  --sp-border: #DDE9E6;
  font-family: "Noto Sans Bengali", system-ui, -apple-system, sans-serif;
  color: var(--sp-text);
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 14px 24px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.akc-sp *, .akc-sp *::before, .akc-sp *::after { box-sizing: border-box; }

.akc-sp-back {
  display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 8px; font-weight: 700; font-size: .9rem;
  color: var(--sp-p) !important; text-decoration: none !important;
}
@media (min-width: 768px) {
  .akc-sp-back { display: none; }
}

.akc-sp-breadcrumb { margin-bottom: 10px; }
.akc-sp-bc { font-size: .8rem; color: var(--sp-muted); }
.akc-sp-bc a { color: var(--sp-p); text-decoration: none; }
@media (max-width: 767px) {
  .akc-sp-breadcrumb { display: none; }
}

.akc-sp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .akc-sp-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
}

/* Gallery */
.akc-sp-gallery { min-width: 0; }
.akc-sp-main-wrap {
  position: relative;
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.akc-sp-main-img, #akc-sp-main-img {
  width: 100% !important; height: 100% !important;
  object-fit: cover; display: block;
}
.akc-sp-main-ph {
  font-size: 3rem; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #E6F4F1;
}
.akc-sp-sale-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--sp-accent); color: #1a1a1a;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.akc-sp-thumbs {
  display: flex; gap: 8px; overflow-x: auto; margin-top: 10px;
  padding-bottom: 2px; scrollbar-width: none;
}
.akc-sp-thumbs::-webkit-scrollbar { display: none; }
.akc-sp-thumb {
  flex: 0 0 64px; width: 64px; height: 64px; padding: 0;
  border: 2px solid var(--sp-border); border-radius: 12px;
  overflow: hidden; background: #fff; cursor: pointer;
}
.akc-sp-thumb.is-active { border-color: var(--sp-p); }
.akc-sp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Summary */
.akc-sp-summary { min-width: 0; }
.akc-sp-cat {
  font-size: .8rem; font-weight: 700; color: var(--sp-p); margin-bottom: 6px;
}
.akc-sp-cat a { color: var(--sp-p) !important; text-decoration: none !important; }
.akc-sp-title {
  margin: 0 0 10px; font-size: 1.4rem; font-weight: 800; line-height: 1.3;
  color: var(--sp-text);
}
@media (min-width: 900px) {
  .akc-sp-title { font-size: 1.85rem; }
}
.akc-sp-rating { margin-bottom: 8px; }
.akc-sp-price {
  font-size: 1.35rem; font-weight: 800; color: var(--sp-p); margin-bottom: 10px;
}
.akc-sp-price del {
  color: var(--sp-muted); font-weight: 500; font-size: 1rem; margin-right: 6px;
}
.akc-sp-price ins { text-decoration: none; color: var(--sp-p); }
.akc-sp-stock { margin-bottom: 14px; }
.akc-sp-stock-in {
  display: inline-flex; font-size: .82rem; font-weight: 700;
  color: #16803D; background: #E8F7EE; padding: 4px 10px; border-radius: 999px;
}
.akc-sp-stock-out {
  display: inline-flex; font-size: .82rem; font-weight: 700;
  color: #B42318; background: #FEE4E2; padding: 4px 10px; border-radius: 999px;
}

/* Native WC form polish inside our shell */
.akc-sp-cart form.cart {
  margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.akc-sp-cart .quantity {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--sp-border); border-radius: 12px;
  overflow: hidden; background: #fff; height: 48px;
}
.akc-sp-cart .quantity .qty {
  width: 48px; height: 48px; border: 0; text-align: center;
  font: inherit; font-weight: 700; background: transparent; -moz-appearance: textfield;
}
.akc-sp-cart .quantity .qty::-webkit-outer-spin-button,
.akc-sp-cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.akc-sp-cart .single_add_to_cart_button,
.akc-sp-cart button.single_add_to_cart_button {
  flex: 1; min-width: 160px; min-height: 48px;
  background: var(--sp-p) !important; color: #fff !important;
  border: none !important; border-radius: 14px !important;
  font-weight: 800 !important; font-size: 1rem !important;
  padding: 0 18px !important; cursor: pointer;
}
.akc-sp-cart .single_add_to_cart_button:hover {
  background: var(--sp-ph) !important;
}
.akc-sp-cart .single_add_to_cart_button:disabled,
.akc-sp-cart .single_add_to_cart_button.disabled {
  background: #cbd5e1 !important; color: #64748b !important; cursor: not-allowed;
}
.akc-sp-cart table.variations {
  width: 100%; margin-bottom: 12px; border: 0;
}
.akc-sp-cart table.variations td,
.akc-sp-cart table.variations th {
  border: 0; padding: 6px 0; vertical-align: middle;
  font-family: inherit;
}
.akc-sp-cart table.variations label { font-weight: 700; font-size: .88rem; }
.akc-sp-cart table.variations select {
  width: 100%; border: 1.5px solid var(--sp-border); border-radius: 12px;
  padding: 10px 12px; font: inherit; background: #fff;
}
.akc-sp-cart .woocommerce-variation-price { margin-bottom: 8px; font-weight: 800; color: var(--sp-p); }

.akc-sp-delivery {
  background: #fff; border: 1px solid var(--sp-border); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 14px;
}
.akc-sp-del-row {
  font-size: .85rem; color: var(--sp-muted); font-weight: 600; line-height: 1.5;
}
.akc-sp-del-row + .akc-sp-del-row { margin-top: 4px; }

.akc-sp-store {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--sp-border); border-radius: 14px;
  padding: 12px; margin-bottom: 8px;
}
.akc-sp-store-logo {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
}
.akc-sp-store-logo-ph {
  display: flex; align-items: center; justify-content: center;
  background: #E6F4F1; font-size: 1.2rem;
}
.akc-sp-store-meta { flex: 1; min-width: 0; }
.akc-sp-store-name { font-weight: 800; font-size: .95rem; }
.akc-sp-store-open {
  display: inline-block; margin-top: 2px; font-size: 10px; font-weight: 700;
  color: #16803D; background: #E8F7EE; padding: 2px 8px; border-radius: 999px;
}
.akc-sp-store-loc { font-size: 12px; color: var(--sp-p); font-weight: 600; margin-top: 2px; }
.akc-sp-store-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 14px; border-radius: 11px;
  background: var(--sp-p); color: #fff !important; font-weight: 700; font-size: .82rem;
  text-decoration: none !important;
}

/* Details */
.akc-sp-details { margin-top: 24px; }
.akc-sp-block {
  background: #fff; border: 1px solid var(--sp-border); border-radius: 16px;
  padding: 16px; margin-bottom: 12px;
}
.akc-sp-h2 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; }
.akc-sp-prose { font-size: .92rem; line-height: 1.6; color: var(--sp-muted); }
.akc-sp-prose p { margin: 0 0 8px; }
.akc-sp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.akc-sp-table th {
  text-align: left; padding: 8px 10px 8px 0; color: var(--sp-text); font-weight: 700;
  width: 35%; vertical-align: top;
}
.akc-sp-table td { padding: 8px 0; color: var(--sp-muted); }

/* Related */
.akc-sp-related { margin-top: 28px; }
.akc-sp-related-title {
  margin: 0 0 14px; font-size: 1.1rem; font-weight: 800;
}
.akc-sp-related-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
@media (min-width: 900px) {
  .akc-sp-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
.akc-sp-rel-card {
  background: #fff; border: 1px solid var(--sp-border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(23,49,45,.04);
}
.akc-sp-rel-media {
  display: block; aspect-ratio: 1; background: #EEF3F1; overflow: hidden;
}
.akc-sp-rel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.akc-sp-rel-body { padding: 10px; }
.akc-sp-rel-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: .88rem; font-weight: 700; color: var(--sp-text) !important; text-decoration: none !important;
  line-height: 1.3;
}
.akc-sp-rel-price { margin-top: 4px; font-weight: 800; color: var(--sp-p); font-size: .9rem; }

/* Sticky ATC mobile — sits above global mnav */
.akc-sp-sticky {
  position: fixed; left: 0; right: 0; z-index: 10040;
  bottom: var(--ak-mnav-total-height, 56px);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--sp-border);
  box-shadow: 0 -4px 16px rgba(23,49,45,.08);
}
@media (min-width: 768px) {
  .akc-sp-sticky { display: none !important; }
}
.akc-sp-sticky-price {
  flex: 1; font-weight: 800; color: var(--sp-p); font-size: 1.05rem; min-width: 0;
}
.akc-sp-sticky-price del { font-size: .85rem; color: var(--sp-muted); font-weight: 500; }
.akc-sp-sticky-btn {
  flex-shrink: 0; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--sp-p); color: #fff; font-weight: 800; font-size: .9rem; cursor: pointer;
}
.akc-sp-sticky-btn:disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; }

/* Hide default WC chrome that conflicts when our template is active */
.akc-is-single-product .product .woocommerce-product-gallery:not(.akc-sp-gallery),
.akc-is-single-product .summary.entry-summary:not(.akc-sp-summary) {
  /* leave alone if theme still prints extras */
}
