/* =============================================
   Kerry Esthetician Theme Styles
   ============================================= */

:root {
  --kerry-primary: #7D9990;
  --kerry-bg: #FFF0F3;
  --kerry-accent: #ED00C1;
  --kerry-secondary: #FFB6C1;
  --kerry-cta-bg: #ED00C1;
  --kerry-cta-text: #ffffff;
  --kerry-text: #333333;
  --kerry-text-light: #666666;
  --kerry-white: #ffffff;
  --kerry-border: rgba(125, 153, 144, 0.25);
  --container-width: 1400px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--kerry-text);
  background-color: var(--kerry-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--kerry-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--kerry-primary); }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 30px; }

/* Header */
.site-header {
  background-color: var(--kerry-bg); border-bottom: 1px solid var(--kerry-border);
  position: sticky; top: 0; z-index: 1000;
  transition: box-shadow 0.3s ease;
}
.site-header--scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Single row: Logo | Menu | CTA + Icons */
.header-main {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-brand { flex-shrink: 0; }
.site-logo img { max-height: 60px; width: auto; object-fit: contain; }
.site-title { font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.site-title a { color: var(--kerry-primary); }
.site-title a:hover { color: var(--kerry-accent); }

.main-navigation { flex: 1; display: flex; justify-content: center; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* CTA Button */
.cta-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--kerry-cta-radius, 50px); font-weight: 600;
  font-size: var(--kerry-cta-size, 0.9rem); letter-spacing: 0.5px;
  text-transform: var(--kerry-cta-transform, uppercase);
  background-color: var(--kerry-cta-bg); color: var(--kerry-cta-text);
  border: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 0, 193, 0.3);
  filter: brightness(1.1); color: var(--kerry-cta-text);
}

/* Search */
.search-toggle {
  background: none; border: none; cursor: pointer; padding: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--kerry-primary); transition: color 0.2s ease, transform 0.2s ease;
}
.search-toggle:hover { color: var(--kerry-accent); transform: scale(1.1); }
.search-toggle svg { width: 22px; height: 22px; }

.search-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(255, 240, 243, 0.97); z-index: 2000;
  align-items: center; justify-content: center; padding: 24px;
}
.search-overlay.active { display: flex; }
.search-overlay-inner { width: 100%; max-width: 700px; position: relative; }
.search-overlay-inner .search-form { display: flex; border-bottom: 2px solid var(--kerry-primary); }
.search-overlay-inner .search-field {
  flex: 1; background: none; border: none; font-size: 1.8rem;
  padding: 12px 0; color: var(--kerry-text); outline: none;
}
.search-overlay-inner .search-field::placeholder { color: var(--kerry-text-light); }
.search-overlay-inner .search-submit {
  background: none; border: none; color: var(--kerry-primary); cursor: pointer;
  padding: 0 12px; font-size: 1.2rem; text-transform: uppercase; font-weight: 600;
}
.search-close {
  position: absolute; top: -60px; right: 0; background: none; border: none;
  cursor: pointer; color: var(--kerry-primary); transition: color 0.2s ease;
}
.search-close:hover { color: var(--kerry-accent); }
.search-close svg { width: 28px; height: 28px; }

/* Cart */
.cart-wrapper { position: relative; }
.cart-toggle {
  display: flex; align-items: center; gap: 6px;
  color: var(--kerry-primary); position: relative; transition: color 0.2s ease;
}
.cart-toggle:hover { color: var(--kerry-accent); }
.cart-toggle svg { width: 22px; height: 22px; }
.cart-count {
  background-color: var(--kerry-accent); color: var(--kerry-white);
  font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  position: absolute; top: -6px; right: -10px;
}
.cart-price { font-size: 0.85rem; font-weight: 600; }

