/* ГороДверей v100 Clean — catalogue component. No legacy selectors. */

.gd-page--catalog-category{background:var(--gd-bg)}
.gd-page--catalog-category .gd-main{background:var(--gd-bg)}

/* Hero */
.gd-catalog-hero{background:#0d0c0b;color:#f5f0e9;border-bottom:1px solid rgba(255,255,255,.08)}
.gd-catalog-hero__grid{display:grid;grid-template-columns:minmax(0,.86fr) minmax(520px,1.14fr);min-height:520px;padding-inline:0;max-width:var(--gd-layout-max)}
.gd-catalog-hero__copy{display:flex;flex-direction:column;justify-content:center;padding:58px clamp(34px,4.5vw,74px)}
.gd-catalog-hero h1{max-width:720px;margin:12px 0 0;font-size:clamp(50px,5.4vw,78px);line-height:.95;letter-spacing:-.055em;font-weight:700;color:#f7f2ec}
.gd-catalog-hero__copy>p{max-width:660px;margin:22px 0 0;color:#b9b1a9;font-size:16px;line-height:1.62}
.gd-catalog-hero__facts{display:flex;flex-wrap:wrap;gap:9px 20px;margin:26px 0 0;padding:0;list-style:none}
.gd-catalog-hero__facts li{display:flex;align-items:center;gap:8px;color:#e7dfd7;font-size:11px;font-weight:700}
.gd-catalog-hero__facts li::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--gd-gold-bright);box-shadow:0 0 0 4px rgba(227,174,76,.08)}
.gd-catalog-hero__actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:30px}
.gd-catalog-hero__media{position:relative;min-height:520px;overflow:hidden;background:#171513}
.gd-catalog-hero__media::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0d0c0b 0%,rgba(13,12,11,.44) 15%,transparent 38%);pointer-events:none}
.gd-catalog-hero__media img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.gd-catalog--entrance-doors .gd-catalog-hero__media img{object-position:right center}

.gd-catalog-button{min-height:48px;padding:0 18px;border:1px solid currentColor;border-radius:9px;background:transparent;color:inherit;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;cursor:pointer}
.gd-catalog-button--primary{border-color:var(--gd-gold);background:linear-gradient(135deg,var(--gd-gold),var(--gd-gold-bright));color:#24190a}
.gd-catalog-hero .gd-catalog-button:not(.gd-catalog-button--primary){border-color:rgba(255,255,255,.18);color:#f3eee8;background:rgba(255,255,255,.03)}

/* Category shell */
.gd-catalog{width:100%;background:var(--gd-bg);color:var(--gd-text)}
.gd-catalog-subcategories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding-block:28px 0}
.gd-catalog-subcategory{min-width:0;display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--gd-line);border-radius:var(--gd-radius-md);background:var(--gd-surface);text-decoration:none}
.gd-catalog-subcategory img{width:72px;height:72px;object-fit:contain;border-radius:10px;background:var(--gd-surface-soft)}
.gd-catalog-subcategory span{font-size:13px;font-weight:800}
.gd-catalog-products-section{padding:26px 0 72px}

