/* Core Card Reset and Grid Integration */
.product-miniature.card {
  width: 100%; /* Dynamically fill the Hummingbird grid slot instead of forcing 360px */
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: none;
  height: 100%; /* Keep cards uniform in height */
}

.product-miniature.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

/* Fix Core Flag/Badge Overlaps */
.product-miniature.card .product-flags {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}

.product-miniature.card .product-flag {
  background: linear-gradient(135deg, #a90329 0%, #c44848 100%);
  color: #fff;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  border: none;
  display: inline-block;
}

/* Image Container */
.product-miniature.card .tilt {
  overflow: hidden;
  position: relative;
  background: #fdfdfd;
  height: 100%;
  width: 100%;
  padding-bottom: 3px;
}

.product-miniature.card .img {
  display: block;
  width: 100%;
  height: 170px;
}

.product-miniature.card .img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
  margin-top: 3px;
}

.product-miniature.card:hover .img img {
  transform: scale(1.04);
}

/* Fix Hummingbird Quickview Eye Overlap */
.product-miniature.card .product-miniature__quickview {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-miniature.card:hover .product-miniature__quickview {
  opacity: 1;
}

.product-miniature.card .product-miniature__quickview .btn {
  padding: 6px !important;
  border-radius: 50% !important;
  min-width: auto;
  height: 32px;
  width: 32px;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #18181B !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Card Content Details Section */
.product-miniature.card .info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  padding-top: 5px;
  padding-bottom: 5px;
  flex-grow: 1; /* Pushes bottom controls down equally */
  justify-content: space-between;
}

.product-miniature.card .cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #71717A;
  margin-bottom: 4px;
}

.product-miniature.card h2.title {
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  line-height: 1.1;
}

.product-miniature.card h2.title a {
  color: #18181B !important;
  text-decoration: none !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 27px; /* Forces title area alignment uniformity */
}

/* Prevent Description String Overflowing */
.product-miniature.card .desc {
  font-size: 11px;
  color: #52525B;
  line-height: 1.1;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 37px; /* Stabilizes column dimensions */
}

/* Features Meta Array Layout */
.product-miniature.card .feats {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  overflow: hidden;
  height: 20px;
}

.product-miniature.card .feat {
  font-size: 9px;
  background: #F4F4F5;
  color: #71717A;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

/* Bottom Actions Control Strip */
.product-miniature.card .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  gap: 8px;
}

.product-miniature.card .price {
  display: flex;
  flex-direction: column;
}

.product-miniature.card .old {
  font-size: 12px;
  text-decoration: line-through;
  color: #A1A1AA;
  line-height: 1;
  margin-bottom: 2px;
}

.product-miniature.card .new {
  font-size: 14px;
  font-weight: 600;
  color: #18181B;
  line-height: 1;
}

/* Action Trigger Form Buttons Override */
.product-miniature.card .product-miniature__actions {
  /* margin: 0 !important; */
  /* padding: 0 !important; */
}

.product-miniature.card .btn.add-to-cart,
.product-miniature.card .product-miniature__details {
  background: linear-gradient(45deg, #18181B, #27272A) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 1px 5px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  height: auto !important;
  min-height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.08) !important;
  text-transform: none !important;
}

.product-miniature.card .btn.add-to-cart:hover:not([disabled]),
.product-miniature.card .product-miniature__details:hover {
  background: linear-gradient(45deg, #27272A, #3F3F46) !important;
  transform: translateY(-1px);
}

.product-miniature.card .icon {
  margin: 0 !important;
  width: 14px;
  height: 14px;
}

/* Meta Line Separator Row Rules */
.product-miniature.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F4F4F5;
  padding-top: 5px;
  padding-bottom: 2px;
  margin-top: auto;
}

.product-miniature.card .rating {
  display: flex;
  align-items: center;
}

/* Fix Hummingbird custom components styles */
.product-miniature.card .rating .grade-stars {
  margin: 0;
}

.product-miniature.card .stock {
  font-size: 11px;
  font-weight: 600;
}

.product-miniature.card .stock .in-stock,
.product-miniature.card .stock .available {
  color: #22C55E;
}

.product-miniature.card .stock .out-of-stock,
.product-miniature.card .stock .unavailable {
  color: #EF4444;
}

.product-miniature.card .d-none {
  display: block;
}

