/* ============================================
 * Button system spec — share these tokens across stylesheets.
 *
 * Primary      flat var(--btn-primary), radius 12, padding 12 24, 14/600
 *              hover: var(--btn-primary-hover) + shadow
 *              active: scale(0.98)   (no translateY lift)
 * Secondary    white bg, 1px var(--btn-border), padding 12 22, 13/600
 *              hover: var(--btn-border-hover) + gray-50 bg + gray-900 text
 * Soft action  tint-50 bg + tint-200 border + tint-700 text (emerald for edit)
 * Destructive  same as Soft, red palette
 * Ghost        no bg/border, padding 4 10, radius 8, 12/600
 * Pill toggle  radius 999, padding 6 12, 12/600
 *
 * Avoid: gradients, UPPERCASE + letter-spacing, translateY hover lift,
 *        heart-pop animations, ad-hoc emerald shades (#0ea5e9, #38bdf8, etc.).
 * ============================================ */
:root {
    --btn-primary: #0ea5e9;
    --btn-primary-hover: #0284c7;
    --btn-primary-shadow: rgba(14, 165, 233, 0.5);
    --btn-border: #e5e7eb;
    --btn-border-hover: #d1d5db;
    --btn-text: #4b5563;
    --btn-neutral-text: #374151;
    --btn-text-strong: #111827;
    --btn-text-muted: #6b7280;
    --btn-bg-hover: #f9fafb;
    --btn-radius: 12px;
    --btn-radius-sm: 8px;
    --btn-radius-pill: 999px;
    --btn-soft-bg: #f0f9ff;
    --btn-soft-border: #bae6fd;
    --btn-soft-border-hover: #e0f2fe;
    --btn-soft-text: #0369a1;
    --btn-destructive-bg: #fef2f2;
    --btn-destructive-bg-hover: #fee2e2;
    --btn-destructive-border: #fecaca;
    --btn-destructive-text: #b91c1c;
    --btn-destructive-text-hover: #991b1b;
}

.layout-container {
    display: flex;
    min-height: 100vh;
    gap: 20px;
}

.custom-restricted-width {
    width: 10em;
    background: orange;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.content {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

body.profile-page #layout {
    gap: 0;
}

.content.content--profile {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: hidden;
}

body {
    color: #777;
    background: white;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Pure CSS menu */
.pure-img-responsive {
    max-width: 100%;
    height: auto;
}

#layout,
#menu,
.menu-link {
    transition: all 0.2s ease-out;
}

#layout {
    position: relative;
    left: 0;
    padding-left: 0;
    overflow-x: clip;
}

#layout.active #menu {
    left: 250px;
    width: 250px;
}

#layout.active .menu-link {
    left: 250px;
}

.content {
    margin: 0 auto;
    padding: 0 2em;
    max-width: 1600px;
    margin-bottom: 50px;
    line-height: 1.6em;
    width: 100%;
    box-sizing: border-box;
}

.header {
    margin: 0;
    color: #333;
    text-align: center;
    padding: 2.5em 2em 0;
    border-bottom: 1px solid #eee;
}

.header h1 {
    margin: 0.2em 0;
    font-size: 3em;
    font-weight: 300;
}

.header h2 {
    font-weight: 300;
    color: #ccc;
    padding: 0;
    margin-top: 0;
}

.content-subhead {
    margin: 50px 0 20px 0;
    font-weight: 300;
    color: #888;
}


#menu {
    margin-left: -250px;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, #0284c7, #075985);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
    #menu {
        width: 230px;
        margin-left: -230px;
    }

    #layout {
        padding-left: 0;
    }

    #layout.active #menu {
        left: 230px;
        width: 230px;
    }

    #layout.active .menu-link {
        left: 230px;
    }
}

/* Menu Logo */
.menu-logo {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(3, 105, 161, 0.5);
}

.menu-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.menu-logo-link:hover .menu-logo-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.menu-logo-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.menu-logo-icon img,
.menu-logo-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: cover;
}

.menu-logo-text {
    display: flex;
    flex-direction: column;
}

.menu-logo-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.2;
}

.menu-logo-subtitle {
    font-size: 0.75rem;
    color: #bae6fd;
    line-height: 1.2;
}

/* Menu Sections */
.menu-section {
    padding: 1rem;
}

.menu-section > .menu-item + .menu-item {
    margin-top: 0.25rem;
}

.menu-section-border {
    border-bottom: 1px solid rgba(3, 105, 161, 0.5);
}

.menu-categories {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.menu-categories > .menu-item + .menu-item {
    margin-top: 0.25rem;
}

.menu-extra-links {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(3, 105, 161, 0.5);
}

.menu-extra-links > .menu-item + .menu-item {
    margin-top: 0.25rem;
}

/* Menu Items */
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    color: #e0f2fe;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-item svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.menu-item-active {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Mobile Top Bar */
.mobile-top-bar {
    display: none;
}

@media (max-width: 47.99em) {
    .mobile-top-bar {
        display: flex;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 48px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 101;
        padding: 0 12px;
        border-bottom: 1px solid rgba(14, 165, 233, 0.1);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .mobile-top-bar-title {
        flex: 1;
        text-align: center;
        font-size: 1rem;
        font-weight: 700;
        color: #111827;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-top-bar-right {
        display: flex;
        align-items: center;
        min-width: 40px;
        justify-content: flex-end;
    }
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    font-size: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.menu-link:hover {
    background: transparent;
}

.menu-link:focus,
.menu-link:active {
    outline: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

.menu-link span {
    position: relative;
    display: block;
    width: 1.6em;
}

.menu-link span,
.menu-link span:before,
.menu-link span:after {
    background-color: #0369a1;
    pointer-events: none;
    height: 0.25em;
    border-radius: 2px;
}

.menu-link span:before,
.menu-link span:after {
    position: absolute;
    left: 0;
    width: 100%;
    margin-top: -0.5em;
    content: " ";
}

.menu-link span:after {
    margin-top: 0.5em;
}


@media (min-width: 48em) {
    .header,
    .content {
        padding-left: 2em;
        padding-right: 2em;
    }

    #layout {
        padding-left: 250px;
        left: 0;
    }

    #menu {
        left: 250px;
    }

    .menu-link {
        left: 250px;
        display: none;
    }

    #layout.active .menu-link {
        left: 250px;
    }
}

@media (max-width: 48em) {
    #layout.active {
        position: relative;
        left: 250px;
    }

    #layout.active .mobile-top-bar {
        left: 250px;
    }

    .content {
        padding: 0 1em;
        padding-top: 48px;
    }
}

