/*
 Theme Name:   Storefront Child — Genius Guppies
 Theme URI:    https://geniusguppies.com
 Description:  Genius Guppies child theme based on Storefront
 Author:       Genius Guppies Dev Team
 Author URI:   https://geniusguppies.com
 Template:     storefront
 Version:      7.2.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  storefront-child
*/

/* ============================================================
   GENIUS GUPPIES — MASTER CSS v7.2
   Brand: Blue #1E3A5F | Orange #FF6B35 | Yellow #FFC107
   Font: Inter (loaded via functions.php)

   SECTION MAP
   1.  Global Reset & Fonts
   2.  Layout Foundation (sidebar off, full-width, content area)
   3.  Header — Single-Row Sticky White
   4.  Header — Cart
   5.  Header — Search (hidden on desktop, shown on mobile)
   6.  Navigation (primary nav menu links)
   7.  Shop — Product Grid & Cards
   8.  Blog — Visual Card Grid
   9.  Single Post
   10. Pages (About, Contact) + Elementor
   11. Contact Form 7
   12. Footer
   13. Scroll-to-Top Button
   14. Mobile Responsive (≤ 767px)
   15. Tablet (768px – 1024px)
   16. Mid-size (768px – 900px)
   17. Changelog
   ============================================================ */


/* ═══════════════════════════════════════════════════════════
   1. GLOBAL RESET & FONTS
═══════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Source Sans Pro', sans-serif !important;
  color: #2d3748 !important;
  background: #fafbfc !important;
  /* overflow-x:clip (not hidden) — allows #masthead position:sticky to work.
     Elementor/Storefront set overflow-x:hidden which breaks sticky. 'clip' still
     prevents horizontal scroll but does NOT create a new scroll container. */
  overflow-x: clip !important;
}

/* #page wrapper — same fix */
body #page,
#page.hfeed {
  overflow-x: clip !important;
  overflow-y: visible !important;
}



/* ═══════════════════════════════════════════════════════════
   2. LAYOUT FOUNDATION
   - No sidebar, full-width content
   - Storefront's sidebar removal is also handled via PHP hooks
     (storefront_right_sidebar / storefront_left_sidebar → false)
     CSS here is the visual backstop.
═══════════════════════════════════════════════════════════ */

/* Hide sidebar elements */
#secondary,
.widget-area,
aside.widget-area {
  display: none !important;
  width: 0 !important;
  float: none !important;
}

/* Full-width site content container */
.site-content > .col-full {
  max-width: 100% !important;
  padding: 0 !important;
  display: block !important;
  overflow: hidden !important; /* clearfix */
}

/* Content area — 100% wide, no float, standard padding */
#primary,
.content-area,
.woocommerce #primary,
.woocommerce-page #primary,
.woocommerce .content-area,
.woocommerce-page .content-area,
.left-sidebar .content-area,
.right-sidebar .content-area,
.storefront-full-width-content .content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  margin: 0 !important;
  padding: 0 48px !important;
  box-sizing: border-box !important;
}

/* Kill any remaining sidebar-width allocations from woocommerce-active class */
.woocommerce-active .site-header .site-branding,
.woocommerce-active .site-header .main-navigation {
  width: auto !important;
  float: none !important;
}

/* Remove top margin/padding gap on WooCommerce pages */
.woocommerce-page #primary,
.woocommerce #primary {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* WooCommerce breadcrumb */
.woocommerce-breadcrumb {
  margin: 0 48px 16px !important;
  background: #f8fafc !important;
  padding: 10px 0 !important;
  font-size: 13px !important;
  color: #888 !important;
}


/* ═══════════════════════════════════════════════════════════
   3. HEADER — Single-Row Sticky White
   CONFIRMED DOM (from storefront-template-functions.php source):
   #masthead
     .col-full                          ← OUTER: logo + product search (hooks 0-41)
     .storefront-primary-navigation     ← MIDDLE/RIGHT: contains an inner .col-full
       .col-full                        ← INNER: nav.main-navigation + ul.site-header-cart

   storefront_primary_navigation_wrapper() outputs:
   '<div class="storefront-primary-navigation"><div class="col-full">'  (priority 42)
   then nav at 50, cart at 60, then close at 68.

   CSS STRATEGY:
   - #masthead = flex row    (outer .col-full left, .storefront-primary-navigation right)
   - outer .col-full = flex: 0 0 auto (logo only, shrink to fit)
   - .storefront-primary-navigation = flex: 1 (fill rest of header)
   - inner .col-full = flex row (nav left, cart right via space-between)
═══════════════════════════════════════════════════════════ */

