/* =============================================================
   TechVistaar — Software pages
   Homepage carousels, the All Software hub (search/filters/listing),
   category pill nav, and the single software product page (pricing,
   gallery, features, FAQs, reviews, similar software).
   Card look itself lives in components/cards.css — this file only
   has the carousel mechanics and page-specific layout.
============================================================= */

/* ---------- Carousel mechanics ---------- */
.software-section{ padding:64px 0; }
.software-section.alt-bg{ background:var(--panel-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.carousel-controls{ display:flex; gap:10px; flex:none; }
.carousel-btn{
  width:42px; height:42px; border-radius:50%; border:1px solid var(--line);
  background:var(--panel); display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:background .2s, border-color .2s;
}
.carousel-btn:hover{ background:var(--ink); border-color:var(--ink); }
.carousel-btn:hover svg path{ stroke:var(--paper); }
.carousel-btn:disabled{ opacity:.35; cursor:default; }
.carousel-btn:disabled:hover{ background:var(--panel); border-color:var(--line); }
.carousel-btn:disabled:hover svg path{ stroke:#12182B; }
.product-carousel{ margin-top:8px; }
.carousel-track{
  display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:6px; margin:0 -4px;
  scrollbar-width:none;
}
.carousel-track::-webkit-scrollbar{ display:none; }
.carousel-track .product-card{
  scroll-snap-align:start;
  flex:0 0 calc((100% - 3 * 20px) / 4);
  min-width:0;
}
@media (max-width:1024px){ .carousel-track .product-card{ flex:0 0 calc((100% - 20px) / 2); } }
@media (max-width:640px){ .carousel-track .product-card{ flex:0 0 100%; } }
.car-dots{ display:flex; justify-content:center; gap:8px; margin-top:22px; }
.car-dot{
  width:8px; height:8px; border-radius:5px; border:none; background:var(--line);
  cursor:pointer; transition:background .2s ease, width .2s ease;
}
.car-dot.active{ background:var(--amber); width:22px; }

/* ---------- Category pill nav ---------- */
.cat-nav{ display:flex; gap:10px; flex-wrap:wrap; margin-top:32px; }
.cat-pill{
  border:1px solid var(--line); background:var(--panel); color:var(--slate);
  font-size:13.5px; font-weight:500; padding:9px 18px; border-radius:999px;
  transition:all .18s ease;
}
.cat-pill:hover{ border-color:rgba(18,24,43,0.3); color:var(--ink); }
.cat-pill.active{ background:var(--ink); border-color:var(--ink); color:var(--paper); }

/* ---------- All Software hub: search + filters + listing ---------- */
.listing{ padding:10px 0 70px; }
/* .search-row / .search-box are global — defined once in style.css
   since both the Blog and Software pages use them independently. */
.store-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:1024px){ .store-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .store-grid{ grid-template-columns:1fr; } }
/* .load-more-row is global (style.css) */

/* =============================================================
   SINGLE PRODUCT PAGE
============================================================= */
.product-hero{ display:flex; align-items:center; gap:20px; margin-top:24px; flex-wrap:wrap; }
.badge-lg{
  width:64px; height:64px; border-radius:16px; flex:none; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk'; font-weight:700; font-size:20px; color:#fff;
}
.badge-lg.product-logo{ background:var(--panel-2); }
.badge-lg img{ width:100%; height:100%; object-fit:cover; }
.product-hero h1{ font-size:clamp(28px,4vw,40px); }
.product-hero .cat-tag{ font-size:13px; color:var(--slate); display:inline-block; margin-top:4px; }
.product-rating{ display:flex; align-items:center; gap:8px; margin-top:8px; font-size:14px; }
.product-rating span{ color:var(--slate); }

.product-body{ display:grid; grid-template-columns:1.4fr 1fr; gap:40px; margin-top:40px; align-items:start; }
@media (max-width:900px){ .product-body{ grid-template-columns:1fr; } }
.product-main .lead-text{ font-size:17px; color:var(--ink); margin-bottom:16px; }
.product-main p{ color:var(--slate); font-size:16px; line-height:1.8; margin-bottom:20px; }

.feature-list{ list-style:none; margin-top:6px; display:flex; flex-direction:column; gap:14px; }
.feature-list.plain li{ padding-left:0; }
.feature-list li{ display:flex; align-items:flex-start; gap:12px; font-size:15px; color:var(--ink); }
.feature-list svg{ flex:none; margin-top:3px; }

.product-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:6px; }
@media (max-width:640px){ .product-gallery{ grid-template-columns:1fr 1fr; } }
.gallery-item{ display:block; border-radius:12px; overflow:hidden; border:1px solid var(--line); aspect-ratio:16/10; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.gallery-item:hover img{ transform:scale(1.05); }

.meta-table{ width:100%; border-collapse:collapse; margin-top:8px; }
.meta-table tr{ border-bottom:1px solid var(--line); }
.meta-table tr:last-child{ border-bottom:none; }
.meta-table th{ text-align:left; padding:12px 0; width:180px; font-size:13px; color:var(--slate); font-weight:600; }
.meta-table td{ padding:12px 0; font-size:14.5px; color:var(--ink); }

.faq-list{ display:flex; flex-direction:column; gap:10px; margin-top:6px; }
.faq-item{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:18px 20px; }
.faq-item summary{ font-weight:600; font-size:15px; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; font-size:20px; color:var(--slate); transition:transform .2s ease; }
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-item p{ margin-top:12px; color:var(--slate); font-size:14.5px; }

.buy-card{ background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:28px; position:sticky; top:100px; }
.buy-card .price-lg{ font-family:'IBM Plex Mono'; font-size:26px; margin-bottom:4px; }
.buy-card .price-lg span{ font-size:12px; color:var(--slate); display:block; text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; }
.buy-card .btn-primary{ width:100%; text-align:center; margin-top:18px; }
.buy-card .note{ font-size:12.5px; color:var(--slate); margin-top:14px; text-align:center; }
.buy-card-links{ margin-top:20px; padding-top:18px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:10px; }
.buy-card-links a{ font-size:13.5px; font-weight:600; color:var(--teal); }
.buy-card-links a:hover{ text-decoration:underline; }

.related-products{ padding:70px 0 90px; }

/* ---------- Reviews (native WordPress comments, styled) ---------- */
.reviews-section .comment-list{ list-style:none; display:flex; flex-direction:column; gap:20px; margin-top:20px; }
.reviews-section .comment{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:22px; }
.reviews-section .comment-meta{ display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.reviews-section .comment-author .fn{ font-weight:600; font-size:14.5px; font-style:normal; }
.reviews-section .comment-metadata{ font-size:12px; color:var(--slate); }
.reviews-section .comment-metadata a{ color:inherit; }
.reviews-section .comment-content{ font-size:14.5px; color:var(--ink); line-height:1.7; }
.reviews-section .comment-content .tv-stars{ display:block; margin-bottom:8px; }
.reviews-section .children{ list-style:none; margin-top:14px; margin-left:24px; }
.reviews-section .no-comments{ color:var(--slate); font-size:14.5px; }

.reviews-section .comment-respond{ background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:28px; margin-top:30px; }
.reviews-section .comment-reply-title{ font-size:19px; margin-bottom:6px; }
.reviews-section .comment-notes, .reviews-section .comment-form-rating label{ font-size:13px; color:var(--slate); margin-bottom:16px; display:block; }
.reviews-section .comment-form-rating select,
.reviews-section .comment-form input[type="text"],
.reviews-section .comment-form input[type="email"],
.reviews-section .comment-form input[type="url"],
.reviews-section .comment-form textarea{
  border:1px solid var(--line); border-radius:10px; padding:12px 14px;
  font-family:'Inter'; font-size:14.5px; background:var(--paper); color:var(--ink);
  width:100%; margin-bottom:16px; outline:none;
}
.reviews-section .comment-form textarea{ min-height:110px; resize:vertical; }
.reviews-section .comment-form p{ margin:0; }
.reviews-section .form-submit input{
  background:var(--ink); color:var(--paper); font-weight:600; font-size:14.5px;
  padding:12px 26px; border-radius:999px; border:none; cursor:pointer;
}

/* ---------- Clickable star picker (progressive enhancement over the native select) ---------- */
.tv-star-picker{ display:flex; gap:4px; margin-bottom:16px; }
.tv-star-btn{ background:none; border:none; padding:2px; cursor:pointer; }
