/*
Theme Name: GreenPharma
Theme URI: https://seocrafts.com/
Author: Seocrafts
Description: Green pharmacy / health-store theme for WooCommerce. Top bar, search header with account, wishlist and cart, green menu bar, post slider with side banners, tabbed product grid, category list with product rows, articles section, consultation band and floating contact buttons (phone, email, Zalo, Messenger). Vietnamese-ready. Edit everything in Appearance → Customize → GreenPharma – Trang chủ.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
WC requires at least: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: greenpharma
Tags: e-commerce, custom-logo, custom-menu, featured-images, theme-options
*/

:root {
	--gp-main: #7BBC8E;
	--gp-logo: #5BAE73;
	--gp-price: #4BAFD6;
	--gp-text: #1F1F1F;
	--gp-muted: #666;
	--gp-line: #E5E5E5;
	--gp-max: 1800px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Roboto', 'Segoe UI', Arial, sans-serif; font-size: 18px; line-height: 1.6; color: var(--gp-text); background: #fff; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gp-logo); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 500; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.gp-skip:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: #fff; padding: 10px 16px; }
:focus-visible { outline: 3px solid var(--gp-logo); outline-offset: 2px; }
.gp-wrap { width: 100%; max-width: var(--gp-max); margin: 0 auto; padding: 0 116px; }
.gp-ic, .gp-logo-mark { flex-shrink: 0; vertical-align: middle; }
.gp-head-item span, .gp-head-cart span { white-space: nowrap; }
.gp-social { max-width: 360px; }

/* ---------- Top bar ---------- */
.gp-topbar { border-bottom: 1px solid #EEE; font-size: 18px; color: #555; }
.gp-topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 50px; gap: 20px; }
.gp-top-contact { display: flex; align-items: center; }
.gp-top-contact a { display: inline-flex; align-items: center; gap: 8px; }
.gp-top-contact a + a { margin-left: 14px; padding-left: 14px; border-left: 1px solid #DDD; }
.gp-top-notice { color: var(--gp-logo); font-weight: 700; letter-spacing: .01em; }
.gp-top-links { display: flex; gap: 20px; }

/* ---------- Header ---------- */
.gp-header-in { display: flex; align-items: center; gap: 32px; min-height: 125px; }
.gp-logo a { display: inline-flex; align-items: center; gap: 14px; }
.gp-logo span { font-size: 46px; font-weight: 700; color: var(--gp-logo); letter-spacing: -.01em; line-height: 1; }
.gp-logo img { max-height: 70px; width: auto; }
.gp-search { flex: 1; display: flex; max-width: 560px; margin-left: auto; height: 62px; }
.gp-search input { flex: 1; min-width: 0; border: 1px solid #D5D5D5; border-right: 0; padding: 0 16px; font: inherit; font-size: 20px; color: var(--gp-text); }
.gp-search input::placeholder { color: #8A8A8A; }
.gp-search button { width: 62px; border: 0; background: var(--gp-logo); color: #fff; display: flex; align-items: center; justify-content: center; }
.gp-head-actions { display: flex; align-items: center; gap: 44px; }
.gp-head-item { display: flex; align-items: center; gap: 14px; }
.gp-head-item .gp-ic { color: var(--gp-logo); }
.gp-head-item strong, .gp-head-cart strong { display: block; font-weight: 500; font-size: 22px; line-height: 1.3; }
.gp-head-item small { display: block; font-size: 18px; color: #555; }
.gp-head-cart { display: flex; align-items: center; gap: 12px; }
.gp-cart-label { font-size: 16px; color: #555; letter-spacing: .03em; }
.gp-cart-total { display: block; font-size: 18px; color: #555; text-decoration: underline; }
.gp-burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px 8px; margin-left: auto; }
.gp-burger span { display: block; height: 3px; background: var(--gp-logo); margin: 4px 0; border-radius: 2px; }

/* ---------- Nav ---------- */
.gp-nav { background: var(--gp-main); position: sticky; top: 0; z-index: 40; }
.gp-nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 20px; }
.gp-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 36px; }
.gp-menu li { position: relative; }
.gp-menu > li > a { display: flex; align-items: center; color: #fff; font-size: 21px; padding: 24px 0; }
.gp-menu > li > a:hover, .gp-menu > .current-menu-item > a { color: #fff; opacity: .85; }
.gp-menu .menu-item-has-children > a::after { content: ''; width: 7px; height: 7px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.gp-menu ul { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: -16px; min-width: 240px; background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 5; }
.gp-menu ul ul { top: 0; left: 100%; }
.gp-menu li:hover > ul, .gp-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.gp-menu ul a { display: block; padding: 9px 20px; font-size: 17px; }
.gp-nav-phone { background: #fff; color: var(--gp-logo); font-weight: 700; font-size: 26px; letter-spacing: .02em; padding: 10px 34px; border-radius: 999px; white-space: nowrap; }
.gp-nav-phone:hover { color: var(--gp-logo); opacity: .92; }

/* ---------- Hero ---------- */
.gp-hero { display: grid; grid-template-columns: minmax(0, 2.07fr) minmax(0, 1fr); gap: 40px; margin-top: 40px; }
.gp-slider { position: relative; overflow: hidden; background: #EEE; aspect-ratio: 1166 / 860; }
.gp-slider-track { display: flex; height: 100%; transition: transform .6s ease; }
.gp-slide { position: relative; flex: 0 0 100%; height: 100%; display: block; color: #fff; }
.gp-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-slide-empty { background: linear-gradient(135deg, var(--gp-main), var(--gp-logo)); }
.gp-slide-title { position: absolute; left: 56px; right: 56px; bottom: 50px; font-size: clamp(30px, 4.2vw, 76px); font-weight: 700; line-height: 1.12; text-shadow: 0 3px 16px rgba(0, 0, 0, .45); }
.gp-slide:hover { color: #fff; }
.gp-sl-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; color: rgba(255, 255, 255, .8); width: 48px; height: 64px; display: flex; align-items: center; justify-content: center; }
.gp-sl-arrow:hover { color: #fff; }
.gp-sl-prev { left: 8px; } .gp-sl-next { right: 8px; }

.gp-hero-banners { display: grid; grid-template-rows: 1fr 1fr; gap: 44px; }
.gp-banner { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 40px 42px; background-size: cover; background-position: center; color: #fff; min-height: 300px; }
.gp-banner:hover { color: #fff; }
.gp-banner-1 { background-color: #C9A383; background-image: radial-gradient(circle at 78% 35%, #E6C3A2 0 22%, transparent 23%), linear-gradient(135deg, #D7B392, #B48A68); }
.gp-banner-art { position: absolute; right: -30px; top: 30px; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #F1D3B6, #D8A982 60%, #C4916A); opacity: .9; }
.gp-banner-brand { position: relative; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #1D3A6E; background: rgba(255, 255, 255, .75); align-self: flex-start; padding: 4px 10px; margin-bottom: 24px; }
.gp-banner-title { position: relative; font-size: clamp(26px, 2.4vw, 46px); font-weight: 700; line-height: 1.15; max-width: 300px; margin-bottom: 18px; text-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.gp-banner-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .12em; font-size: 20px; }
.gp-banner-2 { background-color: #1E4A2C; background-image: radial-gradient(ellipse at 80% 20%, #3E8A4C 0 25%, transparent 26%), repeating-linear-gradient(115deg, #24563A 0 18px, #1C4430 18px 36px); align-items: flex-end; justify-content: flex-end; }
.gp-banner2-text { text-align: center; }
.gp-banner2-text strong { display: block; font-size: clamp(36px, 3.4vw, 64px); font-weight: 400; letter-spacing: .06em; line-height: 1; }
.gp-banner2-text small { display: block; font-size: 15px; letter-spacing: .5em; margin-top: 8px; }

/* ---------- Tabs + grid ---------- */
.gp-tabs-sec { margin-top: 44px; }
.gp-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 44px; }
.gp-tabs button { border: 0; background: #F4F4F4; min-height: 90px; font-size: 24px; font-weight: 500; color: var(--gp-text); padding: 10px; }
.gp-tabs button[aria-selected="true"] { background: var(--gp-main); color: #fff; }
.gp-tabs button:hover { background: #E8F3EB; }
.gp-tabs button[aria-selected="true"]:hover { background: var(--gp-main); }
.gp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 44px; }
[hidden] { display: none !important; }
.gp-empty { grid-column: 1 / -1; text-align: center; color: var(--gp-muted); }

.gp-card { position: relative; border: 1px solid var(--gp-line); padding: 40px 20px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: box-shadow .25s; }
.gp-card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
.gp-card-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1.15; margin-bottom: 28px; }
.gp-card-img img { max-height: 100%; width: auto; object-fit: contain; }
.gp-card-title { font-size: 24px; font-weight: 400; line-height: 1.35; min-height: 2.7em; margin-bottom: 14px; }
.gp-card-title a:hover, .gp-row-title a:hover { color: var(--gp-logo); }
.gp-badge { position: absolute; top: 20px; left: 12px; width: 66px; height: 66px; border-radius: 50%; background: #EEE; color: var(--gp-logo); font-size: 24px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.gp-demo-img { width: 100%; height: 100%; background: #F6F6F6; color: #C8C8C8; display: flex; align-items: center; justify-content: center; }

.gp-stars { position: relative; width: 96px; height: 18px; margin: 0 auto 10px; background: no-repeat 0 0 / 19.2px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23DDD' d='M12 2l3 6.6 7 .7-5.3 4.7 1.6 7L12 17.3 5.7 21l1.6-7L2 9.3l7-.7z'/%3E%3C/svg%3E"); background-repeat: repeat-x; }
.gp-stars span { position: absolute; inset: 0 auto 0 0; background: repeat-x 0 0 / 19.2px 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F2B824' d='M12 2l3 6.6 7 .7-5.3 4.7 1.6 7L12 17.3 5.7 21l1.6-7L2 9.3l7-.7z'/%3E%3C/svg%3E"); }
.gp-price { color: var(--gp-price); font-size: 25px; font-weight: 500; margin-bottom: 20px; }
.gp-price ins { text-decoration: underline; background: none; }
.gp-price del { color: #9A9A9A; font-size: 21px; font-weight: 400; margin-right: 8px; }
.gp-price .woocommerce-Price-amount { text-decoration: underline; }
.gp-price del .woocommerce-Price-amount { text-decoration: line-through; }

.gp-cart-btn, .gp-woo .button, .gp-woo button.button, .gp-woo a.button { display: inline-flex; align-items: center; gap: 10px; background: var(--gp-main); color: #fff !important; border: 0; border-radius: 0; padding: 0 22px; min-height: 58px; font-size: 19px; letter-spacing: .03em; font-weight: 400; }
.gp-cart-btn:hover, .gp-woo .button:hover { background: var(--gp-logo); color: #fff; }
.gp-cart-btn.added::after { content: '✓'; margin-left: 4px; }
.gp-card .added_to_cart, .gp-row .added_to_cart { display: block; margin-top: 8px; font-size: 15px; color: var(--gp-logo); }

/* ---------- Mask banner ---------- */
.gp-mask { display: flex; align-items: flex-end; background: #F1F3F6; margin-top: 44px; overflow: hidden; height: 230px; }
.gp-mask:hover { color: inherit; }
.gp-mask-copy { flex: 0 0 auto; align-self: center; padding: 0 40px; }
.gp-mask-copy strong { display: block; font-size: 38px; font-weight: 700; line-height: 1.2; color: #2A2A2A; margin-bottom: 18px; }
.gp-mask-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gp-main); font-weight: 700; letter-spacing: .1em; font-size: 20px; }
.gp-mask-faces { display: flex; flex: 1; overflow: hidden; height: 100%; align-items: flex-end; }
.gp-face { flex: 0 0 auto; height: 100%; width: auto; margin-right: -14px; }

/* ---------- Category block ---------- */
.gp-catblock { display: grid; grid-template-columns: minmax(0, 412px) minmax(0, 1fr); gap: 42px; margin-top: 42px; align-items: start; }
.gp-catside h2 { font-size: 46px; font-weight: 700; margin-bottom: 18px; }
.gp-catside > p { font-size: 22px; color: #555; margin-bottom: 30px; }
.gp-cat-list { list-style: none; margin: 0 0 42px; padding: 16px 20px; border: 1px solid var(--gp-line); }
.gp-cat-list a { display: flex; align-items: center; gap: 20px; padding: 13px 0; font-size: 22px; }
.gp-cat-thumb { width: 42px; height: 42px; border: 1px solid #CCC; display: flex; align-items: center; justify-content: center; color: #999; flex-shrink: 0; overflow: hidden; }
.gp-cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gp-cat-name { flex: 1; }
.gp-cat-arrow { color: #333; }
.gp-side-banner { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 304px; padding: 36px; color: #fff; background-color: #A9C6D8; background-image: radial-gradient(circle at 80% 45%, #E9C7A8 0 26%, transparent 27%), linear-gradient(160deg, #BFD6E4, #8FB2C8); background-size: cover; background-position: center; }
.gp-side-banner:hover { color: #fff; }
.gp-side-banner .gp-banner-title { font-size: 30px; max-width: 240px; }

.gp-rows { display: flex; flex-direction: column; gap: 28px; }
.gp-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 50px; align-items: center; border: 1px solid var(--gp-line); padding: 46px 40px 46px 50px; transition: border-color .2s, box-shadow .2s; }
.gp-row:hover { border-color: var(--gp-main); box-shadow: 0 10px 26px rgba(0, 0, 0, .06); }
.gp-row-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1.2; }
.gp-row-img img { max-height: 220px; width: auto; object-fit: contain; }
.gp-row-title { font-size: 25px; font-weight: 400; margin-bottom: 14px; }
.gp-row:hover .gp-row-title a { color: var(--gp-logo); }
.gp-row .gp-stars { margin: 0 0 10px; }
.gp-row .gp-price { margin-bottom: 14px; }
.gp-row-excerpt { color: #555; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 22px; }

/* ---------- Blog ---------- */
.gp-blog { background: #F7F7F7; margin-top: 80px; padding: 80px 0 90px; }
.gp-blog-title { text-align: center; font-size: 60px; font-weight: 700; margin-bottom: 18px; }
.gp-blog-sub { text-align: center; font-size: 22px; color: #666; margin-bottom: 52px; }
.gp-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.gp-post-img { position: relative; display: block; aspect-ratio: 562 / 421; overflow: hidden; margin-bottom: 26px; }
.gp-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.gp-post:hover .gp-post-img img { transform: scale(1.04); }
.gp-post-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #DDEFE2, #F3F8F4); }
.gp-date { position: absolute; top: 20px; left: 20px; width: 82px; height: 82px; border-radius: 50%; background: var(--gp-main); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 15px; line-height: 1.15; }
.gp-date b { font-size: 21px; font-weight: 500; }
.gp-post h3 { font-size: 36px; font-weight: 500; line-height: 1.27; margin-bottom: 16px; }
.gp-post h3 a:hover { color: var(--gp-logo); }
.gp-post p { color: #555; font-size: 20px; }

/* ---------- CTA band ---------- */
.gp-cta { background: var(--gp-main); color: #fff; padding: 52px 0; }
.gp-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.gp-cta h2 { font-size: 34px; font-weight: 700; margin-bottom: 14px; }
.gp-cta p { margin: 0; font-size: 20px; opacity: .95; }
.gp-cta-btns { display: flex; gap: 30px; flex-shrink: 0; }
.gp-cta-phone, .gp-cta-msg { display: inline-flex; align-items: center; gap: 14px; height: 62px; padding: 0 30px; border-radius: 999px; font-size: 24px; font-weight: 500; letter-spacing: .03em; }
.gp-cta-phone { background: #4CA45E; color: #fff; }
.gp-cta-phone:hover { color: #fff; background: #3E9150; }
.gp-cta-msg { background: #fff; color: #444; }
.gp-cta-msg:hover { color: #222; }

/* ---------- Footer ---------- */
.gp-footer { padding-top: 60px; }
.gp-ft-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-bottom: 60px; }
.gp-footer h3 { font-size: 28px; font-weight: 700; margin-bottom: 22px; }
.gp-logo-ft { margin-bottom: 22px; }
.gp-logo-ft span { font-size: 38px; }
.gp-logo-ft .gp-logo-mark { width: 54px; height: 54px; }
.gp-ft-contact, .gp-ft-links { list-style: none; margin: 0; padding: 0; }
.gp-ft-contact li { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 21px; }
.gp-ft-links li { margin-bottom: 14px; font-size: 21px; }
.gp-social { display: flex; flex-wrap: wrap; gap: 4px; }
.gp-social a { width: 50px; height: 50px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.gp-social a:hover { color: #fff; transform: translateY(-3px); }
.gp-copy { background: var(--gp-main); color: #fff; text-align: center; padding: 30px 16px; font-size: 20px; }

/* ---------- Floating buttons ---------- */
.gp-float { position: fixed; right: 26px; bottom: 50px; display: flex; flex-direction: column; gap: 20px; z-index: 60; }
.gp-float a { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .2s; }
.gp-float a:hover { transform: scale(1.08); color: #fff; }
.gp-fl-phone { background: #2F7BF0; animation: gp-ring 2s infinite; }
.gp-fl-mail { background: #F07229; }
.gp-fl-zalo { background: #2F7BF0; }
.gp-fl-msg { background: #E3322F; }
@keyframes gp-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 123, 240, .5); } 70% { box-shadow: 0 0 0 14px rgba(47, 123, 240, 0); } }
.gp-totop { position: fixed; left: 26px; bottom: 30px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--gp-main); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: .25s; z-index: 59; }
.gp-totop.is-on { opacity: 1; visibility: visible; }

/* ---------- Inner pages ---------- */
.gp-pagehead { background: #F4F9F5; padding: 50px 0; border-bottom: 1px solid #E3EFE6; }
.gp-pagehead h1 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; margin: 0; }
.gp-meta { color: var(--gp-muted); font-size: 16px; margin-bottom: 8px; }
.gp-meta a { color: var(--gp-logo); }
.gp-page-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 50px; padding-top: 50px; padding-bottom: 70px; }
.gp-page-layout:has(.gp-sidebar) { grid-template-columns: minmax(0, 1fr) 340px; }
.gp-blog-grid-archive { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gp-blog-grid-archive .gp-post h3 { font-size: 24px; }
.gp-blog-grid-archive .gp-post p { font-size: 17px; }
.gp-entry { font-size: 19px; }
.gp-entry a { color: var(--gp-logo); text-decoration: underline; }
.gp-entry h2 { font-size: 32px; font-weight: 700; margin-top: 1.5em; }
.gp-entry h3 { font-size: 26px; margin-top: 1.3em; }
.gp-entry img { height: auto; }
.gp-entry blockquote { margin: 1.5em 0; padding: 14px 24px; border-left: 4px solid var(--gp-main); background: #F4F9F5; }
.gp-entry table { width: 100%; border-collapse: collapse; }
.gp-entry th, .gp-entry td { border: 1px solid var(--gp-line); padding: 10px; }
.gp-featured { margin: 0 0 28px; }
.gp-page-body { padding-top: 50px; padding-bottom: 70px; max-width: 1100px; }
.gp-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; background: #F0F7F2; font-size: 14px; text-decoration: none; }
.gp-postnav { display: flex; justify-content: space-between; gap: 20px; margin: 40px 0; padding-top: 20px; border-top: 1px solid var(--gp-line); }
.gp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.gp-pagination .page-numbers { min-width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gp-line); padding: 0 12px; }
.gp-pagination .current, .gp-pagination a:hover { background: var(--gp-main); border-color: var(--gp-main); color: #fff; }
.gp-sidebar .widget { margin-bottom: 36px; }
.gp-sidebar .widget-title { font-size: 24px; font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--gp-main); }
.gp-sidebar ul { list-style: none; padding: 0; margin: 0; }
.gp-sidebar li { padding: 8px 0; border-bottom: 1px solid var(--gp-line); }
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 20px 0; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #D5D5D5; font: inherit; }
.search-submit { height: 50px; padding: 0 22px; border: 0; background: var(--gp-logo); color: #fff; }
.gp-404 { text-align: center; padding: 80px 20px; }
.gp-404 .search-form { margin: 24px auto; }
.gp-404-code { font-size: 140px; font-weight: 700; color: var(--gp-main); line-height: 1; margin: 0; }

/* ---------- WooCommerce ---------- */
.gp-woo { padding-top: 30px; padding-bottom: 70px; }
.gp-woo .woocommerce-breadcrumb { font-size: 15px; color: var(--gp-muted); margin-bottom: 20px; }
.gp-woo .woocommerce-products-header__title, .gp-woo .product_title { font-size: 36px; font-weight: 700; }
.gp-woo ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.gp-woo ul.products::before, .gp-woo ul.products::after { display: none; }
.gp-woo ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; border: 1px solid var(--gp-line); padding: 26px 18px; text-align: center; position: relative; }
.gp-woo ul.products li.product img { aspect-ratio: 1; object-fit: contain; margin-bottom: 16px; }
.gp-woo ul.products li.product .woocommerce-loop-product__title { font-size: 20px; font-weight: 400; }
.gp-woo .price { color: var(--gp-price) !important; font-size: 22px; font-weight: 500; }
.gp-woo .onsale { position: absolute; top: 14px; left: 14px; width: 58px; height: 58px; border-radius: 50%; background: #EEE; color: var(--gp-logo); display: flex; align-items: center; justify-content: center; font-size: 15px; z-index: 2; }
.gp-woo .star-rating { color: #F2B824; margin: 0 auto 8px; }
.gp-woo div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; }
.gp-woo div.product .woocommerce-tabs, .gp-woo div.product .related, .gp-woo div.product .upsells { grid-column: 1 / -1; }
.gp-woo .quantity input { height: 58px; width: 80px; border: 1px solid #D5D5D5; text-align: center; font: inherit; }
.gp-woo table.shop_table { width: 100%; border-collapse: collapse; }
.gp-woo table.shop_table th, .gp-woo table.shop_table td { border-bottom: 1px solid var(--gp-line); padding: 14px 10px; text-align: left; }
.gp-woo input.input-text, .gp-woo select, .gp-woo textarea { width: 100%; min-height: 50px; border: 1px solid #D5D5D5; padding: 8px 12px; font: inherit; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; padding: 16px 20px; margin: 0 0 24px; background: #F0F7F2; border-left: 4px solid var(--gp-main); }
.woocommerce-error { background: #FDF0F0; border-color: #D9534F; }

/* ---------- Responsive ---------- */
@media (max-width: 1600px) {
	.gp-wrap { padding: 0 60px; }
	.gp-head-actions { gap: 26px; }
	.gp-menu { gap: 0 22px; flex-wrap: nowrap; }
	.gp-menu > li > a { font-size: 18px; white-space: nowrap; }
	.gp-nav-phone { font-size: 21px; padding: 8px 24px; }
}
@media (max-width: 1500px) {
	.gp-wrap { padding: 0 40px; }
	.gp-menu { gap: 0 16px; }
	.gp-menu > li > a { font-size: 16px; }
	.gp-head-item small { display: none; }
	.gp-head-actions { gap: 20px; }
}
@media (max-width: 1360px) {
	body { font-size: 17px; }
	.gp-wrap { padding: 0 30px; }
	.gp-logo span { font-size: 36px; }
	.gp-logo .gp-logo-mark { width: 52px; height: 52px; }
	.gp-head-item small { display: none; }
	.gp-menu > li > a { font-size: 17px; padding: 22px 0; }
	.gp-menu { gap: 0 18px; }
	.gp-nav-phone { font-size: 20px; padding: 8px 22px; }
	.gp-grid { gap: 26px; }
	.gp-card-title { font-size: 20px; }
	.gp-tabs button { font-size: 20px; min-height: 70px; }
	.gp-post h3 { font-size: 28px; }
	.gp-blog-title { font-size: 46px; }
	.gp-row { gap: 30px; padding: 30px; }
	.gp-cat-list a, .gp-catside > p { font-size: 19px; }
	.gp-cta-in { flex-direction: column; align-items: flex-start; }
	.gp-woo ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
	.gp-topbar-in { justify-content: center; flex-wrap: wrap; font-size: 15px; padding: 8px 0; }
	.gp-top-links { display: none; }
	.gp-header-in { flex-wrap: wrap; min-height: 0; padding: 16px 0; gap: 14px; }
	.gp-burger { display: block; }
	.gp-search { order: 3; flex: 0 0 100%; max-width: none; height: 50px; }
	.gp-search button { width: 50px; }
	.gp-head-actions { gap: 14px; }
	.gp-head-item span { display: none; }
	.gp-head-item .gp-ic { width: 38px; height: 38px; }
	.gp-cart-label { display: none; }
	.gp-nav { display: none; }
	.gp-nav.is-open { display: block; }
	.gp-nav-in { flex-direction: column; align-items: stretch; padding-top: 10px; padding-bottom: 20px; }
	.gp-menu { flex-direction: column; }
	.gp-menu > li > a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
	.gp-menu ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding-left: 16px; }
	.gp-menu ul a { color: #fff; }
	.gp-nav-phone { align-self: flex-start; }
	.gp-hero { grid-template-columns: 1fr; gap: 20px; }
	.gp-hero-banners { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 20px; }
	.gp-banner { min-height: 220px; padding: 26px; }
	.gp-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gp-catblock { grid-template-columns: 1fr; }
	.gp-blog-grid { grid-template-columns: 1fr 1fr; }
	.gp-ft-grid { grid-template-columns: 1fr 1fr; }
	.gp-page-layout:has(.gp-sidebar) { grid-template-columns: 1fr; }
	.gp-woo div.product { grid-template-columns: 1fr; }
	.gp-woo ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	body { font-size: 16px; }
	.gp-wrap { padding: 0 16px; }
	.gp-top-contact { display: none; }
	.gp-logo span { font-size: 28px; }
	.gp-logo .gp-logo-mark { width: 42px; height: 42px; }
	.gp-head-item:nth-child(2) { display: none; }
	.gp-slider { aspect-ratio: 4 / 3; }
	.gp-slide-title { left: 20px; right: 20px; bottom: 20px; font-size: 26px; }
	.gp-hero-banners { grid-template-columns: 1fr; }
	.gp-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gp-tabs button { font-size: 16px; min-height: 54px; }
	.gp-grid { gap: 14px; }
	.gp-card { padding: 24px 10px 18px; }
	.gp-card-title { font-size: 16px; }
	.gp-price { font-size: 19px; }
	.gp-price del { font-size: 15px; }
	.gp-cart-btn { min-height: 46px; font-size: 15px; padding: 0 12px; }
	.gp-badge { width: 48px; height: 48px; font-size: 16px; top: 10px; left: 8px; }
	.gp-mask { height: 170px; }
	.gp-mask-copy { padding: 0 20px; }
	.gp-mask-copy strong { font-size: 24px; }
	.gp-mask-link { font-size: 15px; }
	.gp-catside h2 { font-size: 34px; }
	.gp-row { grid-template-columns: 1fr; text-align: center; }
	.gp-row .gp-stars { margin: 0 auto 10px; }
	.gp-row-excerpt { white-space: normal; font-size: 16px; }
	.gp-blog { padding: 50px 0; }
	.gp-blog-title { font-size: 34px; }
	.gp-blog-grid { grid-template-columns: 1fr; }
	.gp-post h3 { font-size: 24px; }
	.gp-cta h2 { font-size: 24px; }
	.gp-cta-btns { flex-direction: column; gap: 14px; width: 100%; }
	.gp-cta-phone, .gp-cta-msg { justify-content: center; font-size: 20px; }
	.gp-ft-grid { grid-template-columns: 1fr; }
	.gp-float { right: 12px; bottom: 20px; gap: 12px; }
	.gp-float a { width: 50px; height: 50px; }
	.gp-woo ul.products { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
