/* ========== SHOP PAGE LAYOUT ========== */
.shop-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 20px;
  font-family: "Roboto", sans-serif;
}

.shop-container {
  display: flex;
  gap: 30px;
  position: relative;
}

.home .product-colors {
  display: none;
}

/* ========== FILTERS SIDEBAR ========== */
.shop-filters {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  align-self: flex-start;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.filters-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filters-close {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
}

.filter-block {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.filter-block-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-links {
  gap: 2px;
}

.filter-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.filter-link:hover {
  background: #f5f5f5;
  color: #000;
}

.filter-link .count {
  float: right;
  color: #999;
  font-size: 12px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  padding: 4px 0;
  transition: color 0.2s;
  position: relative;
  padding-left: 28px;
}

.filter-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  border: 2px solid #ccc;
  border-radius: 3px;
  transition: all 0.2s;
}

.filter-checkbox:hover .checkmark {
  border-color: #999;
}

.filter-checkbox input:checked~.checkmark {
  background-color: #000;
  border-color: #000;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-checkbox input:checked~.checkmark:after {
  display: block;
}

.label-text {
  flex: 1;
}

.count {
  color: #999;
  font-size: 12px;
  margin-left: auto;
}

/* Price filter */
.filter-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input-group {
  position: relative;
  flex: 1;
}

.currency {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #999;
  pointer-events: none;
}

.price-input {
  width: 100%;
  padding: 8px 12px 8px 26px !important;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.price-input:focus {
  outline: none;
  border-color: #000;
}

.price-separator {
  color: #999;
  font-size: 14px;
}

/* Color swatches */
.color-swatches {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.filter-color-swatch input {
  position: absolute;
  opacity: 0;
}

.swatch {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #0000000f;
  transition: all 0.2s;
}

.filter-color-swatch input:checked~.swatch {
  border-color: #000;
  /* box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; */
}

.swatch-label {
  font-size: 11px;
  color: #888;
  text-align: center;
}

/* Size pills */
.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.size-pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #ddd;
  border-radius: 3px;
  color: #666;
  text-transform: uppercase;
}

.variation-block .size-pill {
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.variation-block .size-pill:hover {
  border-color: #999;
  color: #333;
}

.variation-block .size-pill.selected {
  border-color: #000;
  color: #000;
  background: #f0f0f0;
}

.variation-block .size-pill.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.variation-block .reset_variations {
  display: inline-block;
  font-size: 12px;
  color: #e74c3c;
  text-decoration: none;
  margin-left: 8px;
}

.product-colors {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
}

/* Filter actions */
.filter-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.filter-reset {
  width: 100%;
  padding: 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: #555;
}

.filter-reset:hover {
  background: #eee;
  border-color: #ccc;
}

/* ========== SHOP CONTENT ========== */
.shop-content {
  flex: 1;
  min-width: 0;
}

.shop-header {
  margin-bottom: 24px;
}

.shop-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.shop-breadcrumb a {
  color: #888;
  text-decoration: none;
}

.shop-breadcrumb a:hover {
  color: #000;
}

.shop-description {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 16px;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.filters-toggle {
  display: none;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.filters-toggle:hover {
  background: #333;
}

.shop-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.products-count {
  font-size: 14px;
  color: #888;
}

.orderby-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.orderby-select:focus {
  outline: none;
  border-color: #000;
}

/* ========== PRODUCTS GRID ========== */
.products-grid ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.products-grid ul.products::before,
.products-grid ul.products::after {
  display: none;
}

.products-grid li.product {
  width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

/* ========== PRODUCT CARD ========== */
.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  transition: all 0.3s ease;
  flex: 1;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

.product-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f9f9f9;
}

.product-thumbnail img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumbnail img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 3px;
  color: #fff;
  z-index: 2;
}

.product-badge.sale {
  background: #e74c3c;
}

.product-badge.out-of-stock {
  background: #999;
}

.product-info {
  padding: 16px;
  flex: 1;
}

.product-title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 8px;
  color: #222;
  line-height: 1.3;
}

.product-rating {
  margin-bottom: 6px;
}

.product-rating .star-rating {
  font-size: 12px;
  color: #f5a623;
  margin: 0;
}

.product-price {
  font-size: 17px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
}

.product-price del {
  font-size: 14px;
  font-weight: 400;
  color: #999;
  margin-right: 6px;
}

.product-price ins {
  text-decoration: none;
}

.product-actions {
  padding: 0 16px 16px;
  margin-top: auto;
}

.product-actions .add_to_cart_button,
.product-actions .button {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.product-actions .add_to_cart_button:hover,
.product-actions .button:hover {
  background: #333;
}

.product-actions .add_to_cart_button.added {
  display: none;
}

.product-actions .added_to_cart {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.product-actions .added_to_cart:hover {
  background: #000;
  color: #fff;
}

/* ========== NO PRODUCTS ========== */
.no-products {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 16px;
}

/* ========== PAGINATION ========== */
.woocommerce-pagination {
  margin-top: 32px;
}

.woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none !important;
}

.woocommerce-pagination ul.page-numbers li {
  float: none;
  border: none !important;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: all 0.2s;
  line-height: 1.5 !important;
}

.woocommerce-pagination ul.page-numbers li span.current {
  background: #F9E0E2 !important;
  color: #fff;
  border-color: #000;
}

.woocommerce-pagination ul.page-numbers li a:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* ========== LOADING STATE ========== */
.products-grid.loading {
  position: relative;
  min-height: 200px;
}

.products-grid.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 5;
}

.products-grid.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #eee;
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  z-index: 6;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ========== FLOATING CART ========== */
#fc-overlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  z-index: 999998 !important;
}

#fc-overlay.fc-visible {
  display: block !important;
}

#fc-btn {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  z-index: 999999 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

#fc-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3) !important;
}

