/*
Theme Name: Eddie's Sportwear v2
Theme URI: https://eddiesportwear.us
Author: Eddie's Sportwear
Author URI: https://eddiesportwear.us
Description: V2 — Limited edition sportswear & sport shoes WooCommerce theme. Pixel-faithful Yupoo-style layout with editable header menu (Appearance → Menus), full Customizer support, mobile slide-in nav, and responsive 2/3/4/6-column product grid.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eddies-sportwear-v2
Tags: e-commerce, woocommerce, two-columns, three-columns, four-columns, six-columns, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ===============================================================
   :ROOT — Yupoo design tokens (overridable via Customizer)
   =============================================================== */
:root {
  --green:        #49bc85;
  --green-dark:   #41a977;
  --green-light:  #5bc291;
  --green-bg:     #f0faf5;
  --red:          #c95050;
  --orange:       #ff7a00;
  --text:         #363d40;
  --text-mid:     #494949;
  --text-light:   #7f7f7f;
  --text-pale:   #9f9f9f;
  --border:       #cfcfcf;
  --border-lt:    #e5e5e5;
  --bg:           #f2f2f2;
  --bg-header:    #f3f7f7;
  --bg-card:      #ffffff;
  --footer-bg:    #1a2332;
  --footer-text:  #b8c2cc;
  --white:        #ffffff;
  --shadow:       0 1px 2px rgba(159,159,159,.6);
  --shadow-hover: 0 2px 8px rgba(73,188,133,.35);
  --max-w:        1440px;
  --header-h:     60px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius:       2px;
}

/* ===============================================================
   RESET
   =============================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--green); }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
.text_overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%);
  clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* ===============================================================
   LAYOUT WRAPPER
   =============================================================== */
.site-content { min-height: 60vh; }

/* ===============================================================
   TOP GREEN HEADER (.header__wrap)
   =============================================================== */
.header__wrap {
  background: var(--green);
  position: relative;
  z-index: 50;
  width: 100%;
  transition: background .3s;
}
.header__main {
  height: var(--header-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.header__logo { display: inline-flex; align-items: center; flex-shrink: 0; height: 100%; }
.header__logo img,
.header__logo .custom-logo {
  height: 36px;
  width: auto;
  max-height: 48px;
  vertical-align: middle;
}
.header__logo-text {
  color: #fff;
  font-size: 1.3em;
  font-weight: 700;
  letter-spacing: -.3px;
}
.header__tagline {
  color: rgba(255,255,255,.85);
  font-size: 12px;
  margin-left: 8px;
  display: inline-block;
}

.header__tips {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
}
.header__tips a, .header__tips button {
  color: #fff;
  font-size: 13px;
  opacity: .92;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity .2s;
}
.header__tips a:hover { opacity: 1; color: #fff; }
.header__cart-icon { position: relative; }
.header__cart-count {
  background: #fff;
  color: var(--green);
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  margin-left: 2px;
}

/* Hamburger */
.yupoo-button-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: transparent;
  border: 0;
}
.yupoo-button-hamburger-bar {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.yupoo-button-hamburger.is-active .yupoo-button-hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.yupoo-button-hamburger.is-active .yupoo-button-hamburger-bar:nth-child(2) { opacity: 0; }
.yupoo-button-hamburger.is-active .yupoo-button-hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===============================================================
   STICKY SUB-HEADER (.showheader__headerWrap)
   =============================================================== */
.showheader__headerWrap {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-lt);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.showheader--not-sticky .showheader__headerWrap,
.showheader__headerWrap.showheader--not-sticky { position: relative; }

.showheader__header {
  width: 100%;
  max-width: var(--max-w);
  padding: 1em 2em .5em;
  margin: 0 auto;
}
.showheader__headerTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: .9em;
}
.showheader__nickname {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}
.showheader__nickname a { color: inherit; }
.showheader__nickname a:hover { color: var(--green); }

.showheader__search {
  flex: 1;
  max-width: 520px;
}

/* Search box */
.search__main { width: 100%; position: relative; }
.search__inputWrap {
  height: 38px;
  display: flex;
  border-radius: 100em;
  border: 1px solid var(--green);
  overflow: hidden;
  align-items: center;
  background: #fff;
}
.search__input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 1em;
  font-size: 13px;
  background: transparent;
  color: var(--text);
  height: 100%;
}
.search__input::placeholder { color: var(--text-pale); }
.search__searchBtn {
  background: var(--green);
  color: #fff;
  border: 0;
  padding: 0 1.3em;
  height: 38px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
  letter-spacing: .3px;
}
.search__searchBtn:hover { background: var(--green-dark); }

/* Nav tabs (primary menu) */
.showheader__menus,
.showheader__menus ul {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border-lt);
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
}
.showheader__menus ul { border-top: 0; }
.showheader__menus::-webkit-scrollbar,
.showheader__menus ul::-webkit-scrollbar { display: none; }
.showheader__menus li { position: relative; list-style: none; }
.showheader__menuslink,
.showheader__menus a {
  color: var(--text-light);
  padding: .65em 1em;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  transition: color .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.showheader__menuslink:hover,
.showheader__menuslink.showheader__active,
.showheader__menus li.current-menu-item > a,
.showheader__menus li.current_page_item > a,
.showheader__menus a:hover { color: var(--green); }

.showheader__tabflag {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green);
  border-radius: 2px;
  opacity: 0;
  transition: opacity .2s;
}
.showheader__menuslink:hover .showheader__tabflag,
.showheader__menuslink.showheader__active .showheader__tabflag,
.showheader__menus li.current-menu-item > a .showheader__tabflag { opacity: 1; }

