/**
 * Restoria — e-commerce shop layout (category archive style)
 * Uses tokens from global.css: --main-color, --color-one, --font-family-Fraunces, etc.
 */

.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 99999;
  padding: 12px 20px;
  background: var(--main-color);
  color: var(--color-one);
  font-weight: 600;
}

.skip-to-content:focus {
  left: 12px;
  top: 12px;
}

/* Menu selection styling */
.offer-block-two.menu-selected {
  border: 3px solid var(--main-color);
  border-radius: 8px;
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.offer-block-two.menu-selected .cat-name {
  background: var(--main-color);
  color: var(--color-one);
}

.offer-block-two.menu-selected .theme-btn {
  background: var(--main-color) !important;
  color: var(--color-one) !important;
}

/* Change Menu Type button */
.menu-change-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 25px;
  color: var(--main-color);
  font-family: var(--font-family-Urbanist);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.menu-change-btn:hover {
  background: var(--main-color);
  color: var(--color-one);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-change-btn i {
  font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu-change-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Helper line under an input (matches reserve / default-form rhythm) */
.reserve-section .default-form .field-hint,
.default-form.reservation-form .field-hint {
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.45;
  font-family: var(--font-family-Urbanist, inherit);
  color: var(--text-color);
  opacity: 0.82;
}

/* ----- Header cart (shared with shop pages) ----- */
.shop-header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shop-cart-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--white-color-opacity-four);
  border-radius: 4px;
  color: var(--text-color);
  font-family: var(--font-family-Urbanist);
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.shop-cart-mini:hover {
  border-color: var(--main-color);
  color: var(--text-color);
}

.shop-cart-mini .cart-total {
  color: var(--main-color);
  font-weight: 600;
}

.shop-cart-mini .cart-icon-wrap {
  position: relative;
  display: inline-flex;
}

.shop-cart-mini .cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  background: var(--main-color);
  color: var(--color-one);
  border-radius: 50%;
  font-weight: 700;
}

.shop-account-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--white-color-opacity-four);
  border-radius: 50%;
  color: var(--text-color);
}

.shop-account-icon a:hover {
  border-color: var(--main-color);
  color: var(--main-color);
}

@media (max-width: 991px) {
  .shop-header-tools {
    margin-top: 12px;
    justify-content: flex-end;
    width: 100%;
  }
}

/* ----- Shop section layout ----- */
/* Fixed `.main-header` is out of document flow; inner content must start below the real header
   height (~127px here). `.section-kt` uses 100px top — not enough; keep shop section explicit. */
.shop-ec-section {
  padding: 130px 0 90px;
  background: var(--color-one);
}

@media only screen and (max-width: 767px) {
  /* `responsive.css` shrinks `.section-kt` to 70px — too tight under the sticky bar */
  .shop-ec-section {
    padding: 100px 0 60px;
  }
}

.shop-ec-section .shop-layout {
  align-items: flex-start;
}

/* Sidebar: category tree (WooCommerce-like) */
.shop-sidebar {
  padding-right: 15px;
}

.shop-widget {
  background: var(--color-two);
  border: 1px solid var(--white-color-opacity-five);
  border-radius: 4px;
  padding: 28px 24px 32px;
  margin-bottom: 28px;
}

.shop-widget-title {
  font-family: var(--font-family-Fraunces), serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--heading-color);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--white-color-opacity-five);
}

.shop-cat-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-cat-tree > li {
  margin-bottom: 6px;
}

.shop-cat-tree a {
  color: var(--text-color);
  display: inline;
}

.shop-cat-tree a:hover {
  color: var(--main-color);
}

.shop-cat-tree .cat-label {
  font-weight: 500;
}

.shop-cat-tree .count {
  color: var(--color-three);
  font-size: 14px;
}

.shop-cat-tree ul {
  list-style: none;
  margin: 8px 0 12px 16px;
  padding: 0;
  border-left: 1px solid var(--white-color-opacity-five);
  padding-left: 14px;
}

.shop-cat-tree ul li {
  margin-bottom: 6px;
}

