/*
Theme Name: Tablotan
Theme URI: https://tablotan.com.tr
Author: Dijital Reenkarnasyon Team
Author URI: https://dijitalreenkarnasyon.com
Description: Ankara merkezli, Türkiye geneline hizmet veren toptan kırtasiye ve imalatçı teması. Sulu boya konseptli tasarım.
Version: 2.0.0
Text Domain: tablotan
*/

:root {
  /* Watercolor Palette - Pastels */
  --color-primary: #FF9AA2;
  --color-primary-dark: #FF7B84;
  --color-secondary: #B5EAD7;
  --color-secondary-dark: #A3D8C6;
  --color-accent: #C7CEEA;
  --color-accent-2: #E2F0CB;
  --color-text: #4A4A4A;
  --color-text-light: #888888;
  --color-background: #FFFCF9;
  --color-white: #FFFFFF;
  --color-border: #E0E0E0;

  /* Gradients - Optimized */
  --gradient-hero: linear-gradient(135deg, #FFF0F0 0%, #F0FFF4 100%);
  --gradient-btn: linear-gradient(to right, #FF9AA2 0%, #FFB7B2 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Layout */
  --container-width: 1200px;
  --border-radius: 20px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(100, 100, 111, 0.1);
}

/* Base Reset & Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.7;
  font-size: 17px;
  /* Simplified background for performance - static gradient instead of radial/fixed */
  background-image: linear-gradient(to bottom right, #FFFCF9, #FFF5F5);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Prevent horizontal overflow */
}

/* Form Accessibility & Mobile Optimization */
input,
textarea,
select {
  font-family: inherit;
  font-size: 16px !important;
  /* Prevents auto-zoom on iOS */
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

a {
  color: #8E8CD8;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 2px solid transparent;
}

a:hover {
  color: #6C63FF;
  border-bottom-color: rgba(108, 99, 255, 0.3);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  transform: translateZ(0);
  /* Hardware accelerate */
  content-visibility: auto;
  /* Performance: render when visible */
}

/* Performance: Optimize animations */
.product-card,
.btn,
.icon-btn {
  will-change: transform;
}

.product-card:hover {
  will-change: transform, box-shadow;
}

ul,
ol {
  list-style: none;
}

/* Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  will-change: transform;
  /* Hint for browser */
}

.btn-primary {
  background-image: var(--gradient-btn);
  color: white;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 154, 162, 0.4);
}

.btn-whatsapp {
  background-color: var(--color-secondary);
  color: #1F2937;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background-color: var(--color-secondary-dark);
  transform: translateY(-3px);
  color: white;
}

.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

/* Header & Nav */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 0;
  /* Slightly tighter padding */
  border-bottom: none;
}


.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

.site-logo,
.site-logo-text {
  font-size: 1.8rem;
  /* Slightly smaller for balance */
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-heading);
  line-height: 1;
  text-decoration: none;
  margin: 0;
  letter-spacing: 0.5px;
}

.site-logo-text a {
  color: inherit;
  text-decoration: none;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  /* Tighter gap */
}

.site-branding img,
.custom-logo-link img {
  max-height: 60px;
  /* Golden ratio proportion for sticky headers usually around 50-60px */
  width: auto;
  height: auto;
  display: block;
}

