/* ════════════════════════════════════════════════════════════════════════
   TOMODATCHI SHOP — WooCommerce styles
   ════════════════════════════════════════════════════════════════════════ */

/* ─── PRODUCT GRID ─── */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  list-style: none !important;
  margin: 0 0 40px !important;
  padding: 0 !important;
}
@media (max-width: 1100px) { ul.products { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px)  { ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; } }
@media (max-width: 460px)  { ul.products { grid-template-columns: 1fr; } }

ul.products li.product {
  position: relative; z-index: 0;
  list-style: none;
  margin: 0 !important;
  width: 100%;
  min-width: 0;
}
ul.products li.product:hover { z-index: 10; }

.tomo-product-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Out of stock: greyed out */
ul.products li.product.outofstock .tomo-product-card,
ul.products li.product.outofstock .tomo-product-card-link {
  opacity: 0.55;
  pointer-events: none;
}
/* Keep the card itself clickable so user can visit the page */
ul.products li.product.outofstock .tomo-product-card-link {
  pointer-events: all;
}
ul.products li.product.outofstock .tomo-add-btn {
  pointer-events: none;
}

.tomo-product-card {
  width: 100%;
  background: #fff;
  border: var(--card-border-outer) solid var(--logo-blue);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 4px 5px 8px rgba(160,184,210,0.55);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  display: flex; flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}
.tomo-product-card:hover {
  transform: scale(1.03);
  box-shadow: 6px 8px 14px rgba(160,184,210,0.65);
}

/* Art area — all cards use the pale grey-blue palette, with stripes on the grid view */
.tomo-product-art {
  width: 100%; height: var(--card-art-height);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  position: relative; overflow: visible;
  border-radius: calc(var(--radius) - var(--card-border-outer)) calc(var(--radius) - var(--card-border-outer)) 0 0;
}
.tomo-product-art-bg {
  position: absolute;
  top: -2px; right: -2px; bottom: -2px; left: -2px;
  z-index: 0;
  border-radius: 0;
  pointer-events: none;
  /* Grey-blue stripes as default for grid cards */
  background-color: var(--card-bg);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 14px,
    rgba(141,193,240,0.45) 14px,
    rgba(141,193,240,0.45) 20px
  );
  background-size: 28px 28px;
}
/* On hover, animate stripes */
.tomo-product-card:hover .tomo-product-art-bg {
  animation: bgDriftStripes 3s linear infinite;
}

.tomo-product-art img {
  display: block;
  max-height: var(--card-img-maxheight);
  width: auto; max-width: 100%;
  height: auto;
  object-fit: contain;
  position: relative; z-index: 2;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), filter 0.4s ease-out;
}
.tomo-product-art img[src*="woocommerce-placeholder"] {
  max-height: 96px;
  opacity: 0.55;
}
.tomo-product-card:hover .tomo-product-art img {
  transform: scale(var(--card-img-hover-scale));
  animation: popOutline 0.25s ease-out forwards;
}

/* Badges */
.tomo-badge {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  font-family: 'Fredoka', sans-serif; font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 11px; border-radius: 100px;
  color: #fff; background: #ff4f8b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.tomo-badge-sale { background: #ff4f8b; }
.tomo-badge-soldout { background: var(--muted); }

.tomo-product-body {
  padding: 12px 14px 14px;
  border-top: var(--card-border) solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.tomo-product-cat {
  font-family: 'Fredoka', sans-serif; font-size: 0.64rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em;
}
.tomo-product-name {
  font-family: 'Fredoka', sans-serif; font-size: 1.02rem; font-weight: 600;
  color: var(--logo-blue); line-height: 1.25;
  text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * 2);
  word-break: break-word;
}
.tomo-product-rating { display: flex; align-items: center; gap: 4px; }
.tomo-product-rating .star-rating { font-size: 0.78rem; }

.tomo-product-footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding-top: 4px;
}
.tomo-product-price {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.05rem;
  color: var(--ink);
}
.tomo-product-price del { color: var(--muted); font-weight: 400; font-size: 0.85rem; opacity: 0.8; margin-right: 4px; }
.tomo-product-price ins { text-decoration: none; }

