/*
Theme Name: Planishor Child
Template: astra
Description: Custom child theme for Planishor Pharma
Version: 1.0.0
*/

/* ===== HIDE REDUNDANT PAGE TITLES ===== */
.page .entry-header .entry-title {
  display: none !important;
}

/* ===== FULL WIDTH OVERRIDE FOR PAGES ===== */
.page .site-content > .ast-container,
.page #primary,
.page .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.page .site-content > .ast-container {
  max-width: 100% !important;
}

.page .ast-separate-container .ast-article-single {
  padding: 0 !important;
}

/* ===== GLOBAL STYLES ===== */
:root {
  --planishor-primary: #1a56db;
  --planishor-primary-dark: #1040a0;
  --planishor-secondary: #f59e0b;
  --planishor-dark: #1e293b;
  --planishor-gray: #64748b;
  --planishor-light: #f8fafc;
  --planishor-white: #ffffff;
  --planishor-success: #10b981;
  --planishor-whatsapp: #25d366;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--planishor-dark);
  line-height: 1.6;
}

/* ===== HEADER ===== */
.ast-primary-header-bar {
  background: var(--planishor-primary) !important;
  border-bottom: 3px solid var(--planishor-secondary);
}

.ast-builder-menu .menu-item > a {
  color: var(--planishor-dark) !important;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ast-builder-menu .menu-item > a:hover {
  color: var(--planishor-primary) !important;
}

.site-title a {
  color: var(--planishor-dark) !important;
  font-weight: 700;
  font-size: 24px !important;
}

/* ===== TOP BAR ===== */
.ast-above-header-bar {
  background: var(--planishor-dark) !important;
  color: var(--planishor-white);
  font-size: 13px;
  padding: 6px 0;
}

.ast-above-header-bar a {
  color: var(--planishor-secondary) !important;
}

/* ===== HERO SECTION ===== */
.planishor-hero {
  background: linear-gradient(135deg, var(--planishor-primary) 0%, var(--planishor-primary-dark) 100%);
  color: var(--planishor-white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: -1px;
}

/* White header bar */
.site-header,
.ast-primary-header-bar,
.main-header-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
}

/* Mobile menu toggle color */
.ast-mobile-menu-trigger-minimal .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg,
.menu-toggle .ast-mobile-svg {
  fill: var(--planishor-dark) !important;
}

/* Logo in header */
.custom-logo-link {
  display: inline-block !important;
}

.custom-logo {
  max-height: 60px !important;
  width: auto !important;
  object-fit: contain;
}

.ast-site-identity {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
}

/* Show site title next to logo */
.site-logo-img ~ .ast-site-title-wrap .site-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.site-logo-img ~ .ast-site-title-wrap .site-title a {
  color: #16a34a !important;
  text-decoration: none !important;
}

/* Compact header height */
.main-header-bar .ast-builder-grid-row {
  min-height: auto !important;
}

.ast-builder-header-row {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.planishor-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
  opacity: 0.3;
}

.planishor-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #22c55e !important;
}

.planishor-hero .subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.planishor-hero .tagline {
  font-size: 18px;
  font-style: italic;
  opacity: 0.85;
}

/* ===== BUTTONS ===== */
.btn-primary, .planishor-btn {
  background: var(--planishor-secondary) !important;
  color: var(--planishor-dark) !important;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover, .planishor-btn:hover {
  background: #e08e09 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-outline {
  background: transparent !important;
  color: var(--planishor-white) !important;
  border: 2px solid var(--planishor-white) !important;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--planishor-white) !important;
  color: var(--planishor-primary) !important;
}

.btn-whatsapp {
  background: var(--planishor-whatsapp) !important;
  color: var(--planishor-white) !important;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background: #1fb855 !important;
  transform: translateY(-2px);
}

/* ===== TRUST BADGES ===== */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
  background: var(--planishor-light);
  flex-wrap: wrap;
}

.trust-badge {
  text-align: center;
  padding: 20px;
}

.trust-badge .badge-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--planishor-primary);
  display: block;
}