#fc-btn svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
}

.fc-count {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  background: #e74c3c !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 22px !important;
  text-align: center !important;
  border-radius: 11px !important;
  display: none !important;
  box-sizing: border-box !important;
}

.fc-count.fc-has {
  display: block !important;
}

/* ========== PANEL ========== */
.fc-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 380px !important;
  max-width: 100vw !important;
  background: #fff !important;
  z-index: 999999 !important;
  transform: translateX(100%) !important;
  transition: transform 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1) !important;
}

.fc-panel.fc-open {
  transform: translateX(0) !important;
}

.fc-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 20px 24px !important;
  border-bottom: 1px solid #eee !important;
  flex-shrink: 0 !important;
}

.fc-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #222 !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

#fc-close {
  background: none !important;
  border: none !important;
  font-size: 28px !important;
  cursor: pointer !important;
  color: #666 !important;
  line-height: 1 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
}

.fc-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 0 !important;
}

.fc-empty-msg {
  text-align: center !important;
  padding: 60px 24px !important;
  color: #999 !important;
  font-size: 15px !important;
}

/* ========== ITEMS ========== */
.fc-items {
  padding: 0 !important;
}

.fc-item {
  display: flex !important;
  gap: 12px !important;
  padding: 14px 24px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  position: relative !important;
  align-items: flex-start !important;
}

.fc-item:last-of-type {
  border-bottom: none !important;
}

.fc-item-info {
  flex: 1 !important;
  min-width: 0 !important;
  padding-right: 20px !important;
}

.fc-item-name {
  display: block !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: #222 !important;
  text-decoration: none !important;
  margin-bottom: 3px !important;
}

.fc-item-name:hover {
  color: #000 !important;
  text-decoration: none !important;
}

.fc-item-qty {
  display: block !important;
  font-size: 12px !important;
  color: #888 !important;
  line-height: 1.4 !important;
}

.fc-item-qty .amount {
  font-weight: 600 !important;
  color: #000 !important;
}