/* Search widget */
.shop-search-widget .field-inner {
  position: relative;
}

.shop-search-widget label.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.shop-search-widget input[type="search"] {
  width: 100%;
  padding: 12px 44px 12px 16px;
  background: var(--color-eight);
  border: 1px solid var(--white-color-opacity-five);
  border-radius: 4px;
  color: var(--text-color);
  font-family: var(--font-family-Urbanist);
  font-size: 15px;
}

.shop-search-widget input[type="search"]::placeholder {
  color: var(--color-three);
}

.shop-search-widget .search-submit {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  background: var(--main-color);
  color: var(--color-one);
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.shop-search-widget .search-submit:hover {
  opacity: 0.92;
}

/* Main column */
.shop-main {
  padding-left: 15px;
}

.shop-breadcrumb {
  font-family: var(--font-family-Urbanist);
  font-size: 14px;
  color: var(--color-three);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.shop-breadcrumb a {
  color: var(--color-three);
}

.shop-breadcrumb a:hover {
  color: var(--main-color);
}

.shop-breadcrumb .sep {
  margin: 0 8px;
  color: var(--white-color-opacity-three);
}

.shop-breadcrumb--below-banner {
  margin-bottom: 28px;
}

.shop-page-title {
  font-family: var(--font-family-Fraunces), serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: var(--heading-color);
  margin-bottom: 36px;
  letter-spacing: 0.5px;
}

/* Product category grid (archive) */
ul.shop-product-categories {
  list-style: none;
  margin: 0 -12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

ul.shop-product-categories li.product-category {
  width: 33.333%;
  padding: 12px;
  margin: 0;
}

@media (max-width: 991px) {
  ul.shop-product-categories li.product-category {
    width: 50%;
  }
}

@media (max-width: 575px) {
  ul.shop-product-categories li.product-category {
    width: 100%;
  }

  .shop-sidebar {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .shop-main {
    padding-left: 0;
  }
}

.product-category-card {
  height: 100%;
  background: var(--color-two);
  border: 1px solid var(--white-color-opacity-five);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.product-category-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 12px 40px var(--black-color-opacity-five);
  transform: translateY(-3px);
}

.product-category-card a.woocommerce-loop-category__link {
  display: block;
  color: inherit;
}

.product-category-card .cat-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-eight);
}

.product-category-card .cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-category-card:hover .cat-thumb img {
  transform: scale(1.05);
}

.product-category-card .woocommerce-loop-category__title {
  font-family: var(--font-family-Fraunces), serif;
  font-size: 20px;
  font-weight: 500;
  padding: 18px 18px 22px;
  margin: 0;
  text-align: center;
  line-height: 1.35;
}

.product-category-card .woocommerce-loop-category__title mark {
  display: block;
  margin-top: 8px;
  font-family: var(--font-family-Urbanist), sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--main-color);
  background: transparent;
}

/* ----- Cart page ----- */
.shop-cart-section {
  padding: 140px 0 100px;
  min-height: 50vh;
}

@media only screen and (max-width: 767px) {
  .shop-cart-section {
    padding-top: 120px;
  }
}

.shop-cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.shop-cart-table th,
.shop-cart-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--white-color-opacity-five);
  text-align: left;
}

.shop-cart-table th {
  font-family: var(--font-family-Fraunces), serif;
  color: var(--main-color);
  font-weight: 500;
}

.shop-cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-three);
}

.shop-cart-empty .theme-btn {
  margin-top: 24px;
  display: inline-block;
}

/* ----- Fly to cart effect ----- */
.flying-to-cart {
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-bounce {
  animation: cartBounce 0.6s ease-in-out;
}

@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(0.9); }
  75% { transform: scale(1.1); }
}

/* ----- Product archive (category products — WooCommerce-style) ----- */
.shop-product-archive-wrap .shop-page-title--archive {
  margin-bottom: 12px;
}

.shop-category-desc {
  font-size: 16px;
  color: var(--color-three);
  margin-bottom: 28px;
  line-height: 1.65;
  max-width: 720px;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--white-color-opacity-five);
}