/* #masthead = outermost sticky flex ROW */
#masthead,
header.site-header,
.site-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  background: #ffffff !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  border-bottom: 2px solid #f0f4f8 !important;
  height: 64px !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* OUTER .col-full = logo area, shrinks to logo width only */
/* Storefront parent CSS sets width:100% on .col-full globally — override for masthead only */
#masthead > .col-full,
header.site-header > .col-full,
.site-header > .col-full {
  flex: 0 0 auto !important;   /* shrink-to-fit: only as wide as logo + search */
  width: auto !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 0 0 0 24px !important;
  height: 64px !important;
  box-sizing: border-box !important;
  position: static !important;  /* no relative/absolute needed here */
}




/* Logo */
.site-branding {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.site-branding img,
.custom-logo,
#masthead .custom-logo-link img {
  height: 46px !important;
  max-height: 46px !important;
  width: auto !important;
  max-width: 170px !important;
  display: block !important;
  object-fit: contain !important;
}

.site-title,
.site-description,
.site-branding p {
  display: none !important;
}/* .storefront-primary-navigation = fills the remaining header space (flex:1) */
/* parent Storefront sets position:sticky on this — override to static */
.storefront-primary-navigation,
#masthead .storefront-primary-navigation,
header .storefront-primary-navigation {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  position: static !important;  /* NOT sticky */
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  height: 64px !important;
  box-sizing: border-box !important;
  top: auto !important;
  z-index: auto !important;
}

/* INNER .col-full (inside nav wrapper) = flex row [nav | cart] */
.storefront-primary-navigation > .col-full {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;  /* nav left, cart right */
  width: 100% !important;
  height: 64px !important;
  padding: 0 24px 0 0 !important;
  box-sizing: border-box !important;
}



/* ═══════════════════════════════════════════════════════════
   4. HEADER — CART BUTTON
   Clean professional pill: [count  🛒]  navy outline, no orange.
   Hover: navy fill, white text. No inner bubble.
═══════════════════════════════════════════════════════════ */
.site-header-cart,
#masthead .site-header-cart {
  flex: 0 0 auto !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 24px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  min-height: 64px !important;
  position: static !important;
}

.site-header-cart li,
#masthead .site-header-cart li {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  height: 64px !important;
}