.fc-item-img {
  flex-shrink: 0 !important;
  order: 2 !important;
}

.fc-item-img img {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  display: block !important;
}

.fc-item-remove {
  position: absolute !important;
  top: 8px !important;
  right: 20px !important;
  color: #bbb !important;
  font-size: 16px !important;
  text-decoration: none !important;
  line-height: 1 !important;
  z-index: 2 !important;
  background: white;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
}

.fc-item-remove:hover {
  color: #e74c3c !important;
}

/* ========== FOOTER ========== */
.fc-foot {
  padding: 16px 24px 24px !important;
  border-top: 1px solid #eee !important;
  flex-shrink: 0 !important;
}

.fc-panel.fc-empty .fc-foot {
  display: none !important;
}

.fc-total {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 0 12px !important;
  color: #000 !important;
  line-height: 1.4 !important;
}

.fc-btn-checkout,
.fc-btn-cart {
  display: block !important;
  width: 100% !important;
  padding: 12px !important;
  text-align: center !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.fc-btn-checkout {
  background: #000 !important;
  color: #fff !important;
  margin-bottom: 8px !important;
  border: none !important;
}

.fc-btn-checkout:hover {
  background: #333 !important;
  color: #fff !important;
}

.fc-btn-cart {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

.fc-btn-cart:hover {
  background: #000 !important;
  color: #fff !important;
}

body.woocommerce-cart #fc-btn,
body.woocommerce-checkout #fc-btn,
body.woocommerce-cart #fc-overlay,
body.woocommerce-checkout #fc-overlay,
body.woocommerce-cart .fc-panel,
body.woocommerce-checkout .fc-panel {
  display: none !important;
}

@media (max-width: 480px) {
  .fc-panel {
    width: 100vw !important;
  }

  #fc-btn {
    bottom: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }
}

/* ========== SINGLE PRODUCT ========== */
.product-single {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.product-single-main {
  display: flex;
  gap: 50px;
  margin-bottom: 60px;
}

.product-single-gallery {
  flex: 0 0 55%;
  max-width: 55%;
}

.product-single-summary {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Gallery */
.woocommerce-product-gallery {
  position: relative;
}

.woocommerce-product-gallery__trigger {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10 !important;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.woocommerce-product-gallery__trigger:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flex-viewport {
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  background: #fafafa;
  margin-bottom: 10px;
}

.flex-viewport img {
  width: 100%;
  display: block;
}

.flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.flex-control-thumbs li {
  flex: 0 0 80px;
  cursor: pointer;
}

.flex-control-thumbs li img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.2s;
  opacity: 0.6;
}

.flex-control-thumbs li img.flex-active {
  border-color: #000;
  opacity: 1;
}

.flex-control-thumbs li img:hover {
  opacity: 0.9;
}

/* Sale badge */
.onsale {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: #e74c3c;
  color: #fff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
}

/* Summary - Title */
.product-title {
  font-size: 28px;
  font-weight: 600;
  color: #222;
  margin: 0;
  line-height: 1.2;
}

/* Summary - Rating */
.woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.woocommerce-product-rating .star-rating {
  font-size: 14px;
  color: #f5a623;
  margin: 0;
}

.woocommerce-review-link {
  font-size: 13px;
  color: #888;
  text-decoration: none;
}

.woocommerce-review-link:hover {
  color: #000;
}

/* Summary - Price */
.product-single-summary .price {
  font-size: 26px;
  font-weight: 700;
  color: #ec008c !important;
  margin: 0;
}

.product-single-summary .price del {
  font-size: 18px;
  font-weight: 400;
  color: #999;
  margin-right: 8px;
}

.product-single-summary .price ins {
  text-decoration: none;
}

/* Summary - Excerpt */
.woocommerce-product-details__short-description {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.woocommerce-product-details__short-description p {
  margin: 0;
}

/* Summary - Cart form */
.product-single-summary .cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
}

.product-single-summary .quantity {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.product-single-summary .quantity input[type="number"] {
  width: 60px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  appearance: textfield;
  background: #fff;
}

.product-single-summary .quantity input::-webkit-outer-spin-button,
.product-single-summary .quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-single-summary .single_add_to_cart_button {
  flex: 1;
  min-width: 200px;
  padding: 14px 32px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-single-summary .single_add_to_cart_button:hover {
  background: #333;
}

.product-single-summary .single_add_to_cart_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Variations */
.variations_form {
  width: 100%;
}

table.variations {
  width: 100%;
  border: none;
  margin-bottom: 16px;
}

table.variations td {
  padding: 6px 0;
  border: none;
  vertical-align: middle;
}

table.variations .label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  padding-right: 16px;
  white-space: nowrap;
}

table.variations .value select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  cursor: pointer;
}

table.variations .reset_variations {
  font-size: 12px;
  color: #e74c3c;
  text-decoration: none;
  margin-left: 8px;
}

table.variations .reset_variations:hover {
  text-decoration: underline;
}

.woocommerce-variation-price {
  margin: 12px 0;
  text-align: center;
}

.woocommerce-variation-availability .in-stock {
  color: #2e7d32;
  font-size: 14px;
  font-weight: 500;
}

.woocommerce-variation-availability .out-of-stock {
  color: #e74c3c;
  font-size: 14px;
  font-weight: 500;
}

/* Grouped product */
.product-single-summary .group_table {
  width: 100%;
  border: none;
  margin: 12px 0;
}

.product-single-summary .group_table td {
  padding: 8px;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.product-single-summary .group_table .label a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
}

.product-single-summary .group_table .label a:hover {
  color: #000;
  text-decoration: underline;
}

/* Product attributes list */
.product-attributes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
}

.attribute-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  align-items: center;
}

.variations-pills {
  margin-bottom: 20px;
}

.attribute-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
  letter-spacing: 0.5px;
}

