/*
 * Hello Kitty Pants - Critical CSS Fix
 * Version: 20260303-v2
 * This file overrides broken styles
 */

/* Container fix */
body:not(.woocommerce-checkout) .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* Fix announcement bar */
.announcement-bar {
  background: #D4538A !important;
  font-weight: 700 !important;
  color: #fff !important;
  padding: 12px 10px !important;
  font-size: 14px !important;
}

/* Fix header layout */
.header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 15px 20px !important;
}
body:not(.woocommerce-checkout) .header-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* Fix logo size */
.site-branding {
  max-width: 120px !important;
  flex-shrink: 0 !important;
}
.site-branding a,
.custom-logo-link {
  display: block !important;
  max-width: 120px !important;
}
.site-branding img,
.custom-logo,
.custom-logo-link img,
img.custom-logo {
  height: 50px !important;
  width: auto !important;
  max-width: 120px !important;
  max-height: 50px !important;
  object-fit: contain !important;
}

/* Fix navigation */
.main-nav a,
.main-nav li a,
.main-nav ul li a {
  font-weight: 700 !important;
}

/* COLOR GRID - MUST BE 6 COLUMNS */
.color-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
}
@media (max-width: 992px) {
  .color-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 576px) {
  .color-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Color cards */
.color-card {
  background: white !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  text-align: center !important;
  display: block !important;
}
.color-card img {
  width: 100% !important;
  aspect-ratio: 1 !important;
  object-fit: cover !important;
  display: block !important;
}
.color-card h4 {
  padding: 15px !important;
  margin: 0 !important;
  font-size: 14px !important;
}

/* TESTIMONIALS GRID - 3 COLUMNS */
.testimonial-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  width: 100% !important;
}
@media (max-width: 992px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 576px) {
  .testimonial-grid {
    grid-template-columns: 1fr !important;
  }
}

/* BENEFITS GRID - 4 COLUMNS */
.benefits-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  text-align: center !important;
  width: 100% !important;
}
@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* INSTAGRAM GRID - 6 COLUMNS */
.instagram-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
}
@media (max-width: 768px) {
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* FEATURES GRID - 3 COLUMNS */
.features-grid,
.feature-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  width: 100% !important;
}
@media (max-width: 768px) {
  .features-grid,
  .feature-grid {
    grid-template-columns: 1fr !important;
  }
}

/* CHECKOUT: Hide duplicate PayPal buttons (plugin renders its own + we render ours) */
body.woocommerce-checkout #payment > .ppc-button-wrapper,
body.woocommerce-checkout #payment > div:not(#hkp-payment-buttons) > .paypal-buttons,
body.woocommerce-checkout #payment .ppc-button-wrapper,
body.woocommerce-checkout .place-order .ppc-button-wrapper,
body.woocommerce-checkout #ppc-button-ppcp-gateway {
  display: none !important;
}

/* CHECKOUT FULL WIDTH OVERRIDE */
body.woocommerce-checkout .container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.woocommerce-checkout .header-inner {
  max-width: 100% !important;
  width: 100% !important;
  padding: 15px 32px !important;
  margin: 0 !important;
}

/* ========================================
   BLOG GRID SPACING - 2026-03-03
   ======================================== */
.blog-grid {
  gap: 2.5rem !important;
  padding: 2rem 0 3rem !important;
}
.blog-card {
  margin-bottom: 0 !important;
}

/* ========================================
   ACTIVE NAV HIGHLIGHT - 2026-03-03
   ======================================== */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current-menu-parent > a,
.main-nav .current_page_parent > a {
  color: #D4538A !important;
}
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  width: 100% !important;
  background: #D4538A !important;
}

/* ========================================
   FOOTER REDESIGN - 2026-03-03
   ======================================== */