/* Add/options button — "..." for variable products, "+" for simple */
.tomo-add-btn {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background 0.15s, transform 0.18s;
  box-shadow: 0 3px 10px rgba(46,55,251,0.25);
  text-decoration: none;
  font-family: 'Fredoka', sans-serif; font-size: 1.2rem; font-weight: 700;
  line-height: 1;
}
.tomo-add-btn:hover { background: #1c24d9; transform: scale(1.1); }
.tomo-add-btn svg { width: 18px; height: 18px; }
.tomo-add-btn.loading { animation: tomoSpin 0.6s linear infinite; }
.tomo-add-btn.added { background: #2bbf6a; }
/* "..." button variant for variable products */
.tomo-add-btn.tomo-options-btn { letter-spacing: 0.05em; font-size: 1rem; }
.tomo-add-btn.tomo-options-btn:hover { transform: scale(1.1) rotate(0deg); }
@keyframes tomoSpin { to { transform: rotate(360deg); } }

/* Neutralise WooCommerce default loop markup */
ul.products li.product > .woocommerce-loop-product__title,
ul.products li.product > .price,
ul.products li.product > .star-rating,
ul.products li.product > a.button {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ─── SORT / RESULT COUNT BAR ─── */
.tomo-shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 22px;
  font-family: 'Fredoka', sans-serif; font-size: 0.84rem; color: var(--muted);
}
.tomo-shop-toolbar .woocommerce-result-count { margin: 0; }
.tomo-shop-toolbar select {
  font-family: 'Fredoka', sans-serif; font-size: 0.84rem; font-weight: 500;
  border: 2px solid var(--border); border-radius: 100px;
  padding: 7px 16px; background: #fff; color: var(--ink);
  cursor: pointer;
}

/* ─── PAGINATION ─── */
.tomo-pagination,
nav.woocommerce-pagination {
  display: flex; justify-content: center; gap: 8px; margin: 30px 0 10px;
}
nav.woocommerce-pagination ul { display: flex; gap: 8px; }
nav.woocommerce-pagination ul li { display: block; }
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 8px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 0.85rem;
  border: 2px solid var(--border); border-radius: 100px;
  color: var(--muted); text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
nav.woocommerce-pagination ul li a:hover { background: var(--border-soft); color: var(--ink); }
nav.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ─── SIDEBAR / WIDGETS ─── */
.tomo-sidebar { display: flex; flex-direction: column; gap: 22px; }
.tomo-widget {
  background: #fff;
  border: var(--card-border) solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
}
.tomo-widget .section-label {
  font-family: 'Fredoka', sans-serif; font-size: 0.7rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.tomo-widget ul.product-categories,
.tomo-widget ul { list-style: none; margin: 0; padding: 0; }
.tomo-widget ul.product-categories li a,
.widget_product_categories li a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Fredoka', sans-serif; font-size: 0.88rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  padding: 8px 10px; border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}
.tomo-widget ul.product-categories li a:hover,
.widget_product_categories li a:hover { background: var(--border-soft); color: var(--ink); }
.tomo-widget ul.product-categories li.current-cat > a { background: var(--ink); color: #fff; }

/* Price filter */
.tomo-widget .price_slider_wrapper .ui-slider {
  background: var(--border-soft); height: 6px; border-radius: 10px; border: none;
}
.tomo-widget .price_slider_wrapper .ui-slider .ui-slider-range { background: var(--ink); border-radius: 10px; }
.tomo-widget .price_slider_wrapper .ui-slider-handle {
  background: #fff; border: 3px solid var(--ink); border-radius: 50%;
  width: 16px; height: 16px; top: -5px; cursor: grab;
}
.tomo-widget .price_slider_amount .button { font-family: 'Fredoka', sans-serif; }

/* ═══════════════════════════════════════════════════════════════
   BROWSER-WINDOW CATEGORY CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.tomo-browser-panel {
  background: #fff;
  border: var(--card-border-outer) solid var(--logo-blue);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 4px 5px 8px rgba(160,184,210,0.5);
}
.tomo-browser-chrome {
  background: linear-gradient(180deg, #eef3fa 0%, #dde8f5 100%);
  border-bottom: var(--card-border) solid var(--border);
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.tomo-browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.tomo-browser-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  display: block;
}
.tomo-browser-dots span:nth-child(1) { background: #ff5f57; }
.tomo-browser-dots span:nth-child(2) { background: #febc2e; }
.tomo-browser-dots span:nth-child(3) { background: #28c840; }
.tomo-browser-urlbar {
  flex: 1;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 100px; padding: 5px 14px;
  font-family: 'Fredoka', sans-serif; font-size: 0.7rem; font-weight: 500;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 6px;
}
.tomo-browser-urlbar svg { width: 11px; height: 11px; flex-shrink: 0; color: #28c840; }
.tomo-browser-urlbar .tomo-url-cat {
  font-weight: 700; color: var(--ink);
  transition: opacity 0.25s ease;
}

.tomo-browser-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle, rgba(141,193,240,0.35) 4.4px, transparent 4.4px),
    radial-gradient(circle, rgba(141,193,240,0.35) 4.4px, transparent 4.4px);
  background-color: #eaf4fd;
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  overflow: hidden;
}
.tomo-browser-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: scale(0.92) translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
  text-decoration: none;
  padding: 16px;
}
.tomo-browser-slide.active {
  opacity: 1; transform: scale(1) translateY(0);
  pointer-events: all;
}
.tomo-browser-slide img {
  max-width: 62%; max-height: 64%; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(46,55,251,0.18));
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.tomo-browser-slide:hover img { transform: scale(1.08) rotate(-2deg); }
.tomo-browser-slide-label {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 0.95rem;
  color: var(--ink); background: #fff;
  border: 2px solid var(--border); border-radius: 100px;
  padding: 5px 16px;
}

.tomo-browser-navbtn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 6; color: var(--ink);
  transition: background 0.15s, transform 0.15s;
}
.tomo-browser-navbtn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.tomo-browser-navbtn.prev { left: 10px; }
.tomo-browser-navbtn.next { right: 10px; }

.tomo-browser-tabs {
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 10px 12px;
  border-top: var(--card-border) solid var(--border);
  flex-wrap: wrap;
}
.tomo-browser-tab {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.tomo-browser-tab.active { background: var(--ink); transform: scale(1.3); }

/* ─── SINGLE PRODUCT ─── */
/* Bumped top padding on the wrap to give breathing room */
.tomo-single-product-wrap { padding-top: 32px !important; }

.tomo-single-product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .tomo-single-product { grid-template-columns: 1fr; gap: 28px; } }

/* Gallery: carousel with prev/next arrows */
.tomo-product-gallery-main {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  border: var(--card-border-outer) solid var(--logo-blue);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  background-color: #eaf4fd;
  background-image:
    radial-gradient(circle, rgba(141,193,240,0.35) 4.4px, transparent 4.4px),
    radial-gradient(circle, rgba(141,193,240,0.35) 4.4px, transparent 4.4px);
  background-size: 28px 28px; background-position: 0 0, 14px 14px;
}
/* Remove zoom cursor — no zoom functionality */
.tomo-product-gallery-main img {
  max-width: 78%; max-height: 78%; object-fit: contain;
  cursor: default;
  transition: opacity 0.15s ease;
}

/* Carousel navigation arrows */
.tomo-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 6; color: #fff;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 3px 10px rgba(46,55,251,0.3);
}
.tomo-gallery-arrow:hover { background: #1c24d9; }
.tomo-gallery-arrow.prev { left: 12px; transform: translateY(-50%); }
.tomo-gallery-arrow.prev:hover { transform: translateY(-50%) scale(1.08); }
.tomo-gallery-arrow.next { right: 12px; transform: translateY(-50%); }
.tomo-gallery-arrow.next:hover { transform: translateY(-50%) scale(1.08); }
/* Hide arrows if only one image */
.tomo-gallery-arrow.hidden { display: none; }

.tomo-product-thumbs {
  display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap;
}
.tomo-product-thumb {
  width: 66px; height: 66px; border-radius: 14px;
  border: var(--card-border) solid var(--border);
  overflow: hidden; cursor: pointer; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, transform 0.15s;
}
.tomo-product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.tomo-product-thumb:hover { transform: scale(1.06); }
.tomo-product-thumb.active { border-color: var(--ink); }

/* ─── PRODUCT INFO PANEL — rearranged layout ─── */
.tomo-product-info { padding-top: 4px; }
.tomo-product-info .tomo-product-cat { font-size: 0.7rem; margin-bottom: 8px; }
.tomo-product-info h1.product_title {
  font-family: 'Fredoka', sans-serif; font-size: 1.9rem; font-weight: 700;
  color: var(--logo-blue); margin: 0 0 8px; line-height: 1.2;
}
.tomo-product-info .price {
  font-family: 'Fredoka', sans-serif; font-size: 1.5rem; font-weight: 700;
  color: var(--ink); margin-bottom: 12px; display: block;
}
.tomo-product-info .price del { color: var(--muted); font-weight: 400; font-size: 1.1rem; margin-right: 8px; opacity: 0.7; }
.tomo-product-info .price ins { text-decoration: none; }
.tomo-product-info .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.tomo-product-info .woocommerce-review-link { font-family: 'Fredoka', sans-serif; font-size: 0.78rem; color: var(--muted); text-decoration: none; }

/* Tabs: description + reviews moved into the right column */
.tomo-product-tabs {
  margin-top: 20px;
  border-top: var(--card-border) solid var(--border-soft);
  padding-top: 18px;
}
.tomo-product-tabs ul.tabs {
  display: flex; gap: 8px; margin: 0 0 0; padding: 0; list-style: none;
  border-bottom: var(--card-border) solid var(--border);
  margin-bottom: -2px;
}
.tomo-product-tabs ul.tabs li {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 0.88rem;
  padding: 8px 18px; border: var(--card-border) solid var(--border);
  border-bottom: none; border-radius: 14px 14px 0 0; cursor: pointer; color: var(--muted);
  background: var(--border-soft); list-style: none;
}
.tomo-product-tabs ul.tabs li.active { background: #fff; color: var(--ink); }
.tomo-product-tabs .panel {
  border: var(--card-border) solid var(--border); border-radius: 0 14px 14px 14px;
  padding: 18px; background: #fff;
  font-size: 0.92rem; line-height: 1.7; color: #555;
}

/* Old description div (now replaced by tabs — hide it) */
.tomo-product-desc { display: none; }

/* The default woocommerce-tabs below the product (now redundant — hidden) */
.woocommerce-tabs { display: none; }

.tomo-variations table.variations { width: 100%; margin-bottom: 18px; border-collapse: collapse; }
.tomo-variations table.variations tr { display: flex; flex-direction: column; margin-bottom: 14px; }
.tomo-variations table.variations label {
  font-family: 'Fredoka', sans-serif; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.tomo-variations select {
  font-family: 'Fredoka', sans-serif; font-size: 0.9rem;
  border: 2px solid var(--border); border-radius: 14px;
  padding: 10px 14px; background: #fff; color: var(--ink); width: 100%;
}

.tomo-quantity-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.quantity { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 100px; overflow: hidden; }
.quantity .qty-btn {
  width: 36px; height: 36px; border: none; background: #fff; cursor: pointer;
  font-family: 'Fredoka', sans-serif; font-size: 1.1rem; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.quantity .qty-btn:hover { background: var(--border-soft); }
.quantity input.qty {
  width: 44px; text-align: center; border: none; border-left: 2px solid var(--border); border-right: 2px solid var(--border);
  font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--ink); height: 36px;
  -moz-appearance: textfield;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.tomo-meta-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: var(--card-border) solid var(--border-soft); }
.tomo-meta-item { font-family: 'Fredoka', sans-serif; font-size: 0.78rem; color: var(--muted); }
.tomo-meta-item strong { color: var(--ink); font-weight: 600; }

.tomo-add-to-cart-wrap { margin: 16px 0; }
form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
form.cart .quantity { margin: 0; }
form.cart .quantity label { display: none; }
form.cart button.single_add_to_cart_button {
  font-family: 'Fredoka', sans-serif; font-size: 0.95rem; font-weight: 600;
  background: var(--ink); color: #fff; border: 2.5px solid var(--ink); border-radius: 100px;
  padding: 12px 30px; cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(46,55,251,0.18);
}
form.cart button.single_add_to_cart_button:hover { background: #1c24d9; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(46,55,251,0.26); }
form.cart button.single_add_to_cart_button.disabled,
form.cart button.single_add_to_cart_button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
form.cart table.variations { width: 100%; margin-bottom: 4px; }
form.cart table.variations td.label { font-family: 'Fredoka', sans-serif; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 6px; }
form.cart table.variations select {
  font-family: 'Fredoka', sans-serif; font-size: 0.9rem;
  border: 2px solid var(--border); border-radius: 14px;
  padding: 9px 14px; background: #fff; color: var(--ink); width: 100%; max-width: 260px;
}
.woocommerce-variation-add-to-cart { width: 100%; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.woocommerce-variation-price { width: 100%; font-family: 'Fredoka', sans-serif; font-weight: 700; color: var(--ink); }
p.stock { font-family: 'Fredoka', sans-serif; font-size: 0.82rem; color: var(--muted); margin: 0; }
p.stock.in-stock { color: #1c8a48; }
p.stock.out-of-stock { color: #d6336c; }

/* Related products heading */
.related.products > h2 {
  font-family: 'Fredoka', sans-serif; font-size: 1.4rem; font-weight: 700;
  color: var(--ink); text-align: center; margin: 60px 0 26px;
}

/* ─── CART PAGE ─── */
.tomo-cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .tomo-cart-layout { grid-template-columns: 1fr; } }

table.shop_table { width: 100%; border-collapse: collapse; background: #fff; }
table.shop_table thead th {
  font-family: 'Fredoka', sans-serif; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  text-align: left; padding: 0 10px 12px; border-bottom: var(--card-border) solid var(--border);
}
table.shop_table tbody td {
  padding: 16px 10px; border-bottom: 2px solid var(--border-soft); vertical-align: middle;
}
.cart_item .product-thumbnail img {
  width: 66px; height: 66px; object-fit: contain; border-radius: 14px;
  border: var(--card-border) solid var(--border); background: var(--border-soft); padding: 6px;
}
.cart_item .product-name a {
  font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--ink); text-decoration: none;
}
.cart_item .product-price, .cart_item .product-subtotal {
  font-family: 'Fredoka', sans-serif; font-weight: 700; color: var(--ink);
}
.cart_item .product-remove a {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--border-soft); color: var(--muted); text-decoration: none; font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.cart_item .product-remove a:hover { background: #ff4f8b; color: #fff; }

.cart-collaterals,
.tomo-cart-totals {
  background: #fff; border: var(--card-border-outer) solid var(--logo-blue);
  border-radius: var(--radius); padding: 22px 22px 26px;
}
.cart_totals h2 {
  font-family: 'Fredoka', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 16px;
}
.cart_totals table.shop_table tbody td,
.cart_totals table.shop_table tbody th { border-bottom: 2px solid var(--border-soft); padding: 12px 4px; }
.cart_totals .order-total .amount { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--ink); }

.coupon { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.coupon input#coupon_code {
  flex: 1; min-width: 140px; font-family: 'Nunito', sans-serif; font-size: 0.88rem;
  border: 2px solid var(--border); border-radius: 100px; padding: 9px 16px;
}

/* ─── CHECKOUT PAGE ─── */
.tomo-checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .tomo-checkout-layout { grid-template-columns: 1fr; } }

.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
  font-family: 'Fredoka', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 0 0 16px;
}
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; font-family: 'Fredoka', sans-serif; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px;
}
.form-row input.input-text,
.form-row select,
.form-row textarea {
  width: 100%; font-family: 'Nunito', sans-serif; font-size: 0.92rem;
  border: 2px solid var(--border); border-radius: 14px; padding: 11px 14px;
  background: #fff; color: var(--ink);
}
.form-row input.input-text:focus,
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--ink); }
.form-row-first, .form-row-last { width: 48%; }
.form-row-first { float: left; }
.form-row-last { float: right; }
.form-row-wide { clear: both; }

#order_review,
.woocommerce-checkout-review-order {
  background: #fff; border: var(--card-border-outer) solid var(--logo-blue);
  border-radius: var(--radius); padding: 22px;
}
table.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; }
table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td { padding: 10px 4px; border-bottom: 2px solid var(--border-soft); }
.woocommerce-checkout-payment {
  background: var(--border-soft); border-radius: 16px; padding: 16px; margin-top: 16px;
}
.payment_methods { list-style: none; padding: 0; margin: 0; }
.payment_methods li { padding: 10px 0; border-bottom: 1px solid var(--border); font-family: 'Fredoka', sans-serif; font-size: 0.88rem; }
.payment_methods li:last-child { border-bottom: none; }

/* ─── MINI-CART DRAWER ─── */
.tomo-minicart-overlay {
  position: fixed; inset: 0; background: rgba(20,24,40,0.45);
  z-index: 9990; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.tomo-minicart-overlay.open { opacity: 1; pointer-events: all; }
.tomo-minicart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 92vw);
  background: #fff; z-index: 9991;
  box-shadow: -10px 0 40px rgba(0,0,0,0.18);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  display: flex; flex-direction: column;
}
.tomo-minicart-drawer.open { transform: translateX(0); }
.tomo-minicart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: var(--card-border) solid var(--border);
}
.tomo-minicart-head h3 { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; color: var(--ink); margin: 0; }
.tomo-minicart-close { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); background: #fff; cursor: pointer; }
.tomo-minicart-items { flex: 1; overflow-y: auto; padding: 14px 20px; }
.tomo-minicart-foot { padding: 16px 20px 22px; border-top: var(--card-border) solid var(--border); }

/* ─── EMPTY STATES ─── */
.tomo-empty-state { text-align: center; padding: 60px 20px; }
.tomo-empty-state img { width: 140px; margin-bottom: 18px; opacity: 0.85; }
.tomo-empty-state p { font-family: 'Fredoka', sans-serif; color: var(--muted); margin-bottom: 18px; }

/* WooCommerce notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  font-family: 'Fredoka', sans-serif; font-size: 0.85rem; font-weight: 500;
  list-style: none; padding: 14px 18px; border-radius: 16px; margin: 0 0 20px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}
.woocommerce-message { background: #e6fbed; color: #1c8a48; border: 2px solid #b9f0cc; }
.woocommerce-info { background: var(--border-soft); color: var(--ink); border: 2px solid var(--border); }
.woocommerce-error { background: #ffe9ee; color: #d6336c; border: 2px solid #ffc2d4; }
.woocommerce-message a.button, .woocommerce-info a.button {
  font-family: 'Fredoka', sans-serif; font-weight: 600; background: var(--ink); color: #fff;
  padding: 7px 16px; border-radius: 100px; text-decoration: none;
}
