/*
 * File: catalog-fallback.css
 * Path: /wp-content/plugins/gs-catalog/assets/css/catalog-fallback.css
 * Version: 1.0.32-dev
 * Created: 2026-11-13
 * Last Updated: 2026-11-22
 * Changelog: 1.0.32-dev - Make thumbnail rail content-sized to prevent far-apart gallery arrows; preserve overflow for larger galleries. 1.0.27-dev - Integrate CPT Hero/mixed gallery responsive presentation on master 1.0.26; 1.0.4-dev - Global fallback now always loaded for native archive; 1.0.1-dev - Retained non-Tressor fallback; 1.0.0-dev - Minimal fallback only, defer colors/cards to child theme.
 * Author: Lucky Mahrus
 * Author URL: https://geraisitus.co.id/
 * Author Email: Not configured (set verified address before release).
 * Description: Fallback layout when Tressor child theme is not present.
 */
/* General non-Tressor container fallback; design-studio.css subsequently scopes user changes. */
.gs-catalog-container {max-width:1200px; padding:clamp(20px,4vw,64px); margin-inline:auto;}
/* Responsive grid baseline only; scoped Design Studio CSS has stronger selectors. */
.gs-catalog-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;}
.gs-catalog-card {min-width:0;}
.gs-catalog-card img {width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;display:block;}
.gs-catalog-placeholder {display:grid;place-items:center;min-height:200px;background:#eee;color:#777;}
.gs-catalog-card .ts-card__body {padding-block:12px;}
.gs-catalog-card .ts-card__title {margin:0;font-size:1rem;}
.gs-catalog-card .ts-card__price {margin:8px 0 0;}
/* Product detail layout baseline for themes without a GS-compatible skin. */
.gs-catalog-single .ts-product {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:40px;}
.gs-catalog-single .ts-gallery-main img{max-width:100%;height:auto;}
.gs-catalog .ts-catalog__pagination a {display:inline-block;margin:4px;padding:5px 9px;}
@media(max-width:980px){.gs-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.gs-catalog-grid,.gs-catalog-single .ts-product{grid-template-columns:1fr;}}
/* 1.0.25-dev: accessible, theme-independent mixed-media detail fallback. */
.gs-catalog-single .gs-mixed-gallery__stage{aspect-ratio:1/1;overflow:hidden;background:#f4f1eb;border-radius:15px;display:grid;place-items:center;}
.gs-catalog-single .gs-mixed-gallery__stage :is(img,video,iframe){display:block;width:100%;height:100%;object-fit:cover;border:0;}
.gs-catalog-single .gs-mixed-gallery__stage :is(video,iframe){aspect-ratio:1/1;}
.gs-catalog-single .gs-gallery-placeholder{color:#777;text-align:center;padding:20px;}
.gs-catalog-single .gs-mixed-gallery__rail{display:flex;gap:8px;align-items:center;margin-top:12px;min-width:0;}
.gs-catalog-single .gs-product-gallery{display:flex;flex:1;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;min-width:0;padding:3px 1px 9px;}
.gs-catalog-single .gs-mixed-gallery__thumb{position:relative;display:block;flex:0 0 clamp(70px,22%,115px);min-width:0;aspect-ratio:1/1;border-radius:9px;overflow:hidden;border:2px solid transparent;background:#ece9e3;padding:0;cursor:pointer;scroll-snap-align:start;}
.gs-catalog-single .gs-mixed-gallery__thumb[aria-pressed=true]{border-color:#cfa11c;}
.gs-catalog-single .gs-mixed-gallery__thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.gs-catalog-single .gs-mixed-gallery__thumb--video{display:grid;place-items:center;}
.gs-catalog-single .gs-mixed-gallery__play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.93);color:#b68913;font-size:14px;pointer-events:none;}
.gs-catalog-single .gs-mixed-gallery__video-symbol{color:#b68913;font-size:27px;}
.gs-catalog-single .gs-mixed-gallery__nav{border:1px solid #d1c4ad;color:#8a711e;background:#fff;border-radius:100%;width:30px;height:30px;display:grid;place-items:center;cursor:pointer;flex:0 0 30px;}
.gs-catalog-single .gs-mixed-gallery__thumb:focus-visible,.gs-catalog-single .gs-mixed-gallery__nav:focus-visible{outline:3px solid #ac8a28;outline-offset:2px;}
@media(max-width:767px){.gs-catalog-single .gs-mixed-gallery__thumb{flex-basis:25%;}.gs-catalog-single .gs-mixed-gallery__nav{width:25px;height:25px;flex-basis:25px;}}

/* v1.0.32: production-style navigation stays at the gallery edges.
   Fix stretched oval buttons and keep thumbnails in a central scrolling track. */
.gs-catalog-single .gs-mixed-gallery__rail{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:12px;width:100%;max-width:100%;align-items:center;box-sizing:border-box;}
.gs-catalog-single .gs-product-gallery{width:100%;max-width:100%;flex:1 1 auto;min-width:0;}
.gs-catalog-single .gs-mixed-gallery__thumb{flex:0 0 84px;}
.gs-catalog-single .gs-mixed-gallery__nav{display:grid;place-items:center;min-width:38px;width:38px;height:38px;min-height:38px;max-width:38px;padding:0;flex:none;border-radius:50%;line-height:1;box-sizing:border-box;}
@media(max-width:767px){.gs-catalog-single .gs-mixed-gallery__rail{grid-template-columns:32px minmax(0,1fr) 32px;gap:8px;}.gs-catalog-single .gs-mixed-gallery__nav{min-width:32px;width:32px;height:32px;min-height:32px;max-width:32px;}}