/* Sub-menu dropdown (desktop) */
.showheader__menus li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border-lt);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  min-width: 200px;
  flex-direction: column;
  border-top: 0;
  z-index: 100;
}
.showheader__menus li:hover > ul.sub-menu { display: flex; }
.showheader__menus li ul.sub-menu li { width: 100%; }
.showheader__menus li ul.sub-menu a {
  padding: .55em 1em;
  font-size: 13px;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
  border-bottom: 1px solid var(--border-lt);
}
.showheader__menus li ul.sub-menu .showheader__tabflag { display: none; }

/* ===============================================================
   MOBILE COLLAPSE NAVIGATION
   =============================================================== */
.yupoo-header-mobile-collapse-categories {
  display: none;
  background: #fff;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  padding-bottom: 60px;
  -webkit-overflow-scrolling: touch;
}
.yupoo-header-mobile-collapse-categories.is-open { display: block; animation: yupoo-slide-in .25s ease-out; }
@keyframes yupoo-slide-in { from { transform: translateX(-100%); } to { transform: none; } }

.yupoo-header-mobile-extra-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 1.2em;
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 5;
}
.yupoo-header-mobile-extra-top-logo { display: inline-flex; align-items: center; }
.yupoo-header-mobile-extra-top-logo img { height: 32px; width: auto; }
.yupoo-header-mobile-extra-top-btn {
  width: 32px; height: 32px;
  position: relative; cursor: pointer;
  background: transparent;
  border: 0;
}
.yupoo-header-mobile-extra-top-btn::before,
.yupoo-header-mobile-extra-top-btn::after {
  content: '';
  position: absolute;
  width: 22px; height: 2px;
  background: #fff;
  top: 50%; left: 50%;
  border-radius: 2px;
}
.yupoo-header-mobile-extra-top-btn::before { transform: translate(-50%,-50%) rotate(45deg); }
.yupoo-header-mobile-extra-top-btn::after  { transform: translate(-50%,-50%) rotate(-45deg); }

.yupoo-collapse-item { border-bottom: 1px solid var(--border-lt); }
.yupoo-collapse-header {
  padding: .9em 1.2em;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.yupoo-collapse-header a { color: var(--text); flex: 1; }
.yupoo-collapse-arrow {
  color: var(--text-pale);
  font-size: 20px;
  line-height: 1;
  padding: 0 .5em;
  transition: transform .2s;
  cursor: pointer;
  user-select: none;
}
.yupoo-collapse-item.is-open .yupoo-collapse-arrow { transform: rotate(90deg); }

.yupoo-collapse-content-box {
  padding: .25em .5em .6em 2em;
  background: #fafafa;
  display: none;
}
.yupoo-collapse-item.is-open .yupoo-collapse-content-box { display: block; }
.yupoo-collapse-content-item {
  display: block;
  padding: .55em .8em;
  font-size: 13px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border-lt);
}
.yupoo-collapse-content-item:hover { color: var(--green); background: var(--green-bg); }
.yupoo-collapse-content-item:last-child { border-bottom: 0; }

/* Mobile backdrop */
.yupoo-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 150;
}
.yupoo-mobile-backdrop[hidden] { display: none; }
@media (min-width: 769px) {
  .yupoo-mobile-backdrop { display: none !important; }
}

/* Mobile-only header search row */
.yupoo-header-mobile-extra-search {
  padding: .8em 1em;
  background: #fff;
  border-bottom: 1px solid var(--border-lt);
}

/* ===============================================================
   GALLERY WRAP & CATEGORY SECTIONS
   =============================================================== */
