/* Product sections are continuous anchors instead of hidden tabs. */
.single-product div.product > .ak-product-sections { grid-column: 1 / -1; width: 100%; min-width: 0; margin-top: 40px; }
.ak-product-section-nav { position: sticky; top: 0; z-index: 8; display: flex; gap: 28px; padding: 0 4px; margin-bottom: 32px; border-bottom: 1px solid #e1e5df; background: #f7f8fa; overflow-x: auto; }
.ak-product-section-nav a { flex-shrink: 0; display: block; padding: 15px 4px; border-bottom: 3px solid transparent; color: #777e74; font-size: 13px; white-space: nowrap; text-decoration: none; }
.ak-product-section-nav a.is-active { color: #386442; border-bottom-color: #b8d7af; }
.ak-product-section { margin: 0 0 40px; scroll-margin-top: 78px; }
.ak-product-section:focus { outline: none; }
.single-product .ak-product-section > h2.ak-product-section-title { display: block; margin: 0 0 18px; padding: 0 10px 0 0; border: 0; border-right: 2px solid #b8d7af; color: #282c27; font-size: 16px; font-weight: 500; line-height: 1.5; }
.ak-product-intro-card { padding: 18px 20px; border: 1px solid #e1e4e0; border-radius: 14px; background: transparent; }
.ak-product-intro-body { position: relative; }
.ak-product-intro-body.is-collapsed { max-height: 260px; overflow: hidden; mask-image: linear-gradient(#000 0%, #000 65%, transparent 100%); }
.ak-product-intro-body .ak-product-introduction { text-align: justify; font-size: 13px; line-height: 2.2; color: #777e74; }
.ak-product-intro-body p { margin: 0 0 12px; }
.ak-product-intro-body :is(h2,h3) { margin: 24px 0 12px; font-size: 16px; font-weight: 500; }
.ak-product-intro-body img { display: block; max-width: 100%; height: auto; margin: 16px auto; }
.ak-product-intro-body ul { padding-inline-start: 20px; }
.ak-intro-toggle { display: block; margin: 12px auto 0 0; padding: 4px 0; border: 0; background: transparent; color: #638757; font: inherit; font-size: 12px; cursor: pointer; }
.ak-intro-toggle[hidden] { display: none; }
.ak-product-spec-card { max-width: 560px; overflow: hidden; border: 1px solid #e1e4e0; border-radius: 14px; background: #fff; }
.ak-product-spec-caption { padding: 10px 16px; border-bottom: 1px solid #edf0e9; background: #f7f8fa; font-size: 12px; }
.single-product .ak-product-spec-card table.shop_attributes { width: 100%; border: 0; margin: 0; border-collapse: collapse; }
.single-product .ak-product-spec-card table.shop_attributes :is(th,td) { padding: 12px 16px; border: 0; border-bottom: 1px solid #edf0e9; background: transparent; text-align: right; font-size: 12px; font-weight: 400; }
.single-product .ak-product-spec-card table.shop_attributes th { width: 40%; color: #8a9085; }
.single-product .ak-product-spec-card table.shop_attributes td p { margin: 0; font-size: 12px; }
.ak-product-spec-card .ak-product-specs { margin: 0; }
.ak-product-spec-card .ak-product-specs > div { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #edf0e9; font-size: 12px; }
.ak-product-spec-card .ak-product-specs dt { color: #8a9085; }
.ak-product-spec-card .ak-product-specs dd { margin: 0; }
.ak-review-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); align-items: start; gap: 16px; }
.ak-review-summary { padding: 16px; border: 1px solid #e1e4e0; border-radius: 14px; background: #fff; }
.ak-review-summary-top { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; }
.ak-review-score { display: grid; justify-items: center; gap: 4px; }
.ak-review-score strong { font-size: 24px; font-weight: 500; color: #282c27; }
.ak-review-score > span { color: #b7c0b1; font-size: 14px; }
.ak-review-score small { color: #8a9085; font-size: 11px; }
.ak-review-bars { display: grid; gap: 6px; }
.ak-review-bar { display: grid; grid-template-columns: 24px 1fr 30px; gap: 6px; align-items: center; font-size: 10px; color: #8a9085; }
.ak-review-bar > span:first-child { color: #b7975a; }
.ak-review-bar-track { height: 5px; background: #f0f2ed; border-radius: 6px; overflow: hidden; }
.ak-review-bar-track > i { display: block; height: 100%; background: #b8d7af; }
.ak-review-open { width: 100%; margin-top: 16px; min-height: 36px; border: 1px solid #91b584; border-radius: 10px; background: #fff; color: #638757; font: inherit; font-size: 12px; cursor: pointer; }
.ak-review-sort { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-bottom: 12px; }
.ak-review-sort a { padding: 4px 10px; border: 1px solid #e1e4e0; border-radius: 20px; color: #8a9085; font-size: 11px; text-decoration: none; }
.ak-review-sort a.is-active { border-color: #91b584; color: #638757; background: #edf4e9; }
.single-product .ak-product-sections #reviews #comments { margin: 0; padding: 0; }
.single-product .ak-product-sections #reviews .woocommerce-noreviews { padding: 28px 20px; border: 1px dashed #dce1d7; border-radius: 14px; background: #f7f8fa; color: #8a9085; font-size: 12px; text-align: center; }
.single-product .ak-product-sections #reviews .commentlist { padding: 0; margin: 0; list-style: none; }
.single-product .ak-product-sections #reviews .commentlist li { list-style: none; }
.single-product .ak-product-sections #reviews .commentlist li .comment-text { margin: 0 0 16px; padding: 16px; border: 1px solid #e1e4e0; border-radius: 12px; background: #fff; }
.single-product .ak-product-sections #reviews .commentlist li img.avatar { display: none; }
.ak-review-compose { margin-top: 20px; padding: 16px; border: 1px solid #e1e4e0; border-radius: 14px; background: #fff; }
.ak-review-compose > summary { cursor: pointer; color: #638757; font-size: 13px; }
.single-product .ak-product-sections #review_form_wrapper { margin: 16px 0 0; width: 100%; padding: 0; border: 0; }
.single-product .ak-product-sections #review_form form :is(input[type=text],input[type=email],textarea) { border: 1px solid #dce1d7; border-radius: 10px; background: #fff; width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 13px; }
.single-product .ak-product-sections #review_form input#submit { border: 0; border-radius: 10px; background: #b8d7af; color: #233620; font-weight: 500; }
.ak-question-compose { padding: 16px; border: 1px dashed #dce1d7; border-radius: 14px; background: #f7f8fa; }
.ak-question-compose > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; }
.ak-question-compose > summary::-webkit-details-marker { display: none; }
.ak-question-compose > summary strong { display: block; color: #282c27; font-size: 13px; font-weight: 500; }
.ak-question-compose > summary small { display: block; margin-top: 4px; color: #8a9085; font-size: 11px; }
.ak-question-open-label, .ak-question-close-label { flex-shrink: 0; padding: 8px 14px; border-radius: 10px; background: #282c27; color: #fff; font-size: 11px; }
.ak-question-close-label { display: none; }
.ak-question-compose[open] .ak-question-open-label { display: none; }
.ak-question-compose[open] .ak-question-close-label { display: inline-block; }
.ak-question-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e1e4e0; }
.ak-question-form textarea { width: 100%; min-height: 100px; resize: vertical; padding: 12px; border: 1px solid #e1e4e0; border-radius: 12px; background: #fff; font: inherit; font-size: 13px; }
.ak-question-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ak-question-actions input { max-width: 260px; min-height: 38px; padding: 8px 12px; border: 1px solid #e1e4e0; border-radius: 10px; background: #fff; font: inherit; font-size: 12px; }
.ak-question-actions button { min-height: 38px; padding: 8px 16px; border: 0; border-radius: 10px; background: #b8d7af; color: #233620; font: inherit; font-size: 12px; cursor: pointer; }
.ak-question-actions button:disabled { opacity: .6; cursor: wait; }
.ak-question-message { margin: 10px 0 0; color: #386442; font-size: 12px; }
.ak-question-message.is-error { color: #b43e37; }
.ak-question-empty { padding: 24px; margin: 0; text-align: center; color: #8a9085; font-size: 12px; }
.ak-question-list { display: grid; gap: 12px; margin-top: 20px; }
.ak-question-item { padding: 16px; border: 1px solid #e1e4e0; border-radius: 12px; background: #fff; font-size: 13px; }
.ak-question-item > header { display: flex; justify-content: space-between; gap: 12px; }
.ak-question-item header strong { font-size: 12px; font-weight: 500; }
.ak-question-item time { color: #8a9085; font-size: 11px; }
.ak-question-answer { padding: 12px; border-right: 2px solid #b8d7af; background: #f7f8fa; border-radius: 8px; }
@media (max-width:767px) {
  .single-product div.product > .ak-product-sections { margin-top: 28px; }
  .ak-product-section-nav { gap: 16px; margin-bottom: 24px; }
  .ak-product-section { margin-bottom: 32px; }
  .single-product .ak-product-section > h2.ak-product-section-title { font-size: 15px; }
  .ak-product-intro-card { padding: 14px; }
  .ak-review-layout { grid-template-columns: minmax(0,1fr); }
  .ak-review-summary { max-width: none; }
  .ak-review-sort { justify-content: flex-start; }
  .ak-question-actions { flex-wrap: wrap; }
  .ak-question-actions input { flex: 1 1 180px; max-width: none; }
}

@media (max-width:767px) { .single-product div.product > .ak-product-sections { order:3; } .single-product div.product > :is(.related,.upsells) { order:4; } }

.ak-product-section-nav { scrollbar-width: none; }
.ak-product-section-nav::-webkit-scrollbar { display: none; }
.ak-review-score > span { white-space: nowrap; font-size: 12px; letter-spacing: -1px; }
.ak-product-intro-body { background: #f7f8fa; }

/* Inline review composer: hidden until the summary button is pressed. */
.ak-review-layout { grid-template-columns: minmax(260px,28%) minmax(0,1fr); }
.ak-review-layout.is-composing { align-items: stretch; }
.ak-review-content { min-width: 0; }
.ak-review-summary .ak-review-open { background: #fff; color: #638757; border-color: #91b584; font-weight: 500; }
.ak-review-summary .ak-review-open[aria-expanded=true] { background: #fff; color: #638757; border-color: #91b584; font-weight: 400; }
.ak-review-compose[hidden] { display: none !important; }
.ak-review-compose { margin: 0 0 12px; padding: 18px 16px; }
.single-product .ak-product-sections .ak-review-compose #review_form_wrapper { margin: 0; }
.single-product .ak-product-sections .ak-review-compose #reply-title { display: block; margin: 0 0 14px; font-size: 14px; font-weight: 500; line-height: 1.8; }
.single-product .ak-product-sections .ak-review-compose #commentform { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.single-product .ak-product-sections .ak-review-compose #commentform > :is(.comment-form-rating,.ak-review-criteria,.comment-form-comment,.ak-review-pros-cons,.comment-notes,.comment-form-cookies-consent,.form-submit,.logged-in-as) { grid-column: 1/-1; }
.single-product .ak-product-sections .ak-review-compose #commentform > p { margin: 0; padding: 0; font-size: 12px; }
.single-product .ak-product-sections .ak-review-compose #commentform .comment-notes { color: #8a9085; font-size: 11px; }
.single-product .ak-product-sections .ak-review-compose #commentform label { font-size: 12px; color: #8a9085; }
.single-product .ak-product-sections .ak-review-compose .comment-form-rating { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.single-product .ak-product-sections .ak-review-compose .comment-form-rating p.stars { margin: 0; font-size: 20px; direction: ltr; }
.single-product .ak-product-sections .ak-review-compose .comment-form-rating .stars a { color: #e6aa36; }
.single-product .ak-product-sections .ak-review-compose .comment-form-comment > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.single-product .ak-product-sections .ak-review-compose #comment { min-height: 100px; height: 120px; resize: vertical; background: #f7f8fa; }
.ak-review-criteria { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #f7f8fa; }
.ak-review-criterion { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ak-review-criterion legend { float: right; width: auto; margin: 0; padding: 0; font-size: 12px; color: #8a9085; }
.ak-review-criterion-options { position: relative; display: flex; flex-shrink: 0; direction: ltr; gap: 3px; margin-inline-start: auto; }
.ak-review-criterion-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.single-product .ak-product-sections .ak-review-criterion-options label { display: inline-flex; cursor: pointer; color: #c9cdd2; font-size: 20px !important; line-height: 1.2; margin: 0; }
.single-product .ak-product-sections .ak-review-criterion-options label.is-filled { color: #e6aa36; }
.ak-review-criterion-options input:focus-visible + label { outline: 2px solid #638757; outline-offset: 2px; border-radius: 3px; }
.ak-review-pros-cons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.ak-review-pros-cons p { margin: 0; }
.single-product .ak-product-sections #review_form .ak-review-pros-cons input { min-height: 40px; font-size: 12px; }
.single-product .ak-product-sections .ak-review-compose #commentform .form-submit { padding: 0; margin: 0; }
.single-product .ak-product-sections .ak-review-compose #commentform input#submit { display: block; width: 100%; min-height: 42px; margin: 0; padding: 8px 16px; background: #b8d7af; color: #233620; }
.ak-review-saved-scores { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0; font-size: 11px; }
.ak-review-saved-scores > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; background: #f7f8fa; border-radius: 6px; }
.ak-review-saved-scores dd { margin: 0; }
.ak-review-saved-pros { color: #386442; font-size: 12px; }
.ak-review-saved-cons { color: #a45b54; font-size: 12px; }
@media (max-width:900px) { .ak-review-layout { grid-template-columns: minmax(0,1fr); } }
@media (max-width:600px) {
  .single-product .ak-product-sections .ak-review-compose #commentform, .ak-review-pros-cons { grid-template-columns: minmax(0,1fr); }
  .ak-review-compose { padding: 14px; }
}
/* Home keeps its gray canvas; product pages use a white canvas. */
.ak-product-section-nav { background: var(--bg); }
.ak-product-intro-body { background: var(--bg); }

.ak-review-criterion-title { font-size:12px; color:#8a9085; }
.ak-review-criterion-options { margin:0; }
.single-product .ak-product-sections #review_form .ak-review-pros-cons input {
  display:block; width:100%; min-width:0; min-height:40px; padding:8px 12px;
  border:1px solid #e1e4e0; border-radius:10px; background:#fff; font:inherit; font-size:12px;
}

.ak-review-summary .ak-review-open { transition:background-color .15s,color .15s,border-color .15s; }
.ak-review-summary .ak-review-open:hover,
.ak-review-summary .ak-review-open:focus-visible { background:#b8d7af; color:#233620; border-color:#b8d7af; }

/* Keep both review columns flush at the bottom in either form state. */
.ak-review-layout { align-items:stretch; }
.ak-review-content { display:flex; flex-direction:column; }
.single-product .ak-product-sections #reviews .ak-review-content > #comments { display:flex; flex-direction:column; flex:1; min-height:0; }
.single-product .ak-product-sections #reviews .woocommerce-noreviews { display:flex; align-items:center; justify-content:center; flex:1; margin:0 !important; }
.single-product .ak-product-sections #reviews .commentlist > li:last-child .comment-text { margin-bottom:0; }
/* Align the overall rating label and star icons on one row. */
.single-product .ak-product-sections .ak-review-compose .comment-form-rating { display:flex; align-items:center; gap:10px; }
.single-product .ak-product-sections .ak-review-compose .comment-form-rating > label { display:block; margin:0 !important; padding:0; line-height:24px; white-space:nowrap; }
.single-product .ak-product-sections .ak-review-compose .comment-form-rating p.stars { display:flex; align-items:center; height:24px; margin:0 !important; padding:0; line-height:1; }
.single-product .ak-product-sections .ak-review-compose .comment-form-rating p.stars > span { display:flex; align-items:center; gap:4px; height:24px; }
.single-product .ak-product-sections .ak-review-compose .comment-form-rating p.stars a { display:block; width:24px; height:24px; margin:0; line-height:24px; }
.single-product .ak-product-sections .ak-review-compose .comment-form-rating p.stars a::before { top:0; line-height:24px; }

/* Remove legacy WooCommerce paragraph margins inside the grid-based review form. */
.single-product #reviews #review_form #respond p { margin:0 !important; }
.single-product .ak-product-sections .ak-review-compose #commentform { gap:10px 12px; }
.single-product #reviews #review_form #respond .comment-form-comment textarea { display:block; margin:0; }
.single-product #reviews #review_form #respond .ak-review-pros-cons input { display:block; margin:0; }
.single-product #reviews #review_form #respond .ak-review-pros-cons p { padding:0; }
.single-product #reviews #review_form #respond .form-submit input { margin:0; }

/* Sort controls share the section-title row, so both review cards start together. */
.ak-review-heading-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.single-product .ak-review-heading-row > h2.ak-product-section-title { display:block; margin:0; padding:0 10px 0 0; border:0; border-right:2px solid #b8d7af; color:#282c27; font-size:16px; font-weight:500; line-height:1.5; }
.ak-review-heading-row .ak-review-sort { margin:0; }
@media (max-width:600px) {
  .ak-review-heading-row { flex-wrap:wrap; gap:10px; }
  .single-product .ak-review-heading-row > h2.ak-product-section-title { font-size:15px; }
}


/* Installment offer under the product purchase controls. */
.ak-installment-card { margin-top:16px; padding:14px; border:1px solid #dfe8d9; border-radius:14px; background:#f7faf4; color:#282c27; }
.ak-installment-card > header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ak-installment-title { display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:500; }
.ak-installment-title svg { width:20px; height:20px; color:#638757; }
.ak-installment-badge { padding:2px 8px; border-radius:20px; background:#e5efdf; color:#386442; font-size:10px; white-space:nowrap; }
.single-product .ak-installment-card .ak-installment-steps { display:grid; grid-template-columns:repeat(4,1fr); list-style:none; margin:14px 0; padding:0; }
.ak-installment-steps li { position:relative; display:grid; justify-items:center; gap:4px; padding:0; }
.ak-installment-steps li:not(:last-child)::after { content:""; position:absolute; width:100%; height:2px; top:5px; inset-inline-start:50%; background:#c9dcbe; }
.ak-installment-steps li > span { position:relative; z-index:1; display:block; width:11px; height:11px; border:2px solid #dfebd7; border-radius:50%; background:#7fa875; box-sizing:content-box; }
.ak-installment-steps small { color:#638757; font-size:10px; }
.ak-installment-price { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.ak-installment-price > span { color:#7d8479; font-size:12px; }
.ak-installment-price strong { font-size:14px; font-weight:500; }
.ak-installment-price strong small { font-size:10px; font-weight:400; }
.ak-installment-providers { display:flex; align-items:center; gap:8px; padding-top:10px; border-top:1px solid #e0e8da; font-size:10px; color:#7d8479; }
.ak-installment-providers > div { display:flex; gap:5px; align-items:center; }
.ak-installment-providers > div > span { display:grid; place-items:center; min-width:28px; height:25px; padding:3px; border:1px solid #e1e6dd; border-radius:6px; background:#fff; }
.ak-installment-providers img { display:block; width:25px; height:18px; object-fit:contain; }
.ak-installment-details { margin-top:8px; }
.ak-installment-details > summary { width:fit-content; margin-inline-start:auto; color:#638757; font-size:11px; cursor:pointer; list-style:none; }
.ak-installment-details > summary::-webkit-details-marker { display:none; }
.ak-installment-details p { margin:8px 0 0; color:#7d8479; font-size:11px; line-height:1.9; }
@media (max-width:767px) { .ak-installment-card { margin-top:12px; } }

.ak-installment-providers { flex-wrap:wrap; }
.ak-installment-providers > div { flex-wrap:wrap; min-width:0; }

/* Mobile: replace the upper excerpt with the installment payment methods. */
@media (max-width:767px) {
  body.single-product .ak-detail-info .woocommerce-product-details__short-description { display:none !important; }
  body.single-product .ak-detail-info > .ak-installment-card { grid-column:1/-1; order:7; width:100%; min-width:0; margin:16px 0 0; }
}