/* --- TOP FLAGS / BADGES RESET --- */
/* Target with high specificity to override Hummingbird default styles */
article.product-miniature.card .product-flags {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important; /* Move to the left like standard card patterns */
  right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  z-index: 10 !important;
}

article.product-miniature.card .product-flags .product-flag {
  padding: 4px 10px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  border-radius: 50px !important; /* Fully rounded pill shape */
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
  display: inline-block !important;
  line-height: 1.2 !important;
  width: auto !important;
}

/* Color overrides based on badge type */
article.product-miniature.card .product-flags .product-flag.new {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important; /* Modern vibrant sapphire blue */
  color: #ffffff !important;
}

article.product-miniature.card .product-flags .product-flag.on-sale,
article.product-miniature.card .product-flags .product-flag.discount {
  background: linear-gradient(135deg, #A90329 0%, #C44848 100%) !important; /* Hot Sale Red gradient */
  color: #ffffff !important;
}

article.product-miniature.card .product-flags .product-flag.out-of-stock {
  background: #71717A !important; /* Soft grey for out of stock flag if it appears on top */
  color: #ffffff !important;
}


/* --- BOTTOM STOCK LABEL BADGE --- */
article.product-miniature.card .stock {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Transform the naked text at the bottom into a beautiful modern pill badge */
article.product-miniature.card .stock span {
  font-size: 8px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 2px 5px !important;
  border-radius: 50px !important; /* Fully rounded capsule */
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
}

/* Beautiful pastel backgrounds for stock status badges */
article.product-miniature.card .stock span.available,
article.product-miniature.card .stock span.in-stock {
  background-color: #DCFCE7 !important; /* Soft light green */
  color: #15803D !important;          /* Dark rich green text */
}

article.product-miniature.card .stock span.unavailable,
article.product-miniature.card .stock span.out-of-stock {
  background-color: #FEE2E2 !important; /* Soft light red */
  color: #B91C1C !important;          /* Dark rich red text */
} 

/* Force 4 products per row on desktop screens */
@media (min-width: 992px) {
    #js-product-list .products {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px; /* Adjust spacing between products if needed */
    }
    
    /* Reset any legacy Bootstrap grid widths pushing items down */
    #js-product-list .products .product-miniature {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pagination__nav .pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}


/* ---------------------------------------------------------
   PAGE BUTTONS
   --------------------------------------------------------- */

.pagination__nav .page-item {
    margin: 0;
}

.pagination__nav .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 38px;

    padding: 0 8px;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: #075cff;

    font-size: 16px;
    line-height: 1;

    text-decoration: none;

    transition:
        background-color .15s ease,
        color .15s ease;
}

.pagination__nav .page-link:hover:not(:disabled) {
    background: #f2f5f9;
}

.pagination__nav .page-item.active .page-link {
    background: #075cff;
    color: #fff;
}

.pagination__nav .page-link:focus-visible {
    outline: 2px solid #075cff;
    outline-offset: 2px;
}


/* ---------------------------------------------------------
   PREVIOUS / NEXT
   --------------------------------------------------------- */

.pagination__nav .page-link.previous,
.pagination__nav .page-link.next {
    gap: 7px;

    width: auto;
    min-width: auto;

    color: #4d5157;
}

.pagination__nav .page-link.next {
    color: #075cff;
}

.pagination__nav .page-link:disabled,
.pagination__nav .page-link.disabled {
    opacity: .35;

    cursor: default;
}


/* ---------------------------------------------------------
   PAGE JUMP
   --------------------------------------------------------- */

.sw-pagination-jump-item {
    display: flex;
    align-items: center;

    margin: 0 4px;
}

.sw-pagination-jump {
    display: inline-flex;
    align-items: center;

    height: 38px;

    padding: 3px 9px;

    border: 1px solid #d8dce1;
    border-radius: 8px;

    background: #fff;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.sw-pagination-jump:focus-within {
    border-color: #075cff;

    box-shadow:
        0 0 0 3px rgba(7, 92, 255, .10);
}

.sw-pagination-jump__input {
    width: 38px;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #111827;

    font: inherit;
    font-size: 15px;
    font-weight: 600;

    line-height: 30px;

    text-align: center;

    appearance: textfield;
    -moz-appearance: textfield;
}

.sw-pagination-jump__input::-webkit-inner-spin-button,
.sw-pagination-jump__input::-webkit-outer-spin-button {
    margin: 0;

    -webkit-appearance: none;
}

.sw-pagination-jump__separator {
    margin: 0 5px;

    color: #a0a4aa;

    font-size: 13px;

    user-select: none;
}

.sw-pagination-jump__total {
    min-width: 18px;

    color: #666b73;

    font-size: 14px;
    font-weight: 500;

    text-align: center;

    user-select: none;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767.98px) {

    .pagination__container {
        flex-direction: column;

        align-items: center;

        gap: 14px;
    }

    .pagination__number {
        width: 100%;

        text-align: center;
    }

    .pagination__nav {
        width: 100%;
    }

    .pagination__nav nav {
        width: 100%;
    }

    .pagination__nav .pagination {
        justify-content: center;

        flex-wrap: wrap;
    }

    .pagination__nav .page-link {
        min-width: 34px;
        height: 36px;

        padding-left: 7px;
        padding-right: 7px;
    }

    .sw-pagination-jump {
        height: 36px;
    }
}

.product-miniature.card .stock .stock-qty {
    margin-left: 4px;
}


/*
 * RevArt header v0.1.4
 * Parent: PrestaShop Hummingbird 2.x / PrestaShop 9.1.x
 *
 * Primary controls are 35px on every breakpoint. Hummingbird's native
 * responsive swapping, search offcanvas, customer state and cart behavior
 * remain untouched.
 */

:root {
  --rev-header-dark: #070b12;
  --rev-header-dark-hover: #172131;
  --rev-header-accent: #0b69f6;
  --rev-header-accent-hover: #0958cf;
  --rev-header-border: #e4e8ee;
  --rev-header-text: #111827;
  --rev-header-muted: #667085;
  --rev-header-surface: #ffffff;
  --rev-header-control-height: 35px;
  --rev-header-primary-padding: 8px;
  --rev-header-navigation-height: 45px;
}

.header.js-sticky-header {
  top: 0;
  z-index: 1035;
  background: var(--rev-header-dark);
  box-shadow: 0 0.25rem 1.25rem rgba(15, 23, 42, 0.14);
}

.rev-header.header-bottom {
  padding: 0;
  border: 0;
  background: var(--rev-header-dark);
}

.rev-header__primary-container {
  max-width: none;
  padding-inline: 12px;
  background: var(--rev-header-dark);
}

.rev-header__primary {
  display: grid;
  grid-template-areas: "brand search mobile";
  grid-template-columns: minmax(0, 1fr) var(--rev-header-control-height) auto;
  align-items: center;
  min-height: calc(var(--rev-header-control-height) + 16px);
  padding-block: var(--rev-header-primary-padding);
  gap: 4px;
  background: var(--rev-header-dark);
}

/* Brand */
.rev-header__brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: var(--rev-header-control-height);
}