.main-navigation ul {
  display: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1200px) {
  .main-navigation .desktop-menu-container>ul {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-navigation a {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    /* Smaller font for better fit */
    color: var(--color-text);
    position: relative;
    font-weight: 500;
    white-space: nowrap;
    /* Prevent text wrapping */
  }

  /* Simplified hover effect to reduce layout thrashing */
  .main-navigation a:hover {
    color: var(--color-primary);
  }

  /* DROPDOWN MENU STYLES START */
  .main-navigation ul li {
    position: relative;
    padding: 10px 0;
    /* Increase hit area */
  }

  /* Sub-menu hidden by default */
  .main-navigation ul ul {
    display: none !important;
    /* Force hide */
    list-style: none;
    margin: 0;
    padding: 10px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    z-index: 999;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Show on Hover */
  .main-navigation ul li:hover>ul {
    display: flex !important;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  /* MEGA MENU: Products */
  .main-navigation ul li.mega-menu>ul {
    width: 1000px;
    max-width: calc(100vw - 40px);
    display: none !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px 20px;
    padding: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
  }

  .main-navigation ul li.mega-menu:hover>ul {
    display: grid !important;
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .main-navigation ul li.mega-menu ul li {
    padding: 2px 0;
  }

  /* Sub-menu links styling */
  .main-navigation ul ul li {
    padding: 0;
  }

  .main-navigation ul ul a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    /* Slightly smaller for dense lists */
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: var(--color-text);
    transition: all 0.2s;
    border-radius: 8px;
    /* Rounded items */
  }

  .main-navigation ul ul a:hover {
    background: var(--color-accent-2);
    color: var(--color-primary-dark);
    padding-left: 20px;
    font-weight: 600;
  }

  /* DROPDOWN MENU STYLES END */
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
  padding: 0.5rem;
}

@media (min-width: 1200px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Header Actions */
.header-actions {
  margin-left: 1rem;
  display: flex;
  align-items: center;
}

@media (min-width: 1200px) {
  .header-actions {
    margin-left: 2rem;
  }
}

/* Utility Classes */
.desktop-only {
  display: none !important;
}

@media (min-width: 1200px) {
  .desktop-only {
    display: flex !important;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  /* Static background allows faster paint */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 240, 240, 0.5));
}

/* Removed heavy box-shadow blurs on pseudo elements */

/* Cards (Products, Categories) */
.product-card,
.category-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none !important;
  overflow: hidden;
  will-change: transform;
}

.product-card:hover,
.category-card:hover {
  transform: translateY(-5px);
  /* Simpler transform */
  box-shadow: var(--shadow-md);
}

.p-card-body {
  padding: 1.5rem;
}

/* Trust Band */
.trust-band {
  background: white !important;
  border-top: 5px solid var(--color-secondary);
  border-bottom: 5px solid var(--color-primary);
  position: relative;
}

.trust-item span {
  background: var(--color-accent-2);
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text) !important;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: white;
  color: var(--color-text);
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-xl);
  border-top: 10px solid var(--color-accent);
  position: relative;
}

.footer-grid h3 {
  color: var(--color-primary-dark);
  font-size: 1.5rem;
  border-bottom: 2px dashed var(--color-secondary);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-text);
  transition: color 0.2s ease, padding 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

/* Footer Grid Responsive */
.footer-grid-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

@media (max-width: 992px) {
  .footer-grid-responsive {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-grid-responsive {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer {
    padding: 3rem 0;
  }
}

/* Floating WhatsApp */
/* Floating Action Buttons Container */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: white;
}

.btn-float-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.btn-float-phone {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}


/* Live Chat Widget Box (Hidden by default) */
.live-chat-widget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.live-chat-widget.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background: var(--color-primary);
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-content {
  padding: 1rem;
  height: 250px;
  overflow-y: auto;
  background: #fdfdfd;
}

.chat-message {
  background: #eee;
  padding: 0.5rem 0.8rem;
  border-radius: 10px 10px 10px 0;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  display: inline-block;
}

.chat-input-area {
  padding: 0.8rem;
  border-top: 1px solid #eee;
  display: flex;
}

.chat-input-area input {
  border: none;
  background: #f5f5f5;
  padding: 0.5rem;
  border-radius: 20px;
  width: 100%;
}


/* Forms */
input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
  background: #FAFAFA;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.close-search {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.search-container {
  width: 90%;
  max-width: 800px;
  text-align: center;
}

.search-field {
  width: 100%;
  border: none;
  border-bottom: 3px solid var(--color-primary);
  font-size: 2rem;
  background: transparent;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-heading);
}

.search-field:focus {
  outline: none;
  border-color: var(--color-secondary);
}

.search-submit {
  margin-top: 1rem;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}

/* Related Products */
.related-products {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px dashed var(--color-border);
}

/* References Section */
.references-section {
  background: white;
  padding: 3rem 0;
  overflow: hidden;
}

.reference-scroll {
  display: flex;
  gap: 3rem;
  justify-content: center;
  opacity: 0.6;
  flex-wrap: wrap;
}

.ref-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text-light);
  border: 2px solid #eee;
  padding: 1rem 2rem;
  border-radius: 10px;
}

/* Catalog CTA */
.catalog-cta {
  background: white;
  border: 4px solid #FFF0F0;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-text);
  margin: 2rem 0;
  border-radius: var(--border-radius);
}

/* 
   --------------------------------------------------------------
   MOBILE OPTIMIZATION (FINAL CORRECTED)
   --------------------------------------------------------------
*/

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  max-width: 100vw;
  overflow-wrap: break-word;
}

img,
video,
iframe,
canvas,
svg {
  max-width: 100% !important;
  height: auto;
}

/* 1. FORCE STACKING ON TABLETS & MOBILE (Broad Range) */
/* This ensures grid-2/3/4/footer collapse to 1 column sooner (900px) */
@media (max-width: 900px) {

  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Contact Page Specifics: Force full width columns */
  .contact-details-col,
  .contact-form-col {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }
}