/* The cart link button itself */
.site-header-cart a.cart-contents {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 18px !important;
  border: 2px solid #1E3A5F !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #1E3A5F !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

/* Cart icon (SVG / img) inside the pill — vertically centered */
.site-header-cart a.cart-contents img,
.site-header-cart a.cart-contents svg {
  display: inline-block !important;
  vertical-align: middle !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.site-header-cart a.cart-contents:hover {
  background: #1E3A5F !important;
  color: #fff !important;
  border-color: #1E3A5F !important;
}

/* Count span — plain text, inherits button color. NO orange bubble. */
.site-header-cart a.cart-contents .count {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: inherit !important;   /* navy normally, white on hover */
  background: none !important;
  border-radius: 0 !important;
  min-width: auto !important;
  height: auto !important;
  display: inline !important;
  padding: 0 !important;
  line-height: inherit !important;
}

/* Hide the price amount — just show item count */
.site-header-cart a.cart-contents .amount {
  display: none !important;
}

/* Dropdown cart — hidden (navigates to /cart/ on click) */
.site-header-cart .widget_shopping_cart {
  display: none !important;
}



/* ═══════════════════════════════════════════════════════════
   5. HEADER — SEARCH
   Hidden on desktop (no search bar in header row).
   Shown inline on mobile (see section 14).
═══════════════════════════════════════════════════════════ */
.site-search,
#masthead .site-search {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════
   6. NAVIGATION — Primary Menu Links
   nav.main-navigation is flex: 1 inside .storefront-primary-navigation
═══════════════════════════════════════════════════════════ */
nav.main-navigation {
  flex: 1 !important;
}

.main-navigation ul.menu,
.main-navigation ul.nav-menu {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
  display: block !important;
  padding: 20px 14px !important;
  color: #1E3A5F !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  letter-spacing: 0.4px !important;
  border-radius: 4px !important;
  transition: color 0.15s !important;
  white-space: nowrap !important;
}

.main-navigation ul.menu > li:hover > a,
.main-navigation ul.menu > li.current-menu-item > a,
.main-navigation ul.menu > li.current_page_item > a {
  color: #FF6B35 !important;
}

/* Handheld footer bar — hidden (duplicate search) */
.storefront-handheld-footer-bar,
.storefront-handheld-footer-bar li.search {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════════
   7. SHOP — PRODUCT GRID & CARDS
═══════════════════════════════════════════════════════════ */

/* Shop page title */
.woocommerce .woocommerce-products-header,
.woocommerce-page .woocommerce-products-header {
  text-align: center !important;
  padding: 30px 0 10px !important;
}

.woocommerce .page-title,
.woocommerce-page .page-title {
  font-size: 28px !important;
  color: #1E3A5F !important;
  font-weight: 800 !important;
}

/* Product grid */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  list-style: none !important;
  margin: 28px 0 40px !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  align-items: stretch !important;
  justify-content: start !important;
}

/* Hide any non-product li items that could offset grid column 1 */
ul.products li:not(.product) {
  display: none !important;
}

/* Ensure first product card always starts at column 1 */
ul.products li.product:first-child {
  grid-column: 1 !important;
}

/* Product card */
ul.products li.product,
.woocommerce ul.products li.product {
  background: #ffffff !important;
  border-radius: 18px !important;
  border: 1.5px solid #eef1f6 !important;
  padding: 22px 20px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  box-shadow: 0 4px 16px rgba(30,58,95,0.07) !important;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

ul.products li.product:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 36px rgba(30,58,95,0.14) !important;
}

ul.products li.product img {
  width: 100% !important;
  height: 200px !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  margin-bottom: 16px !important;
}

ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1E3A5F !important;
  line-height: 1.45 !important;
  margin: 0 0 10px !important;
}

ul.products li.product .price {
  color: #FF6B35 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  margin-bottom: 18px !important;
}

ul.products li.product .price del {
  color: #aaa !important;
  font-size: 13px !important;
  margin-right: 4px !important;
}

/* Add to Cart button */
ul.products li.product .button,
ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .product_type_simple {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #FF6B35 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  width: 100% !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  margin-top: auto !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
  box-sizing: border-box !important;
  letter-spacing: 0.3px !important;
}

.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: #e5571f !important;
  transform: scale(1.02) !important;
}

/* Added-to-cart state */
.woocommerce ul.products li.product .added_to_cart {
  display: block !important;
  background: #1E3A5F !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 24px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-align: center !important;
}


/* ═══════════════════════════════════════════════════════════
   8. BLOG — VISUAL CARD GRID
   NOTE: uses body.blog exclusively — NOT body.archive
   (body.archive also matches WooCommerce shop, which broke the shop layout)
═══════════════════════════════════════════════════════════ */

/* Blog "Learning Corner" hero banner — ONLY on blog index, not WooCommerce */
body.blog:not(.woocommerce):not(.woocommerce-page) #primary::before {
  content: "📚 Learning Corner" !important;
  display: block !important;
  background: linear-gradient(120deg, #1E3A5F 0%, #2a5298 100%) !important;
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  padding: 44px 0 !important;
  text-align: center !important;
  margin: 0 -48px 36px !important;
  letter-spacing: 0.3px !important;
}

/* Explicit no-banner rule on WooCommerce archive pages */
body.woocommerce #primary::before,
body.woocommerce-page #primary::before,
body.tax-product_cat #primary::before,
body.post-type-archive-product #primary::before {
  display: none !important;
  content: none !important;
}