.products-container {
    display: grid;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (min-width: 1280px) {
    .products-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 47.99em) {
    .products-container {
        padding-top: 16px;
    }
}

.product-card {
    box-sizing: border-box;
    border-radius: 1.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

/* Responsive fixes for regular product cards at 600px and below */
@media (max-width: 600px) {
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
    }

    .product-name {
        font-size: 14px;
    }

    .product-info {
        padding: 0.75rem;
    }
}

@media (max-width: 520px) {
    .products-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .product-name {
        font-size: 15px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 100%;
        max-width: 100%;
    }

    .products-container {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .products-container {
        gap: 14px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 14px;
    }
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9fafb;
}

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

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Card favorite button (heart overlay) */
.card-fav-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.2s, color 0.2s, transform 0.2s;
    z-index: 2;
}

.product-card:hover .card-fav-btn,
.blog-post:hover .card-fav-btn {
    opacity: 1;
}

.card-fav-btn:hover {
    background: #fff;
    color: #e53935;
    transform: scale(1.1);
}

.card-fav-btn.active {
    opacity: 1;
    color: #e53935;
    background: rgba(255, 255, 255, 0.9);
}

.card-fav-btn.active:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Always show heart on touch devices and tablet-sized viewports */
@media (hover: none), (max-width: 1024px) {
    .card-fav-btn {
        opacity: 1;
    }
}

.product-description {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
    min-height: 40px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    min-width: 0;
    flex: 1;
}

.product-rating-compact {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.rating-star-single {
    color: #fbbf24;
    font-size: 13px;
    line-height: 1;
}

.rating-compact-value {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.product-name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.product-rating .rating-stars {
    display: flex;
    gap: 2px;
}

.star-wrap {
    position: relative;
    display: inline-block;
    color: #ddd;
    line-height: 1;
}

.star-wrap::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--fill, 0%);
    overflow: hidden;
    color: #ffc107;
    display: block;
    white-space: nowrap;
}

.product-rating .star-wrap {
    font-size: 16px;
}

.product-rating .rating-value {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.product-rating .no-rating {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

.product-price {
    margin: 0.25rem 0 0;
    font-size: 1.125rem;
    color: #111827;
    white-space: nowrap;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* When open */
.modal.open {
  display: flex;
}

/* Modal content */
.modal-dialog {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 520px) {
  .modal-dialog {
    padding: 20px;
    max-height: 95vh;
  }
}

@media (max-width: 380px) {
  .modal-dialog {
    padding: 16px;
  }
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #666;
}
.modal-close:hover {
  color: #000;
}

/* Confirm Deletion Modal */
.confirm-dialog {
  max-width: 400px;
  text-align: center;
}

.confirm-dialog-message {
  color: #555;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
}

.confirm-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.confirm-cancel-btn {
  padding: 10px 24px;
  background: #fff;
  color: #616161;
  border: 2px solid #bdbdbd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
}

.confirm-cancel-btn:hover {
  background: #f5f5f5;
  border-color: #9e9e9e;
}

.confirm-delete-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c62828;
  border: 2px solid #ef9a9a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
}

.confirm-delete-btn:hover {
  background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
  color: #b71c1c;
  border-color: #e57373;
}

@media (max-width: 400px) {
  .confirm-dialog-actions {
    flex-direction: column;
  }
  .confirm-cancel-btn,
  .confirm-delete-btn {
    width: 100%;
  }
}

/* Django Messages */
.messages-container {
  width: 100%;
  max-width: 800px;
  margin-bottom: 20px;
}

.message {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-error {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
}

.message-success {
  background: #e0f2fe;
  color: #0369a1;
  border-left: 4px solid #0369a1;
}

.message-warning {
  background: #fff3e0;
  color: #ef6c00;
  border-left: 4px solid #ef6c00;
}

.message-info {
  background: #e3f2fd;
  color: #1565c0;
  border-left: 4px solid #1565c0;
}

/* Product card interaction */
.product-card {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

.product-detail-modal {
  max-width: 800px;
  width: 90%;
  padding: 30px;
}

/* Header for featured category pages (Hits / Recommended / etc.) — matches
   the products header look but is not sticky and hides on mobile. */
.featured-header {
  display: none;
}

@media (min-width: 48em) {
  .featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
}

.featured-header-text {
  min-width: 0;
}

.featured-header-title {
  margin: 0;
  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.featured-header-desc {
  margin: 0.25rem 0 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.4;
}

.content.content--leaderboard {
  max-width: 1380px;
  padding-inline: 22px;
  align-items: stretch;
}

/* Product Detail Page — modernized two-column layout */
.product-detail-page {
  padding: 32px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
}

.product-detail-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e5e7eb;
}

.product-detail-breadcrumb a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.product-detail-breadcrumb a:hover {
  color: #0284c7;
}

.product-detail-breadcrumb .breadcrumb-sep {
  color: #d1d5db;
  font-size: 11px;
}

.product-detail-breadcrumb .breadcrumb-current {
  color: #4b5563;
  font-weight: 500;
}

.product-detail-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  max-width: 100%;
  box-sizing: border-box;
}

.product-detail-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .product-detail-content {
    grid-template-columns: 1fr 1fr;
  }
}

.product-detail-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  margin: 0;
}

.product-detail-image-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  overflow: hidden;
  cursor: zoom-in;
}

.product-detail-image-trigger:focus-visible {
  outline: 1px solid #38bdf8;
  outline-offset: -1px;
}

.product-detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-image .card-fav-btn {
  opacity: 1;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: flex-start;
}

.pending-verification-label {
  display: inline-block;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
  align-self: flex-start;
  letter-spacing: 0.02em;
}

.product-brand-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.2s;
}

.product-brand-kicker:hover {
  color: #0284c7;
}

.product-detail-title {
  margin: 0;
  color: #111827;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product-brand-kicker + .product-detail-title {
  margin-top: -10px;
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  max-width: none;
  justify-content: flex-start;
}

.product-detail-rating .rating-stars {
  display: flex;
  gap: 2px;
}

.product-detail-rating .star-wrap {
  font-size: 18px;
  color: #e5e7eb;
}

.product-detail-rating .star-wrap::after {
  color: #fbbf24;
}

.product-detail-rating .rating-value {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.product-detail-rating .no-rating {
  font-size: 14px;
  color: #9ca3af;
  font-style: italic;
}

.product-detail-price {
  font-size: 30px;
  color: #111827;
  font-weight: 700;
  line-height: 1;
  margin-top: 4px;
  margin-bottom: 4px;
}

.product-detail-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6b7280;
}

.product-author-label {
  color: #9ca3af;
}

.product-author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s;
}

.product-author-link:hover {
  color: #0284c7;
  text-decoration: none;
}

.product-detail-author .user-picture--sm {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.product-detail-author .user-picture {
  box-shadow: none;
}

.product-detail-author .user-rating-badge {
  font-size: 11px;
  padding: 1px 6px;
}

.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.product-detail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #0ea5e9;
  color: #ffffff;
  text-decoration: none;
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.product-detail-cta:hover {
  background: #0284c7;
  box-shadow: 0 10px 24px -8px rgba(14, 165, 233, 0.5);
}

.product-detail-cta:active {
  transform: scale(0.98);
}

.product-detail-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #ffffff;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.1s;
  font-family: inherit;
  line-height: 1.5;
}

.product-detail-share:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #111827;
}

.product-detail-share:active {
  transform: scale(0.98);
}