.mini-cart-dropdown {
  display: none; position: absolute; top: calc(100% + 12px); right: 0;
  width: 300px; background: var(--kerry-white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px; z-index: 1001;
}
.cart-wrapper:hover .mini-cart-dropdown { display: block; }
.mini-cart-dropdown .woocommerce-mini-cart__empty-message {
  text-align: center; padding: 20px; color: var(--kerry-text-light);
}

/* Top Bar */
.top-bar {
  background-color: var(--kerry-primary);
  color: var(--kerry-white);
  padding: 8px 0;
  font-size: 0.85rem;
  text-align: center;
}
.top-bar .container {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 24px;
}
.top-bar .widget { margin: 0; }
.top-bar .widget a { color: var(--kerry-white); text-decoration: underline; }
.top-bar .widget a:hover { text-decoration: none; }
.top-bar-title { font-weight: 600; margin-right: 6px; }

/* Secondary Bar */
.secondary-bar {
  background-color: var(--kerry-primary); color: var(--kerry-white);
  padding: 10px 0; font-size: 0.9rem;
}
.secondary-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.secondary-navigation { flex: 1; }
.secondary-nav-menu {
  display: flex; flex-direction: row; gap: var(--kerry-sec-gap, 24px); list-style: none; flex-wrap: wrap;
}
.secondary-nav-menu a {
  color: var(--kerry-sec-color, var(--kerry-white)); opacity: 0.9;
  font-size: var(--kerry-sec-size, 14px); font-weight: var(--kerry-sec-weight, 500);
  transition: opacity 0.2s ease;
}
.secondary-nav-menu a:hover { opacity: 1; text-decoration: underline; }
.secondary-widgets { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.secondary-widgets .widget { margin: 0; }
.secondary-widgets .widget-title { display: none; }

/* Navigation */
.main-navigation { padding: 0; }
.nav-menu {
  display: flex; justify-content: center; gap: var(--kerry-nav-gap, 32px); list-style: none; flex-wrap: wrap;
}
.nav-menu a {
  color: var(--kerry-text); font-weight: var(--kerry-nav-weight, 600);
  font-size: var(--kerry-nav-size, 0.9rem); font-family: var(--kerry-nav-family);
  text-transform: var(--kerry-nav-transform, uppercase);
  letter-spacing: var(--kerry-nav-spacing, 0.5px); padding: 8px 0; position: relative;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background-color: var(--kerry-accent); transition: width 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; }
.nav-menu .current-menu-item > a { color: var(--kerry-accent); }
.nav-menu .sub-menu {
  display: none; position: absolute; background: var(--kerry-white);
  box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 8px 0;
  list-style: none; min-width: 180px; z-index: 100;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 8px 16px; text-transform: none; font-weight: 500; }
.nav-menu .sub-menu a:hover { background-color: var(--kerry-bg); }

/* Content */
.site-content { padding: 40px 0; min-height: 60vh; }
.page-header { text-align: center; margin-bottom: 40px; }
.page-title { font-size: 2.4rem; font-weight: 700; color: var(--kerry-primary); margin-bottom: 12px; }
.archive-description { color: var(--kerry-text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Grids */
.posts-grid, .services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px;
}
.post-card, .service-card {
  background: var(--kerry-white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover, .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.post-thumbnail, .service-thumbnail { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.post-thumbnail img, .service-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-thumbnail img, .service-card:hover .service-thumbnail img { transform: scale(1.05); }

.post-content, .service-content { padding: 24px; }
.post-title, .service-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.post-title a, .service-title a { color: var(--kerry-text); }
.post-title a:hover, .service-title a:hover { color: var(--kerry-accent); }
.post-meta { font-size: 0.85rem; color: var(--kerry-text-light); margin-bottom: 12px; }
.post-excerpt, .service-excerpt { color: var(--kerry-text-light); margin-bottom: 16px; line-height: 1.6; }
.read-more {
  display: inline-block; font-weight: 600; font-size: 0.9rem;
  color: var(--kerry-accent); border-bottom: 2px solid var(--kerry-secondary);
  padding-bottom: 2px; transition: border-color 0.2s ease;
}
.read-more:hover { border-color: var(--kerry-accent); }

/* Single */
.entry-header { text-align: center; margin-bottom: 32px; }
.entry-title { font-size: 2.2rem; font-weight: 700; color: var(--kerry-primary); margin-bottom: 12px; }
.entry-meta { color: var(--kerry-text-light); font-size: 0.9rem; }
.post-thumbnail { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.entry-content { max-width: 1100px; margin: 0 auto; }

/* Full & Wide alignment breakout */
.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.entry-content .alignwide {
  width: 90vw;
  max-width: 90vw;
  margin-left: calc(50% - 45vw);
  margin-right: calc(50% - 45vw);
}

/* Prevent horizontal scroll from full-width blocks */
.site-content { overflow-x: hidden; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2 { font-size: 1.6rem; color: var(--kerry-primary); margin: 1.5em 0 0.6em; }
.entry-content h3 { font-size: 1.3rem; color: var(--kerry-primary); margin: 1.3em 0 0.5em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.5em; }
.entry-content blockquote {
  border-left: 4px solid var(--kerry-secondary); padding-left: 20px;
  margin: 1.5em 0; color: var(--kerry-text-light); font-style: italic;
}

/* Service Single */
.service-single .service-categories {
  color: var(--kerry-accent); font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 1px; margin-top: 8px;
}
.service-cta { text-align: center; margin-top: 40px; padding: 32px; background: var(--kerry-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Pagination */
.pagination, .nav-links {
  display: flex; justify-content: center; gap: 8px; margin-top: 48px;
}
.pagination a, .pagination .current, .nav-links a, .nav-links span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius);
  font-weight: 600; transition: background 0.2s ease, color 0.2s ease;
}
.pagination a, .nav-links a { background: var(--kerry-white); color: var(--kerry-text); }
.pagination a:hover, .nav-links a:hover { background: var(--kerry-accent); color: var(--kerry-white); }
.pagination .current, .nav-links span.current { background: var(--kerry-primary); color: var(--kerry-white); }

/* Sidebar */
.widget-area { margin-top: 40px; }
.widget {
  background: var(--kerry-white); border-radius: var(--radius-lg); padding: 24px;
  margin-bottom: 24px; box-shadow: var(--shadow);
}
.widget-title {
  font-size: 1.1rem; font-weight: 700; color: var(--kerry-primary);
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--kerry-secondary);
}
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--kerry-border); }
.widget ul li:last-child { border-bottom: none; }
.widget a { color: var(--kerry-text); }
.widget a:hover { color: var(--kerry-accent); }

/* Pre-Footer */
.pre-footer {
  margin-top: var(--kerry-footer-top-margin, 50px);
  padding: 48px 0;
  background: var(--kerry-white, #ffffff);
}
.pre-footer .container {
  display: flex;
  justify-content: center;
}
.pre-footer-card {
  background: var(--kerry-white, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 40px 48px;
  text-align: center;
  max-width: 720px;
  width: 100%;
}
.pre-footer-card__item {
  display: inline-block;
}
.pre-footer-card__item + .pre-footer-card__item {
  margin-top: 16px;
}
.pre-footer-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kerry-text, #1a1a1a);
  margin-bottom: 8px;
  line-height: 1.3;
}
.pre-footer-card p {
  color: var(--kerry-text-light, #555555);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Best Seller Badge */
.kerry-best-seller-badge {
  display: inline-block;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: var(--kerry-badge-bg, var(--kerry-accent, #ED00C1));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 4px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product.type-service {
  position: relative;
}

.kerry-best-seller-badge--single {
  position: static;
  margin-bottom: 12px;
}

/* Single Post */
.site-main.container {
  max-width: 840px;
  padding: 48px 24px;
}

.entry-header {
  text-align: left;
  margin-bottom: 32px;
}

.entry-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--kerry-text);
  margin: 0 0 16px;
}

.post-thumbnail {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--kerry-text);
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
  color: var(--kerry-text);
}

.entry-content h2 {
  font-size: 1.6rem;
  color: var(--kerry-primary);
}

.entry-content h3 {
  font-size: 1.3rem;
}

.entry-content img {
  border-radius: var(--radius);
  margin: 1.5em 0;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5em 1.5em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content a {
  color: var(--kerry-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-links {
  margin: 2em 0;
  font-size: 0.95rem;
  color: var(--kerry-text-light);
}

/* Share Post Buttons */
.kerry-share-post {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--kerry-border);
}

.kerry-share-post h4 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kerry-text-light);
  margin-bottom: 16px;
}

.kerry-share-post__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kerry-share-post__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
}

.kerry-share-post__btn svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.kerry-share-post__btn--email {
  background-color: #333333;
  color: #ffffff;
}

.kerry-share-post__btn--email:hover {
  background-color: #000000;
  color: #ffffff;
}

.kerry-share-post__btn--whatsapp {
  background-color: #25D366;
  color: #ffffff;
}

.kerry-share-post__btn--whatsapp:hover {
  background-color: #128C7E;
  color: #ffffff;
}

/* Pages - wider layout than single posts */
body.page .site-main.container {
  max-width: 1200px;
  padding: 48px 30px;
}

/* Author Box */
.kerry-author-box {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 48px;
  padding: 28px;
  background: var(--kerry-white);
  border: 1px solid var(--kerry-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.kerry-author-box__avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.kerry-author-box__content {
  flex: 1;
}

.kerry-author-box__name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.kerry-author-box__name a {
  color: var(--kerry-text);
  text-decoration: none;
}

.kerry-author-box__name a:hover {
  color: var(--kerry-accent);
}

.kerry-author-box__bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--kerry-text-light);
  margin: 0 0 12px;
}

.kerry-author-box__link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--kerry-accent);
  text-decoration: none;
}

.kerry-author-box__link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .kerry-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Footer */
.site-footer {
  position: relative;
  background-color: var(--kerry-footer-bg, #ffffff);
  color: var(--kerry-footer-text, #333333);
  padding: var(--kerry-footer-pad-top, 64px) 0 var(--kerry-footer-pad-bottom, 32px);
  overflow: hidden;
}
.site-footer.site-footer--border-top {
  border-top: var(--kerry-footer-border-width, 1px) solid var(--kerry-footer-border-color, rgba(0,0,0,0.1));
}
.site-footer__bg {
  position: absolute;
  inset: 0;
  background-size: var(--kerry-footer-bg-size, cover);
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.site-footer__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--kerry-footer-overlay, transparent);
  z-index: 2;
}
.site-footer__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.site-footer a { color: var(--kerry-footer-link, #333333); }
.site-footer a:hover { color: var(--kerry-footer-link-hover, #7D9990); }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; align-items: start; }
.site-footer .footer-widgets .footer-widget-area .widget { background: transparent !important; box-shadow: none !important; border-radius: 0; color: var(--kerry-footer-text, #333333); text-align: left; line-height: var(--kerry-footer-content-line-height, 1.6); }
.footer-widget-area .widget-title { color: var(--kerry-footer-heading, #333333); border-bottom-color: rgba(0,0,0,0.1); font-family: var(--kerry-footer-heading-family, 'Playfair Display', serif); font-size: var(--kerry-footer-heading-size, 20px); }
.footer-widget-area .widget ul li { border-bottom-color: rgba(0,0,0,0.08); }
.footer-widget-area .widget a { color: var(--kerry-footer-link, #333333); }

.quick-links-list { list-style: none; padding: 0; margin: 0; }
.quick-links-list li { margin-bottom: 12px; }
.quick-links-list li:last-child { margin-bottom: 0; }
.quick-links-list a { text-decoration: none; color: var(--kerry-footer-link, #333333); }
.quick-links-list a:hover { color: var(--kerry-footer-link-hover, #7D9990); }

/* Footer Bar */
.footer-bar {
  background-color: var(--kerry-footer-bar-bg, var(--kerry-footer-bg, #ffffff));
  color: var(--kerry-footer-bar-text, var(--kerry-footer-text, #333333));
  padding: var(--kerry-footer-bar-pad-top, 16px) 0 var(--kerry-footer-bar-pad-bottom, 16px);
  text-align: center;
}
.footer-bar .copyright { font-size: 0.85rem; opacity: 0.6; margin: 0; }

/* WooCommerce */
.woocommerce .products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.woocommerce .product {
  background: var(--kerry-white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.woocommerce .product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.woocommerce .product .woocommerce-loop-product__title { font-size: 1.1rem; font-weight: 700; padding: 16px 16px 0; }
.woocommerce .product .price { padding: 0 16px 16px; color: var(--kerry-accent); font-weight: 600; }
.woocommerce .product .button {
  display: block; margin: 0 16px 16px; text-align: center; padding: 10px;
  border-radius: var(--radius); background: var(--kerry-accent); color: var(--kerry-white);
  font-weight: 600; font-size: 0.9rem; transition: filter 0.2s ease;
}
.woocommerce .product .button:hover { filter: brightness(1.1); color: var(--kerry-white); }
.woocommerce .woocommerce-pagination { margin-top: 40px; }
.woocommerce .woocommerce-pagination ul { display: flex; justify-content: center; gap: 8px; list-style: none; border: none; }
.woocommerce .woocommerce-pagination ul li { border: none; }
.woocommerce .woocommerce-pagination ul li a, .woocommerce .woocommerce-pagination ul li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border-radius: var(--radius); font-weight: 600;
}
.woocommerce .woocommerce-pagination ul li a { background: var(--kerry-white); color: var(--kerry-text); }
.woocommerce .woocommerce-pagination ul li a:hover { background: var(--kerry-accent); color: var(--kerry-white); }
.woocommerce .woocommerce-pagination ul li span.current { background: var(--kerry-primary); color: var(--kerry-white); }

.woocommerce-message { background: rgba(125, 153, 144, 0.12); border-left: 4px solid var(--kerry-primary); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.woocommerce-info { background: rgba(255, 182, 193, 0.2); border-left: 4px solid var(--kerry-secondary); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.woocommerce-error { background: rgba(237, 0, 193, 0.08); border-left: 4px solid var(--kerry-accent); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }

.woocommerce .button, .woocommerce-button, .woocommerce .checkout-button {
  background: var(--kerry-accent) !important; color: var(--kerry-white) !important;
  border-radius: var(--radius) !important; font-weight: 600 !important; transition: filter 0.2s ease !important;
}
.woocommerce .button:hover, .woocommerce-button:hover, .woocommerce .checkout-button:hover {
  filter: brightness(1.1) !important; color: var(--kerry-white) !important;
}

.woocommerce .quantity .qty { border-radius: var(--radius); border: 1px solid var(--kerry-border); padding: 8px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border-radius: var(--radius); border: 1px solid var(--kerry-border); padding: 10px 12px;
}

/* Search & No Results */
.no-results { text-align: center; padding: 60px 24px; }
.no-results .page-title { margin-bottom: 16px; }
.no-results .search-form { max-width: 500px; margin: 24px auto 0; display: flex; }
.no-results .search-field { flex: 1; padding: 12px 16px; border: 1px solid var(--kerry-border); border-radius: var(--radius) 0 0 var(--radius); border-right: none; outline: none; }
.no-results .search-submit { padding: 12px 20px; background: var(--kerry-accent); color: var(--kerry-white); border: none; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; cursor: pointer; }

/* Comments */
.comments-area { max-width: 800px; margin: 40px auto 0; }
.comments-title { font-size: 1.5rem; color: var(--kerry-primary); margin-bottom: 24px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin-bottom: 24px; }
.comment-body { background: var(--kerry-white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--kerry-primary); }
.comment-metadata { font-size: 0.85rem; color: var(--kerry-text-light); }
.comment-content p { margin-bottom: 0.8em; }
.comment-reply-link { color: var(--kerry-accent); font-weight: 600; font-size: 0.9rem; }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--kerry-primary); }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--kerry-border); border-radius: var(--radius); margin-bottom: 16px; }
.comment-form .form-submit input { width: auto; background: var(--kerry-accent); color: var(--kerry-white); font-weight: 600; border: none; cursor: pointer; padding: 12px 24px; transition: filter 0.2s ease; }
.comment-form .form-submit input:hover { filter: brightness(1.1); }
.no-comments { color: var(--kerry-text-light); text-align: center; padding: 20px; }

/* Responsive */
/* Menu Block */
.kerry-menu-block { width: 100%; }
.kerry-menu-block__menu {
  display: flex; list-style: none; margin: 0; padding: 0;
  gap: var(--kerry-nav-gap, 24px);
}
.kerry-menu-block__menu--vertical {
  flex-direction: column;
}
.kerry-menu-block__menu a {
  color: var(--kerry-nav-color, var(--kerry-text));
  font-size: var(--kerry-nav-size, 14px);
  font-weight: var(--kerry-nav-weight, 600);
  text-decoration: none;
  transition: color 0.2s ease;
}
.kerry-menu-block__menu a:hover {
  color: var(--kerry-accent);
}
.kerry-menu-block__menu .sub-menu {
  display: none; position: absolute; background: var(--kerry-white);
  box-shadow: var(--shadow-lg); border-radius: var(--radius);
  padding: 8px 0; list-style: none; min-width: 180px; z-index: 100;
}
.kerry-menu-block__menu li:hover > .sub-menu { display: block; }
.kerry-menu-block__menu .sub-menu a { display: block; padding: 8px 16px; font-weight: 500; }
.kerry-menu-block__preview {
  background: var(--kerry-bg); padding: 16px; border-radius: var(--radius);
}
.kerry-menu-block__preview ul {
  display: flex; gap: 24px; list-style: none; margin: 0; padding: 0;
}
.kerry-menu-block-placeholder {
  color: var(--kerry-text-light); font-style: italic; padding: 12px;
}

/* Mobile Header */
.header-mobile-cta,
.header-mobile-bottom,
.mobile-menu-toggle,
.mobile-nav-panel { display: none; }

/* Hero Overlay Block */
.kerry-hero-overlay {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  width: 100%;
}
.kerry-hero-overlay__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.kerry-hero-overlay__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px;
  max-width: 900px;
}
.kerry-hero-overlay__title {
  margin: 0 0 12px;
  font-family: var(--kerry-nav-family);
  font-weight: 700;
  line-height: 1.2;
}
.kerry-hero-overlay__subtitle {
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

/* Hero Overlay Block - Editor */
.kerry-hero-overlay--editor {
  border: 1px dashed var(--kerry-border);
}

@media (max-width: 768px) {
  .header-main {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: center;
  }
  .header-brand { grid-row: 1; grid-column: 1; }
  .header-actions { display: none; }
  .main-navigation { display: none; }

  .mobile-menu-toggle {
    grid-row: 1; grid-column: 2;
    justify-self: end;
    background: none; border: none; padding: 8px;
    color: var(--kerry-text); cursor: pointer;
    display: flex; align-items: center;
  }
  .mobile-menu-toggle svg { width: 24px; height: 24px; pointer-events: none; }
  .header-mobile-bottom {
    grid-row: 2; grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .header-mobile-cta {
    display: inline-flex;
    padding: 8px 14px;
    font-size: 0.75rem;
  }
  .header-mobile-icons {
    display: flex; align-items: center; gap: 12px;
  }
  .header-mobile-icons .search-toggle,
  .header-mobile-icons .cart-toggle {
    background: none; border: none; padding: 8px;
    color: var(--kerry-text); cursor: pointer;
  }

  .mobile-nav-panel {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--kerry-white); z-index: 2000;
    overflow-y: auto; padding: 16px 24px;
  }
  .mobile-nav-panel.active { display: block; }
  .mobile-nav-header {
    display: flex; justify-content: flex-end;
    padding-bottom: 16px; border-bottom: 1px solid var(--kerry-border);
  }
  .mobile-nav-close {
    background: none; border: none; padding: 8px;
    color: var(--kerry-text); cursor: pointer;
  }
  .mobile-nav-close svg { width: 24px; height: 24px; }
  .mobile-nav-menu {
    list-style: none; padding: 0; margin: 16px 0 0;
  }
  .mobile-nav-menu li { border-bottom: 1px solid var(--kerry-border); }
  .mobile-nav-menu a {
    display: block; padding: 14px 0;
    color: var(--kerry-text); font-size: 1.05rem; font-weight: 600;
  }
  .mobile-nav-menu .sub-menu {
    list-style: none; padding: 0 0 0 16px; margin: 0;
    border-top: 1px solid var(--kerry-border);
  }
  .mobile-nav-menu .sub-menu a {
    font-weight: 400; font-size: 0.95rem; padding: 10px 0;
  }
  .mobile-nav-menu .menu-item-has-children > a {
    position: relative; padding-right: 24px;
  }
  .mobile-nav-menu .menu-item-has-children > a::after {
    content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
  }

  .site-logo img { max-height: 48px; }
  .site-title { font-size: 1.4rem; }
  .secondary-bar-inner { justify-content: center; }
  .page-title { font-size: 1.8rem; }
  .posts-grid, .services-grid { grid-template-columns: 1fr; }
  .entry-title { font-size: 1.6rem; }
  .footer-widgets { grid-template-columns: 1fr; }
}

/* Page Hero Overlay */
.kerry-page-hero {
  --s: 60px;
  --r: calc(var(--s) * 0.675);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  mask:
    radial-gradient(var(--r) at 50% calc(var(--s) * 0.95), #000 99%, #0000 101%) calc(50% - var(--s)) 0 / calc(var(--s) * 2) 51% repeat-x,
    radial-gradient(var(--r) at 50% calc(var(--s) * -0.45), #0000 99%, #000 101%) 50% calc(var(--s) * 0.5) / calc(var(--s) * 2) calc(51% - var(--s) * 0.5) repeat-x,
    radial-gradient(var(--r) at 50% calc(100% - var(--s) * 0.95), #000 99%, #0000 101%) calc(50% - var(--s)) 100% / calc(var(--s) * 2) 51% repeat-x,
    radial-gradient(var(--r) at 50% calc(100% + var(--s) * 0.45), #0000 99%, #000 101%) 50% calc(100% - var(--s) * 0.5) / calc(var(--s) * 2) calc(51% - var(--s) * 0.5) repeat-x;
  -webkit-mask:
    radial-gradient(var(--r) at 50% calc(var(--s) * 0.95), #000 99%, #0000 101%) calc(50% - var(--s)) 0 / calc(var(--s) * 2) 51% repeat-x,
    radial-gradient(var(--r) at 50% calc(var(--s) * -0.45), #0000 99%, #000 101%) 50% calc(var(--s) * 0.5) / calc(var(--s) * 2) calc(51% - var(--s) * 0.5) repeat-x,
    radial-gradient(var(--r) at 50% calc(100% - var(--s) * 0.95), #000 99%, #0000 101%) calc(50% - var(--s)) 100% / calc(var(--s) * 2) 51% repeat-x,
    radial-gradient(var(--r) at 50% calc(100% + var(--s) * 0.45), #0000 99%, #000 101%) 50% calc(100% - var(--s) * 0.5) / calc(var(--s) * 2) calc(51% - var(--s) * 0.5) repeat-x;
}
.kerry-page-hero__shade {
  position: absolute;
  inset: 0;
}
.kerry-page-hero__content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
}
.kerry-page-hero__title {
  margin: 0 0 12px;
  line-height: 1.2;
  font-weight: 700;
}
.kerry-page-hero__subtitle {
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}
.page-template-page-homestyle .site-content {
  padding-top: 0;
}

@media (max-width: 768px) {
  .kerry-page-hero {
    overflow: hidden;
  }
}

.kerry-shop-custom-title {
  margin: 0 0 1.5rem;
  font-family: var(--kerry-nav-family, 'Playfair Display', serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--kerry-primary, #333333);
  text-align: left;
  border-bottom: 2px solid var(--kerry-secondary, #FFB6C1);
  padding-bottom: 0.5rem;
}

/* Shop Category Filter Pills */
.kerry-shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.kerry-shop-pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: capitalize;
  color: var(--kerry-primary, #7D9990);
  background: var(--kerry-bg, #FFF0F3);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.kerry-shop-pill:hover {
  background: var(--kerry-secondary, #FFB6C1);
  color: #ffffff;
  border-color: var(--kerry-secondary, #FFB6C1);
}

.kerry-shop-pill.is-active {
  background: var(--kerry-accent, #ED00C1);
  color: #ffffff;
  border-color: var(--kerry-accent, #ED00C1);
}

/* WooCommerce Product Grid: 4-6 columns */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(var(--shop-cols, 4), 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
  flex: none !important;
  background: var(--kerry-bg, #FFF0F3);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.woocommerce ul.products li.product a {
  text-decoration: none;
  display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.03);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--kerry-primary, #7D9990);
  margin: 0 0 6px;
  line-height: 1.35;
  text-align: center;
  width: 100%;
  word-break: break-word;
  min-height: 2.7em;
}

.woocommerce ul.products li.product .price {
  font-size: 0.95rem;
  color: var(--kerry-accent, #ED00C1);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.woocommerce ul.products li.product .price del {
  color: var(--kerry-secondary, #FFB6C1);
  font-weight: 400;
  font-size: 0.8rem;
  margin-right: 6px;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none;
}

.woocommerce ul.products li.product .star-rating {
  margin: 0 auto 8px;
  font-size: 0.75rem;
  color: var(--kerry-secondary, #FFB6C1);
}

.woocommerce ul.products li.product .button {
  display: block !important;
  width: 100%;
  text-align: center;
  background: var(--kerry-accent, #ED00C1);
  color: var(--kerry-cta-text, #ffffff);
  border: none;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
  margin: auto 0 0;
  float: none !important;
  box-sizing: border-box;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--kerry-primary, #7D9990);
  color: var(--kerry-cta-text, #ffffff);
}

.woocommerce ul.products li.product .onsale {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--kerry-badge-bg, var(--kerry-accent, #ED00C1));
  color: var(--kerry-cta-text, #ffffff);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  min-height: auto;
  line-height: 1.4;
}

@media (max-width: 1200px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .woocommerce ul.products li.product {
    padding: 12px;
    border-radius: 12px;
  }

  .woocommerce ul.products li.product img {
    border-radius: 8px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.8rem;
  }

  .woocommerce ul.products li.product .price {
    font-size: 0.85rem;
  }
}

/* Service CPT Archive & Single Pages */
.kerry-service-archive {
  padding: 2rem 4vw;
  max-width: 1400px;
  margin: 0 auto;
}

.kerry-service-grid {
  display: grid;
  grid-template-columns: repeat(var(--shop-cols, 4), 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kerry-service-grid::before,
.kerry-service-grid::after {
  content: none;
}

.kerry-service-grid li.type-service {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
  flex: none !important;
  background: var(--kerry-bg, #FFF0F3);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.kerry-service-grid li.type-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.kerry-service-grid li.type-service a:first-child {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.kerry-service-grid li.type-service img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.03);
}

.kerry-service-grid li.type-service .woocommerce-loop-product__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--kerry-primary, #7D9990);
  margin: 0 0 6px;
  line-height: 1.35;
  text-align: center;
  width: 100%;
  word-break: break-word;
  min-height: 2.7em;
}

.kerry-service-grid li.type-service .price {
  font-size: 0.95rem;
  color: var(--kerry-accent, #ED00C1);
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.kerry-service-grid li.type-service .service-duration {
  font-size: 0.8rem;
  color: var(--kerry-secondary, #FFB6C1);
  font-weight: 400;
}

.kerry-service-grid li.type-service .button {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--kerry-accent, #ED00C1);
  color: var(--kerry-cta-text, #ffffff);
  border: none;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
  margin-top: auto;
  text-decoration: none;
}

.kerry-service-grid li.type-service .button:hover {
  background: var(--kerry-primary, #7D9990);
  color: var(--kerry-cta-text, #ffffff);
}

/* Single Service Page */
.kerry-service-single {
  padding: 2rem 0;
}

.kerry-service-article {
  max-width: 800px;
  margin: 0 auto;
}

.kerry-service-article .entry-title {
  font-family: var(--kerry-nav-family, 'Playfair Display', serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--kerry-primary, #7D9990);
  margin-bottom: 1.5rem;
  text-align: left;
  border-bottom: 2px solid var(--kerry-secondary, #FFB6C1);
  padding-bottom: 0.5rem;
}

.kerry-service-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.kerry-service-image {
  width: 100%;
}

.kerry-service-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.kerry-service-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.kerry-service-details .service-price .price,
.kerry-service-details .service-duration {
  font-size: 1.2rem;
  color: var(--kerry-accent, #ED00C1);
  font-weight: 700;
  text-align: center;
}

.kerry-service-details .kerry-book-appointment {
  display: inline-block;
  text-align: center;
  background: var(--kerry-accent, #ED00C1);
  color: var(--kerry-cta-text, #ffffff);
  border: none;
  border-radius: 10px;
  padding: 14px 48px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
  text-decoration: none;
  margin-top: 0.5rem;
}

.kerry-service-details .kerry-book-appointment:hover {
  background: var(--kerry-primary, #7D9990);
  color: var(--kerry-cta-text, #ffffff);
}

.kerry-service-footer-cta .kerry-book-appointment {
  display: inline-block;
  text-align: center;
  background: var(--kerry-accent, #ED00C1);
  color: var(--kerry-cta-text, #ffffff);
  border: none;
  border-radius: 10px;
  padding: 14px 48px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
  text-decoration: none;
  margin-top: 1.5rem;
}

.kerry-service-footer-cta .kerry-book-appointment:hover {
  background: var(--kerry-primary, #7D9990);
  color: var(--kerry-cta-text, #ffffff);
}

.kerry-service-article .entry-content {
  line-height: 1.7;
  color: var(--kerry-primary, #7D9990);
}

/* Service Attributes Table */
.kerry-service-attributes {
  margin: 2rem 0;
}

.kerry-service-attributes h2 {
  color: var(--kerry-primary, #7D9990);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.kerry-service-attributes-table {
  width: 100%;
  border-collapse: collapse;
}

.kerry-service-attributes-table tr {
  border-bottom: 1px dotted var(--kerry-border, rgba(125, 153, 144, 0.25));
}

.kerry-service-attributes-table tr:nth-child(even) {
  background: rgba(125, 153, 144, 0.04);
}

.kerry-service-attributes-table th,
.kerry-service-attributes-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.kerry-service-attributes-table th {
  color: var(--kerry-text, #333333);
  font-weight: 700;
  font-size: 0.9rem;
  width: 220px;
}

.kerry-service-attributes-table td {
  color: var(--kerry-text-light, #555555);
  font-style: italic;
  font-size: 0.95rem;
}

.kerry-service-attributes-table td a {
  color: var(--kerry-accent, #ED00C1);
  text-decoration: none;
}

.kerry-service-attributes-table td a:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .kerry-service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .kerry-service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .kerry-service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .kerry-service-grid li.type-service {
    padding: 12px;
    border-radius: 12px;
  }

  .kerry-service-grid li.type-service img {
    border-radius: 8px;
  }

  .kerry-service-article .entry-title {
    font-size: 1.5rem;
  }
}

/* Shop Sidebar Layout */
.kerry-shop-layout {
  display: flex;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 4vw;
}

.kerry-shop-sidebar {
  flex: 0 0 240px;
  min-width: 220px;
}

.kerry-shop-sidebar .kerry-filter-widget {
  margin-bottom: 2rem;
}

.kerry-shop-sidebar .kerry-filter-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--kerry-text, #333333);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.kerry-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kerry-filter-list li {
  margin-bottom: 4px;
}

.kerry-filter-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  text-decoration: none;
  color: var(--kerry-text, #555555);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.kerry-filter-list li a:hover {
  color: var(--kerry-accent, #ED00C1);
}

.kerry-filter-list li.is-active a {
  color: var(--kerry-accent, #ED00C1);
  font-weight: 600;
}

.kerry-filter-count {
  font-size: 0.75rem;
  color: var(--kerry-muted, #999999);
  background: var(--kerry-bg, #FFF0F3);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
}

.kerry-filter-list li.is-active .kerry-filter-count {
  background: var(--kerry-accent, #ED00C1);
  color: #ffffff;
}

.kerry-shop-layout--full .woocommerce-main {
  flex: 1 1 100%;
  max-width: none;
  width: 100%;
}

@media (max-width: 768px) {
  .kerry-shop-layout {
    flex-direction: column;
    gap: 24px;
  }

  .kerry-shop-sidebar {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* WooCommerce Pagination */
.woocommerce nav.woocommerce-pagination {
  margin-top: 2rem;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--kerry-text, #333333);
  background: var(--kerry-white, #ffffff);
  border: 1px solid var(--kerry-border, rgba(125, 153, 144, 0.25));
  transition: all 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--kerry-bg, #FFF0F3);
  border-color: var(--kerry-accent, #ED00C1);
  color: var(--kerry-accent, #ED00C1);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--kerry-accent, #ED00C1);
  border-color: var(--kerry-accent, #ED00C1);
  color: #ffffff;
  font-weight: 600;
}

.woocommerce nav.woocommerce-pagination ul li a.next,
.woocommerce nav.woocommerce-pagination ul li a.prev {
  font-weight: 600;
  padding: 0 16px;
}

/* WooCommerce Sorting Dropdown */
.woocommerce .woocommerce-ordering {
  margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-ordering select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--kerry-white, #ffffff);
  border: 1px solid var(--kerry-border, rgba(125, 153, 144, 0.25));
  border-radius: 999px;
  padding: 10px 40px 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--kerry-text, #333333);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce .woocommerce-ordering select:focus {
  outline: none;
  border-color: var(--kerry-accent, #ED00C1);
  box-shadow: 0 0 0 3px rgba(237, 0, 193, 0.1);
}

.woocommerce .woocommerce-ordering select:hover {
  border-color: var(--kerry-accent, #ED00C1);
}

/* Service Archive Pagination */
.kerry-service-pagination {
  margin-top: 2rem;
  text-align: center;
}

.kerry-service-pagination a,
.kerry-service-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--kerry-text, #333333);
  background: var(--kerry-white, #ffffff);
  border: 1px solid var(--kerry-border, rgba(125, 153, 144, 0.25));
  transition: all 0.2s ease;
}

.kerry-service-pagination a:hover {
  background: var(--kerry-bg, #FFF0F3);
  border-color: var(--kerry-accent, #ED00C1);
  color: var(--kerry-accent, #ED00C1);
}

.kerry-service-pagination span.current {
  background: var(--kerry-accent, #ED00C1);
  border-color: var(--kerry-accent, #ED00C1);
  color: #ffffff;
  font-weight: 600;
}

.kerry-service-pagination a.prev,
.kerry-service-pagination a.next {
  font-weight: 600;
  padding: 0 16px;
}

.kerry-service-pagination .dots {
  border: none;
  background: transparent;
  color: var(--kerry-muted, #999999);
}

/* Service Sidebar Layout */
.kerry-service-layout .kerry-service-archive {
  padding: 0;
}

.kerry-service-layout .kerry-shop-sidebar {
  flex: 0 0 240px;
  min-width: 220px;
}

@media (max-width: 768px) {
  .kerry-service-layout .kerry-shop-sidebar {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Archive Header Description */
.kerry-archive-description {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--kerry-text-light, #666666);
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  max-width: 720px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.kerry-archive-description p {
  margin-bottom: 0.75rem;
}

.kerry-archive-description p:last-child {
  margin-bottom: 0;
}

/* Single Product Page Price */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--kerry-accent, #ED00C1) !important;
  font-weight: 700;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  color: var(--kerry-secondary, #FFB6C1);
  font-weight: 400;
}

/* Single Product Page Layout */
.woocommerce div.product {
  padding: 2rem 4vw;
  max-width: 1400px;
  margin: 0 auto;
}

/* Single Product Description Padding */
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce-Tabs-panel--description,
#tab-description {
  padding: 1.5rem 0;
}

.woocommerce div.product .woocommerce-tabs .panel {
  padding: 1.5rem 0;
}

.woocommerce div.product .woocommerce-tabs .panel h2:first-child {
  color: var(--kerry-primary, #7D9990);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* WooCommerce Product Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 2px solid var(--kerry-border, rgba(125, 153, 144, 0.25));
  padding: 0;
  margin: 0 0 1.5rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  border-bottom: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: 1px solid transparent;
  border-bottom-color: var(--kerry-border, rgba(125, 153, 144, 0.25));
  border-radius: 8px 8px 0 0;
  margin: 0 4px 0 0;
  padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--kerry-text-light, #666666);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--kerry-accent, #ED00C1);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--kerry-bg, #FFF0F3);
  border-color: var(--kerry-border, rgba(125, 153, 144, 0.25));
  border-bottom-color: var(--kerry-bg, #FFF0F3);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--kerry-primary, #7D9990);
}

/* WooCommerce Attributes Table */
.woocommerce div.product .woocommerce-tabs table.woocommerce-product-attributes {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce div.product .woocommerce-tabs table.woocommerce-product-attributes tr {
  border-bottom: 1px dotted var(--kerry-border, rgba(125, 153, 144, 0.25));
}

.woocommerce div.product .woocommerce-tabs table.woocommerce-product-attributes tr:nth-child(even) {
  background: rgba(255, 240, 243, 0.5);
}

.woocommerce div.product .woocommerce-tabs table.woocommerce-product-attributes th,
.woocommerce div.product .woocommerce-tabs table.woocommerce-product-attributes td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.woocommerce div.product .woocommerce-tabs table.woocommerce-product-attributes th {
  color: var(--kerry-text, #333333);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: capitalize;
  width: 220px;
}

.woocommerce div.product .woocommerce-tabs table.woocommerce-product-attributes td {
  color: var(--kerry-text-light, #555555);
  font-style: italic;
  font-size: 0.95rem;
}

.woocommerce div.product .woocommerce-tabs table.woocommerce-product-attributes td p {
  margin: 0;
}

.woocommerce div.product .woocommerce-tabs table.woocommerce-product-attributes a {
  color: var(--kerry-accent, #ED00C1);
  text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs table.woocommerce-product-attributes a:hover {
  text-decoration: underline;
}

/* Up-sells & Related Products */
.woocommerce .up-sells,
.woocommerce .related {
  margin-top: 4rem;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  clear: both;
  padding-top: 2rem;
  border-top: 1px solid var(--kerry-border, rgba(125, 153, 144, 0.25));
}

.woocommerce .up-sells > h2,
.woocommerce .related > h2 {
  font-family: var(--kerry-nav-family, 'Playfair Display', serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--kerry-text, #333333);
  margin-bottom: 2rem;
  text-align: left;
}

.woocommerce .up-sells ul.products,
.woocommerce .related ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(200px, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
}

.woocommerce .up-sells ul.products li.product,
.woocommerce .related ul.products li.product {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
  flex: none !important;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--kerry-border, rgba(125, 153, 144, 0.2));
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.woocommerce .up-sells ul.products li.product:hover,
.woocommerce .related ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--kerry-accent, #ED00C1);
}

.woocommerce .up-sells ul.products li.product a,
.woocommerce .related ul.products li.product a {
  text-decoration: none;
  display: block;
}

.woocommerce .up-sells ul.products li.product .woocommerce-loop-product__link,
.woocommerce .related ul.products li.product .woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.woocommerce .up-sells ul.products li.product img,
.woocommerce .related ul.products li.product img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  background: rgba(0,0,0,0.03);
}

.woocommerce .up-sells ul.products li.product .woocommerce-loop-product__title,
.woocommerce .related ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--kerry-text, #333333) !important;
  margin: 0 0 6px;
  line-height: 1.4;
  text-align: center;
  width: 100%;
  word-break: break-word;
  min-height: 2.7em;
  transition: color 0.2s ease;
}

.woocommerce .up-sells ul.products li.product a:hover .woocommerce-loop-product__title,
.woocommerce .related ul.products li.product a:hover .woocommerce-loop-product__title {
  color: var(--kerry-accent, #ED00C1) !important;
}

.woocommerce .up-sells ul.products li.product .price,
.woocommerce .related ul.products li.product .price {
  font-size: 0.95rem;
  color: var(--kerry-accent, #ED00C1);
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.woocommerce .up-sells ul.products li.product .button,
.woocommerce .related ul.products li.product .button {
  display: block !important;
  width: 100%;
  text-align: center;
  background: var(--kerry-primary, #7D9990);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
  margin: auto 0 0;
  float: none !important;
  box-sizing: border-box;
}

.woocommerce .up-sells ul.products li.product .button:hover,
.woocommerce .related ul.products li.product .button:hover {
  background: var(--kerry-accent, #ED00C1);
  color: #ffffff;
}

@media (max-width: 1200px) {
  .woocommerce .up-sells ul.products,
  .woocommerce .related ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .woocommerce .up-sells ul.products,
  .woocommerce .related ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