/* Blog card grid — ONLY body.blog, NOT body.archive */
body.blog #main {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  padding: 0 0 48px !important;
  align-items: start !important;
}

body.blog article.post {
  background: #ffffff !important;
  border-radius: 18px !important;
  border: 1.5px solid #eef1f6 !important;
  box-shadow: 0 4px 14px rgba(30,58,95,0.07) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

body.blog article:hover {
  transform: translateY(-7px) !important;
  box-shadow: 0 18px 40px rgba(30,58,95,0.14) !important;
}

/* Featured image */
body.blog article .post-thumbnail {
  height: 190px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #1E3A5F 0%, #2a5298 60%, #3a7bd5 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.blog article .post-thumbnail img {
  width: 100% !important;
  height: 190px !important;
  object-fit: cover !important;
  display: block !important;
}

/* No-image fallback emoji */
body.blog article .post-thumbnail::before {
  content: "📖" !important;
  font-size: 60px !important;
  display: block !important;
}

/* Category badge */
body.blog .cat-links {
  padding: 14px 18px 4px !important;
  display: block !important;
}

body.blog .cat-links a {
  display: inline-block !important;
  background: #FFF3E0 !important;
  color: #FF6B35 !important;
  padding: 3px 11px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  letter-spacing: 0.5px !important;
}

body.blog .entry-header {
  padding: 4px 18px 0 !important;
}

body.blog .entry-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1E3A5F !important;
  line-height: 1.45 !important;
  margin: 0 0 6px !important;
  border: none !important;
}

body.blog .entry-title a {
  color: #1E3A5F !important;
  text-decoration: none !important;
}

body.blog .entry-title a:hover {
  color: #FF6B35 !important;
}

body.blog .entry-meta {
  font-size: 11px !important;
  color: #aaa !important;
  padding: 0 18px 8px !important;
  display: block !important;
}

/* Excerpted content */
body.blog .entry-summary,
body.blog .entry-content {
  padding: 0 18px 16px !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
  color: #555 !important;
  max-height: 80px !important;
  overflow: hidden !important;
  position: relative !important;
  flex: 1 !important;
}

body.blog .entry-content::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 36px !important;
  background: linear-gradient(transparent, #fff) !important;
}

body.blog .entry-content h2,
body.blog .entry-content h3,
body.blog .entry-content h4,
body.blog .entry-content ul,
body.blog .entry-content ol {
  display: none !important;
}

body.blog .entry-footer {
  padding: 4px 18px 18px !important;
}

body.blog .more-link {
  display: inline-block !important;
  background: #1E3A5F !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 8px 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background 0.2s !important;
  letter-spacing: 0.3px !important;
}

body.blog .more-link:hover {
  background: #FF6B35 !important;
}


/* ═══════════════════════════════════════════════════════════
   9. SINGLE POST
═══════════════════════════════════════════════════════════ */
body.single-post #primary {
  max-width: 780px !important;
  margin: 40px auto !important;
  padding: 0 24px !important;
}

.single-post .entry-title {
  font-size: 30px !important;
  color: #1E3A5F !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.single-post .entry-content h2 {
  color: #1E3A5F !important;
  border-left: 4px solid #FF6B35 !important;
  padding-left: 14px !important;
  font-size: 22px !important;
  margin: 36px 0 12px !important;
}

.single-post .entry-content p {
  font-size: 16px !important;
  line-height: 1.9 !important;
  color: #444 !important;
}


/* ═══════════════════════════════════════════════════════════
   10. PAGES (About Us, Contact) + ELEMENTOR
   These pages use Elementor which manages its own widths.
   We set the WP wrapper to 100% and let Elementor handle inner layout.
═══════════════════════════════════════════════════════════ */
body.page #primary {
  padding: 0 !important;
}

body.page #main,
body.page article.page {
  width: 100% !important;
  max-width: 100% !important;
}

body.page .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Kill Elementor's fixed-width container on page templates */
body.page .elementor-section-boxed > .elementor-container,
body.page .elementor-section > .elementor-container,
body.page .e-con-inner,
body.page .elementor-container {
  max-width: 100% !important;
  width: 100% !important;
}