.product-detail-share.is-copied {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.product-detail-owner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.product-detail-owner-actions .edit-button,
.product-detail-owner-actions .delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.product-detail-owner-actions form {
  margin: 0;
  display: contents;
}

.edit-button {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.edit-button:hover {
  background: #e0f2fe;
}

.delete-button {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.delete-button:hover {
  background: #fee2e2;
  color: #991b1b;
}

.product-detail-description-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.product-detail-description-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.product-detail-description-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
  font-size: 14px;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 768px) {
  body.product-detail-body .fab-main {
    display: none;
  }

  .product-detail-breadcrumb {
    display: none;
  }

  .product-detail-page {
    padding: 20px 14px 40px;
  }

  .product-detail-title {
    font-size: 26px;
  }

  .product-detail-price {
    font-size: 24px;
  }

  .product-detail-description-card {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .product-detail-image {
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .product-detail-page {
    padding: 10px 8px;
  }

  .product-detail-container {
    padding: 16px 12px;
    border-radius: 8px;
  }
}

/* Authentication Forms Styles */
body.auth-page {
  overflow-x: hidden;
}

body.auth-page .layout-container {
  gap: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body.auth-page .site-footer {
  margin-top: 0;
}

body.auth-page .content {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: auto;
  position: relative;
  overflow-x: clip;
  justify-content: center;
  align-items: center;
}

.auth-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: calc(100dvh - 140px);
  padding: 32px 20px;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 560px;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: authRise 0.45s ease-out;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.18), rgba(3, 105, 161, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.auth-brand-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
}

.auth-brand-title {
  color: #075985;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.auth-brand-subtitle {
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.2;
}

.auth-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  margin-bottom: 28px;
}

.auth-header h1 {
  margin: 0;
  color: #344054;
  font-size: clamp(1.8rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.auth-subtitle {
  margin: 0;
  color: #667085;
  font-size: 1rem;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.auth-label {
  display: block;
  color: #344054;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-input,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 18px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  background: #f9f9f9;
  color: #1f2937;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.auth-input:hover,
.auth-form input[type="text"]:hover,
.auth-form input[type="email"]:hover,
.auth-form input[type="password"]:hover {
  border-color: #bdbdbd;
}

.auth-input:focus,
.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
  transform: translateY(-1px);
}

.auth-input::placeholder,
.auth-form input[type="text"]::placeholder,
.auth-form input[type="email"]::placeholder,
.auth-form input[type="password"]::placeholder {
  color: #98a2b3;
}

.auth-error {
  display: block;
  color: #c62828;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 2px;
  animation: slideDown 0.2s ease;
}

.auth-help-text {
  display: block;
  color: #7a7a7a;
  font-size: 0.8rem;
  line-height: 1.45;
  font-style: italic;
  margin-top: 2px;
}

.auth-error-box {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #b42318;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: slideDown 0.2s ease;
}

.auth-error-box ul {
  margin: 0;
  padding-left: 18px;
}

.auth-submit-btn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9 0%, #075985 100%);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.26);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.3);
}

.auth-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.24);
}

.auth-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(2, 132, 199, 0.12);
  text-align: center;
}

.auth-footer p {
  margin: 0;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.auth-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.auth-link:hover::after {
  transform: scaleX(1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive adjustments for auth forms */
@media (max-width: 768px) {
  body.auth-page .content {
    padding-top: 48px;
  }

  .auth-container {
    padding: 24px 16px;
  }

  .auth-card {
    max-width: 100%;
    padding: 32px 24px;
    border-radius: 18px;
  }

  .auth-brand {
    margin-bottom: 22px;
  }

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

  .auth-submit-btn {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 18px 12px;
  }

  .auth-card {
    padding: 26px 18px;
    border-radius: 16px;
  }

  .auth-brand-icon {
    width: 44px;
    height: 44px;
  }

  .auth-subtitle {
    font-size: 0.95rem;
  }

  .auth-input,
  .auth-form input[type="text"],
  .auth-form input[type="email"],
  .auth-form input[type="password"] {
    padding: 13px 15px;
    font-size: 0.92rem;
  }

  .auth-submit-btn {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
  }
}

/* reCAPTCHA Wrapper Styles */
.recaptcha-wrapper {
  margin: 12px 0 2px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 2px solid rgb(224, 224, 224);
  background: #F9F9F9;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recaptcha-wrapper:hover {
  border-color: #0284c7;
}

.recaptcha-label {
  margin: 0 0 12px;
  color: #344054;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.recaptcha-widget {
  display: flex;
  justify-content: center;
  align-items: center;
}

.recaptcha-widget > .g-recaptcha {
  transform: scale(1.02);
  transform-origin: center center;
}

@media (max-width: 480px) {
  .recaptcha-wrapper {
    padding: 14px 12px;
  }

  .recaptcha-label {
    font-size: 0.85rem;
  }

  .recaptcha-widget > .g-recaptcha {
    transform: scale(0.9);
  }
}

@media (max-width: 360px) {
  .recaptcha-widget > .g-recaptcha {
    transform: scale(0.82);
  }
}

@media (max-width: 320px) {
  .recaptcha-widget {
    justify-content: flex-start;
  }

  .recaptcha-widget > .g-recaptcha {
    transform: scale(0.75);
    transform-origin: left center;
  }
}

/* Comments Section Styles */
.comments-section {
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  overflow-anchor: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comments-section h3 {
  color: #111827;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.2px;
}

.comments-section h4 {
  color: #1f2937;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 20px 0;
}

/* Comment Form Container */
.comment-form-container {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 2px solid #f3f4f6;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  overflow-anchor: none;
}

.comment-form-container:hover {
  border-color: #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comment-form-container form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Comment Field Wrapper */
.comment-field-wrapper {
  width: 100%;
  display: block;
}

.comment-field-wrapper textarea {
  width: 100% !important;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
  background: white;
  color: #374151;
  line-height: 1.6;
  resize: none;
  min-height: 110px;
  margin: 0;
}

/* Comment Hint */

/* Comment Textarea Styling */
.comment-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
  background: white;
  color: #374151;
  line-height: 1.6;
  resize: none;
  min-height: 110px;
}

.comment-field-wrapper textarea:hover,
.comment-textarea:hover {
  border-color: #d1d5db;
}

.comment-field-wrapper textarea:focus,
.comment-textarea:focus {
  outline: none;
  border-color: #38bdf8;
  background: white;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.comment-field-wrapper textarea::placeholder,
.comment-textarea::placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* Cancel Button (Edit Comment) */
.btn-back {
  padding: 12px 22px;
  background: white;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-back:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

/* Submit Button for Comments — matches .product-detail-cta primary style */
.btn-submit-comment {
  padding: 12px 24px;
  background: #0ea5e9;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-submit-comment:hover {
  background: #0284c7;
  box-shadow: 0 10px 22px -8px rgba(14, 165, 233, 0.5);
}

.btn-submit-comment:active {
  transform: scale(0.98);
}

.btn-submit-comment:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #0ea5e9;
  box-shadow: none;
  transform: none;
}

/* Login Message for Non-authenticated Users */
.comment-login-message {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 2px solid #38bdf8;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
  text-align: center;
}

.comment-login-message p {
  color: #0369a1;
  font-size: 16px;
  margin: 0;
  font-weight: 500;
}

.comment-login-message a {
  color: #075985;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  transition: all 0.2s ease;
}

.comment-login-message a:hover {
  color: #0369a1;
}

.comment-login-message a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: #0369a1;
  transition: width 0.3s ease;
}

.comment-login-message a:hover::after {
  width: 100%;
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  overflow-anchor: none;
}

.btn-load-more-comments {
  display: block;
  margin: 12px auto 0;
  background: white;
  color: #0369a1;
  border: 1px solid #e0f2fe;
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-load-more-comments:hover {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #075985;
}

/* Individual Comment Item */
.comment-item {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  overflow-anchor: none;
}

.comment-item:hover {
  border-color: #e5e7eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transform: none;
}

.comment-own {
  border-color: #f3f4f6;
  background: white;
}

.comment-own-label {
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Comment Header */
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f9fafb;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-header > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-header .user-picture {
  box-shadow: none;
}

.comment-header .user-profile-link {
  color: #111827;
  font-weight: 700;
  font-size: 14px;
}

.comment-header .user-profile-link:hover {
  color: #0284c7;
  text-decoration: none;
}

.comment-date {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
}

.comment-edited-label {
  color: #cbd5e1;
  font-size: 11px;
  font-style: italic;
}

.comment-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 6px;
}

.comment-footer .comment-votes {
  margin-right: auto;
}

.comment-footer .comment-toggle-replies-btn {
  margin-left: auto;
}

.comment-edit-btn {
  background: none;
  border: none;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.comment-edit-btn:hover {
  color: #0369a1;
  background: #f0f9ff;
}

.comment-delete-btn {
  background: none;
  border: none;
  padding: 4px 10px;
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.comment-delete-btn:hover {
  color: #b91c1c;
  background: #fef2f2;
}

.comment-edit-form {
  display: none;
  margin-top: 10px;
}

.comment-edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Rating Field Wrapper (for form) */
.rating-field-wrapper {
  margin-bottom: 12px;
}

.rating-field-wrapper label {
  display: block;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  align-items: center;
}

.star-rating-input input[type="radio"] {
  display: none;
}

.star-rating-input label {
  cursor: pointer;
  font-size: 32px;
  color: #e5e7eb;
  transition: color 0.2s ease, transform 0.2s ease;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.star-rating-input label:hover {
  color: #fbbf24;
  transform: scale(1.1);
}

.star-rating-input input[type="radio"]:checked ~ label {
  color: #fbbf24;
}

.star-rating-input label:hover ~ label {
  color: #fbbf24;
}

/* Comment Rating Display */
.comment-rating {
  margin: 8px 0 12px;
  display: flex;
  gap: 2px;
  align-items: center;
}

.comment-rating .star-wrap {
  font-size: 16px;
  color: #e5e7eb;
}

.comment-rating .star-wrap::after {
  color: #fbbf24;
}

/* Comment Text */
.comment-text {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 4px;
}

/* Comment Votes (Like / Dislike) */
.comment-votes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1.2;
}

.vote-btn svg {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.vote-btn:hover:not(:disabled) {
  border-color: #bae6fd;
  color: #0369a1;
  background: #f9fafb;
}

.dislike-btn:hover:not(:disabled) {
  border-color: #fecaca;
  color: #dc2626;
}

.vote-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.like-btn.active {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0369a1;
}

.dislike-btn.active {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.vote-count {
  font-weight: 700;
  min-width: 10px;
  text-align: center;
}

/* Reply Button */
.comment-reply-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #0284c7;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.comment-reply-btn:hover {
  background: #f0f9ff;
  color: #0369a1;
}

/* Toggle Replies Button */
.comment-toggle-replies-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comment-toggle-replies-btn:hover {
  background: #f9fafb;
  color: #4b5563;
}

/* Reply Form Container */
.reply-form-container {
  margin-top: 14px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  overflow-anchor: none;
}

.reply-form-container .comment-textarea {
  min-height: 80px;
  font-size: 14px;
  background: white;
}

.reply-form-container .comment-edit-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: flex-end;
}

.reply-form-container .btn-back {
  padding: 10px 18px;
  font-size: 13px;
  width: auto;
}

.reply-form-container .btn-submit-comment {
  padding: 10px 18px;
  font-size: 13px;
  align-self: auto;
  width: auto;
}

/* Replies List */
.replies-list {
  margin-top: 16px;
  padding-top: 16px;
  padding-left: 0;
  margin-left: 0;
  border-top: 1px solid #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Reply Item — softer pill on light gray, indented under parent */
.reply-item {
  background: #f9fafb;
  border: none;
  border-left: none;
  border-radius: 14px;
  margin-left: 0;
  padding: 14px 18px;
  box-shadow: none;
  position: relative;
}

.reply-item:hover {
  background: #f3f4f6;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.reply-item .comment-header {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: none;
}

.reply-item .comment-text {
  font-size: 14px;
}

/* No Comments Message */
.no-comments {
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
  font-style: italic;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 2px dashed #e5e7eb;
}

/* Responsive Design for Comments */
@media (max-width: 768px) {
  .comments-section {
    margin-top: 40px;
    padding-top: 30px;
  }

  .comments-section h3 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .comment-form-container {
    padding: 24px;
    border-radius: 12px;
  }

  .comment-field-wrapper textarea,
  .comment-textarea {
    padding: 14px 16px;
    font-size: 14px;
    min-height: 100px;
  }

  .btn-submit-comment {
    width: 100%;
    padding: 12px 24px;
    font-size: 14px;
  }

  .comment-item {
    padding: 20px;
    max-width: 100%;
  }

  .comment-footer {
    flex-wrap: wrap;
    gap: 8px;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-date {
    font-size: 12px;
  }

  .star-rating-input label {
    font-size: 28px;
  }

  .comment-rating .star {
    font-size: 16px;
  }

  .comment-text {
    font-size: 14px;
    max-width: 100%;
  }

  .reply-item {
    margin-left: 12px;
    padding: 12px 14px;
  }

  .reply-form-container .comment-edit-actions {
    flex-direction: column;
  }

  .reply-form-container .comment-edit-actions .btn-back {
    width: 100%;
    justify-content: center;
  }

  .comment-edit-form .comment-edit-actions {
    flex-direction: column;
  }

  .comment-edit-form .comment-edit-actions .btn-back {
    width: 100%;
    justify-content: center;
  }

    }

@media (max-width: 480px) {
  .comments-section h3 {
    font-size: 22px;
  }

  .comments-section h4 {
    font-size: 18px;
  }

  .comment-form-container {
    padding: 20px;
  }

  .comment-field-wrapper textarea,
  .comment-textarea {
    padding: 12px 14px;
  }

  .comment-item {
    padding: 16px;
    max-width: 100%;
  }

  .comment-text {
    font-size: 14px;
    max-width: 100%;
  }

  .comment-login-message {
    padding: 20px;
  }

  .comment-login-message p {
    font-size: 14px;
  }
}

/* =============================================
   Comment Photo Upload Slots
   ============================================= */

.comment-photo-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-photo-upload-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.comment-photo-slots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-photo-slot {
  position: relative;
  width: 80px;
  height: 80px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f9fafb;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  flex-shrink: 0;
  color: #9ca3af;
}

.comment-photo-slot:hover {
  border-color: #38bdf8;
  background: #f0f9ff;
  color: #0ea5e9;
}

.comment-photo-slot.has-photo {
  border-style: solid;
  border-color: #38bdf8;
}

.comment-photo-slot-icon {
  color: inherit;
  pointer-events: none;
}

.comment-photo-slot input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.comment-photo-slot.has-photo .comment-photo-slot-icon {
  display: none;
}

.comment-photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.comment-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* =============================================
   Comment Photo Thumbnails (display)
   ============================================= */

.comment-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}

.comment-photo-thumb {
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #eee;
  flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.comment-photo-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.comment-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================
   Lightbox
   ============================================= */

.comment-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9000;
}

.comment-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 9002;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
  outline: 3px solid #bae6fd;
  outline-offset: 2px;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 42px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 9002;
  line-height: 1;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  background: rgba(0,0,0,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  z-index: 9002;
}

/* =============================================
   Mobile adjustments for photos
   ============================================= */

@media (max-width: 768px) {
  .comment-photo-slot {
    width: 64px;
    height: 64px;
  }

  .comment-photo-thumb {
    width: 60px;
    height: 60px;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }

  .lightbox-img-wrap img {
    max-width: 95vw;
    max-height: 82vh;
  }
}

/* Parse Status Message */
.parse-status {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: none;
  animation: slideDown 0.3s ease;
}

.parse-status.loading {
  background: #e3f2fd;
  color: #1565c0;
  border-left: 4px solid #1565c0;
}

.parse-status.success {
  background: #e0f2fe;
  color: #0369a1;
  border-left: 4px solid #0369a1;
}

.parse-status.error {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
}


.category-select:focus {
  border-color: #38bdf8;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%),
              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='%232e7d32' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 12px center;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
  transform: translateY(-1px);
}

.category-select:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(56, 189, 248, 0.2);
}

.category-select option {
  background: white;
  color: #333;
  padding: 12px 16px;
  font-size: 15px;
}

.category-select option:hover {
  background: #e0f2fe;
}

.category-select option:checked {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0369a1;
  font-weight: 600;
}

/* === COUNTRY BANNER === */

.country-banner {
    position: relative;
    align-self: stretch;
    margin-left: -2em;
    margin-right: -2em;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-bottom: 8px;
}

.country-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    pointer-events: none;
}

.country-banner__content {
    position: relative;
    z-index: 1;
    padding: 100px 40px 80px 80px;
    max-width: 600px;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.country-banner--dark .country-banner__content {
    color: #111827;
}

.country-banner__title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
}

.country-banner__description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 40px;
    opacity: 0.92;
}

.country-banner__btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 24px;
    background: #ffffff;
    color: #111827;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.country-banner--dark .country-banner__btn {
    background: #111827;
    color: #ffffff;
}

.country-banner__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    text-decoration: none;
}

.country-banner--gradient {
    background: linear-gradient(to bottom, #bae6fd 0%, #f0f9ff 60%, #ffffff 100%);
}

.country-banner--gradient .country-banner__content {
    color: #0c4a6e;
}

.country-banner--gradient .country-banner__btn {
    background: #0ea5e9;
    color: #ffffff;
}

@media (max-width: 768px) {
    .country-banner {
        min-height: 160px;
        margin-left: -1em;
        margin-right: -1em;
    }

    .country-banner__overlay {
        display: block;
        background: rgba(0,0,0,0.45);
    }

    .country-banner--dark .country-banner__overlay {
        background: rgba(255,255,255,0.55);
    }

    .country-banner__content {
        padding: 24px 20px;
        max-width: 100%;
    }

    .country-banner__title {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .country-banner {
        min-height: 140px;
    }

    .country-banner__content {
        padding: 20px 16px;
    }

    .country-banner__title {
        font-size: 1.15rem;
    }

    .country-banner__description {
        font-size: 0.875rem;
    }
}

/* === CAROUSEL STYLES === */

.featured-carousels-section {
    width: 100%;
    margin-bottom: 25px;
    padding-top: 24px;
}

@media (max-width: 48em) {
    .featured-carousels-section {
        padding-top: 8px;
    }
}

.carousel-section {
    width: 100%;
    margin-bottom: 48px;
    padding: 0 32px;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
    flex-wrap: wrap;
}

.carousel-header-text {
    flex: 1;
    min-width: 0;
}

.carousel-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.2;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #0284c7;
    color: #ffffff;
    text-decoration: none;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
    flex-shrink: 0;
    align-self: center;
}

.view-all-link:hover {
    background: #0369a1;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

.product-carousel {
    position: relative;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

.carousel-track-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0 16px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    cursor: grab;
    user-select: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.carousel-slide .product-card {
    height: 100%;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.carousel-slide .product-image {
    aspect-ratio: 1 / 1;
    height: auto;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(2, 132, 199, 0.9);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-button:hover {
    background: rgba(3, 105, 161, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-button-left {
    left: 2px;
}

.carousel-button-right {
    right: 2px;
}

@media (max-width: 768px) {
    .carousel-section {
        padding: 0 16px;
        margin-bottom: 36px;
    }

    .carousel-header {
        margin-bottom: 6px;
    }

    .carousel-title {
        font-size: 1.5rem;
    }

    .product-carousel {
        padding: 0 32px;
    }

    .carousel-button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .carousel-slide {
        min-width: 210px;
        max-width: 210px;
    }
}

@media (max-width: 600px) {
    .carousel-section {
        padding: 0 12px;
    }

    .product-carousel {
        padding: 0 28px;
    }

    .carousel-slide {
        min-width: 190px;
        max-width: 190px;
    }

    .carousel-button {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .carousel-section {
        padding: 0 8px;
        margin-bottom: 28px;
    }

    .carousel-title {
        font-size: 1.25rem;
    }

    .view-all-link {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }

    .product-carousel {
        padding: 0 26px;
    }

    .carousel-track {
        gap: 12px;
    }

    .carousel-slide {
        min-width: 100%;
        max-width: 100%;
    }

    .carousel-button {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .carousel-button-left {
        left: 0;
    }

    .carousel-button-right {
        right: 0;
    }
}

@media (max-width: 380px) {
    .product-carousel {
        padding: 0 24px;
    }

    .carousel-slide {
        min-width: 100%;
        max-width: 100%;
    }
}

/* === FEATURED COLLECTIONS MENU STYLING === */

.menu-featured-heading {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    color: #333;
    font-weight: 700;
    font-size: 95%;
    padding: 1.2em 0.6em 0.8em 0.6em;
    box-shadow: 0 2px 8px rgba(255, 179, 0, 0.3);
    position: relative;
}

.menu-featured-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6f00, #ffd54f, #ff6f00);
}

.featured-icon {
    font-size: 16px;
    margin-right: 4px;
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.menu-featured-list {
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    border-top: 2px solid #ffb300;
    border-bottom: 2px solid #e0e0e0;
}

.menu-featured-item {
    border-bottom: 1px solid #fff3cd;
}

.menu-featured-item:last-child {
    border-bottom: none;
}

.menu-featured-link {
    color: #333 !important;
    font-weight: 600;
    padding: 0.8em 0.6em !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-featured-link:hover,
.menu-featured-link:focus {
    background: linear-gradient(135deg, #ffeb3b 0%, #ffd54f 100%) !important;
    color: #000 !important;
    transform: translateX(5px);
    box-shadow: inset 3px 0 0 #ff6f00;
}

.featured-emoji {
    font-size: 18px;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.menu-featured-link:hover .featured-emoji {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* Add subtle gradient separator after featured section */
.menu-featured-list::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0369a1, transparent);
    margin: 0.5em 0;
}

/* Active state for featured links */
.menu-featured-link.active {
    background: linear-gradient(135deg, #ffca28 0%, #ffa000 100%) !important;
    color: #000 !important;
    font-weight: 700;
    box-shadow: inset 4px 0 0 #ff6f00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-featured-heading {
        font-size: 90%;
        padding: 1em 0.5em 0.6em 0.5em;
    }

    .featured-emoji {
        font-size: 16px;
    }
}

.user-profile-link {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.user-profile-link:hover {
    color: #0284c7;
    text-decoration: none;
}

.user-rating-badge {
    display: inline-block;
    background: #075985;
    color: #fff;
    font-size: 0.75em;
    padding: 1px 7px;
    border-radius: 10px;
    vertical-align: middle;
    font-weight: 600;
    margin-left: 5px;
}

/* User Profile */
.profile-min-h-screen {
    min-height: 100vh;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.profile-bg-gray-50 {
    background: #ffffff;
}

/* Hero Header */
.profile-hero-header {
    background: #ffffff;
    padding: 2rem max(1.5rem, calc((100vw - 1400px) / 2)) 1rem;
    text-align: center;
}

.profile-hero-content {
    max-width: none;
    margin: 0 auto;
    padding-top: 1.75rem;
    padding-bottom: 0.5rem;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-avatar-img,
.profile-avatar-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    border: 4px solid #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(7, 89, 133, 0.12);
}

.profile-avatar-placeholder {
    background: #075985;
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(7, 89, 133, 0.18);
}

.profile-hero-title {
    color: #111827;
    font-size: 1.875rem;
    font-weight: bold;
    margin: 0.25rem 0;
}

.profile-hero-subtitle {
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    margin: 0;
}

.profile-icon-inline,
.profile-icon-small {
    width: 0.875rem;
    height: 0.875rem;
}

/* Container */
.profile-container {
    max-width: none;
    margin: 0 auto;
    padding: 0 max(1.5rem, calc((100vw - 1400px) / 2));
    box-sizing: border-box;
    width: 100%;
}

/* Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
    position: relative;
    z-index: 10;
}

.profile-stat-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.profile-stat-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-stat-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.profile-stat-icon-amber {
    background: #fef3c7;
    color: #d97706;
}

.profile-stat-icon-emerald {
    background: #e0f2fe;
    color: #0284c7;
}

.profile-stat-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.profile-stat-icon-violet {
    background: #ede9fe;
    color: #7c3aed;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

/* Profile Tabs */
.profile-tabs-section {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.profile-tab-nav-wrapper {
    background: white;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 0.375rem;
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.profile-tab-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    border-radius: 0.75rem;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.profile-tab-icon {
    width: 1rem;
    height: 1rem;
}

.profile-tab-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

.profile-tab-btn.active {
    background: #0284c7;
    color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Profile Grid */
.profile-grid {
    display: grid;
    gap: 1rem;
}

.profile-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.profile-blogs-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Profile Cards */
.profile-product-card,
.profile-blog-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.profile-blog-card {
    flex-direction: row;
}

.profile-product-card:hover,
.profile-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    border-color: #e0f2fe;
}

.profile-card-image {
    width: 100%;
    height: 11rem;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.profile-blog-card .profile-card-image {
    width: 12rem;
    height: auto;
    flex-shrink: 0;
}

.profile-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.profile-product-card:hover .profile-card-image img,
.profile-blog-card:hover .profile-card-image img {
    transform: scale(1.05);
}

.profile-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.profile-card-image .profile-card-placeholder-icon {
    width: 60%;
    max-width: 7rem;
    height: auto;
    opacity: 0.85;
    object-fit: contain;
}

.profile-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.profile-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fav-blogs-list .profile-card-title {
    padding: 0rem 7rem 0rem 0rem;
 }

.profile-card-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.profile-card-excerpt {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.profile-blog-card .profile-card-excerpt {
    -webkit-line-clamp: 4;
}

.profile-card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.75rem;
    color: #9ca3af;
}

.profile-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.profile-rating-count {
    font-size: 0.85rem;
    color: #9ca3af;
}

.profile-card-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
    margin-top: auto;
}

/* Empty state */
.profile-empty-state {
    text-align: center;
    padding: 4.5rem 1.25rem;
    color: #d1d5db;
}

.profile-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    line-height: 1;
}

.profile-empty-state p {
    font-size: 1.05rem;
    margin: 0;
    color: #aab;
}

/* ── Responsive: tablet ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .profile-hero-header {
        padding: 2rem max(1.5rem, calc((100vw - 800px) / 2)) 1rem;
    }

    .profile-container {
        padding: 0 max(1.5rem, calc((100vw - 800px) / 2));
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ── Responsive: mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .content.content--profile {
        padding-top: 48px !important;
    }

    .fav-blogs-list .profile-card-title {
        padding-right: 0rem;
    }

    .profile-container {
        padding: 0 1.5rem;
    }

    .profile-hero-header {
        padding: 1.75rem 1.5rem 1rem;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 1.25rem 0 1.5rem;
    }

    .profile-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-blog-card {
        flex-direction: column;
    }

    .profile-blog-card .profile-card-image {
        width: 100%;
        height: 10rem;
    }

    .profile-tab-btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* ── Responsive: small mobile ───────────────────────────────────────── */
@media (max-width: 480px) {
    .profile-container {
        padding: 0 1rem;
    }

    .profile-hero-header {
        padding: 1.5rem 1rem 0.75rem;
    }

    .profile-hero-content {
        padding-top: 1.25rem;
    }

    .profile-hero-title {
        font-size: 1.5rem;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin: 1rem 0 1rem;
    }

    .profile-stat-card {
        padding: 0.875rem;
    }

    .profile-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .profile-grid {
        gap: 0.75rem;
    }

    .profile-card-image {
        height: 8.75rem;
    }

    .profile-card-body {
        padding: 0.75rem;
        gap: 0.375rem;
    }

    .profile-card-title {
        font-size: 0.85rem;
    }

    .profile-tab-nav-wrapper {
        padding: 0.25rem;
    }

    .profile-tab-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }

    .profile-tab-icon {
        display: none;
    }
}

/* ── Responsive: very small phones (≤ 360px) ────────────────────────── */
@media (max-width: 360px) {
    .profile-card-image {
        height: 11.25rem;
    }

    .profile-stat-value {
        font-size: 1.25rem;
    }
}

/* About page */
/* === Info page (About, FAQ, Terms) — modernized === */
.info-page {
    min-height: 100vh;
    padding: 32px 20px 60px;
    box-sizing: border-box;
}

.info-page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 820px;
    margin: 0 auto 24px;
}

.info-page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.info-page-header p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--btn-text-muted);
}

.info-page-card {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    padding: 32px 36px;
}

.info-page-card h2 {
    color: #111827;
    font-weight: 700;
    font-size: 20px;
    margin: 1.8em 0 0.5em;
    line-height: 1.3;
}

.info-page-card h3 {
    color: #111827;
    font-weight: 700;
    font-size: 17px;
    margin: 1.6em 0 0.4em;
    line-height: 1.35;
}

.info-page-card h2:first-child,
.info-page-card h3:first-child {
    margin-top: 0;
}

.info-page-card p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 15px;
    margin: 0 0 1em;
}

.info-page-card p:last-child {
    margin-bottom: 0;
}

.info-page-card ul,
.info-page-card ol {
    color: #4b5563;
    line-height: 1.7;
    font-size: 15px;
    padding-left: 1.4em;
    margin: 0 0 1em;
}

.info-page-card li {
    margin-bottom: 0.3em;
}

.info-page-card strong {
    color: #111827;
}

.info-page-card a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.info-page-card a:hover {
    color: #0284c7;
    text-decoration: none;
}

.info-page-callout {
    margin-top: 1.5em;
}

.info-page-callout p {
    margin: 0 0 0.5em;
}

.info-page-callout p:last-child {
    margin-bottom: 0;
}

.info-page-callout a {
    color: inherit;
}

.info-page-callout a:hover {
    color: #0284c7;
    text-decoration: none;
}

@media (max-width: 768px) {
    .info-page {
        padding: 22px 14px 40px;
    }

    .info-page-header {
        display: none;
    }

    .info-page-card {
        padding: 22px 20px;
        border-radius: 14px;
    }

    .info-page-card h2 {
        font-size: 18px;
    }

    .info-page-card h3 {
        font-size: 16px;
    }
}


/* Settings panel */
.settings-page {
  max-width: 760px;
  margin: 32px auto;
  padding: 0 20px 28px;
}

.settings-cards {
  display: grid;
  gap: 16px;
}

.settings-card {
  background: #fff;
  border: 1px solid #e0f2fe;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(8, 47, 73, 0.06);
  padding: 24px;
}

.settings-card--logout {
  border-color: #f2d6d2;
}

.settings-card-heading {
  margin-bottom: 18px;
}

.settings-card-heading h3 {
  margin: 0;
  color: #082f49;
  font-size: 1.08rem;
}

.settings-card-heading p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.settings-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 18px;
  color: #b42318;
  border: 1px solid #efc2bc;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  background: #fff;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.settings-logout-btn:hover {
  background: #b42318;
  color: #fff;
  border-color: #b42318;
  transform: translateY(-1px);
}

.settings-card--logout .settings-logout-btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}

/* Profile picture in settings */
.settings-profile-picture-section {
  display: flex;
  align-items: center;
}

.settings-profile-picture-row {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.settings-profile-picture-avatar-wrap {
  flex-shrink: 0;
}

.settings-profile-picture-preview {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: cover;
  border: 4px solid #e0f2fe;
  box-shadow: 0 10px 24px rgba(7, 89, 133, 0.12);
}

.settings-profile-picture-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: #075985;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(7, 89, 133, 0.18);
}

.settings-profile-picture-upload {
  flex: 1;
  min-width: 0;
}

.settings-profile-picture-note {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 0.92rem;
}

.settings-profile-picture-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.settings-profile-picture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-upload-btn,
.settings-remove-profile-picture-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.settings-upload-btn {
  color: #fff;
  background: #075985;
  border: 1px solid #075985;
}

.settings-upload-btn:hover {
  background: #0c4a6e;
  border-color: #0c4a6e;
  transform: translateY(-1px);
}

.settings-remove-profile-picture-btn {
  color: #b42318;
  background: #fff;
  border: 1px solid #efc2bc;
}

.settings-remove-profile-picture-btn:hover {
  background: #fff1ef;
  border-color: #e4a8a0;
  transform: translateY(-1px);
}

.settings-field-error {
  color: #b42318;
  font-size: 0.84rem;
  margin-top: 10px;
}

.settings-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.settings-field--split + .settings-field--split {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f0f9ff;
}

.settings-field-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #082f49;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
}

.settings-field-copy span {
  font-size: 0.96rem;
}

.settings-field-copy small {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 400;
}

.settings-switch {
  position: relative;
  width: 54px;
  height: 30px;
  flex-shrink: 0;
  cursor: pointer;
  display: block;
}

.settings-switch input[type="checkbox"] {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.settings-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #f0f9ff;
  border: 1px solid #cbd5e1;
  transition: background 0.15s ease, border-color 0.15s ease;
  z-index: 1;
  pointer-events: none;
}

.settings-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.settings-switch input[type="checkbox"]:checked + .settings-switch-track {
  background: #075985;
  border-color: #075985;
}

.settings-switch input[type="checkbox"]:checked + .settings-switch-track .settings-switch-thumb {
  transform: translateX(24px);
}

.settings-switch input[type="checkbox"]:focus-visible + .settings-switch-track,
.settings-upload-btn:focus-visible,
.settings-remove-profile-picture-btn:focus-visible,
.settings-logout-btn:focus-visible {
  outline: 2px solid rgba(7, 89, 133, 0.35);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .settings-page {
    margin: 18px auto;
    padding: 0 14px 22px;
  }

  .settings-card {
    border-radius: 20px;
    padding: 18px;
  }

  .settings-profile-picture-row,
  .settings-field {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-field--checkbox {
    position: relative;
    padding-right: 70px;
    min-height: 30px;
  }

  .settings-switch {
    position: absolute;
    top: 18px;
    right: 18px;
  }

  .settings-logout-btn {
    width: 100%;
  }
}

/* Profile picture image on profile page */
.profile-picture-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    font-size: 0;
}

/* Reusable user profile picture component */
.user-picture {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    object-fit: cover;
    background: #075985;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
    vertical-align: middle;
}

.user-picture--sm {
    width: 24px;
    height: 24px;
    font-size: 0.7em;
}

.user-picture--md {
    width: 32px;
    height: 32px;
    font-size: 0.85em;
}

.user-picture--lg {
    width: 40px;
    height: 40px;
    font-size: 1em;
}

.settings-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.settings-field--checkbox label {
    font-size: 0.9em;
    color: #444;
    font-weight: 400;
    cursor: pointer;
}

.settings-field--checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #075985;
    cursor: pointer;
    flex-shrink: 0;
}

/* Cookie consent bar */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 3px solid #0369a1;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    padding: 0;
}

.cookie-bar__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-bar__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
}

.cookie-bar__icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.cookie-bar__text {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.cookie-bar__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-bar__form {
    display: inline;
}

.cookie-bar__btn {
    font-size: 0.85rem;
    border-radius: 4px;
    padding: 0.5em 1.4em;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.cookie-bar__btn--accept {
    background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
    color: #fff;
    border: none;
}

.cookie-bar__btn--accept:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #075985 100%);
}

.cookie-bar__btn--decline {
    background: #fff;
    border: 1px solid #ccc;
    color: #777;
}

.cookie-bar__btn--decline:hover {
    border-color: #999;
    color: #555;
}

@media (max-width: 580px) {
    .cookie-bar__inner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .cookie-bar__content {
        flex-direction: column;
    }

    .cookie-bar__actions {
        width: 100%;
        justify-content: center;
    }
}

/* FAB (Floating Action Button) */
.fab-main {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #0ea5e9, #0284c7);
    color: white;
    font-size: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    color: white;
}
.fab-main-icon {
    display: block;
    line-height: 1;
}
@media (max-width: 47.99em) {
    .fab-main { display: flex; }
}
@media (max-width: 480px) {
    .fab-main { bottom: 20px; right: 16px; width: 50px; height: 50px; font-size: 24px; }
}

/* Favorites page: inner <a> inside div cards needs to fill the card */
.profile-product-card > a,
.profile-blog-card > a {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-height: 0;
}

.profile-product-card > a:hover,
.profile-blog-card > a:hover {
    color: inherit;
    text-decoration: none;
}

/* Remove button inside card: give it consistent padding */
.profile-product-card .btn-favorite,
.profile-blog-card .btn-favorite {
    margin: 0 16px 16px;
    align-self: flex-start;
}

/* Favorite Button */
.btn-favorite-wrapper {
    display: flex;
    align-self: flex-start;
    margin-top: 12px;
}

.btn-favorite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #fff;
    color: #aaa;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-favorite:hover {
    background: #fff5f5;
    color: #e53935;
    border-color: #ffcdd2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.14);
}

.btn-favorite.active {
    background: #fff5f5;
    color: #e53935;
    border-color: #ef9a9a;
    box-shadow: 0 2px 10px rgba(229, 57, 53, 0.12);
}

.btn-favorite.active:hover {
    background: #ffebee;
    border-color: #e53935;
    box-shadow: 0 6px 18px rgba(229, 57, 53, 0.2);
    transform: translateY(-2px);
}

.favorite-icon {
    display: flex;
    align-items: center;
    line-height: 1;
    transition: transform 0.25s ease;
}

.btn-favorite:hover .favorite-icon {
    transform: scale(1.25);
}

.btn-favorite.active .favorite-icon {
    animation: heart-pop 0.4s ease forwards;
}

@keyframes heart-pop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.4); }
    65%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

/* ── Favorites Page (redesigned) ─────────────────────────────────────────── */

.fav-page {
    width: 100%;
    max-width: 1024px;
    padding: 32px 0px 64px;
    margin: 0 auto;
}

/* Section */
.fav-section {
    margin-bottom: 48px;
}

.fav-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 20px;
}

.fav-section-icon {
    display: inline-flex;
    align-items: center;
    color: #0284c7;
    flex-shrink: 0;
}

.fav-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.fav-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f0f9ff;
    color: #075985;
    font-size: 12px;
    font-weight: 700;
}

/* Product Grid */
.fav-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Product Card */
.fav-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

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

/* Image wrapper (products) */
.fav-card-img-wrap {
    display: block;
    position: relative;
    height: 208px;
    overflow: hidden;
    background: #f9fafb;
    flex-shrink: 0;
    text-decoration: none;
}

.fav-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* Card body */
.fav-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.fav-card-body a {
    text-decoration: none;
    color: inherit;
}

.fav-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Star rating */
.fav-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fav-stars {
    display: inline-flex;
    align-items: center;
}

.fav-star {
    position: relative;
    display: inline-block;
    color: #e5e7eb;
    font-size: 13px;
    line-height: 1;
}

.fav-star::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--fill, 0%);
    overflow: hidden;
    color: #fbbf24;
    display: block;
    white-space: nowrap;
}

.fav-rating-count {
    font-size: 12px;
    color: #9ca3af;
}

.fav-no-rating {
    font-size: 12px;
    color: #9ca3af;
}

.fav-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-top: auto;
}

/* Blogs List */
.fav-blogs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fav-blog-row {
    position: relative;
    transition: transform 0.3s;
}

.fav-blog-row:hover {
    transform: translateY(-8px);
}

/* In favorites, lift the whole row (card + remove button) instead of just
   the inner card — otherwise the absolute-positioned button stays put. */
.fav-blog-row .profile-blog-card:hover {
    transform: none;
}

.fav-blogs-list .profile-card-title {
    margin-bottom: 0.5rem;
}

/* Remove button (top-right overlay on each card) */
.fav-remove-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.fav-remove-overlay:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.fav-remove-overlay svg {
    flex-shrink: 0;
}

/* Empty state */
.fav-empty {
    background: white;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 48px 24px;
    text-align: center;
    color: #d1d5db;
}

.fav-empty svg {
    margin: 0 auto 12px;
    display: block;
}

.fav-empty p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .fav-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fav-page {
        padding: 20px 0 48px;
    }
}