.trust-badge .badge-label {
  font-size: 14px;
  color: var(--planishor-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SECTION STYLES ===== */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--planishor-dark);
  margin-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--planishor-secondary);
  margin: 15px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--planishor-gray);
  font-size: 16px;
  margin-bottom: 40px;
}

/* ===== CATEGORY GRID ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
}

.category-card {
  background: var(--planishor-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none !important;
  color: var(--planishor-dark);
  border-left: 4px solid var(--planishor-primary);
  display: flex;
  align-items: center;
  padding: 20px 24px;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.15);
  border-left-color: var(--planishor-accent);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card .card-content {
  padding: 0;
}

.category-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--planishor-dark) !important;
  text-decoration: none !important;
}

.category-card .product-count {
  font-size: 13px;
  color: var(--planishor-gray);
}

/* ===== PRODUCT CARDS (WooCommerce) ===== */
.woocommerce ul.products li.product {
  background: var(--planishor-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  padding: 0 !important;
  border: 1px solid #e2e8f0;
}

.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 img {
  border-radius: 0;
  margin: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 12px 16px 4px !important;
  font-size: 15px !important;
  font-weight: 600;
  color: var(--planishor-dark);
}

.woocommerce ul.products li.product .price {
  padding: 0 16px 12px;
  color: var(--planishor-primary) !important;
  font-weight: 700;
  font-size: 16px !important;
}

/* Hide Add to Cart - Catalog Mode */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.single-product .cart,
.single-product form.cart,
.woocommerce-cart,
.woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout {
  display: none !important;
}

/* Send Inquiry Button (replaces Add to Cart) */
.send-inquiry-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 10px;
  background: var(--planishor-primary);
  color: var(--planishor-white) !important;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.send-inquiry-btn:hover {
  background: var(--planishor-primary-dark);
}

/* ===== SINGLE PRODUCT PAGE ===== */
.single-product .product .summary {
  padding: 0 20px;
}

.single-product .product_title {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--planishor-dark);
  margin-bottom: 12px !important;
}

.single-product .price {
  font-size: 24px !important;
  color: var(--planishor-primary) !important;
  font-weight: 700;
}

/* Product Spec Table */
.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}

.product-specs-table th,
.product-specs-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.product-specs-table th {
  background: var(--planishor-light);
  font-weight: 600;
  color: var(--planishor-dark);
  width: 40%;
}

.product-specs-table td {
  color: var(--planishor-gray);
}

.product-specs-table tr:hover {
  background: #f1f5f9;
}

/* MOQ Badge */
.moq-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0;
}

/* Inquiry Box */
.product-inquiry-box {
  background: var(--planishor-light);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-top: 30px;
}

.product-inquiry-box h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--planishor-dark);
}

.product-inquiry-box .wpcf7 input,
.product-inquiry-box .wpcf7 textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 10px;
}

.product-inquiry-box .wpcf7 input[type="submit"] {
  background: var(--planishor-primary);
  color: var(--planishor-white);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  cursor: pointer;
  width: auto;
}

/* ===== WHY CHOOSE US ===== */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.why-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--planishor-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.why-card .icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.why-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 14px;
  color: var(--planishor-gray);
}

/* ===== BRANDS SECTION ===== */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 20px 0;
}

.brand-tag {
  background: var(--planishor-light);
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--planishor-dark);
  transition: all 0.2s;
}

.brand-tag:hover {
  background: var(--planishor-primary);
  color: var(--planishor-white);
  border-color: var(--planishor-primary);
}

/* ===== COMPANY INFO TABLE ===== */
.company-info-table {
  width: 100%;
  max-width: 700px;
  margin: 30px auto;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.company-info-table tr:nth-child(even) {
  background: var(--planishor-light);
}

.company-info-table th,
.company-info-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.company-info-table th {
  font-weight: 600;
  color: var(--planishor-dark);
  width: 45%;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--planishor-dark) !important;
  color: #94a3b8;
}

.site-footer a {
  color: #cbd5e1 !important;
}

.site-footer a:hover {
  color: var(--planishor-secondary) !important;
}