.woocommerce-result-count {
  margin: 0;
  font-size: 0.95em;
  color: var(--color-three);
}

.woocommerce-ordering select.orderby {
  min-width: 220px;
  padding: 10px 36px 10px 14px;
  background: var(--color-eight);
  border: 1px solid var(--white-color-opacity-five);
  border-radius: 4px;
  color: var(--text-color);
  font-family: var(--font-family-Urbanist);
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
}

ul.shop-product-archive {
  list-style: none;
  margin: 0 -12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

ul.shop-product-archive li.product {
  width: 33.333%;
  padding: 12px;
  margin: 0;
}

.shop-product-card {
  height: 100%;
  background: var(--color-two);
  border: 1px solid var(--white-color-opacity-five);
  border-radius: 4px;
  padding: 0 0 20px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.shop-product-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 8px 28px var(--black-color-opacity-five);
}

.shop-product-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-eight);
}

.shop-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.shop-product-card:hover .shop-product-thumb img {
  transform: scale(1.06);
}

.shop-product-cat-label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--main-color);
  margin-top: 14px;
  margin-bottom: 4px;
}

.shop-product-card .woocommerce-loop-product__title {
  font-family: var(--font-family-Fraunces), serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
  padding: 0 14px;
  line-height: 1.35;
}

.shop-product-card .woocommerce-loop-product__title a {
  color: var(--heading-color);
}

.shop-product-card .woocommerce-loop-product__title a:hover {
  color: var(--main-color);
}

.shop-product-card .price {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 14px;
}

.shop-product-card .add_to_cart_button {
  display: inline-block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-one);
  background: var(--main-color);
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shop-product-card .add_to_cart_button:hover {
  opacity: 0.92;
  color: var(--color-one);
}

.shop-pagination {
  margin-top: 40px;
  clear: both;
  border: none;
  box-shadow: none;
}

/*
  WooCommerce uses `ul.page-numbers` — do NOT style `.page-numbers` alone or rules apply to the
  `<ul>` and break alignment. Only target `a` / `span` inside `li`.
*/
.shop-pagination ul.page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  box-shadow: none;
}

.shop-pagination ul.page-numbers > li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-pagination ul.page-numbers > li > a.page-numbers,
.shop-pagination ul.page-numbers > li > span.page-numbers {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 12px;
  font-family: var(--font-family-Urbanist), sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  border: none;
  border-radius: 4px;
  color: var(--text-color);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Prev / Next — wider than numeric page pills */
.shop-pagination ul.page-numbers > li:first-child > .page-numbers,
.shop-pagination ul.page-numbers > li:last-child > .page-numbers {
  min-width: auto;
  padding: 0 14px;
}

.shop-pagination ul.page-numbers > li > a.page-numbers:hover {
  color: var(--main-color);
  background: var(--white-color-opacity-five);
}

.shop-pagination ul.page-numbers > li > span.page-numbers[aria-disabled='true'] {
  opacity: 0.4;
  pointer-events: none;
}

.shop-pagination ul.page-numbers > li > span.page-numbers.current {
  background: var(--main-color);
  color: var(--color-one);
  font-weight: 600;
  opacity: 1;
}

.shop-pagination ul.page-numbers > li > a.page-numbers:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.shop-cat-tree a.shop-cat-current {
  color: var(--main-color);
  font-weight: 600;
}

@media (max-width: 991px) {
  ul.shop-product-archive li.product {
    width: 50%;
  }
}

@media (max-width: 575px) {
  ul.shop-product-archive li.product {
    width: 100%;
  }

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

/* Milya menu page (server-rendered in Laravel; cart buttons use shop.js) */
.milya-cat-tree ul {
  margin: 8px 0 8px 14px;
  padding: 0;
  list-style: none;
}

.milya-cat-tree .milya-cat-root {
  margin-bottom: 12px;
}

/* Native `<button>` add-to-cart (Blade) — match anchor styling from Template/shop-category.js */
.shop-product-card button.add_to_cart_button {
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}