@media (max-width: 480px) {
    .fav-products-grid {
        gap: 12px;
    }

    .fav-card-img-wrap {
        height: 160px;
    }
}

/* Footer */
.site-footer {
    background: linear-gradient(to bottom right, #111827, #1f2937);
    color: #9ca3af;
    padding: 3rem 2rem;
    margin-top: 5rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
}

/* Leaderboard redesign */
.leaderboard-page {
  width: 100%;
  max-width: none;
  margin: 0 auto 48px;
  padding: 0;
}

.leaderboard-hero {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 48em) {
  .leaderboard-hero {
    display: flex;
  }
}

.leaderboard-hero-copy {
  min-width: 0;
}

.leaderboard-hero-copy h1 {
  margin: 0;
  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.leaderboard-hero-copy p {
  margin: 0.25rem 0 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.4;
}

.leaderboard-panel {
  display: grid;
  gap: 16px;
  width: 100%;
}

.leaderboard-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  padding: 20px;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  align-items: start;
}

.leaderboard-controls-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-controls-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.leaderboard-controls-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f0f9ff;
  border-radius: 16px;
  width: 100%;
}

.leaderboard-tab-btn {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-tab-btn:hover {
  background: rgba(255, 255, 255, 0.65);
  color: #075985;
}

.leaderboard-tab-btn-active {
  background: #fff;
  color: #075985;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leaderboard-controls-countries {
  padding: 4px;
  background: #f0f9ff;
  border-radius: 16px;
  width: 100%;
}

.leaderboard-region-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 8px 36px 8px 12px;
  border-radius: 12px;
  border: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235d7267' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  max-width: none;
  min-width: 0;
}