/* 2. MOBILE SPECIFIC ADJUSTMENTS (< 768px) */
@media (max-width: 768px) {

  /* Container Padding */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Force Box Sizing on Everything */
  section,
  footer,
  header,
  main,
  div,
  form,
  input,
  textarea {
    box-sizing: border-box;
  }

  /* Typography Scaling */
  h1 {
    font-size: 1.7rem !important;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.3rem !important;
  }

  /* Inputs */
  input,
  select,
  textarea {
    font-size: 16px !important;
    /* iOS Zoom Fix */
    max-width: 100%;
  }

  /* Map Containment */
  .map-wrapper,
  .map-container {
    width: 100%;
    max-width: 100%;
    height: 300px !important;
  }

  /* FIX: Contact Cards Overflowing -> Reduce Padding */
  .contact-info-card,
  .contact-form-wrapper {
    padding: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
  }
}

/* 3. SMALL SCREEN TWEAKS (< 600px) */
@media (max-width: 600px) {
  .footer-col {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
  }

  .footer-col h3 {
    display: inline-block;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact-info-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Product Cards Vertical Stack */
  .product-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .product-img-link {
    height: auto;
    min-height: 200px;
  }
}

/* MOBILE OPTIMIZATIONS ADDED BY AI */
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  max-width: 100vw;
}

img,
video,
iframe,
canvas,
svg {
  max-width: 100% !important;
  height: auto;
}

/* Contact Page & General Grid Stacking for Tablets/Mobile */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  section,
  footer,
  header,
  main {
    box-sizing: border-box;
    width: 100%;
  }

  h1 {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  h3 {
    font-size: 1.3rem !important;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Ensure Map doesn't overflow */
  .map-wrapper,
  .map-container {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {

  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-col {
    text-align: center;
    margin-bottom: 2rem;
  }

  .footer-col h3 {
    display: inline-block;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
  }

  .social-links {
    justify-content: center;
  }

  .contact-info-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
  }

  .product-img-link {
    height: auto;
    min-height: 200px;
  }
}

@media (max-width: 1200px) {

  .site-logo,
  .site-logo-text {
    font-size: 1.3rem;
  }

  .header-inner {
    padding: 0 15px;
  }
}

/* FORCE MOBILE MAP FIX */
@media (max-width: 768px) {
  .map-container {
    padding: 0 !important;
    border: none !important;
    height: 350px !important;
  }

  .contact-info-card,
  .contact-form-wrapper {
    padding: 1.5rem !important;
  }
}


/* AI FINAL RESCUE FIXES */
@media (max-width: 900px) {

  /* Kurumsal Stats Grid Override */
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 3rem !important;
  }
}

@media (max-width: 600px) {

  /* Footer Product Menu - Vertical Stack */
  .menu-footer-products-container,
  .menu-footer-quick-container,
  .menu-footer-legal-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }

  /* Stats Card Compact */
  .stat-card {
    padding: 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .stat-card span[style*='font-size: 3rem'] {
    font-size: 2.5rem !important;
  }
}


/* HIDE ELEMENTS ON MOBILE MENU OPEN */
body.mobile-menu-open .header-actions-inner .quote-trigger,
body.mobile-menu-open .header-actions-inner .btn-whatsapp,
body.mobile-menu-open .header-actions-inner .admin-login-btn,
body.mobile-menu-open .mobile-main-search {
  display: none !important;
}

/* 2-COLUMN PRODUCT GRID ON MOBILE */
@media (max-width: 768px) {

  /* Homepage Featured Products which usually use grid-4 */
  .grid-4,
  .archive-product-grid,
  .products,
  /* WooCommerce standard */
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  /* Make sure timeline doesn't break if it uses grid-4 */
  .timeline-section .grid-4 {
    grid-template-columns: 1fr !important;
  }

  /* Ensure product cards fit */
  .product-card h3 {
    font-size: 0.9rem !important;
  }

  .product-card .price {
    font-size: 0.85rem !important;
  }

  /* Force Footer Vertical Stack again (Reinforcement) */
  .menu-footer-products-container,
  .menu-footer-quick-container,
  .menu-footer-legal-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}


/* HIDE ELEMENTS WHEN MOBILE MENU IS OPEN */
body.mobile-menu-open .floating-actions,
body.mobile-menu-open .mobile-main-search,
body.mobile-menu-open .btn-whatsapp,
body.mobile-menu-open .quote-trigger {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;

}

/* ABSOLUTE FINAL GAP REMOVAL */
@media (max-width: 768px) {

  main#main,
  main.site-main {
    padding-top: 0 !important;
    /* Zero padding */
    margin-top: 0 !important;
  }

  /* Ensure no body padding interferes */
  body {
    padding-top: 0 !important;
  }
}