.showindex__gallerycardwrap {
  padding: 1.3em 2em 0;
  margin: 0 auto;
  width: 100%;
  max-width: var(--max-w);
}
.show-layout-category__catewrap {
  width: 100%;
  padding: 1.4em 0 .7em;
}
.show-layout-category__catetitle {
  font-size: 1.37em;
  font-weight: 600;
  margin: 0 0 1em;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--text);
  position: relative;
  padding-left: .8em;
}
.show-layout-category__catetitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.1em;
  background: var(--green);
  border-radius: 2px;
}
.show-layout-category__catetitle:hover { color: var(--green); }
.show-layout-category__seeall {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-left: auto;
  padding-left: 1em;
}
.show-layout-category__seeall:hover { color: var(--green); }

/* ===============================================================
   PRODUCT GRID (.showindex__parent / .showindex__children)
   Inline-block layout faithful to Yupoo
   =============================================================== */
.showindex__parent,
ul.products {
  font-size: 0;
  margin: 0 -1.66667% 1.5em 0 !important;
  padding: 0 !important;
  list-style: none;
  display: block;
}
.showindex__children,
ul.products li.product {
  position: relative;
  vertical-align: top;
  display: inline-block;
  font-size: 14px;
  width: 15%;          /* 6 per row + gutter */
  margin: 0 1.66667% 1.66667% 0;
  list-style: none;
  float: none !important;
  clear: none !important;
}

/* ===============================================================
   ALBUM CARD
   =============================================================== */
.album__main, li.product > a, .product-card {
  display: block;
  position: relative;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  border-radius: var(--radius);
  overflow: hidden;
}
.album__main:hover, li.product:hover > a, .product-card:hover {
  box-shadow: var(--shadow-hover);
}
.album__main--zoom .album__img { transition: transform .35s ease; }
.album__main--zoom:hover .album__img { transform: scale(1.06); }

.album__imgwrap {
  position: relative;
  width: 100%;
  background: #f7f7f7;
  overflow: hidden;
}
.album__space {
  display: block;
  padding-top: 100%;        /* 1:1 square */
}
.album__absolute {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
}
.album__img {
  object-fit: cover;
}
.album__photonumber {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 9px;
  z-index: 2;
}
.album__sale-badge,
.onsale {
  position: absolute !important;
  top: 8px; left: 8px;
  background: var(--red) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9px;
  z-index: 2;
  margin: 0 !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
}

.album__category {
  font-size: 11px;
  color: var(--text-pale);
  padding: 6px 8px 0;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.album__title,
.woocommerce-loop-product__title,
li.product .woocommerce-loop-product__title {
  padding: 8px 8px 2px !important;
  font-size: 13px !important;
  color: var(--text) !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}
.album__rating, .star-rating { padding: 0 8px; margin: 2px 0 !important; }
.album__price,
li.product .price,
.price {
  padding: 0 8px 8px !important;
  color: var(--green) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  margin: 0 !important;
}
.album__price del, .price del { color: var(--text-pale) !important; font-weight: 400; margin-right: 4px; }
.album__price ins, .price ins { background: transparent; text-decoration: none; }

.album__atc { padding: 0 8px 8px; }
.album__atc .button,
li.product .button {
  display: block;
  width: 100%;
  padding: 6px 8px !important;
  font-size: 12px !important;
  background: var(--green) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  text-align: center;
  transition: background .2s;
  margin: 0 !important;
}
.album__atc .button:hover, li.product .button:hover { background: var(--green-dark) !important; }

/* ===============================================================
   SHOP PAGE: SIDEBAR + MAIN
   =============================================================== */
.shop-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5em 2em;
}
.shop-wrap--no-sidebar { grid-template-columns: 1fr; }
.shop-sidebar { padding-top: 1em; }
.shop-sidebar .widget {
  background: #fff;
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: 1em 1.2em;
  margin-bottom: 1em;
}
.shop-sidebar .widget-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--green);
  padding-bottom: .5em;
  margin-bottom: .8em;
}
.shop-sidebar .product-categories,
.shop-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.shop-sidebar .product-categories li,
.shop-sidebar ul li {
  font-size: 13px;
  border-bottom: 1px dashed var(--border-lt);
}
.shop-sidebar .product-categories li:last-child,
.shop-sidebar ul li:last-child { border-bottom: 0; }
.shop-sidebar .product-categories li a,
.shop-sidebar ul li a {
  display: block;
  padding: .5em 0;
  color: var(--text-mid);
}
.shop-sidebar .product-categories li a:hover,
.shop-sidebar ul li a:hover { color: var(--green); padding-left: 4px; }
.shop-sidebar .count { color: var(--text-pale); font-size: 11px; float: right; }