.attribute-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attribute-values.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Meta */
.product_meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #888;
}

.product_meta span {
  display: block;
}

.product_meta a {
  color: #555;
  text-decoration: none;
}

.product_meta a:hover {
  color: #000;
  text-decoration: underline;
}

.product_meta .sku_wrapper,
.product_meta .posted_in,
.product_meta .tagged_as {
  display: block;
}

/* Tabs */
.product-single-bottom {
  margin-top: 0;
}

.woocommerce-tabs {
  padding-top: 0;
}

.wc-tabs-wrapper {
  margin: 0 auto;
}

ul.wc-tabs {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

ul.wc-tabs li {
  margin: 0;
  padding: 0;
}

ul.wc-tabs li a {
  display: block;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

ul.wc-tabs li.active a {
  color: #000;
  border-bottom-color: #000;
}

ul.wc-tabs li a:hover {
  color: #555;
}

.wc-tab {
  padding: 32px 0;
}

.wc-tab h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #222;
}

.wc-tab p {
  color: #555;
  line-height: 1.7;
  margin: 0 0 12px;
}

.wc-tab table {
  width: 100%;
  border-collapse: collapse;
}

.wc-tab table th,
.wc-tab table td {
  padding: 10px 16px;
  border: 1px solid #eee;
  font-size: 14px;
  text-align: left;
}

.wc-tab table th {
  background: #fafafa;
  font-weight: 600;
  color: #333;
}

/* Reviews */
#reviews {
  max-width: 600px;
}

#reviews .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

#reviews .commentlist li {
  margin: 0 0 24px;
  padding: 20px;
  background: #fafafa;
  border-radius: 8px;
}

#reviews .commentlist li .avatar {
  float: left;
  margin-right: 16px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

#reviews .commentlist li .comment-text {
  overflow: hidden;
}

#reviews .commentlist li .star-rating {
  font-size: 12px;
  color: #f5a623;
  margin-bottom: 4px;
}

#reviews .commentlist li .meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

