/* Catalog CSS — vorota-kyivshchyny green theme */

/* Page hero */
.page-hero{background:linear-gradient(135deg,var(--g-dark) 0%,var(--g-deep) 40%,var(--g) 100%);color:#fff;padding:3rem 0 2.5rem;min-height:280px;display:flex;align-items:center;position:relative;overflow:hidden}
.page-hero::before{content:'';position:absolute;top:-50%;right:-10%;width:400px;height:400px;border:60px solid rgba(255,255,255,.06);border-radius:50%;pointer-events:none}
.page-hero::after{content:'';position:absolute;bottom:-40%;left:-8%;width:300px;height:300px;border:45px solid rgba(255,255,255,.04);border-radius:50%;pointer-events:none}
.page-hero h1{font-family:'Montserrat',sans-serif;font-size:2.2rem;font-weight:800;margin-bottom:.75rem;line-height:1.2}
.page-hero h1 span{color:rgba(255,255,255,.85)}
.page-hero p{font-size:1.05rem;opacity:.88;max-width:700px;line-height:1.6}
.page-hero-breadcrumb .breadcrumb{font-size:.82rem}
.page-hero-breadcrumb .breadcrumb-item a{color:rgba(255,255,255,.7);text-decoration:none}
.page-hero-breadcrumb .breadcrumb-item a:hover{color:#fff}
.page-hero-breadcrumb .breadcrumb-item.active{color:rgba(255,255,255,.5)}
.page-hero-breadcrumb .breadcrumb-item+.breadcrumb-item::before{color:rgba(255,255,255,.4)}

/* Section padding */
.section-padding{padding:4rem 0}
.section-bg{background:var(--off-white)}

/* Section title */
.section-title{font-family:'Montserrat',sans-serif;font-size:1.5rem;font-weight:700;color:var(--text);margin-bottom:1rem}

/* Catalog card */
.catalog-card{display:block;background:#fff;border-radius:16px;padding:2rem;text-decoration:none;color:var(--text);box-shadow:0 2px 15px rgba(0,0,0,.06);transition:all .3s;border:1px solid var(--border);position:relative;overflow:hidden;height:100%}
.catalog-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(0,0,0,.12);border-color:var(--g);color:var(--text)}
.catalog-card__icon{width:60px;height:60px;background:var(--g-glow);border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem;font-size:1.5rem;color:var(--g);transition:all .3s}
.catalog-card:hover .catalog-card__icon{background:var(--g);color:#fff}
.catalog-card__title{font-family:'Montserrat',sans-serif;font-size:1.1rem;font-weight:700;color:var(--text);margin-bottom:.5rem;line-height:1.3}
.catalog-card__count{font-size:.85rem;color:var(--text-light);margin-bottom:.75rem}
.catalog-card__subcats{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.75rem}
.catalog-card__subcat{background:var(--off-white);color:var(--text-light);font-size:.78rem;padding:.25rem .65rem;border-radius:20px;font-weight:500}
.catalog-card__arrow{position:absolute;bottom:1.5rem;right:1.5rem;width:36px;height:36px;border-radius:50%;background:var(--off-white);display:flex;align-items:center;justify-content:center;transition:all .3s;color:var(--g)}
.catalog-card:hover .catalog-card__arrow{background:var(--g);color:#fff}

/* Product card */
.product-card{display:block;background:#fff;border-radius:14px;overflow:hidden;text-decoration:none;color:var(--text);box-shadow:0 2px 12px rgba(0,0,0,.05);transition:all .3s;border:1px solid var(--border);height:100%}
.product-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px rgba(0,0,0,.1);border-color:var(--g);color:var(--text)}
.product-card__image{height:220px;overflow:hidden;background:var(--off-white);display:flex;align-items:center;justify-content:center}
.product-card__image img{width:100%;height:100%;object-fit:contain;padding:.5rem;transition:transform .3s}
.product-card:hover .product-card__image img{transform:scale(1.05)}
.product-card__no-image{display:flex;align-items:center;justify-content:center;height:100%;font-size:3rem;color:var(--border)}
.product-card__body{padding:1.15rem}
.product-card__vendor{font-size:.78rem;color:var(--g);font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.35rem}
.product-card__title{font-family:'Montserrat',sans-serif;font-size:.95rem;font-weight:600;color:var(--text);margin-bottom:.6rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-card__price{font-size:1.15rem;font-weight:800;color:var(--g)}

/* Product gallery */
.product-gallery__main{border-radius:14px;overflow:hidden;background:var(--off-white);aspect-ratio:1/1;display:flex;align-items:center;justify-content:center}
.product-gallery__main img{max-width:100%;max-height:100%;object-fit:contain}
.product-gallery__placeholder{display:flex;align-items:center;justify-content:center}
.product-gallery__thumbs{display:flex;gap:.5rem;margin-top:.75rem;flex-wrap:wrap}
.product-gallery__thumb{width:70px;height:70px;border-radius:10px;overflow:hidden;border:2px solid transparent;cursor:pointer;transition:all .2s;background:var(--off-white)}
.product-gallery__thumb.active,.product-gallery__thumb:hover{border-color:var(--g)}
.product-gallery__thumb img{width:100%;height:100%;object-fit:contain}

/* Product detail */
.product-title{font-family:'Montserrat',sans-serif;font-size:1.8rem;font-weight:800;color:var(--text);margin-bottom:.75rem;line-height:1.25;padding-top:1rem}
.product-vendor{font-size:.9rem}
.product-price-block{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap}
.product-price{font-size:2rem;font-weight:800;color:var(--g)}
.product-stock{font-size:.85rem;font-weight:600;padding:.35rem .85rem;border-radius:50px}
.product-stock--in{background:rgba(40,167,69,.1);color:#28a745}
.product-stock--out{background:rgba(220,53,69,.1);color:#dc3545}

/* Order form */
.product-order-form{background:var(--off-white);border-radius:14px;padding:1.5rem;border:1px solid var(--border)}
.product-order-form__title{font-family:'Montserrat',sans-serif;font-size:1rem;font-weight:700;color:var(--text);margin-bottom:1rem}
.product-order-form .form-control{border-radius:10px;padding:.6rem 1rem;border:1px solid var(--border);font-size:.9rem}
.product-order-form .form-control:focus{border-color:var(--g);box-shadow:0 0 0 .2rem var(--g-glow)}

/* Green button */
.btn-green{background:linear-gradient(135deg,var(--g),var(--g-bright));color:#fff;border:none;border-radius:10px;padding:.7rem 1.5rem;font-weight:700;font-size:.95rem;transition:all .3s}
.btn-green:hover{background:linear-gradient(135deg,var(--g-deep),var(--g));color:#fff;transform:translateY(-1px);box-shadow:0 4px 15px rgba(13,138,82,.35)}

/* Product files */
.product-files{border-top:1px solid var(--border);padding-top:1rem}
.product-file-link{display:inline-flex;align-items:center;color:var(--g);text-decoration:none;font-weight:500;font-size:.9rem;padding:.4rem 0;transition:color .2s}
.product-file-link:hover{color:var(--g-deep)}
.product-section-title{font-family:'Montserrat',sans-serif;font-size:1rem;font-weight:700;color:var(--text);margin-bottom:.75rem}

/* Product tabs */
.product-tabs{background:#fff;border-radius:16px;box-shadow:0 2px 15px rgba(0,0,0,.06);border:1px solid var(--border);overflow:hidden}
.product-tabs__nav{display:flex;background:var(--off-white);border-bottom:1px solid var(--border);padding:0}
.product-tabs__btn{background:transparent;border:none;color:var(--text-light);font-weight:600;font-size:.95rem;padding:1rem 1.75rem;cursor:pointer;transition:all .25s;display:inline-flex;align-items:center;gap:.4rem;position:relative;border-bottom:3px solid transparent;margin-bottom:-1px}
.product-tabs__btn:hover{color:var(--text);background:rgba(255,255,255,.6)}
.product-tabs__btn.active{color:var(--g);background:#fff;border-bottom-color:var(--g)}
.product-tabs__btn i{font-size:1.05rem}
.product-tabs__content{padding:1.75rem}
.product-tabs__pane{display:none}
.product-tabs__pane.active{display:block}
.product-description{font-size:.95rem;line-height:1.7;color:var(--text-light)}
.product-description ul{padding-left:1.25rem;margin-bottom:1rem}
.product-description li{margin-bottom:.4rem}
.product-specs-table{width:100%;border-collapse:collapse}
.product-specs-table tr{border-bottom:1px solid var(--border)}
.product-specs-table tr:last-child{border-bottom:none}
.product-specs-table td{padding:.7rem .5rem;font-size:.9rem;vertical-align:top}
.product-specs-table__name{color:var(--text-light);font-weight:500;width:45%}
.product-specs-table__value{color:var(--text);font-weight:600}

/* Pagination */
.catalog-pagination-wrap{display:flex;flex-direction:column;align-items:center;gap:.75rem}
.catalog-pagination{display:flex;align-items:center;gap:.35rem;list-style:none;margin:0;padding:0}
.cp-link{display:flex;align-items:center;justify-content:center;min-width:42px;height:42px;border-radius:12px;font-weight:600;font-size:.92rem;color:var(--text);background:#fff;border:1px solid var(--border);text-decoration:none;transition:all .25s;cursor:pointer;padding:0 .5rem}
.cp-link:hover{background:var(--g-deep);color:#fff;border-color:var(--g-deep);transform:translateY(-1px);box-shadow:0 4px 12px rgba(13,138,82,.2)}
.cp-active .cp-link{background:var(--g);color:#fff;border-color:var(--g);box-shadow:0 4px 15px rgba(13,138,82,.35);font-weight:700}
.cp-active .cp-link:hover{background:var(--g-dark);border-color:var(--g-dark)}
.cp-disabled .cp-link{color:var(--border);background:var(--off-white);border-color:var(--border);cursor:default;pointer-events:none;box-shadow:none;transform:none}
.cp-dots .cp-link{border:none;background:transparent;color:var(--text-light);cursor:default;min-width:32px;font-size:1.1rem;letter-spacing:2px}
.cp-dots .cp-link:hover{background:transparent;color:var(--text-light);transform:none;box-shadow:none}
.cp-prev .cp-link,.cp-next .cp-link{font-size:1rem;padding:0 .65rem}
.cp-info{font-size:.82rem;color:var(--text-light);font-weight:500;letter-spacing:.3px}

/* SEO text */
.catalog-seo-text{max-width:900px;margin:0 auto}
.catalog-seo-text h2{font-family:'Montserrat',sans-serif;font-size:1.4rem;font-weight:700;color:var(--text);margin-bottom:1rem}
.catalog-seo-text p{color:var(--text-light);font-size:.95rem;line-height:1.8}

/* AJAX form success */
.ajax-form .alert-success{background:rgba(13,138,82,.1);border:1px solid var(--g);color:var(--g-deep);border-radius:10px;padding:.75rem 1rem;margin-top:.75rem;font-size:.9rem}

/* Responsive */
@media(max-width:767px){
    .page-hero{padding:3.5rem 0 2.5rem;min-height:200px}
    .page-hero h1{font-size:1.6rem}
    .page-hero::before{width:180px;height:180px;border-width:25px;top:-30%;right:-15%}
    .page-hero::after{width:140px;height:140px;border-width:20px;bottom:-25%;left:-12%}
    .product-title{font-size:1.4rem}
    .product-price{font-size:1.6rem}
    .product-card__image{height:180px}
    .catalog-card{padding:1.5rem}
    .product-gallery__thumb{width:55px;height:55px}
    .cp-link{min-width:36px;height:36px;font-size:.82rem;border-radius:10px}
    .catalog-pagination{gap:.25rem}
}