.leaderboard-region-select:hover,
.leaderboard-region-select:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.65);
  color: #075985;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .content.content--leaderboard {
    max-width: none;
    padding-inline: 20px;
  }

  .leaderboard-controls {
    grid-template-columns: 1fr;
  }
}

.leaderboard-podium {
  padding: 22px 18px 10px;
}

.leaderboard-podium-title {
  margin: 0 0 18px;
  text-align: center;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.leaderboard-podium-grid {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}

.leaderboard-podium-card {
  width: min(220px, 33.33%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: #111827;
}

.leaderboard-podium-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.leaderboard-podium-link:hover .leaderboard-podium-username {
  color: #075985;
}

.leaderboard-podium-card--first {
  transform: translateY(-4px);
}

.leaderboard-podium-card--current .leaderboard-podium-username {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.leaderboard-podium-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-podium-avatar-wrap .user-picture--lg {
  width: 72px;
  height: 72px;
  font-size: 1.1rem;
  border: 4px solid #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.leaderboard-podium-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.leaderboard-podium-username {
  font-size: 0.98rem;
  font-weight: 700;
}

.leaderboard-podium-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #0c4a6e;
  background: #f3f4f6;
  font-size: 0.92rem;
  font-weight: 800;
}

.leaderboard-podium-base {
  width: 100%;
  max-width: 150px;
  border-radius: 24px 24px 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-podium-base-num {
  font-size: 1.6rem;
  font-weight: 900;
  opacity: 0.55;
  line-height: 1;
}

.leaderboard-podium-base--first {
  height: 132px;
  background: linear-gradient(180deg, #f7d95b 0%, #d8a62d 100%);
}

.leaderboard-podium-base--second {
  height: 102px;
  background: linear-gradient(180deg, #d8dee5 0%, #9ca3af 100%);
}

.leaderboard-podium-base--third {
  height: 86px;
  background: linear-gradient(180deg, #edb067 0%, #b56a2e 100%);
}

.leaderboard-table-shell {
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  width: 100%;
}

.leaderboard-table-scroll {
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  padding: 16px 16px 8px;
}

.leaderboard-table thead th {
  text-align: left;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 12px 8px;
  border-bottom: 1px solid #f0f9ff;
}

.leaderboard-table thead .leaderboard-th-rank {
  width: 78px;
  text-align: center;
}

.leaderboard-table thead .leaderboard-th-products {
  width: 110px;
  text-align: center;
}

.leaderboard-table thead .leaderboard-th-points {
  width: 110px;
  text-align: right;
}

.leaderboard-row {
  background: #fafafa;
  border-radius: 16px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.leaderboard-row:hover {
  background: #f0f9ff;
  transform: translateY(-1px);
}

.leaderboard-row td {
  padding: 12px 14px;
}

.leaderboard-row td:first-child {
  border-radius: 16px 0 0 16px;
}

.leaderboard-row td:last-child {
  border-radius: 0 16px 16px 0;
}

.leaderboard-row-current {
  background: linear-gradient(90deg, rgba(7, 89, 133, 0.12) 0%, rgba(7, 89, 133, 0.05) 100%);
  font-weight: 600;
}

.leaderboard-row-current:hover {
  background: linear-gradient(90deg, rgba(7, 89, 133, 0.18) 0%, rgba(7, 89, 133, 0.08) 100%);
}

.leaderboard-cell-rank {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
  width: 78px;
}

.leaderboard-cell-user {
  vertical-align: middle;
}

.leaderboard-cell-products {
  text-align: center;
  white-space: nowrap;
}

.leaderboard-products-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 56px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f9ff;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 700;
}

.leaderboard-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f9ff;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
}

.leaderboard-user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #082f49;
}

.leaderboard-user-link:hover .leaderboard-username {
  color: #075985;
}

.leaderboard-username {
  font-weight: 600;
  transition: color 0.15s ease;
}

.leaderboard-cell-points {
  text-align: right;
  white-space: nowrap;
}

.leaderboard-points-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f9ff;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 800;
}

.leaderboard-load-more-row td {
  text-align: center;
  padding: 8px 16px 18px;
}

.leaderboard-load-more-btn {
  background: #075985;
  color: #fff;
  border: 1px solid #075985;
  padding: 12px 24px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 16px rgba(7, 89, 133, 0.14);
}

.leaderboard-load-more-btn:hover {
  background: #0c4a6e;
  border-color: #0c4a6e;
  transform: translateY(-1px);
}

.leaderboard-empty {
  text-align: center;
  padding: 44px 20px 36px;
  color: #94a3b8;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .leaderboard-page {
    margin: 18px auto 40px;
    padding: 0 14px 22px;
  }

  .leaderboard-controls {
    justify-items: center;
  }

  .leaderboard-controls-section {
    width: min(100%, 460px);
    max-width: 460px;
    align-items: center;
  }

  .leaderboard-controls-label {
    justify-content: center;
  }

  .leaderboard-controls-tabs,
  .leaderboard-controls-countries {
    width: 100%;
  }

  .leaderboard-podium-grid {
    gap: 6px;
  }

  .leaderboard-podium-card {
    flex: 1;
    min-width: 0;
    width: auto;
    gap: 6px;
  }

  .leaderboard-podium-avatar-wrap .user-picture--lg {
    width: 52px;
    height: 52px;
    font-size: 0.85rem;
  }

  .leaderboard-podium-username {
    display: block;
    font-size: 0.8rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .leaderboard-podium-points {
    font-size: 0.75rem;
    padding: 4px 8px;
    min-width: 48px;
  }

  .leaderboard-podium-base--first {
    height: 88px;
  }

  .leaderboard-podium-base--second {
    height: 68px;
  }

  .leaderboard-podium-base--third {
    height: 56px;
  }

  .leaderboard-podium-base-num {
    font-size: 1.2rem;
  }

  .leaderboard-table {
    padding: 12px 12px 8px;
  }

  .leaderboard-row td {
    padding: 10px 10px;
  }

  .leaderboard-table thead th {
    padding: 0 10px 8px;
  }

  .leaderboard-cell-rank {
    width: 62px;
  }

  .leaderboard-table thead .leaderboard-th-rank {
    width: 62px;
  }

  .leaderboard-table thead .leaderboard-th-points {
    width: 84px;
  }

  .leaderboard-table thead .leaderboard-th-products {
    width: 78px;
  }

  .leaderboard-cell-products {
    width: 78px;
  }

  .leaderboard-points-value {
    min-width: 58px;
    padding: 7px 10px;
  }

  .leaderboard-products-value {
    min-width: 50px;
    padding: 7px 10px;
  }

  .leaderboard-load-more-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .leaderboard-podium {
    padding-left: 12px;
    padding-right: 12px;
  }

  .leaderboard-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    align-items: end;
    justify-items: center;
  }

  .leaderboard-podium-card {
    width: 100%;
    min-width: 0;
    gap: 4px;
  }

  .leaderboard-podium-card--first {
    width: 100%;
  }

  .leaderboard-table-shell {
    margin-inline: auto;
  }

  .leaderboard-podium-avatar-wrap .user-picture--lg {
    width: 42px;
    height: 42px;
    font-size: 0.72rem;
    border-width: 3px;
  }


  .leaderboard-podium-username {
    font-size: 0.68rem;
  }

  .leaderboard-podium-points {
    font-size: 0.66rem;
    padding: 3px 6px;
    min-width: 0;
  }

  .leaderboard-podium-base--first {
    height: 72px;
  }

  .leaderboard-podium-base--second {
    height: 58px;
  }

  .leaderboard-podium-base--third {
    height: 50px;
  }

  .leaderboard-podium-base-num {
    font-size: 0.95rem;
  }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    background: linear-gradient(to bottom right, #0ea5e9, #0284c7);
    padding: 0.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo-img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: cover;
}

.footer-logo-text {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    color: #9ca3af;
}

.footer-info a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    transition: color 0.15s;
}

.footer-info a:hover {
    color: #38bdf8;
}

.footer-contact p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    color: #9ca3af;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.875rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.15s, filter 0.15s;
}

.footer-social a[aria-label="Facebook"] {
    background: #1877F2;
}

.footer-social a[aria-label="X"] {
    background: #000000;
}

.footer-social a[aria-label="Reddit"] {
    background: #FF4500;
}

.footer-social a[aria-label="Instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social a[aria-label="LinkedIn"] {
    background: #0A66C2;
}

.footer-social a:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.footer-settings label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.footer-form {
    margin-bottom: 0.75rem;
}

.footer-form select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(55, 65, 81, 0.5);
    color: #ffffff;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    appearance: auto;
    transition: border-color 0.15s;
}

