/* Footer presentation only; mobile navigation and WhatsApp retain their own rules. */
footer.n1-site-footer {background:#faf9fc;border-top:1px solid #e9e5ef;margin-top:36px;padding:42px 0 0;color:#655f70;}
footer.n1-site-footer > .container {width:100%;max-width:1512px;padding:0 24px;margin:0 auto;}
.n1-site-footer .n1-footer-grid {display:grid;grid-template-columns:1.15fr 1fr 1fr 1fr;gap:32px;align-items:start;padding-bottom:30px;}
.n1-site-footer .n1-footer-brand {padding-top:5px;}
.n1-site-footer .n1-footer-brand a {display:inline-block;max-width:100%;}
.n1-site-footer .n1-footer-brand img {display:block;width:230px;max-width:100%;height:auto;}
.n1-site-footer .n1-footer-links h5 {font:600 16px/1.5 "Open Sans",Arial,sans-serif;color:#292334;margin:0 0 15px;}
.n1-site-footer .n1-footer-links ul {list-style:none;padding:0;margin:0;}
.n1-site-footer .n1-footer-links li {margin:0 0 9px;padding:0;}
.n1-site-footer .n1-footer-links a {font:400 13px/1.6 "Open Sans",Arial,sans-serif;color:#655f70;text-decoration:none;}
.n1-site-footer .n1-footer-links a:hover {color:#7136b9;text-decoration:underline;}
.n1-site-footer .n1-footer-grid a:focus-visible {outline:2px solid #7136b9;outline-offset:4px;}
.n1-site-footer .n1-footer-copyright {border-top:1px solid #e9e5ef;padding:20px 0;font:400 12px/1.7 "Open Sans",Arial,sans-serif;color:#77717f;}
@media(max-width:991px) {
 .n1-site-footer .n1-footer-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
 .n1-site-footer .n1-footer-brand {grid-column:1/-1;}
}
@media(max-width:575px) {
 footer.n1-site-footer {padding-top:28px;}
 footer.n1-site-footer > .container {padding:0 18px;}
 .n1-site-footer .n1-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px;}
 .n1-site-footer .n1-footer-brand img {width:200px;}
}

/* v4: existing search markup and side-panel links remain intact. */
header #search.input-group {display:flex;align-items:stretch;width:100%;height:48px;border:1px solid #e2d9ef;border-radius:14px;background:#faf8fd;overflow:hidden;}
header #search.input-group input[name="search"] {flex:1 1 auto;width:0;min-width:0;height:46px;padding:0 18px;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:14px;}
header #search.input-group .input-group-btn {display:flex;flex:0 0 52px;width:52px;position:static;}
header #search.input-group .input-group-btn > button {display:flex;align-items:center;justify-content:center;position:static;width:52px;height:46px;margin:0;padding:0;border:0;border-radius:0;background:#7136b9;color:#fff;box-shadow:none;}
header #search.input-group .input-group-btn > button:hover {background:#59258f;}
header #search.input-group .input-group-btn > button i {position:static;color:inherit;}
header #search.input-group:focus-within {outline:2px solid #a77cd6;outline-offset:2px;}
@media(min-width:769px) {
 body #side-panel {background:#fff;border:1px solid #e6deef;border-radius:16px;padding:5px;box-shadow:0 6px 24px rgba(41,25,60,.12);overflow:visible;}
 body #side-panel a {width:42px;height:44px;padding:10px;border-radius:10px;color:#7136b9;}
 body #side-panel svg {width:22px;height:22px;stroke:currentColor;}
 body #side-panel a:hover {background:#f1eafa;color:#59258f;}
 body #side-panel svg:hover {transform:none;}
 body #side-panel a:focus-visible {outline:2px solid #7136b9;outline-offset:1px;}
}

/* v5: category/product presentation, without replacing their templates or handlers. */
header #search.input-group button .fa-search,
header #search.input-group button .fa-search:before {color:#fff!important;}
#product-category,#product-product {font-family:"Open Sans",Arial,sans-serif;color:#353040;}
#product-category h2,#product-category h3,#product-product h1,#product-product h2,#product-product h3,#product-category .product-thumb h4,#product-product .product-thumb h4 {font-family:"Open Sans",Arial,sans-serif;line-height:1.4;color:#292334;}
#product-category #content>h2 {font-size:28px;font-weight:600;margin-top:0;}
#product-category #content>h3,#product-product h3 {font-size:23px;font-weight:600;}
#product-product h1 {font-size:27px;font-weight:600;}
#product-category .breadcrumb,#product-product .breadcrumb {line-height:1.7;white-space:normal;overflow-wrap:anywhere;}
#product-category #column-left .list-group {background:#faf8fd;border:1px solid #e8e1f0;border-radius:14px;box-shadow:none;overflow:hidden;}
#product-category #column-left .list-group-item {background:transparent;border-color:#eee8f5;color:#50485d;font-size:13px;line-height:1.6;}
#product-category #column-left .list-group-item.active {background:#f0e8fa;color:#7136b9;font-weight:600;}
#product-category #column-left .list-group-item:before,#product-category #column-left .list-group-item:after {background-image:none;}
#product-category #content>h3 + .row li a {background:#faf8fd;border:1px solid #e8e1f0;border-radius:10px;line-height:1.5;color:#50485d;}
#product-category #input-sort,#product-category #input-limit {border-radius:8px;min-height:38px;}
#product-category .product-thumb,#product-product .related-carousel-item .product-thumb {border:1px solid #e8e1f0;border-radius:16px;background:#fff;box-shadow:none;}
#product-category .product-grid .product-thumb .image {padding:14px;}
#product-category .product-grid .product-thumb .image a {display:flex;align-items:center;justify-content:center;height:220px;margin:0;}
#product-category .product-grid .product-thumb .image img {width:100%;height:100%;object-fit:contain;}
#product-category .product-thumb h4 a,#product-product .product-thumb h4 a {font:600 14px/1.5 "Open Sans",Arial,sans-serif;color:#353040;}
#product-category .product-grid .product-thumb .caption {min-height:145px;padding:12px 16px;}
#product-category .product-thumb .price,#product-product .product-thumb .price {font:700 19px/1.5 "Open Sans",Arial,sans-serif;color:#292334;}
#product-category .product-thumb .button-group {padding:8px 16px 16px;}
#product-category .product-thumb .button-group button[onclick*="cart.add"],
#product-product .product-thumb .button-group button[onclick*="cart.add"],
#product-product #button-cart {
 background:#7136b9!important;background-image:none!important;border:1px solid #7136b9;border-radius:10px;box-shadow:none!important;color:#fff;
 min-height:44px;height:auto;line-height:1.5;padding:11px 16px;margin-top:0;
}
#product-category .product-thumb .button-group button[onclick*="cart.add"]:before,
#product-category .product-thumb .button-group button[onclick*="cart.add"]:after,
#product-product .product-thumb .button-group button[onclick*="cart.add"]:before,
#product-product .product-thumb .button-group button[onclick*="cart.add"]:after,
#product-product #button-cart:before,#product-product #button-cart:after {display:none!important;}
#product-product #input-quantity {border:1px solid #ddd4e8;background:#faf8fd;border-radius:10px;min-height:44px;color:#353040;}
#product-product .nav-tabs {background:#faf8fd;border:1px solid #e8e1f0;border-radius:12px;}
#product-product .nav-tabs>li>a {color:#655575;font-family:"Open Sans",Arial,sans-serif;}
#product-product .nav-tabs>li.active>a {background:#f0e8fa;color:#7136b9;border-color:transparent;}
#product-product .tab-content {line-height:1.8;}
#product-product .tab-content img {max-width:100%;height:auto;}
#product-product .tab-content table {max-width:100%;}
#product-product a:focus-visible,#product-category a:focus-visible,#product-product button:focus-visible,#product-category button:focus-visible {outline:2px solid #8b5cf6;outline-offset:3px;}
@media(max-width:767px) {
 /* WhatsApp remains available below the drawer/backdrop layer, not over categories. */
 body div#btnwhatsapp {z-index:1030!important;bottom:calc(80px + env(safe-area-inset-bottom))!important;}
 .mobile-pz-header .pz-cart-btn {color:#7136b9;}
 .mobile-pz-search-form button {background:#7136b9;}
 .mobile-pz-drawer li>a {font-size:13px;line-height:1.6;min-height:44px;}
 .mobile-pz-drawer {padding-bottom:calc(80px + env(safe-area-inset-bottom));}
 #common-home .custom-carousel-item .product-thumb {min-height:0!important;}
 #common-home .custom-carousel-item .caption {flex:0 1 auto;min-height:0!important;}
 #common-home .custom-carousel-item .product-thumb h4 {min-height:0;}
 #common-home .custom-carousel-item .button-group {margin-top:auto;padding-top:8px;}
 #product-category #content>h2,#product-product h1 {font-size:22px;}
 #product-category #content>h3,#product-product h3 {font-size:20px;}
 #product-category .product-grid .product-thumb .image a {height:165px;}
 #product-category .product-grid .product-thumb .caption {min-height:0;padding:10px 12px;}
 #product-category .product-thumb h4 a,#product-product .product-thumb h4 a {font-size:13px;}
 #product-category .product-thumb .button-group button[onclick*="cart.add"] {width:auto;max-width:100%;}
}