.site-footer .widget-title {
  color: var(--planishor-white) !important;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.site-footer .widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--planishor-secondary);
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--planishor-whatsapp);
  color: var(--planishor-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--planishor-light);
  border-radius: 8px;
  margin-bottom: 16px;
}

.contact-info-card .icon {
  font-size: 24px;
  color: var(--planishor-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .planishor-hero h1 { font-size: 28px; }
  .planishor-hero .subtitle { font-size: 16px; }
  .trust-badges { gap: 20px; }
  .trust-badge .badge-number { font-size: 28px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .why-choose-grid { grid-template-columns: 1fr; }
  .trust-badges { flex-direction: column; align-items: center; }
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--planishor-dark) 0%, #334155 100%);
  color: #ffffff !important;
  padding: 60px 20px;
  text-align: center;
}

.cta-banner p {
  color: #cbd5e1 !important;
}

.cta-banner h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff !important;
}

/* ===== BREADCRUMBS ===== */
.woocommerce .woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--planishor-gray);
  padding: 12px 0;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--planishor-primary);
}

/* ===== SEARCH ===== */
.woocommerce-product-search input[type="search"] {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
}

.woocommerce-product-search button {
  background: var(--planishor-primary);
  color: var(--planishor-white);
  border: none;
  padding: 12px 20px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

/* ===== HIDE REVIEWS TAB ===== */
.woocommerce-tabs .reviews_tab {
  display: none !important;
}

/* ===== PRODUCT PAGE PRICE UNIT ===== */
.single-product .price .woocommerce-Price-amount {
  font-size: 24px;
}

/* ===== SHOP PAGE IMPROVEMENTS ===== */
.woocommerce .woocommerce-ordering {
  margin-bottom: 20px;
}

.woocommerce .woocommerce-result-count {
  color: var(--planishor-gray);
}

/* Product card category label */
.woocommerce ul.products li.product .ast-woo-product-category {
  font-size: 12px;
  color: var(--planishor-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* ===== WOO BREADCRUMB STYLING ===== */
.woocommerce .woocommerce-breadcrumb {
  padding: 16px 0;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--planishor-gray);
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--planishor-primary);
  text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== PLACEHOLDER IMAGE STYLE ===== */
.woocommerce ul.products li.product img.wp-post-image[src*="placeholder"],
.woocommerce ul.products li.product img.woocommerce-placeholder {
  opacity: 0.4;
  padding: 20px;
}

/* ===== CUSTOM FOOTER ===== */
.planishor-footer {
  background: var(--planishor-dark);
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
}

.planishor-footer .footer-main {
  padding: 60px 0 40px;
}

.planishor-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.planishor-footer .footer-heading {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.planishor-footer .footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--planishor-secondary);
  border-radius: 2px;
}

.planishor-footer .footer-desc {
  color: #94a3b8;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.planishor-footer .footer-social {
  display: flex;
  gap: 10px;
}

.planishor-footer .social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.planishor-footer .social-link:hover {
  background: var(--planishor-whatsapp);
  color: #ffffff;
  transform: translateY(-2px);
}

.planishor-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.planishor-footer .footer-links li {
  margin-bottom: 10px;
}

.planishor-footer .footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.planishor-footer .footer-links a::before {
  content: '\203A';
  margin-right: 8px;
  color: var(--planishor-secondary);
  font-weight: 700;
}

.planishor-footer .footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.planishor-footer .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.planishor-footer .footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.planishor-footer .footer-contact .contact-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.planishor-footer .footer-contact a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.planishor-footer .footer-contact a:hover {
  color: var(--planishor-secondary);
}

/* Footer Bottom Bar */
.planishor-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.planishor-footer .footer-bottom .footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.planishor-footer .footer-bottom p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.planishor-footer .footer-bottom a {
  color: var(--planishor-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.planishor-footer .footer-bottom a:hover {
  color: #ffffff;
}

/* Hide Astra default footer */
.site-footer,
.ast-footer-overlay,
.ast-small-footer {
  display: none !important;
}

/* Footer Responsive */
@media (max-width: 992px) {
  .planishor-footer .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .planishor-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .planishor-footer .footer-main {
    padding: 40px 0 20px;
  }
}