/* Shop toolbar */
.woocommerce-breadcrumb-wrap, .woocommerce-breadcrumb {
  font-size: 12px;
  color: var(--text-light);
  padding: .5em 0 1em;
}
.woocommerce-breadcrumb-wrap a, .woocommerce-breadcrumb a { color: var(--text-mid); }
.woocommerce-breadcrumb-wrap a:hover, .woocommerce-breadcrumb a:hover { color: var(--green); }

.woocommerce-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: .6em 1em;
  margin-bottom: 1em;
  font-size: 13px;
}
.woocommerce-shop-toolbar select,
.woocommerce-ordering select {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: #fff;
}

/* Pagination */
.woocommerce-pagination-wrap, .woocommerce-pagination {
  display: flex;
  justify-content: center;
  padding: 1em 0 2em;
  clear: both;
}
.woocommerce-pagination-wrap ul,
.woocommerce-pagination ul {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce-pagination-wrap a,
.woocommerce-pagination-wrap span,
.woocommerce-pagination a,
.woocommerce-pagination span,
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border-lt);
  background: #fff;
  color: var(--text-mid);
  font-size: 13px;
  border-radius: var(--radius);
}
.woocommerce-pagination-wrap a:hover,
.woocommerce-pagination a:hover,
.page-numbers:hover { border-color: var(--green); color: var(--green); }
.woocommerce-pagination-wrap .current,
.woocommerce-pagination .current,
.page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); }

/* ===============================================================
   SINGLE PRODUCT PAGE
   =============================================================== */
.single-product div.product {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5em 2em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
}
.single-product .woocommerce-product-gallery {
  background: #fff;
  padding: 1em;
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
}
.single-product .summary { padding: 1em 0; }
.single-product .product_title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .4em;
}
.single-product .price {
  font-size: 1.6em !important;
  color: var(--green) !important;
  margin-bottom: 1em !important;
  padding: 0 !important;
}
.single-product .cart .button,
.single-product button.single_add_to_cart_button {
  background: var(--green) !important;
  color: #fff !important;
  padding: .85em 2em !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
  border: 0 !important;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.single-product .cart .button:hover,
.single-product button.single_add_to_cart_button:hover { background: var(--green-dark) !important; }
.single-product .quantity input[type="number"] {
  width: 64px;
  height: 42px;
  padding: 0 .5em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-right: .8em;
}
.single-product .product_meta {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid var(--border-lt);
  font-size: 12px;
  color: var(--text-light);
}
.single-product .product_meta > span { display: block; margin-bottom: .3em; }
.woocommerce-tabs { padding: 0 2em; max-width: var(--max-w); margin: 0 auto; }
.woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-lt);
  margin: 0 0 1em;
  padding: 0;
}
.woocommerce-tabs ul.tabs li {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: .8em 1.5em;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--green); border-bottom-color: var(--green); }
.related.products, .upsells.products, .cross-sells {
  max-width: var(--max-w);
  margin: 2em auto;
  padding: 0 2em;
  clear: both;
}
.related.products > h2, .upsells.products > h2 {
  font-size: 1.37em;
  font-weight: 600;
  margin-bottom: 1em;
  position: relative;
  padding-left: .8em;
}
.related.products > h2::before,
.upsells.products > h2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.1em;
  background: var(--green);
  border-radius: 2px;
}

/* ===============================================================
   CART / CHECKOUT
   =============================================================== */