/* Inner sections keep a reasonable content width */
body.page .elementor-inner-section .elementor-container {
  max-width: 1200px !important;
}

body.page .entry-title {
  color: #1E3A5F !important;
  font-size: 36px !important;
  font-weight: 800 !important;
  text-align: center !important;
  padding: 48px 0 8px !important;
  border: none !important;
}

body.page .entry-header {
  background: linear-gradient(120deg, #1E3A5F, #2a5298) !important;
  margin: 0 -48px 40px !important;
  padding: 0 48px !important;
}

body.page .entry-header .entry-title {
  color: #fff !important;
}

body.page .entry-content h2 {
  color: #1E3A5F !important;
  border-left: 4px solid #FF6B35 !important;
  padding-left: 16px !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  margin: 40px 0 16px !important;
}

body.page .entry-content p {
  font-size: 15.5px !important;
  line-height: 1.85 !important;
  color: #4a5568 !important;
}


/* ═══════════════════════════════════════════════════════════
   11. CONTACT FORM 7
═══════════════════════════════════════════════════════════ */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  display: block !important;
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1.5px solid #d0dae6 !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  color: #333 !important;
  background: #fff !important;
  box-sizing: border-box !important;
  outline: none !important;
  margin: 4px 0 14px !important;
  transition: border-color 0.2s !important;
  box-shadow: none !important;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #1E3A5F !important;
  box-shadow: 0 0 0 3px rgba(30,58,95,0.1) !important;
}

.wpcf7 textarea { min-height: 130px !important; }

.wpcf7 input[type="submit"],
.wpcf7-submit {
  background: #FF6B35 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 14px 44px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.15s !important;
}

.wpcf7-submit:hover {
  background: #e5571f !important;
  transform: scale(1.02) !important;
}


/* ═══════════════════════════════════════════════════════════
   12. FOOTER — Dark Navy
═══════════════════════════════════════════════════════════ */
footer.site-footer,
#colophon,
.site-footer {
  background: #1A2F4A !important;
  color: #c4d0de !important;
  padding: 48px 0 0 !important;
}