.rev-header__heading {
  display: flex;
  align-items: center;
  height: var(--rev-header-control-height);
  margin: 0;
  font-size: inherit;
}

.rev-header__brand .navbar-brand {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: var(--rev-header-control-height);
  max-width: min(9rem, 36vw);
  max-height: var(--rev-header-control-height);
  padding: 2px 7px;
  border-radius: 5px;
  background: #fff;
}

.rev-header__brand .navbar-brand .logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 31px;
  object-fit: contain;
}

/* Search */
.rev-header__search {
  grid-area: search;
  min-width: 0;
  height: var(--rev-header-control-height);
}

.rev-header__search > #_desktop_ps_searchbar,
.rev-header__search .ps-searchbar,
.rev-header__search .ps-searchbar__form {
  width: 100%;
  height: var(--rev-header-control-height);
  margin: 0 !important;
}

.rev-header__search > #_desktop_ps_searchbar {
  max-width: none;
  padding: 0;
}

.rev-header__search .ps-searchbar {
  min-width: 0;
  overflow: visible;
}

.rev-header__search .ps-searchbar__input {
  width: 100%;
  height: var(--rev-header-control-height);
  min-height: var(--rev-header-control-height);
  padding-block: 0;
  padding-inline: 38px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--rev-header-text);
  box-shadow: none;
}

.rev-header__search .ps-searchbar__input:focus {
  box-shadow: 0 0 0 3px rgba(11, 105, 246, 0.3);
}

.rev-header__search .ps-searchbar__magnifier {
  color: var(--rev-header-accent);
}

.rev-header__search .ps-searchbar__dropdown {
  margin-top: 4px;
}