.woocommerce-cart, .woocommerce-checkout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5em 2em;
}
.woocommerce table.shop_table {
  border: 1px solid var(--border-lt);
  background: #fff;
  border-collapse: collapse;
  margin-bottom: 1em;
}
.woocommerce table.shop_table th { background: var(--bg-header); padding: .8em; font-weight: 600; text-align: left; border-bottom: 1px solid var(--border-lt); }
.woocommerce table.shop_table td { padding: .8em; border-bottom: 1px solid var(--border-lt); }
.woocommerce .cart_totals h2 { margin-bottom: .8em; }
.woocommerce a.button, .woocommerce input.button {
  background: var(--green) !important;
  color: #fff !important;
  padding: .7em 1.5em !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.woocommerce a.button:hover, .woocommerce input.button:hover { background: var(--green-dark) !important; }

/* ===============================================================
   FOOTER
   =============================================================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 3em;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3em 2em 2em;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5em;
}
.footer-brand .site-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: .5em;
}
.footer-brand .site-title a { color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.6; opacity: .85; margin-bottom: 1em; }
.footer-social { display: flex; gap: 10px; }
.footer-social .social-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: var(--footer-text);
  transition: background .2s, color .2s;
}
.footer-social .social-btn:hover { background: var(--green); color: #fff; }
.footer-heading {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: .9em;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-links { display: flex; flex-direction: column; gap: .55em; font-size: 13px; }
.footer-links a, .site-footer ul li a { color: var(--footer-text); }
.footer-links a:hover, .site-footer ul li a:hover { color: var(--green); }
.site-footer .menu, .site-footer ul {
  display: flex;
  flex-direction: column;
  gap: .55em;
  font-size: 13px;
  list-style: none;
  padding: 0; margin: 0;
}
.footer-bottom-widgets {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2em 1em;
}
.footer-copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1em 2em;
  text-align: center;
  font-size: 12px;
  opacity: .7;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===============================================================
   404 / SEARCH RESULTS / NO PRODUCTS
   =============================================================== */
.error-404, .no-results, .woocommerce-no-products-found, .woocommerce-info {
  max-width: 720px;
  margin: 3em auto;
  padding: 2.5em 2em;
  background: #fff;
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  text-align: center;
}
.error-404 h1 { font-size: 4em; color: var(--green); margin: 0; }
.no-results h1 { font-size: 1.6em; margin-bottom: .5em; }

/* ===============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
/* Large desktop: 8-col grid */
@media (min-width: 1280px) {
  .showindex__children, ul.products li.product { width: 11.0%; margin-right: 1.7%; }
  /* 8 cols: 100/8 = 12.5 — minus margin for 1.66 gutter */
  .showindex__children:nth-child(n) { width: 11%; }
}

/* Tablet (medium): 4 columns */
@media (max-width: 1024px) {
  .header__main, .showheader__header,
  .showindex__gallerycardwrap, .shop-wrap, .footer-inner,
  .single-product div.product, .woocommerce-tabs, .related.products,
  .woocommerce-cart, .woocommerce-checkout {
    padding-left: 1.2em;
    padding-right: 1.2em;
  }
  .showindex__children, ul.products li.product { width: 23.33%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .single-product div.product { grid-template-columns: 1fr; }
}

/* Mobile portrait: 2 columns + hamburger nav */
@media (max-width: 768px) {
  body { padding-top: var(--header-h); }      /* fixed header offset */
  .header__wrap {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
  }
  .header__main { padding: 0 1em; }
  .header__tips a:not(.header__cart-icon) {
    display: none;                             /* hide login text on mobile */
  }
  .yupoo-button-hamburger { display: inline-flex; }

  .showheader__headerWrap { position: relative; }
  .showheader__header { padding: .8em 1em .4em; }
  .showheader__headerTop { flex-wrap: wrap; gap: 8px; }
  .showheader__nickname { font-size: 1em; flex: 1 1 auto; }
  .showheader__search { order: 3; max-width: 100%; flex: 1 1 100%; }
  .showheader__menus { display: none; }      /* nav handled by mobile slide-in */

  .showindex__gallerycardwrap { padding: 1em .8em 0; }
  .showindex__parent, ul.products { margin-right: -2.5%; }
  .showindex__children, ul.products li.product { width: 47.5%; margin: 0 2.5% 2.5% 0; }

  .show-layout-category__catetitle { font-size: 1.15em; }
  .album__title, .woocommerce-loop-product__title { font-size: 12px !important; }
  .album__price, .price { font-size: 12px !important; }

  .shop-wrap { grid-template-columns: 1fr; gap: 0; padding: 1em .8em; }
  .shop-sidebar {
    order: 2;
    margin-top: 1em;
  }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5em; padding: 2em 1.2em 1em; }
  .single-product div.product { padding: 1em .8em; }
  .single-product .product_title { font-size: 1.3em; }
}

/* Tiny phones */
@media (max-width: 360px) {
  .header__main { padding: 0 .8em; }
  .showindex__children, ul.products li.product { width: 47%; }
}

/* ===============================================================
   ELEMENTOR COMPATIBILITY
   =============================================================== */
.elementor-active.template-canvas .header__wrap,
.elementor-active.template-canvas .showheader__headerWrap,
.elementor-active.template-canvas .site-footer { display: none; }

/* WordPress block default fixes */
.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* WP block embed responsive */
.wp-block-embed iframe { max-width: 100%; }

/* Comment forms */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: .6em .8em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 1em;
}

/* Print friendly */
@media print {
  .header__wrap, .showheader__headerWrap, .site-footer,
  .yupoo-header-mobile-collapse-categories { display: none !important; }
}