/* Toolbar and filters */
.gd-catalog-filter-form{position:relative;margin-bottom:20px}
.gd-catalog-toolbar{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:9px;border:1px solid var(--gd-line);border-radius:var(--gd-radius-md);background:var(--gd-surface);box-shadow:var(--gd-shadow-sm)}
.gd-catalog-toolbar__primary,.gd-catalog-toolbar__secondary{display:flex;align-items:center;gap:12px;min-width:0}
.gd-filter-toggle{min-height:42px;padding:0 14px;border:1px solid var(--gd-line-strong);border-radius:9px;background:var(--gd-surface-soft);color:var(--gd-text);display:inline-flex;align-items:center;gap:9px;cursor:pointer;font-size:11px;font-weight:800}
.gd-filter-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.gd-catalog-toolbar__note{color:var(--gd-muted);font-size:10px;white-space:nowrap}
.gd-catalog-control{display:flex;align-items:center;gap:7px;color:var(--gd-muted);font-size:10px;white-space:nowrap}
.gd-catalog-control select,.gd-filter-field select,.gd-filter-price input,.gd-filter-field input{min-height:40px;border:1px solid var(--gd-line);border-radius:8px;background:var(--gd-bg);color:var(--gd-text);padding:0 10px;outline:none}
.gd-catalog-control select:focus,.gd-filter-field select:focus,.gd-filter-price input:focus,.gd-filter-field input:focus{border-color:var(--gd-gold);box-shadow:0 0 0 3px color-mix(in srgb,var(--gd-gold) 13%,transparent)}
.gd-catalog-control__field{display:flex;align-items:center;gap:4px}
.gd-sort-direction{width:40px;height:40px;border:1px solid var(--gd-line);border-radius:8px;background:var(--gd-bg);color:var(--gd-text);cursor:pointer}
.gd-filter-backdrop{position:fixed;inset:0;z-index:1450;border:0;background:rgba(0,0,0,.48);backdrop-filter:blur(3px);cursor:default}
.gd-filter-panel{position:absolute;z-index:1460;left:0;right:0;top:calc(100% + 9px);max-height:min(680px,calc(100vh - 150px));overflow:auto;border:1px solid var(--gd-line);border-radius:var(--gd-radius-lg);background:var(--gd-surface);box-shadow:var(--gd-shadow-md)}
.gd-filter-panel__head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px 16px;border-bottom:1px solid var(--gd-line);background:color-mix(in srgb,var(--gd-surface) 96%,transparent);backdrop-filter:blur(14px)}
.gd-filter-panel__head h2{margin:5px 0 0;font-size:26px;line-height:1;font-weight:700}
.gd-filter-close{width:40px;height:40px;border:1px solid var(--gd-line);border-radius:50%;background:var(--gd-surface-soft);color:var(--gd-text);cursor:pointer;font-size:24px;line-height:1}
.gd-filter-panel__body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:22px 24px}
.gd-filter-field{min-width:0;display:flex;flex-direction:column;gap:7px;color:var(--gd-muted);font-size:10px}
.gd-filter-field>select,.gd-filter-field>input{width:100%}
.gd-filter-field--extension{grid-column:1/-1}
.gd-filter-field--extension .control-group,.gd-filter-field--extension>div{min-width:0}
.gd-filter-field--extension label,.gd-filter-field--extension .control-label{color:var(--gd-muted);font-size:10px}
.gd-filter-field--extension select,.gd-filter-field--extension input{max-width:100%}
.gd-filter-price{min-width:0;margin:0;padding:0;border:0;display:grid;grid-template-columns:1fr 1fr;gap:9px}
.gd-filter-price legend{grid-column:1/-1;margin:0 0 1px;color:var(--gd-muted);font-size:10px}
.gd-filter-price label{display:flex;flex-direction:column;gap:6px;color:var(--gd-muted);font-size:9px}
.gd-filter-panel__actions{position:sticky;bottom:0;display:flex;align-items:center;gap:14px;padding:15px 24px;border-top:1px solid var(--gd-line);background:color-mix(in srgb,var(--gd-surface) 96%,transparent);backdrop-filter:blur(14px)}
.gd-filter-panel__actions input.gd-catalog-button{border:0}
body.gd-filter-open{overflow:hidden}

