/* Heet Theme - Main styles. Variables from layout.jinja :root */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
input,
button,
select,
textarea {
  margin: 0;
  font-family: var(--heet-font, 'Helvetica Neue', 'Ghroob', Arial, sans-serif) !important;
  font-size: 16px;
  line-height: 1.5;
  color: var(--heet-color-primary);
  background-color: var(--heet-color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Container */
.heet-container {
  width: 100%;
  padding-left: 77px;
  padding-right: 77px;
}

.heet-section {
  padding-top: 30px;
  padding-bottom: 30px;
}

.heet-section-title {
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #000000;
  color: #000000;
  text-align: left;
}

.heet-section-title--no-border {
  border-bottom: none;
  padding-bottom: 0;
  margin: 0;
}

/* Page Header & Sorting */
.heet-page-header {
  display: flex;
  direction: ltr;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #000000;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.heet-page-header .heet-section-title {
  margin: 0;
  padding: 0;
  border: none;
}

.heet-sort-dropdown {
  position: relative;
}

.heet-sort-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Helvetica Neue', 'Ghroob', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #000000;
  outline: none;
}

.heet-sort-icon {
  font-size: 16px;
  line-height: 1;
}

.heet-sort-list {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  min-width: 150px;
  padding: 8px 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 10;
  margin-top: 8px;
}

.heet-sort-dropdown.is-open .heet-sort-list {
  display: block;
}

.heet-sort-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  text-align: right;
  transition: background 0.2s;
}

.heet-sort-list li a:hover {
  background: #f5f5f5;
  color: #000;
}

/* Buttons */
.heet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--heet-spacing-unit) * 1.5) calc(var(--heet-spacing-unit) * 3);
  font-family: var(--heet-font);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--heet-color-primary);
  background: transparent;
  color: var(--heet-color-primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.heet-btn:hover {
  background: var(--heet-color-primary);
  color: #fff;
  text-decoration: none;
}

.heet-btn--primary {
  background: var(--heet-color-primary);
  color: #fff;
}

.heet-btn--primary:hover {
  opacity: 0.9;
}

/* Forms */
input,
select,
textarea {
  font-family: var(--heet-font);
  font-size: 1rem;
}

input[type="number"] {
  width: 4rem;
  padding: 0.25rem 0.5rem;
  text-align: center;
}

/* Page layouts */
.home {
  min-height: 50vh;
}

.product-page,
.products-page,
.category-page,
.categories-page,
.cart-page,
.search-page,
.page,
.faqs-page,
.shipping-payment-page,
.not-found-page {
  min-height: 50vh;
  padding-top: calc(var(--heet-spacing-unit) * 4);
  padding-bottom: calc(var(--heet-spacing-unit) * 4);
}

.not-found-page {
  text-align: center;
  padding-top: 4rem;
}

.not-found-page h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Responsive - Mobile first */
@media (max-width: 640px) {
  .heet-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .heet-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .heet-section-title {
    font-size: 1.125rem;
  }
}

/* Toast Notifications */
.heet-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ffffff;
  color: #000000;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  max-width: 400px;
  border-left: 4px solid #000000;
}

.heet-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.heet-toast--success {
  border-left-color: #28a745;
}

.heet-toast--error {
  border-left-color: #dc3545;
}

.heet-toast strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.heet-toast p {
  margin: 0;
  font-size: 14px;
  color: #666666;
}

/* ═══════════════════════════════════════
   CATEGORIES GRID
═══════════════════════════════════════ */
.heet-categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.heet-category-card { display: flex; flex-direction: column; align-items: center; padding: 1rem; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.heet-category-card:hover { text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.heet-category-card__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.heet-category-card__placeholder { width: 100%; aspect-ratio: 1; background: var(--heet-color-bg); border-radius: 4px; }
.heet-category-card__name { margin-top: 0.75rem; font-weight: 500; }
.heet-category-desc { margin-bottom: 1.5rem; color: var(--heet-color-secondary); font-size: 0.9375rem; }

/* ═══════════════════════════════════════
   FAQ LIST
═══════════════════════════════════════ */
.heet-faq-list { list-style: none; margin: 0; padding: 0; }
.heet-faq-item { padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
.heet-faq-item__q { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; }
.heet-faq-item__a { color: var(--heet-color-secondary); font-size: 0.9375rem; }

/* ═══════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════ */
.heet-breadcrumb { font-size: 0.8125rem; margin-bottom: 1rem; }
.heet-breadcrumb__list { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.heet-breadcrumb__list li:not(:last-child)::after { content: '/'; margin-left: 0.5rem; color: var(--heet-color-secondary); }
.heet-breadcrumb__list a { color: var(--heet-color-secondary); }
.heet-breadcrumb__list [aria-current] { color: var(--heet-color-primary); }

/* ═══════════════════════════════════════
   PAGINATION
═══════════════════════════════════════ */
.heet-pagination { margin-top: 2rem; }
.heet-pagination__list { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0; padding: 0; list-style: none; }
.heet-pagination__list a, .heet-pagination__list span { display: inline-block; padding: 0.5rem 0.75rem; min-width: 2.5rem; text-align: center; border: 1px solid rgba(0,0,0,0.15); border-radius: 4px; font-size: 0.875rem; }
.heet-pagination__list a:hover { background: rgba(0,0,0,0.04); text-decoration: none; }
.heet-pagination__list [aria-current] { background: var(--heet-color-primary); color: #fff; border-color: var(--heet-color-primary); }