.site-footer {
  background: var(--color-text, #333) !important;
  padding: 3rem 1rem 1.5rem !important;
  margin-top: 0 !important;
}
.footer-links {
  display: flex !important;
  justify-content: center !important;
  gap: 5rem !important;
  max-width: 700px !important;
  margin: 0 auto 2.5rem !important;
}
.footer-col h2 {
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 0.75rem !important;
}
.footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.footer-col li {
  margin-bottom: 0.4rem !important;
}
.footer-col a {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.875rem !important;
  transition: color 0.3s ease !important;
}
.footer-col a:hover {
  color: #D4538A !important;
}
.footer-bottom {
  text-align: center !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
}
.payment-icons {
  display: flex !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}
.payment-icons img {
  height: 28px !important;
  opacity: 0.7 !important;
}
.footer-bottom p {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.8rem !important;
  margin: 0 !important;
}
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column !important;
    gap: 2rem !important;
    text-align: center !important;
  }
}

/* ========================================
   PAGE TITLE SPACING FROM HEADER - 2026-03-03
   ======================================== */
.site-main > .container:first-child,
.site-main .faq-page,
.site-main .size-guide-page,
.site-main .page-content {
  padding-top: 2.5rem !important;
}

/* Single product page: match FAQ/Size Guide spacing */
body.single-product .site-main {
  padding-top: 2.5rem !important;
}

/* Homepage hero: NO gap from header */
.home .site-main > section:first-child,
.home .hero-section {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ========================================
   FAQ SECTION PINK BOX FIX - 2026-03-03
   ======================================== */
.faq-section {
  padding: 1.5rem 2rem !important;
  border-radius: 12px !important;
  margin-bottom: 2rem !important;
}
.faq-section h2 {
  margin-bottom: 0.5rem !important;
}

/* ========================================
   CONTENT-TO-FOOTER SPACING - 2026-03-03
   ======================================== */
.site-main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.py-3 {
  padding-top: 2.5rem !important;
  padding-bottom: 0 !important;
}
.still-have-questions,
.cta-section {
  margin-bottom: 0 !important;
}

/* ========================================
   MINI-CART SIDEBAR - 2026-03-03
   ======================================== */
.hkp-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.hkp-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}
.hkp-mini-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.hkp-mini-cart.open {
    right: 0;
}
.hkp-mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.hkp-mini-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
.hkp-mini-cart-count {
    color: #D4538A;
    font-weight: 700;
}
.hkp-mini-cart-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.hkp-mini-cart-close:hover {
    color: #333;
}
.hkp-mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.hkp-mini-cart-empty {
    text-align: center;
    padding: 60px 20px;
}
.hkp-mini-cart-empty svg {
    margin-bottom: 16px;
    opacity: 0.6;
}
.hkp-mini-cart-empty p {
    color: #999;
    font-size: 15px;
    margin-bottom: 20px;
}
.hkp-mini-cart-shop-btn {
    display: inline-block;
    background: #D4538A;
    color: #fff !important;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}
.hkp-mini-cart-shop-btn:hover {
    background: #e91e8c;
}
.hkp-mini-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}
.hkp-mini-cart-item:last-child {
    border-bottom: none;
}
.hkp-mini-cart-item-img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
}
.hkp-mini-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hkp-mini-cart-item-info {
    flex: 1;
    min-width: 0;
}
.hkp-mini-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px;
    line-height: 1.3;
}
.hkp-mini-cart-item-variant {
    font-size: 12px;
    color: #D4538A;
    margin: 0 0 3px;
    font-weight: 500;
}
.hkp-mini-cart-item-qty {
    font-size: 13px;
    color: #555;
    margin: 0;
    font-weight: 600;
}
.hkp-mini-cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    padding-right: 20px;
}
.hkp-mini-cart-remove {
    position: absolute;
    top: 16px;
    right: 0;
    background: none;
    border: none;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.hkp-mini-cart-remove:hover {
    color: #e74c3c;
}
.hkp-mini-cart-footer {
    flex-shrink: 0;
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.hkp-mini-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.hkp-mini-cart-total span:first-child {
    font-size: 15px;
    color: #666;
}
.hkp-mini-cart-total-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
.hkp-mini-cart-checkout-btn {
    display: block;
    width: 100%;
    background: #D4538A;
    color: #fff !important;
    text-align: center;
    padding: 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
    box-sizing: border-box;
}
.hkp-mini-cart-checkout-btn:hover {
    background: #e91e8c;
}
.hkp-mini-cart-shipping-note {
    text-align: center;
    font-size: 13px;
    color: #555;
    margin: 10px 0 0;
}