/* Products */
.gd-catalog-rows{display:flex;flex-direction:column;gap:14px}
.gd-product-row{--gd-product-media-height:300px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
.gd-product-card{position:relative;min-width:0;height:100%;overflow:hidden;border:1px solid var(--gd-line);border-radius:var(--gd-radius-md);background:var(--gd-surface);box-shadow:var(--gd-shadow-sm);display:flex;flex-direction:column;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.gd-product-card:hover{transform:translateY(-2px);border-color:var(--gd-line-strong);box-shadow:var(--gd-shadow-md)}
.gd-product-card__media{position:relative;height:var(--gd-product-media-height);flex:0 0 var(--gd-product-media-height);overflow:hidden;background:var(--gd-surface-soft);display:flex;align-items:center;justify-content:center}
.gd-product-card__media>a{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.gd-product-card__media img{width:100%;height:100%;display:block;object-fit:contain;object-position:center;padding:12px;filter:none}
.gd-product-card__badge{position:absolute;z-index:2;left:11px;top:11px;max-width:calc(100% - 22px);padding:7px 9px;border:1px solid color-mix(in srgb,var(--gd-gold) 55%,var(--gd-line));border-radius:7px;background:color-mix(in srgb,var(--gd-surface) 91%,transparent);color:var(--gd-gold);font-size:9px;font-weight:800;backdrop-filter:blur(8px)}
.gd-product-card__body{min-width:0;flex:1;display:flex;flex-direction:column;padding:16px}
.gd-product-card__kind{color:var(--gd-muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.gd-product-card__title{margin:7px 0 0;font-size:20px;line-height:1.12;font-weight:700;letter-spacing:-.025em}
.gd-product-card__title a{text-decoration:none}
.gd-product-card__description{margin-top:9px;color:var(--gd-muted);font-size:11px;line-height:1.48;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.gd-product-card__specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:13px 0 0}.gd-product-card__specs div{min-width:0;padding:9px 8px;border:1px solid var(--gd-line);border-radius:8px;background:var(--gd-surface-soft)}.gd-product-card__specs dt{color:var(--gd-muted);font-size:8px;line-height:1.25}.gd-product-card__specs dd{margin:4px 0 0;color:var(--gd-text);font-size:12px;font-weight:800;line-height:1.2}
.gd-product-card__status{display:flex;align-items:center;gap:7px;margin-top:13px;color:var(--gd-muted);font-size:10px}
.gd-product-card__status>span{width:7px;height:7px;border-radius:50%;background:var(--gd-gold)}
.gd-product-card__status.is-available>span{background:var(--gd-success)}
.gd-product-card__footer{margin-top:auto;padding-top:16px;display:flex;align-items:end;justify-content:space-between;gap:12px}
.gd-product-card__price{font-size:18px;line-height:1.1;font-weight:800;color:var(--gd-text)}
.gd-product-card__more{min-height:40px;padding:0 11px;border:1px solid var(--gd-line);border-radius:8px;display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-size:10px;font-weight:800;white-space:nowrap}
.gd-product-card__more span{color:var(--gd-gold);font-size:14px}
.gd-product-card--wide{grid-column:span 2;display:grid;grid-template-columns:minmax(240px,.82fr) minmax(0,1.18fr)}
.gd-product-card--wide .gd-product-card__media{height:100%;min-height:var(--gd-product-media-height);flex-basis:auto}
.gd-product-card--wide .gd-product-card__body{height:100%;padding:22px 24px;justify-content:flex-start}
.gd-product-card--wide .gd-product-card__title{margin-top:5px;font-size:24px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gd-product-card--wide .gd-product-card__description{margin-top:7px;font-size:10px;-webkit-line-clamp:2}
.gd-product-card--wide .gd-product-card__specs{margin-top:9px}
.gd-product-card--wide .gd-product-card__status{margin-top:9px}
.gd-product-card--wide .gd-product-card__footer{padding-top:10px}
.gd-product-card--wide .gd-product-card__price{font-size:20px}

/* Editorial blocks between product rows */

/* Pagination / empty */
.gd-catalog-pagination{margin-top:26px;padding:14px 18px;border:1px solid var(--gd-line);border-radius:var(--gd-radius-md);background:var(--gd-surface);display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px}
.gd-catalog-pagination__desktop{display:flex;align-items:center;gap:7px;min-width:0}
.gd-catalog-pagination__numbers{display:flex;align-items:center;gap:5px}
.gd-catalog-pagination__desktop a,.gd-catalog-pagination__current{height:38px;padding:0 12px;border:1px solid var(--gd-line);border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:var(--gd-text);text-decoration:none;font-size:11px;font-weight:700}
.gd-catalog-pagination__numbers a,.gd-catalog-pagination__current{min-width:38px;padding-inline:9px}
.gd-catalog-pagination__desktop a:hover{border-color:color-mix(in srgb,var(--gd-gold) 55%,var(--gd-line));color:var(--gd-gold)}
.gd-catalog-pagination__current{border-color:var(--gd-gold);color:var(--gd-gold);background:color-mix(in srgb,var(--gd-gold) 8%,transparent)}
.gd-catalog-pagination__ellipsis{padding:0 2px;color:var(--gd-muted);font-size:13px}
.gd-catalog-pagination__counter{justify-self:end;color:var(--gd-muted);font-size:10px;white-space:nowrap}
.gd-catalog-pagination__mobile{display:none}

/* Category description: short editorial lead first; legacy long text stays optional. */
body.gd-page--catalog-category .category_description{display:none}
.gd-catalog-description{padding-top:34px}
.gd-catalog-description__panel{max-width:980px;margin-inline:auto;padding:32px 34px;border:1px solid var(--gd-line);border-radius:var(--gd-radius-lg);background:var(--gd-surface)}
.gd-catalog-description__kicker{display:block;margin-bottom:9px;color:var(--gd-gold);font-size:9px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.gd-catalog-description h2{margin:0;font-size:27px;line-height:1.08;letter-spacing:-.025em}
.gd-catalog-description__lead{max-width:780px;margin:12px 0 0;color:var(--gd-muted);font-size:13px;line-height:1.65}
.gd-catalog-description__details{margin-top:20px;border-top:1px solid var(--gd-line)}
.gd-catalog-description__details summary{padding:17px 0 0;display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--gd-text);font-size:11px;font-weight:800;cursor:pointer;list-style:none}
.gd-catalog-description__details summary::-webkit-details-marker{display:none}
.gd-catalog-description__details[open] summary span{transform:rotate(45deg)}
.gd-catalog-description__details summary span{color:var(--gd-gold);font-size:18px;font-weight:400;transition:transform .18s ease}
.gd-catalog-description__body{padding-top:15px;color:var(--gd-muted);font-size:12px;line-height:1.7}
.gd-catalog-description__body p{margin:0 0 12px}.gd-catalog-description__body p:last-child{margin-bottom:0}
.gd-catalog-empty{padding:42px;border:1px solid var(--gd-line);border-radius:var(--gd-radius-lg);background:var(--gd-surface);display:flex;flex-direction:column;gap:7px;text-align:center}
.gd-catalog-empty strong{font-size:18px}.gd-catalog-empty span{color:var(--gd-muted);font-size:12px}

@media(max-width:1240px){
  .gd-catalog-hero__grid{grid-template-columns:minmax(0,.92fr) minmax(460px,1.08fr)}
}

@media(max-width:1100px){
  .gd-catalog-toolbar{align-items:flex-start;flex-direction:column}
  .gd-catalog-toolbar__primary,.gd-catalog-toolbar__secondary{width:100%;justify-content:space-between}
  .gd-product-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gd-product-card--wide{grid-column:span 2}
  .gd-filter-panel__body{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:980px){
  .gd-catalog-hero__grid{grid-template-columns:1fr;min-height:0}
  .gd-catalog-hero__media{order:-1;height:390px;min-height:390px}
  .gd-catalog-hero__media::after{background:linear-gradient(180deg,transparent 48%,#0d0c0b 100%)}
  .gd-catalog-hero__copy{padding:34px 24px 40px}
  .gd-catalog-hero h1{font-size:clamp(46px,8vw,64px)}
}
@media(max-width:700px){
  .gd-catalog-hero__media{height:315px;min-height:315px}
  .gd-catalog-hero__copy{padding:28px 18px 34px}
  .gd-catalog-hero h1{font-size:48px}
  .gd-catalog-hero__copy>p{font-size:14px;line-height:1.55}
  .gd-catalog-hero__facts{display:grid;gap:9px}
  .gd-catalog-hero__actions{display:grid;grid-template-columns:1fr}
  .gd-catalog-button{width:100%;min-height:54px;font-size:13px}
  .gd-catalog-products-section{padding:16px 0 42px}
  .gd-catalog-toolbar{padding:8px;border-radius:12px}
  .gd-catalog-toolbar__note{display:none}
  .gd-catalog-toolbar__secondary{overflow-x:auto;justify-content:flex-start;padding-bottom:2px}
  .gd-catalog-control{flex:0 0 auto}
  .gd-filter-toggle{width:100%;min-height:48px;justify-content:center;font-size:12px}
  .gd-filter-panel{position:fixed;left:0;right:0;top:auto;bottom:0;z-index:1600;max-height:calc(100dvh - 68px);border-radius:18px 18px 0 0;border-bottom:0}
  .gd-filter-panel__head{padding:20px 18px 14px}
  .gd-filter-panel__body{grid-template-columns:1fr;padding:18px;gap:15px}
  .gd-filter-panel__actions{padding:12px 18px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr}
  .gd-filter-reset{text-align:center;padding:8px}
  .gd-product-row{--gd-product-media-height:350px;grid-template-columns:1fr;grid-auto-rows:auto;gap:10px}
  .gd-product-card,.gd-product-card--wide{grid-column:span 1;grid-row:auto}
  .gd-product-card--wide{display:flex}
  .gd-product-card__media,.gd-product-card--wide .gd-product-card__media{height:var(--gd-product-media-height);min-height:var(--gd-product-media-height);flex:0 0 var(--gd-product-media-height)}
  .gd-product-card__body,.gd-product-card--wide .gd-product-card__body{height:auto;padding:17px}.gd-product-card__specs{gap:6px}.gd-product-card__specs div{padding:8px 6px}.gd-product-card__specs dt{font-size:7px}.gd-product-card__specs dd{font-size:11px}
  .gd-product-card__title,.gd-product-card--wide .gd-product-card__title{font-size:24px}
  .gd-product-card__description,.gd-product-card--wide .gd-product-card__description{font-size:12px;-webkit-line-clamp:3}
  .gd-product-card__price,.gd-product-card--wide .gd-product-card__price{font-size:20px}
  .gd-catalog-pagination{padding:12px;grid-template-columns:1fr auto}
  .gd-catalog-pagination__desktop{display:none}
  .gd-catalog-pagination__mobile{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;width:min(230px,100%);gap:7px}
  .gd-catalog-pagination__mobile a,.gd-catalog-pagination__mobile>span{height:42px;border:1px solid var(--gd-line);border-radius:9px;display:grid;place-items:center;color:var(--gd-text);text-decoration:none}
  .gd-catalog-pagination__mobile strong{text-align:center;font-size:11px}
  .gd-catalog-pagination__counter{font-size:9px}
  .gd-catalog-description{padding-top:24px}
  .gd-catalog-description__panel{padding:24px 18px;border-radius:14px}
  .gd-catalog-description h2{font-size:24px}
  .gd-catalog-description__lead{font-size:12px}
}

/* Existing Joomla filter module, migrated without changing its data source. */
.gd-filter-panel--module{position:fixed;left:auto;right:0;top:var(--gd-header-height);bottom:0;width:min(470px,100vw);max-height:none;border-radius:18px 0 0 0;border-right:0;border-bottom:0}
.gd-filter-module{padding:20px 24px 92px;overflow:auto}
.gd-filter-module>.moduletable,.gd-filter-module>.module,.gd-filter-module>[class*="moduletable"]{margin:0;padding:0;background:transparent;border:0}
.gd-filter-module h3,.gd-filter-module h4,.gd-filter-module legend,.gd-filter-module .filter_title,.gd-filter-module .title{margin:18px 0 9px;color:var(--gd-text);font-size:13px;line-height:1.25;font-weight:800}
.gd-filter-module form{margin:0}
.gd-filter-module fieldset{margin:0 0 16px;padding:0;border:0}
.gd-filter-module label{color:var(--gd-muted);font-size:11px;line-height:1.45}
.gd-filter-module input[type="text"],.gd-filter-module input[type="number"],.gd-filter-module input[type="search"],.gd-filter-module select{width:100%;min-height:44px;margin:5px 0;border:1px solid var(--gd-line);border-radius:8px;background:var(--gd-bg);color:var(--gd-text);padding:0 10px;outline:none}
.gd-filter-module input[type="text"]:focus,.gd-filter-module input[type="number"]:focus,.gd-filter-module input[type="search"]:focus,.gd-filter-module select:focus{border-color:var(--gd-gold);box-shadow:0 0 0 3px color-mix(in srgb,var(--gd-gold) 13%,transparent)}
.gd-filter-module input[type="checkbox"],.gd-filter-module input[type="radio"]{width:17px;height:17px;margin-right:7px;accent-color:var(--gd-gold)}
.gd-filter-module ul{margin:0;padding:0;list-style:none}
.gd-filter-module li{margin:0;padding:6px 0}
.gd-filter-module a{color:var(--gd-text)}
.gd-filter-module .row,.gd-filter-module .row-fluid{display:block;margin:0}
.gd-filter-module button,.gd-filter-module input[type="submit"],.gd-filter-module .btn{min-height:42px;border:1px solid var(--gd-line);border-radius:8px;background:var(--gd-surface-soft);color:var(--gd-text);padding:0 13px;cursor:pointer}
.gd-filter-reset{border:0;background:transparent;color:var(--gd-muted);font:inherit;font-size:11px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

@media(max-width:700px){
  .gd-filter-panel--module{left:0;right:0;top:auto;bottom:0;width:100%;max-height:calc(100dvh - 68px);border-radius:18px 18px 0 0;border-left:1px solid var(--gd-line)}
  .gd-filter-module{padding:16px 18px 106px}
  .gd-filter-module label{font-size:12px}
  .gd-filter-module input[type="text"],.gd-filter-module input[type="number"],.gd-filter-module input[type="search"],.gd-filter-module select{min-height:50px;font-size:16px}
}

/* Stage 4.3.0 — parent Doors category hub. */
.gd-catalog--doors .gd-catalog-hero__media--split{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:#0d0c0b}
.gd-catalog--doors .gd-catalog-hero__media--split img{min-width:0;object-position:center}

.gd-catalog-hub{padding-block:34px 74px}
.gd-catalog-hub__head{display:grid;grid-template-columns:minmax(0,.85fr) minmax(320px,.65fr);gap:48px;align-items:end;margin-bottom:22px}
.gd-catalog-hub__head h2{margin:9px 0 0;font-size:clamp(34px,3.5vw,52px);line-height:.98;letter-spacing:-.045em;color:var(--gd-text)}
.gd-catalog-hub__head p{max-width:610px;margin:0;color:var(--gd-muted);font-size:13px;line-height:1.65}
.gd-catalog-hub__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;gap:12px}
.gd-catalog-hub-card{position:relative;isolation:isolate;min-height:430px;overflow:hidden;border:1px solid var(--gd-line);border-radius:var(--gd-radius-lg);background:#161412;color:#fff;text-decoration:none;box-shadow:var(--gd-shadow-sm)}
.gd-catalog-hub-card:nth-child(n+3){grid-column:1/-1;min-height:320px}
.gd-catalog-hub-card__media,.gd-catalog-hub-card__overlay{position:absolute;inset:0}
.gd-catalog-hub-card__media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.gd-catalog-hub-card__overlay{z-index:1;background:linear-gradient(180deg,rgba(7,6,5,.06) 10%,rgba(7,6,5,.28) 46%,rgba(7,6,5,.9) 100%)}
.gd-catalog-hub-card:nth-child(n+3) .gd-catalog-hub-card__overlay{background:linear-gradient(90deg,rgba(7,6,5,.9) 0%,rgba(7,6,5,.68) 38%,rgba(7,6,5,.12) 78%)}
.gd-catalog-hub-card__copy{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:30px;display:flex;flex-direction:column;align-items:flex-start}
.gd-catalog-hub-card:nth-child(n+3) .gd-catalog-hub-card__copy{top:0;bottom:0;justify-content:center;max-width:620px;padding:42px}
.gd-catalog-hub-card__copy small{color:var(--gd-gold-bright);font-size:9px;line-height:1.2;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.gd-catalog-hub-card__copy strong{max-width:690px;margin-top:8px;color:#fff;font-size:clamp(27px,2.6vw,42px);line-height:1;letter-spacing:-.035em}
.gd-catalog-hub-card__copy>span{max-width:480px;margin-top:10px;color:rgba(255,255,255,.76);font-size:12px;line-height:1.55}
.gd-catalog-hub-card__copy b{margin-top:18px;display:inline-flex;align-items:center;gap:8px;color:#fff;font-size:11px;font-weight:850}
.gd-catalog-hub-card__copy b span{color:var(--gd-gold-bright);font-size:15px;transition:transform .2s ease}
.gd-catalog-hub-card:hover .gd-catalog-hub-card__media img{transform:scale(1.025)}
.gd-catalog-hub-card:hover .gd-catalog-hub-card__copy b span{transform:translateX(4px)}
.gd-catalog-hub-card--custom .gd-catalog-hub-card__media img{object-position:center 45%}

@media(max-width:980px){
  .gd-catalog--doors .gd-catalog-hero__media--split{height:390px;min-height:390px}
  .gd-catalog-hub__head{grid-template-columns:1fr;gap:14px}
  .gd-catalog-hub__grid{grid-template-columns:1fr}
  .gd-catalog-hub-card,.gd-catalog-hub-card:nth-child(n+3){grid-column:auto;min-height:390px}
  .gd-catalog-hub-card:nth-child(n+3) .gd-catalog-hub-card__overlay{background:linear-gradient(180deg,rgba(7,6,5,.04) 12%,rgba(7,6,5,.3) 52%,rgba(7,6,5,.92) 100%)}
  .gd-catalog-hub-card:nth-child(n+3) .gd-catalog-hub-card__copy{top:auto;bottom:0;justify-content:flex-start;max-width:none;padding:30px}
}

@media(max-width:700px){
  .gd-catalog--doors .gd-catalog-hero__media--split{height:315px;min-height:315px}
  .gd-catalog-hub{padding-block:22px 48px}
  .gd-catalog-hub__head{margin-bottom:16px}
  .gd-catalog-hub__head h2{font-size:34px}
  .gd-catalog-hub__head p{font-size:12px}
  .gd-catalog-hub__grid{gap:10px}
  .gd-catalog-hub-card,.gd-catalog-hub-card:nth-child(n+3){min-height:360px;border-radius:14px}
  .gd-catalog-hub-card__copy,.gd-catalog-hub-card:nth-child(n+3) .gd-catalog-hub-card__copy{padding:22px}
  .gd-catalog-hub-card__copy strong{font-size:30px}
  .gd-catalog-hub-card__copy>span{font-size:12px}
}

/* Stage 4.3.1 — global JoomShopping category skin. */
.gd-catalog-heading{padding-block:46px 20px}
.gd-catalog-heading h1{max-width:900px;margin:10px 0 0;color:var(--gd-text);font-size:clamp(42px,5vw,68px);line-height:.96;letter-spacing:-.05em;font-weight:750}
.gd-catalog-heading>p{max-width:760px;margin:17px 0 0;color:var(--gd-muted);font-size:14px;line-height:1.65}
.gd-catalog-category-section{padding-block:12px 64px}
.gd-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.gd-category-card{position:relative;isolation:isolate;min-width:0;min-height:330px;overflow:hidden;border:1px solid var(--gd-line);border-radius:var(--gd-radius-lg);background:var(--gd-surface);color:#fff;text-decoration:none;box-shadow:var(--gd-shadow-sm);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.gd-category-card__media,.gd-category-card__shade{position:absolute;inset:0}
.gd-category-card__media{background:var(--gd-surface-soft)}
.gd-category-card__media img{width:100%;height:100%;display:block;object-fit:cover;object-position:center;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.gd-category-card__shade{z-index:1;background:linear-gradient(180deg,rgba(7,6,5,.03) 10%,rgba(7,6,5,.24) 48%,rgba(7,6,5,.92) 100%)}
.gd-category-card__copy{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:24px;display:flex;flex-direction:column;align-items:flex-start}
.gd-category-card__copy small{color:var(--gd-gold-bright);font-size:8px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.gd-category-card__copy strong{margin-top:7px;color:#fff;font-size:clamp(22px,2vw,30px);line-height:1.02;letter-spacing:-.035em}
.gd-category-card__copy>span{max-width:420px;margin-top:8px;color:rgba(255,255,255,.75);font-size:11px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gd-category-card__copy b{margin-top:14px;display:inline-flex;align-items:center;gap:7px;color:#fff;font-size:10px;font-weight:850}
.gd-category-card__copy b i{color:var(--gd-gold-bright);font-style:normal;font-size:14px;transition:transform .2s ease}
.gd-category-card:hover{transform:translateY(-2px);border-color:var(--gd-line-strong);box-shadow:var(--gd-shadow-md)}
.gd-category-card:hover .gd-category-card__media img{transform:scale(1.025)}
.gd-category-card:hover .gd-category-card__copy b i{transform:translateX(4px)}

@media(max-width:1080px){
  .gd-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .gd-catalog-heading{padding-block:30px 14px}
  .gd-catalog-heading h1{font-size:42px}
  .gd-catalog-heading>p{font-size:13px}
  .gd-catalog-category-section{padding-block:8px 42px}
  .gd-category-grid{grid-template-columns:1fr;gap:10px}
  .gd-category-card{min-height:310px;border-radius:14px}
  .gd-category-card__copy{padding:21px}
  .gd-category-card__copy strong{font-size:28px}
  .gd-category-card__copy>span{font-size:12px}
}

/* Stage 4.4.0 — shared product-list skin for every JoomShopping category. */
.gd-catalog-list--generic .gd-product-row{--gd-product-media-height:270px}
.gd-product-card--generic .gd-product-card__media img{padding:18px}
.gd-product-card--generic .gd-product-card__kind{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gd-product-card__price{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.gd-product-card__price del{color:var(--gd-muted);font-size:11px;line-height:1;font-weight:650;text-decoration-thickness:1px}
.gd-product-card__price strong{color:var(--gd-text);font:inherit;font-weight:800}

@media(max-width:700px){
  .gd-catalog-list--generic .gd-product-row{--gd-product-media-height:300px}
  .gd-product-card--generic .gd-product-card__media img{padding:14px}
}

/* AVIF/WebP picture wrappers must preserve the exact hero geometry. */
.gd-catalog-hero__media picture{display:block;min-width:0;width:100%;height:100%}
.gd-catalog--doors .gd-catalog-hero__media--split picture:first-child img{object-position:68% center}
.gd-catalog--doors .gd-catalog-hero__media--split picture:last-child img{object-position:56% center}