/* Desktop/tablet actions */
.rev-header__actions {
  grid-area: actions;
  align-items: center;
  justify-content: flex-end;
  height: var(--rev-header-control-height);
  min-width: 0;
  gap: 2px;
}

.rev-header__actions > div,
.rev-header__actions > a,
.rev-header__actions > div > div,
.rev-header__actions .header-block,
.rev-header__actions .ps-customersignin,
.rev-header__actions .ps-shoppingcart,
.rev-header__actions .blockcart {
  display: flex;
  align-items: center;
  height: var(--rev-header-control-height);
}

.rev-header__actions .header-block__action-btn,
.rev-header__register,
.rev-header__wishlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--rev-header-control-height);
  min-height: var(--rev-header-control-height);
  padding-block: 0;
  padding-inline: 8px !important;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.rev-header__actions .header-block__action-btn:hover,
.rev-header__actions .header-block__action-btn:focus-visible,
.rev-header__register:hover,
.rev-header__register:focus-visible,
.rev-header__wishlist:hover,
.rev-header__wishlist:focus-visible {
  background: var(--rev-header-dark-hover);
  color: #fff;
}

.rev-header__actions .header-block__icon,
.rev-header__action-icon {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}

.rev-header__actions .header-block__title,
.rev-header__action-label {
  margin-inline-start: 5px;
}

.rev-header__actions .header-block__badge {
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--rev-header-accent);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
}

.rev-header__actions .dropdown-menu {
  height: auto;
  margin-top: 5px !important;
}

.rev-header__language {
  display: flex;
  align-items: center;
  height: var(--rev-header-control-height);
  padding: 0;
}

.rev-header__language .form-select {
  height: var(--rev-header-control-height);
  min-height: var(--rev-header-control-height);
  max-width: 116px;
  padding-block: 0;
  padding-inline-start: 9px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 5px;
  background-color: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  color-scheme: dark;
}

.rev-header__language .form-select:hover,
.rev-header__language .form-select:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.rev-header__language .form-select option {
  background: #fff;
  color: var(--rev-header-text);
}

/* Mobile actions */
.rev-header__mobile-actions {
  grid-area: mobile;
  align-items: center;
  justify-content: flex-end;
  height: var(--rev-header-control-height);
  gap: 1px;
}

.rev-header__mobile-actions,
.rev-header__mobile-slot,
.rev-header__mobile-wishlist,
.rev-header__mobile-actions .header-block,
.rev-header__mobile-actions .ps-customersignin,
.rev-header__mobile-actions .ps-shoppingcart,
.rev-header__mobile-actions .blockcart {
  display: flex;
  align-items: center;
  height: var(--rev-header-control-height);
}

.rev-header__mobile-wishlist,
.rev-header__mobile-actions .header-block__action-btn,
.rev-header__search .ps-searchbar--mobile .header-block__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--rev-header-control-height);
  min-width: var(--rev-header-control-height);
  height: var(--rev-header-control-height);
  min-height: var(--rev-header-control-height);
  padding: 0 !important;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  text-decoration: none;
}

.rev-header__mobile-wishlist:hover,
.rev-header__mobile-wishlist:focus-visible,
.rev-header__mobile-actions .header-block__action-btn:hover,
.rev-header__mobile-actions .header-block__action-btn:focus-visible,
.rev-header__search .ps-searchbar--mobile .header-block__action-btn:hover,
.rev-header__search .ps-searchbar--mobile .header-block__action-btn:focus-visible {
  background: var(--rev-header-dark-hover);
  color: #fff;
}

.rev-header__mobile-wishlist .material-icons,
.rev-header__mobile-actions .header-block__icon,
.rev-header__search .ps-searchbar--mobile .header-block__icon {
  font-size: 21px;
  line-height: 1;
}

.rev-header__mobile-actions .header-block__title {
  display: none !important;
}

.rev-header__mobile-actions .header-block__badge {
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--rev-header-accent);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
}

.rev-header__search .ps-searchbar--mobile {
  align-items: center;
  height: var(--rev-header-control-height);
  padding: 0;
}

/* Search drawer stays light for readability. */
.rev-header .ps-searchbar__offcanvas {
  z-index: 1055;
  border: 0;
  background: #fff;
}