#reviews .commentlist li .description p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

#review_form_wrapper {
  margin-top: 32px;
}

#review_form_wrapper .comment-reply-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  display: block;
}

#review_form_wrapper label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

#review_form_wrapper input[type="text"],
#review_form_wrapper input[type="email"],
#review_form_wrapper textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

#review_form_wrapper input:focus,
#review_form_wrapper textarea:focus {
  outline: none;
  border-color: #000;
}

#review_form_wrapper .submit {
  padding: 12px 32px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#review_form_wrapper .submit:hover {
  background: #333;
}

.stars a {
  color: #ddd;
  text-decoration: none;
  font-size: 16px;
}

.stars a:hover,
.stars a.active {
  color: #f5a623;
}

.comment-form-rating {
  margin-bottom: 16px;
}

/* Related & Upsells */
.related,
.upsells {
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid #eee;
  margin-top: 0;
}

.related h2,
.upsells h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 24px;
  color: #222;
  text-align: center;
}

.related ul.products,
.upsells ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.related ul.products::before,
.related ul.products::after,
.upsells ul.products::before,
.upsells ul.products::after {
  display: none;
}

.related ul.products li.product,
.upsells ul.products li.product {
  width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

/* Notices */
.woocommerce-notices-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 14px 20px;
  margin-bottom: 16px;
  border-radius: 8px;
  font-size: 14px;
  list-style: none;
}

.woocommerce-message {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.woocommerce-error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ffccbc;
}

.woocommerce-info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
  color: inherit;
  font-weight: 600;
}

.woocommerce-message .button {
  float: right;
  padding: 4px 12px;
  background: #2e7d32;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
}

.woocommerce div.product form.cart .button {
  background-color: #ec008c;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
  position: static;
}

.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images {
  width: 100%;
}

.woocommerce div.product div.images img {
  border-radius: 15px;
}

.woocommerce span.onsale {
  padding: 5px 8px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button {
  background-color: #F9E0E2;
}

.wp-block-button__link:hover {
  color: white !important;
}

.wc-block-grid__products .wc-block-grid__product-image img {
  border-radius: 15px !important;
}

/* ========== HELLO THEME ========== */
@media (min-width: 1200px) {

  .page-header .entry-title,
  .site-footer .footer-inner,
  .site-footer:not(.dynamic-footer),
  .site-header .header-inner,
  .site-header:not(.dynamic-header),
  body:not([class*=elementor-page-]) .site-main {
    max-width: 1440px;
  }
}

.alignwide {
  margin-inline: 0;
}

.page-header {
  display: none;
}

/* ========== CATEGORY TREE ========== */
.filter-categories,
.subcategory-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.filter-category-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.subcategory-list {
  margin: 4px 0 4px 20px;
}

.filter-category-item.has-children {
  position: relative;
}

.filter-category-item.has-children>.filter-link {
  padding-left: 30px;
}

.cat-toggle {
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  padding: 0;
  background: none;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: transform 0.2s;
  z-index: 1;
}

.cat-toggle:hover,
.cat-toggle:focus {
  background: #1565c0;
}

.cat-toggle::before {
  content: '+';
}

.filter-category-item:not(.collapsed)>.cat-toggle::before {
  content: '−';
}

.filter-category-item.collapsed>.subcategory-list {
  display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .products-grid ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .shop-container {
    flex-direction: column;
  }

  .shop-filters {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
  }

  .shop-filters.open {
    display: block;
  }

  .filters-toggle {
    display: block;
  }

  .filters-close {
    display: block;
  }

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

  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-toolbar-right {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .related ul.products,
  .upsells ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .product-single-main {
    flex-direction: column;
    gap: 0;
  }

  .product-single-gallery {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .products-grid ul.products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {

  .related ul.products,
  .upsells ul.products {
    grid-template-columns: repeat(1, 1fr);
  }
}

.woocommerce div.product p.stock {
  font-size: .92em;
  text-align: center;
}