.footer-widgets {
  padding: 0 32px 40px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.site-footer .widget-title,
.site-footer h1,
.site-footer h2,
.site-footer h3 {
  color: #ffffff !important;
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  margin-bottom: 16px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.site-footer a {
  color: #8ea8c3 !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}

.site-footer a:hover { color: #FF6B35 !important; }
.site-footer p { color: #8ea8c3 !important; font-size: 13.5px !important; line-height: 1.7 !important; }

.site-footer .widget ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-footer .widget ul li {
  margin-bottom: 10px !important;
}

/* Footer logo — brightness filter turns dark logo white on dark bg */
.site-footer .custom-logo-link img,
.site-footer .custom-logo {
  height: 48px !important;
  width: auto !important;
  max-width: 160px !important;
  display: block !important;
  margin-bottom: 14px !important;
  filter: brightness(10) !important;
}

.site-info {
  background: #0f1d2d !important;
  color: #5a7a96 !important;
  padding: 14px 32px !important;
  font-size: 12px !important;
  text-align: center !important;
}

.site-info a { color: #FF6B35 !important; }


/* ═══════════════════════════════════════════════════════════
   13. SCROLL-TO-TOP BUTTON
   Positioned above WhatsApp widget (which sits at ~bottom:20px right)
═══════════════════════════════════════════════════════════ */
#gg-scroll-top {
  position: fixed !important;
  bottom: 90px !important;
  right: 24px !important;
  width: 44px !important;
  height: 44px !important;
  background: #FF6B35 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 20px !important;
  cursor: pointer !important;
  display: none !important; /* JS adds .visible class */
  align-items: center !important;
  justify-content: center !important;
  z-index: 9998 !important;
  box-shadow: 0 4px 14px rgba(255,107,53,0.45) !important;
  text-decoration: none !important;
  line-height: 1 !important;
  transition: background 0.2s, transform 0.2s !important;
}

#gg-scroll-top.visible {
  display: flex !important;
}

#gg-scroll-top:hover {
  background: #e5571f !important;
  transform: translateY(-3px) !important;
}


/* ═══════════════════════════════════════════════════════════
   14. MOBILE RESPONSIVE (≤ 767px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Header: stack logo + search vertically */
  #masthead > .col-full {
    flex-direction: column !important;
    min-height: auto !important;
    padding: 10px 14px !important;
    gap: 8px !important;
  }

  .site-branding {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Cart hidden on mobile (in sticky nav bar via Storefront handheld) */
  .site-header-cart {
    display: none !important;
  }

  /* Show search inline on mobile */
  .site-search,
  #masthead .site-search {
    display: block !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    padding: 8px 14px !important;
    box-sizing: border-box !important;
  }

  /* Nav padding on mobile */
  .storefront-primary-navigation,
  #site-navigation-wrap {
    padding: 0 14px !important;
  }

  .main-navigation ul.menu > li > a {
    padding: 12px 8px !important;
    font-size: 11px !important;
  }

  /* Content area padding */
  #primary,
  .content-area {
    padding: 0 14px !important;
  }

  /* Page entry header on mobile */
  body.page .entry-header {
    margin: 0 -14px 20px !important;
  }

  /* Products: 2-column on mobile */
  ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  ul.products li.product img {
    height: 130px !important;
  }

  ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 12px !important;
  }

  ul.products li.product .price {
    font-size: 14px !important;
  }

  ul.products li.product .button {
    font-size: 11px !important;
    padding: 9px 12px !important;
  }

  /* Blog: 1 column on small mobile */
  body.blog #main {
    grid-template-columns: 1fr !important;
  }

  body.blog #primary::before {
    margin: 0 -14px 20px !important;
    font-size: 18px !important;
    padding: 24px 0 !important;
  }

  /* Footer */
  .footer-widgets {
    padding: 0 16px 32px !important;
  }

  /* Newsletter section */
  .elementor-section-full_width,
  [class*="subscribe"],
  [class*="newsletter"] {
    background: #1E3A5F !important;
  }

  [class*="subscribe"] *,
  [class*="newsletter"] * {
    color: #fff !important;
  }

  /* Scroll-to-top */
  #gg-scroll-top {
    bottom: 90px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 17px !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   15. TABLET (768px – 1024px)
═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1024px) {

  #primary,
  .content-area {
    padding: 0 28px !important;
  }

  ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  /* Blog 2-col on tablet */
  body.blog #main {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .main-navigation ul.menu > li > a {
    padding: 14px 10px !important;
    font-size: 12px !important;
  }

  body.blog #primary::before {
    font-size: 24px !important;
    margin: 0 -28px 28px !important;
  }

  body.page .entry-header {
    margin: 0 -28px 32px !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   16. MID-RANGE (768px – 900px)
   Handles the awkward in-between where 3-col is too tight
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  #primary,
  .content-area {
    padding: 0 24px !important;
  }

  body.blog #primary::before {
    margin: 0 -24px 28px !important;
    font-size: 22px !important;
    padding: 32px 0 !important;
  }

  body.page .entry-header {
    margin: 0 -24px 32px !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   17. CHANGELOG
   ────────────────────────────────────────────────────────
   v7.2.0 — 2026-03-11
   ARCHITECTURE REFACTOR:
   - Removed duplicate CSS blocks (sections 4+5 duplicates of section 3)
   - Removed orphan .col-full / .site-branding override block
   - Removed orphan .site-search absolute positioning block
   - Fixed body.archive → body.blog in ALL media query selectors
     (body.archive also matches WooCommerce shop, this was the root
      cause of the shop-products-right-alignment bug)
   - Removed inline <style> from functions.php (gg_inline_layout_fix)
   - All layout foundation CSS now in section 2 of style.css
   - Section map added for maintainability
   - max-height removed from header (was clipping tall logos)
   
   v7.1.0 — 2026-03-11
   - Footer logo JS injection, blog excerpt filter,
     mobile header JS adjustment, cart nocache fix

   v7.0.0 — 2026-03-11
   - Initial child theme setup, sticky header, WooCommerce,
     blog cards, product grid, footer, scroll-to-top
═══════════════════════════════════════════════════════════ */