.rev-header .ps-searchbar__offcanvas .offcanvas-header {
  min-height: 51px;
  padding: 8px 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.rev-header .ps-searchbar__offcanvas .ps-searchbar,
.rev-header .ps-searchbar__offcanvas .ps-searchbar__form,
.rev-header .ps-searchbar__offcanvas .ps-searchbar__input {
  height: var(--rev-header-control-height);
}

.rev-header .ps-searchbar__offcanvas .btn-link {
  height: var(--rev-header-control-height);
  padding-block: 0;
  color: var(--rev-header-accent);
  font-weight: 600;
  text-decoration: none;
}

/* Light navigation row on every breakpoint. */
.rev-header__navigation {
  border-top: 0;
  border-bottom: 1px solid var(--rev-header-border);
  background: #fff;
}

.rev-header__navigation-container {
  display: flex;
  align-items: center;
  min-height: var(--rev-header-navigation-height);
  padding-inline: 12px;
  gap: 16px;
}

.rev-header__menu {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.rev-header__menu-label {
  position: absolute;
  top: 50%;
  left: 43px;
  z-index: 1;
  color: var(--rev-header-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.rev-header__menu > .ps-mainmenu--desktop {
  width: 100%;
  max-width: none;
  padding: 0;
}

.rev-header__menu .ps-mainmenu__mobile-toggle {
  width: 100%;
}

.rev-header__menu .menu-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--rev-header-control-height);
  min-height: var(--rev-header-control-height);
  padding: 0 7px;
  color: var(--rev-header-text);
  text-decoration: none;
}

.rev-header__contact,
.rev-header__extra {
  flex: 0 0 auto;
  align-items: center;
  color: var(--rev-header-muted);
  font-size: 13px;
}

.rev-header__contact a,
.rev-header__extra a {
  color: inherit;
}

.rev-header__contact a:hover,
.rev-header__extra a:hover {
  color: var(--rev-header-accent);
}

/* Tablet: one compact row, same colors and control height as desktop. */
@media (min-width: 768px) {
  .rev-header__primary-container,
  .rev-header__navigation-container {
    padding-inline: 16px;
  }

  .rev-header__primary {
    grid-template-areas: "brand search actions";
    grid-template-columns: minmax(120px, 144px) minmax(160px, 1fr) auto;
    gap: 10px;
  }

  .rev-header__brand .navbar-brand {
    max-width: 144px;
  }

  .rev-header__search .ps-searchbar__dropdown {
    right: 0;
    left: 0;
    max-width: none;
    width: 100%;
  }

  .rev-header__actions .header-block__title,
  .rev-header__action-label {
    display: none !important;
  }

  .rev-header__register {
    display: inline-flex !important;
    padding-inline: 6px !important;
    font-size: 12px;
  }

  .rev-header__language .form-select {
    max-width: 104px;
  }
}

@media (min-width: 992px) {
  .rev-header__primary {
    grid-template-columns: minmax(144px, 168px) minmax(240px, 1fr) auto;
    gap: 12px;
  }

  .rev-header__brand .navbar-brand {
    max-width: 168px;
  }
}

/* Desktop: show the action labels while retaining the same 35px height. */
@media (min-width: 1200px) {
  .rev-header__primary {
    grid-template-columns: auto minmax(320px, 1fr) auto;
    gap: 14px;
  }

  .rev-header__brand .navbar-brand {
    max-width: 168px;
  }

  .rev-header__actions .header-block__title,
  .rev-header__action-label,
  .rev-header__register {
    display: inline-flex !important;
  }

  .rev-header__language .form-select {
    max-width: 116px;
  }

  .rev-header__menu .ps-mainmenu__tree {
    justify-content: flex-start;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .rev-header__actions .header-block__action-btn,
  .rev-header__register,
  .rev-header__wishlist {
    padding-inline: 6px !important;
    font-size: 12px;
  }

  .rev-header__language .form-select {
    max-width: 104px;
  }
}

@media (max-width: 767.98px) {
  .rev-header__brand .navbar-brand {
    max-width: min(8.5rem, 34vw);
  }

  .rev-header__navigation-container {
    min-height: var(--rev-header-navigation-height);
  }
}

@media (max-width: 359.98px) {
  .rev-header__primary-container,
  .rev-header__navigation-container {
    padding-inline: 8px;
  }

  .rev-header__primary {
    gap: 1px;
  }

  .rev-header__brand .navbar-brand {
    max-width: 104px;
    padding-inline: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rev-header *,
  .rev-header *::before,
  .rev-header *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