.footer-form select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.5);
    border-color: #0ea5e9;
}

.footer-form select:hover {
    border-color: #6b7280;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: #9ca3af;
}

@media (min-width: 48em) {
    .site-footer {
        margin-left: 250px;
        width: calc(100% - 250px);
        padding-left: 2rem;
        padding-right: 2rem;
    }

  body.auth-page .site-footer {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer {
        padding: 2rem 1.25rem;
    }

    body.auth-page .site-footer {
      padding: 1.5rem 1.25rem;
    }

    body.auth-page .auth-container {
      min-height: calc(100dvh - 120px);
    }
}

/* Toast notification (server-rendered via OOB swap, CSS auto-hides).
   Wrapper handles position/centering across media queries, inner element
   handles the animation — kept consistent so rotation doesn't replay it. */
.toast-wrapper {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    pointer-events: none;
    width: max-content;
    max-width: 480px;
}
.toast {
    background: #0369a1;
    color: #fff;
    padding: 0.85rem 1.4rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(-16px);
    pointer-events: auto;
    text-align: center;
    animation: toast-in 0.25s ease-out forwards,
               toast-out 0.25s ease-in 5s forwards;
}
.toast--error   { background: #b94a48; }
.toast--warning { background: #9a6700; }
.toast--success { background: #0369a1; }
@keyframes toast-in {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
    to { opacity: 0; transform: translateY(-16px); visibility: hidden; }
}
@media (max-width: 600px) {
    .toast-wrapper {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        transform: none;
        width: auto;
        max-width: none;
    }
}

