/*!
Theme Name: Hamed Perfume
Theme URI: http://underscores.me/
Author: Mr.Alidoosti
Author URI: https://mr-alidoosti.ir/
Description: hamedperfume.com Theme
Version: 1.0.1
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: haper
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Hamed Perfume is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 130px;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
  margin-left: 5px;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
  color: #404040;
  font-size: 1rem;
  line-height: 1.5;
  -moz-font-feature-settings: "ss01";
  -webkit-font-feature-settings: "ss01";
  font-feature-settings: "ss01";
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
}

p {
  margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  text-decoration: none;
}

big {
  font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
  background: #fff;
}

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin: 0 0 1.5em 3em;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li>ul,
li>ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

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

figure {
  margin: 1em 0;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
  display: block;
  width: 100%;
}

.main-navigation ul {
  display: none;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.main-navigation ul ul {
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  float: left;
  position: absolute;
  top: 100%;
  left: -999em;
  z-index: 99999;
}

.main-navigation ul ul ul {
  left: -999em;
  top: 0;
}

.main-navigation ul ul li:hover>ul,
.main-navigation ul ul li.focus>ul {
  display: block;
  left: auto;
}

.main-navigation ul ul a {
  width: 200px;
}

.main-navigation ul li:hover>ul,
.main-navigation ul li.focus>ul {
  left: auto;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
  display: block;
}

@media screen and (min-width: 37.5em) {
  .menu-toggle {
    display: none;
  }

  .main-navigation ul {
    display: flex;
  }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  text-align: end;
  flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
  display: block;
}

.post,
.page {
  margin: 0 0 1.5em;
}

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 1.5em;
}

.widget select {
  max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

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

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
  /*rtl:ignore*/
  float: left;

  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  /*rtl:ignore*/
  float: right;

  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

/* ==========================================================================
   Haper Luxury Design System — CSS Custom Properties
   ========================================================================== */
:root {
  --haper-gold-0: #ffffff;
  --haper-gold-0-5: #fbf7f0;
  --haper-gold-1: #f6f0e1;
  --haper-gold-1-5: #f2e8d2;
  --haper-gold-2: #eee0c3;
  --haper-gold-3: #e5d1a6;
  --haper-gold-4: #ddc188;
  --haper-gold-5: #d4b26a;
  --haper-gold-6: #ad9156;
  --haper-gold-7: #867042;
  --haper-gold-8: #5f4f2d;
  --haper-gold-9: #382e19;
  --haper-gold-9-5: #251e0f;
  --haper-gold-10: #110d05;
  --haper-navy-0: #a4b9d8;
  --haper-navy-0-5: #96aac8;
  --haper-navy-1: #889cb9;
  --haper-navy-1-5: #7a8da9;
  --haper-navy-2: #6c7f99;
  --haper-navy-3: #51617a;
  --haper-navy-4: #35445a;
  --haper-navy-5: #19273b;
  --haper-navy-6: #141f2f;
  --haper-navy-7: #0f1723;
  --haper-navy-8: #0a1018;
  --haper-navy-8-5: #080c12;
  --haper-navy-9: #05080c;
  --haper-navy-9-5: #030406;
  --haper-navy-10: #000000;
  --haper-color-primary: var(--haper-navy-5);
  --haper-color-primary-hover: var(--haper-navy-6);
  --haper-color-accent: var(--haper-gold-5);
  --haper-color-accent-hover: var(--haper-gold-6);
  --haper-color-accent-light: var(--haper-gold-1);
  --haper-color-accent-soft: var(--haper-gold-0-5);
  --haper-bg-body: #ffffff;
  --haper-bg-surface: var(--haper-gold-0-5);
  --haper-bg-card: #ffffff;
  --haper-bg-dark: var(--haper-navy-5);
  --haper-bg-dark-surface: var(--haper-navy-7);
  --haper-bg-404: #f0f6fd;
  --haper-bg-soft-blue: #d9e2ec;
  --haper-text-main: var(--haper-navy-5);
  --haper-text-muted: var(--haper-navy-3);
  --haper-text-subtle: var(--haper-navy-2);
  --haper-text-inverse: #ffffff;
  --haper-text-gold: var(--haper-gold-7);
  --haper-border-color: var(--haper-gold-1-5);
  --haper-border-focus: var(--haper-gold-5);
  --haper-container-max: 1240px;
  --haper-radius-sm: 4px;
  --haper-radius-md: 8px;
  --haper-radius-lg: 16px;
  --haper-radius-xl: 22px;
  --haper-radius-full: 9999px;
  --haper-transition-fast: 150ms ease;
  --haper-transition-base: 250ms ease-in-out;
  --haper-shadow-sm: 0 2px 8px rgba(25, 39, 59, 0.06);
  --haper-shadow-md: 0 8px 24px rgba(25, 39, 59, 0.08);
  --haper-shadow-lg: 0 16px 40px rgba(25, 39, 59, 0.12);
  --haper-shadow-gold: 0 8px 24px rgba(212, 178, 106, 0.25);

  /* Doran Font Family Tokens (Priority 1: Variable Font, Priority 2: Static Fonts) */
  --haper-font-doran: "DoranVF", "Doran", "Doran FaNum", sans-serif;
  --haper-font-doran-fanum:
    "DoranFaNumVF", "DoranVF", "Doran FaNum", "Doran", sans-serif;
}

/* ==========================================================================
   Global
   ========================================================================== */
body {
  font-family: "IRANSansXV", "IRANSansX";
  color: var(--haper-text-main);
  background: var(--haper-bg-body);
  direction: rtl;
  -moz-font-feature-settings: "ss01";
  -webkit-font-feature-settings: "ss01";
  font-feature-settings: "ss01";
}

h1,
h2,
h3,
h4,
h5,
h6,
.haper-404-btn__text {
  font-family: var(--haper-font-doran);
}

.haper-container {
  width: 100%;
  max-width: var(--haper-container-max);
  margin: 0 auto;
  box-sizing: border-box;
}

.haper-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header {
  width: 100%;
  position: relative;
  z-index: 1000;
  background: #fff;
}

.site-header.is-sticky-enabled.is-sticky {
  position: sticky;
  top: 0;
  box-shadow: var(--haper-shadow-md);
}

/* ---------- TOP BAR ---------- */
.haper-top-bar {
  background: #f0f6fd;
  border-bottom: 1px solid rgba(242, 232, 210, 0.5);
  padding: 7px 0;
  font-size: 13px;
  color: var(--haper-navy-3);
}

.haper-top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Social (right in RTL) */
.haper-top-bar__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.haper-top-bar__social-title {
  font-weight: 500;
  color: var(--haper-navy-4);
}

.haper-top-bar__social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Circular bordered icon containers per Figma */
.haper-top-bar__social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--haper-navy-2);
  text-decoration: none;
  transition:
    border-color var(--haper-transition-fast),
    color var(--haper-transition-fast);
}

.haper-top-bar__social-circle:hover {
  border-color: var(--haper-gold-5);
  color: var(--haper-gold-5);
}

/* Support hotline (left in RTL) */
.haper-top-bar__support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--haper-navy-4);
  font-weight: 500;
  transition: color var(--haper-transition-fast);
}

.haper-top-bar__support-link:hover {
  color: var(--haper-gold-6);
}

.haper-top-bar__support-icon {
  display: inline-flex;
  align-items: center;
  color: var(--haper-gold-5);
}

.haper-top-bar__support-phone {
  font-weight: 700;
  direction: ltr;
  unicode-bidi: embed;
  color: var(--haper-navy-5);
}

/* ---------- MAIN HEADER ---------- */
.haper-main-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid rgba(25, 39, 59, 0.08);
  position: relative;
  z-index: 100;
}

.haper-main-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.haper-main-header__start {
  display: flex;
  align-items: center;
  gap: 24px;
}

.haper-main-header__end {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo box (Figma node 321:2910: 112x48px, radius 16px, bg #d9e3ee) */
.haper-branding {
  display: inline-flex;
  align-items: center;
}

.haper-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 48px;
  background: #d9e3ee;
  border-radius: 16px;
  text-decoration: none;
  transition: background var(--haper-transition-fast);
}

.haper-logo-box:hover {
  background: #cedbe8;
}

.haper-logo-text {
  color: #6c7f99;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: inherit;
}

.haper-branding img,
.haper-branding .custom-logo,
.haper-header-logo-img {
  max-height: 46px;
  max-width: 175px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  transition:
    transform var(--haper-transition-fast),
    opacity var(--haper-transition-fast);
}

.haper-branding a:hover img {
  opacity: 0.95;
  transform: scale(1.02);
}

/* Categories button (Figma node 321:2900: Gold #d4b26a, 4-square icon + text) */
.haper-categories-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 6px;
  font-family: inherit;
  transition:
    opacity var(--haper-transition-fast),
    transform var(--haper-transition-fast);
}

.haper-categories-btn:hover {
  color: var(--haper-gold-5, #d4b26a);
  opacity: 0.85;
  transform: translateY(-1px);
}

.haper-categories-btn__icon {
  display: inline-flex;
  align-items: center;
  color: currentColor;
}

/* Primary Navigation (Figma nodes 321:2867: 15px, #35445a, icons) */
.haper-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}

.haper-nav__link,
.haper-nav__list>li>a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #35445a;
  padding: 6px 0;
  transition: color var(--haper-transition-fast);
}

.haper-nav__link:hover,
.haper-nav__list>li>a:hover {
  color: var(--haper-gold-5, #d4b26a);
}

.haper-nav__icon {
  display: inline-flex;
  align-items: center;
  color: currentColor;
}

/* ==========================================================================
   Cart Capsule Pill & Mini-Cart Dropdown
   ========================================================================== */
.haper-header-cart-wrap {
  position: relative;
}

/* Dual-layer capsule pill (Figma doc/header.png: outer #d9e3ee, inner #c9d7e6) */
.haper-cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #d9e3ee;
  padding: 4px 6px 4px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #19273b;
  transition:
    background var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast);
}

.haper-cart-pill:hover,
.haper-header-cart-wrap.is-open .haper-cart-pill {
  background: #cedbe8;
  box-shadow: 0 4px 14px rgba(25, 39, 59, 0.08);
}

.haper-cart-pill__icon {
  display: inline-flex;
  align-items: center;
  color: #19273b;
}

.haper-cart-pill__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 20, 47, 0.08);
  border-radius: 10px;
  padding: 4px 14px;
  min-width: 86px;
  box-sizing: border-box;
}

.haper-cart-pill__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--haper-gold-5, #d4b26a);
  line-height: 1.2;
}

.haper-cart-pill__total {
  font-size: 13px;
  font-weight: 700;
  color: #19273b;
  line-height: 1.3;
}

/* Mini-Cart Hover Dropdown */
.haper-mini-cart-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  right: auto;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--haper-border-color, #f2e8d2);
  box-shadow: 0 16px 40px rgba(25, 39, 59, 0.12);
  padding: 20px;
  box-sizing: border-box;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--haper-transition-base),
    visibility var(--haper-transition-base),
    transform var(--haper-transition-base);
  pointer-events: none;
}

/* Invisible hover bridge to prevent hover loss when moving mouse across 14px gap */
.haper-mini-cart-dropdown::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.haper-header-cart-wrap.is-open .haper-mini-cart-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (min-width: 992px) {

  .haper-header-cart-wrap:hover .haper-mini-cart-dropdown,
  .haper-header-cart-wrap:focus-within .haper-mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Mini-cart inner layout */
.haper-mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--haper-border-color, #f2e8d2);
}

.haper-mini-cart-header__title {
  font-size: 16px;
  font-weight: 700;
  color: #19273b;
}

.haper-mini-cart-header__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--haper-gold-5, #d4b26a);
  background: rgba(212, 178, 106, 0.12);
  padding: 3px 10px;
  border-radius: 8px;
}

.haper-mini-cart-body {
  max-height: 290px;
  overflow-y: auto;
  padding-block: 10px;
}

.haper-mini-cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.haper-mini-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(25, 39, 59, 0.06);
}

.haper-mini-cart-item:last-child {
  border-bottom: none;
}

.haper-mini-cart-item__thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #f6f0e1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.haper-mini-cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.haper-mini-cart-item__details {
  flex: 1;
  min-width: 0;
}

.haper-mini-cart-item__name {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.haper-mini-cart-item__name a {
  color: #19273b;
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-mini-cart-item__name a:hover {
  color: var(--haper-gold-5, #d4b26a);
}

.haper-mini-cart-item__variation {
  font-size: 11px;
  color: #6c7f99;
  margin-bottom: 4px;
  line-height: 1.3;
}

.haper-mini-cart-item__variation dl.variation {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin: 0;
  padding: 0;
}

.haper-mini-cart-item__variation dt.variation {
  font-weight: 600;
  margin: 0;
}

.haper-mini-cart-item__variation dd.variation {
  margin: 0;
}

.haper-mini-cart-item__variation dd.variation p {
  margin: 0;
  display: inline;
}

.haper-mini-cart-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.haper-mini-cart-item__qty {
  color: #6c7f99;
}

.haper-mini-cart-item__price {
  color: var(--haper-gold-7, #867042);
  font-weight: 600;
}

.haper-mini-cart-item__remove a.remove {
  color: #889cb9;
  font-size: 20px;
  text-decoration: none;
  display: inline-block;
  transition: color var(--haper-transition-fast);
}

.haper-mini-cart-item__remove a.remove:hover {
  color: #e53e3e;
}

/* Empty cart state */
.haper-mini-cart-empty {
  text-align: center;
  padding: 24px 10px;
}

.haper-mini-cart-empty__icon {
  display: inline-block;
  margin-bottom: 10px;
  opacity: 0.6;
}

.haper-mini-cart-empty__text {
  font-size: 14px;
  color: #6c7f99;
  margin: 0 0 16px;
}

.haper-mini-cart-empty__btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--haper-transition-fast);
}

.haper-mini-cart-empty__btn:hover {
  background: var(--haper-gold-6, #ad9156);
}

/* Mini-cart footer */
.haper-mini-cart-footer {
  padding-top: 14px;
  border-top: 1px solid var(--haper-border-color, #f2e8d2);
}

.haper-mini-cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.haper-mini-cart-subtotal__label {
  font-size: 14px;
  color: #51617a;
  font-weight: 500;
}

.haper-mini-cart-subtotal__amount {
  font-size: 16px;
  font-weight: 700;
  color: #19273b;
}

.haper-mini-cart-actions {
  display: flex;
  gap: 10px;
}

.haper-mini-cart-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition:
    background var(--haper-transition-fast),
    transform var(--haper-transition-fast);
}

.haper-mini-cart-btn--checkout {
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
}

.haper-mini-cart-btn--checkout:hover {
  background: var(--haper-gold-6, #ad9156);
}

.haper-mini-cart-btn--cart {
  background: #d9e3ee;
  color: #19273b;
}

.haper-mini-cart-btn--cart:hover {
  background: #cedbe8;
}

/* ==========================================================================
   User Account Button & Dropdown
   ========================================================================== */
.haper-header-account-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.haper-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #d9e3ee;
  border-radius: 14px;
  color: #19273b;
  text-decoration: none;
  transition:
    background var(--haper-transition-fast),
    transform var(--haper-transition-fast);
}

.haper-account-btn:hover,
.haper-header-account-wrap.is-open .haper-account-btn {
  background: #cedbe8;
  transform: translateY(-1px);
}

.haper-account-chevron-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  color: #19273b;
  display: inline-flex;
  align-items: center;
  transition: transform var(--haper-transition-fast);
}

.haper-header-account-wrap.is-open .haper-account-chevron-btn {
  transform: rotate(180deg);
}

/* User Account Dropdown */
.haper-user-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 280px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--haper-border-color, #f2e8d2);
  box-shadow: 0 16px 40px rgba(25, 39, 59, 0.12);
  padding: 18px;
  box-sizing: border-box;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--haper-transition-base),
    visibility var(--haper-transition-base),
    transform var(--haper-transition-base);
  pointer-events: none;
}

.haper-header-account-wrap.is-open .haper-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Invisible hover bridge to prevent hover loss when moving mouse across 14px gap */
.haper-user-dropdown::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

@media (min-width: 992px) {

  .haper-header-account-wrap:hover .haper-user-dropdown,
  .haper-header-account-wrap:focus-within .haper-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.haper-user-dropdown__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(25, 39, 59, 0.08);
  margin-bottom: 10px;
}

.haper-user-dropdown__avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
}

.haper-user-dropdown__user-info {
  display: flex;
  flex-direction: column;
}

.haper-user-dropdown__greeting {
  font-size: 11px;
  color: #889cb9;
}

.haper-user-dropdown__name {
  font-size: 14px;
  color: #19273b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.haper-user-dropdown__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.haper-user-dropdown__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #35445a;
  text-decoration: none;
  font-size: 14px;
  transition:
    background var(--haper-transition-fast),
    color var(--haper-transition-fast);
}

.haper-user-dropdown__link:hover {
  background: var(--haper-gold-0-5, #fbf7f0);
  color: var(--haper-gold-7, #867042);
}

.haper-user-dropdown__icon {
  display: inline-flex;
  color: currentColor;
}

.haper-user-dropdown__divider {
  height: 1px;
  background: rgba(25, 39, 59, 0.08);
  margin: 6px 0;
}

.haper-user-dropdown__item--logout .haper-user-dropdown__link {
  color: #e53e3e;
}

.haper-user-dropdown__item--logout .haper-user-dropdown__link:hover {
  background: rgba(229, 62, 62, 0.08);
  color: #c53030;
}

/* Guest user dropdown state */
.haper-user-dropdown__guest {
  text-align: center;
}

.haper-user-dropdown__guest-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.haper-user-dropdown__guest-text strong {
  font-size: 15px;
  color: #19273b;
  display: block;
  margin-bottom: 4px;
}

.haper-user-dropdown__guest-text p {
  font-size: 12px;
  color: #6c7f99;
  margin: 0;
  line-height: 1.5;
}

.haper-user-dropdown__btn--login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--haper-transition-fast);
}

.haper-user-dropdown__btn--login:hover {
  background: var(--haper-gold-6, #ad9156);
}

/* Mobile toggle button */
.haper-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #19273b;
}

.haper-mobile-toggle__close {
  display: none;
}

.haper-mobile-toggle[aria-expanded="true"] .haper-mobile-toggle__open {
  display: none;
}

.haper-mobile-toggle[aria-expanded="true"] .haper-mobile-toggle__close {
  display: inline-flex;
}

/* ==========================================================================
   MEGA MENU — Floating White Card (Figma node 321:1956 & doc/header.png)
   ========================================================================== */
.haper-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--haper-transition-base),
    visibility var(--haper-transition-base),
    transform var(--haper-transition-base);
  pointer-events: none;
  padding-top: 10px;
}

.haper-mega-menu.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.haper-mega-menu__container {
  max-width: 1240px;
  margin: 0 auto;
}

.haper-mega-menu__card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(25, 39, 59, 0.14);
  border: 1px solid rgba(212, 178, 106, 0.2);
  display: flex;
  gap: 24px;
  padding: 24px;
  box-sizing: border-box;
  min-height: 380px;
}

/* Right sidebar: Dark Navy tabs pill container */
.haper-mega-menu__sidebar {
  width: 220px;
  flex-shrink: 0;
}

.haper-mega-menu__tabs-container {
  background: #19273b;
  border-radius: 20px;
  padding: 12px;
  height: 100%;
  box-sizing: border-box;
}

.haper-mega-menu__tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.haper-mega-menu__tab-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #35445a;
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition:
    background var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast);
}

.haper-mega-menu__tab-btn:hover {
  background: #41536d;
}

.haper-mega-menu__tab-btn.is-active {
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212, 178, 106, 0.4);
}

.haper-mega-menu__tab-icon {
  display: inline-flex;
  align-items: center;
  color: currentColor;
}

/* Left content area: 4-column subcategory grid */
.haper-mega-menu__content {
  flex: 1;
  padding: 8px 12px;
}

.haper-mega-menu__panel {
  display: none;
}

.haper-mega-menu__panel.is-active {
  display: block;
  animation: haperFadePanel 0.25s ease forwards;
}

@keyframes haperFadePanel {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

.haper-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.haper-mega-menu__col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-left: 1px solid #eef2f7;
  padding-inline: 16px 0;
}

.haper-mega-menu__col:first-child {
  border-left: none;
}

.haper-mega-menu__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.haper-mega-menu__title-link {
  color: var(--haper-gold-5, #d4b26a);
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-mega-menu__title-link:hover {
  color: var(--haper-gold-7, #867042);
}

.haper-mega-menu__diamond {
  color: var(--haper-gold-5, #d4b26a);
  font-size: 9px;
  line-height: 1;
}

.haper-mega-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.haper-mega-menu__link {
  color: #51617a;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  display: inline-block;
  transition:
    color var(--haper-transition-fast),
    transform var(--haper-transition-fast);
}

.haper-mega-menu__link:hover {
  color: #19273b;
  transform: translateX(-3px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
  .haper-mobile-toggle {
    display: inline-flex;
  }

  .haper-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #ffffff;
    padding: 20px;
    box-shadow: var(--haper-shadow-md);
    border-top: 1px solid var(--haper-border-color);
    display: none;
    z-index: 999;
  }

  .haper-nav.is-open {
    display: block;
  }

  .haper-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .haper-mega-menu__card {
    flex-direction: column-reverse;
    border-radius: 20px;
    padding: 16px;
  }

  .haper-mega-menu__sidebar {
    width: 100%;
  }

  .haper-mega-menu__tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .haper-mega-menu__tab-btn {
    white-space: nowrap;
    min-width: max-content;
  }

  .haper-mega-menu__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .haper-mega-menu__col {
    border-left: none;
    padding-inline: 0;
  }
}

@media (max-width: 600px) {
  .haper-top-bar__inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .haper-main-header__inner {
    padding: 8px 12px;
    gap: 8px;
  }

  .haper-main-header__start {
    gap: 8px;
  }

  .haper-main-header__end {
    gap: 6px;
  }

  .haper-logo-box {
    width: 76px;
    height: 38px;
    border-radius: 12px;
  }

  .haper-branding img,
  .haper-branding .custom-logo,
  .haper-header-logo-img {
    max-height: 36px;
    max-width: 135px;
  }

  .haper-logo-text {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .haper-categories-btn {
    padding: 6px 4px;
  }

  .haper-categories-btn__text {
    display: none;
  }

  .haper-cart-pill {
    padding: 4px 8px;
    gap: 6px;
    border-radius: 12px;
  }

  .haper-cart-pill__badge {
    min-width: auto;
    padding: 2px 8px;
  }

  .haper-cart-pill__total {
    display: none;
  }

  .haper-account-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .haper-account-chevron-btn {
    display: none;
  }

  .haper-mini-cart-dropdown,
  .haper-user-dropdown {
    width: calc(100vw - 24px);
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-8px);
    position: fixed;
    top: 105px;
  }

  .haper-header-cart-wrap.is-open .haper-mini-cart-dropdown,
  .haper-header-account-wrap.is-open .haper-user-dropdown {
    transform: translateX(-50%) translateY(0);
  }

  .haper-mega-menu__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   404 Page Styles (Figma node 321:2923)
   ========================================================================== */

/* Page background override */
.haper-404-page {
  background-color: var(--haper-bg-404, #f0f6fd);
  min-height: calc(100vh - 127px);
  padding-block: 20px 60px;
}

/* Breadcrumb (Figma node 321:2931) */
.haper-breadcrumb {
  padding-block: 8px;
}

.haper-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  direction: rtl;
}

.haper-breadcrumb__link {
  color: #748397;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  transition: color var(--haper-transition-fast);
}

.haper-breadcrumb__link:hover {
  color: var(--haper-color-accent);
}

.haper-breadcrumb__item--separator {
  display: inline-flex;
  align-items: center;
  color: var(--haper-color-accent);
}

.haper-breadcrumb__arrow-svg {
  display: block;
  flex-shrink: 0;
}

.haper-breadcrumb__item--current {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--haper-color-accent);
}

/* Page Title Row (Figma node 321:2935) */
.haper-page-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 20px 0;
  direction: rtl;
}

.haper-page-title-row__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--haper-navy-5, #00142f);
  margin: 0;
  line-height: 1.2;
}

.haper-page-title-row__decorator {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.haper-page-title-row__decorator svg {
  display: block;
}

/* 404 Content Section */
.haper-404-content {
  padding-block: 10px 40px;
}

.haper-404-content__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
}

.haper-404-content__image {
  margin-block: 10px 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.haper-404-content__img {
  max-width: 756px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Typography Container (Figma node 321:2943) */
.haper-404-content__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-block-end: 32px;
  width: 100%;
}

.haper-404-content__heading {
  font-size: 18px;
  font-weight: 500;
  color: var(--haper-navy-5, #00142f);
  margin: 0;
  line-height: 1.8;
}

.haper-404-content__subtext {
  font-size: 18px;
  font-weight: 400;
  color: var(--haper-navy-5, #00142f);
  margin: 0;
  line-height: 1.8;
}

/* Action Buttons Container (Figma node 321:2946) */
.haper-404-content__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  direction: rtl;
  width: 100%;
}

/* Dual-Layer Pill Buttons (Figma node 321:2947 & 321:2951) */
.haper-404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 193px;
  height: 40px;
  padding: 5px 6px;
  border-radius: 14px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background-color var(--haper-transition-fast),
    transform var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast);
}

.haper-404-btn:hover {
  transform: translateY(-1px);
}

.haper-404-btn__text-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 155px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background-color var(--haper-transition-fast);
}

.haper-404-btn__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.haper-404-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.haper-404-btn__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* Secondary Button (بازگشت به صفحه قبلی) */
.haper-404-btn--secondary {
  background-color: #d9e3ee;
  color: var(--haper-navy-4, #35445a);
}

.haper-404-btn--secondary .haper-404-btn__text-box {
  background-color: #b6c5d6;
}

.haper-404-btn--secondary .haper-404-btn__text {
  color: var(--haper-navy-4, #35445a);
}

.haper-404-btn--secondary .haper-404-btn__icon {
  color: var(--haper-navy-4, #35445a);
}

.haper-404-btn--secondary:hover,
.haper-404-btn--secondary:focus-visible {
  background-color: #c9d7e6;
  box-shadow: 0 4px 14px rgba(25, 39, 59, 0.1);
}

/* Primary Gold Button (بازگشت به صفحه اصلی) */
.haper-404-btn--primary {
  background-color: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
}

.haper-404-btn--primary .haper-404-btn__text-box {
  background-color: rgba(190, 150, 67, 0.6);
}

.haper-404-btn--primary .haper-404-btn__text {
  color: #ffffff;
}

.haper-404-btn--primary .haper-404-btn__icon {
  color: #ffffff;
}

.haper-404-btn--primary:hover,
.haper-404-btn--primary:focus-visible {
  background-color: var(--haper-gold-6, #ad9156);
  box-shadow: 0 4px 16px rgba(212, 178, 106, 0.35);
}

/* Shared Generic Button Styles (Fallback for other components) */
.haper-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background-color var(--haper-transition-base),
    color var(--haper-transition-base),
    border-color var(--haper-transition-base);
}

.haper-btn--pill {
  border-radius: var(--haper-radius-full);
  padding: 12px 28px;
}

.haper-btn--primary {
  background-color: var(--haper-color-accent);
  color: var(--haper-text-inverse);
  border-color: var(--haper-color-accent);
}

.haper-btn--primary:hover,
.haper-btn--primary:focus-visible {
  background-color: var(--haper-color-accent-hover);
  border-color: var(--haper-color-accent-hover);
  color: var(--haper-text-inverse);
}

.haper-btn--secondary {
  background-color: var(--haper-bg-card);
  color: var(--haper-text-main);
  border-color: var(--haper-border-color);
}

.haper-btn--secondary:hover,
.haper-btn--secondary:focus-visible {
  background-color: var(--haper-color-accent-light);
  border-color: var(--haper-color-accent);
  color: var(--haper-text-main);
}

.haper-btn__icon {
  font-size: 16px;
  line-height: 1;
}

/* 404 Responsive */
@media (max-width: 768px) {
  .haper-404-content__img {
    max-width: 90%;
  }
}

@media (max-width: 500px) {
  .haper-404-content__actions {
    flex-direction: column;
    gap: 16px;
  }

  .haper-404-btn {
    width: 100%;
    max-width: 260px;
  }

  .haper-404-btn__text-box {
    flex: 1;
    width: auto;
  }

  .haper-404-content__heading,
  .haper-404-content__subtext {
    font-size: 16px;
  }
}

/* ==========================================================================
   Single Post / Blog Page Styles (Figma node 321:4156)
   ========================================================================== */

.haper-single-main {
  padding-bottom: 60px;
  background-color: #f7f9fc;
}

/* Breadcrumb Navigation */
.haper-breadcrumb-nav {
  margin: 24px 0 20px;
}

.haper-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--haper-navy-3);
}

.haper-breadcrumb-item a {
  color: var(--haper-navy-3);
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-breadcrumb-item a:hover {
  color: var(--haper-gold-5);
}

.haper-breadcrumb-item.active span {
  color: var(--haper-navy-5);
  font-weight: 600;
}

.haper-breadcrumb-separator {
  display: flex;
  align-items: center;
  color: var(--haper-navy-1-5);
}

/* Main Grid Layout */
.haper-single-grid {
  display: grid;
  gap: 30px;
}

.haper-single-grid.has-sidebar {
  grid-template-columns: 1fr 280px;
}

.haper-single-grid.no-sidebar {
  grid-template-columns: 1fr;
}

/* Article Card */
.haper-single-article {
  position: relative;
}

.haper-article-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--haper-shadow-sm);
  border: 1px solid var(--haper-gold-1-5);
}

.haper-article-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--haper-navy-5);
  margin: 0 0 18px 0;
}

.haper-article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--haper-gold-1);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--haper-navy-3);
}

.haper-meta-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.haper-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--haper-navy-3);
  text-decoration: none;
}

.haper-meta-item svg {
  color: var(--haper-navy-2);
}

.haper-meta-divider {
  width: 1px;
  height: 14px;
  background-color: var(--haper-navy-1-5);
}

.haper-btn-meta-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--haper-navy-3);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition:
    background var(--haper-transition-fast),
    color var(--haper-transition-fast);
}

.haper-btn-meta-share:hover {
  background-color: var(--haper-gold-0-5);
  color: var(--haper-gold-5);
}

/* Floating Share Bar (Group 40835) */
.haper-social-share-pill {
  position: absolute;
  top: 36px;
  right: -48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
  padding: 10px 8px;
  border-radius: 12px;
  box-shadow: var(--haper-shadow-md);
  border: 1px solid var(--haper-gold-1-5);
  z-index: 10;
}

.haper-share-icon-link,
.haper-share-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--haper-navy-3);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--haper-transition-fast);
}

.haper-share-icon-link:hover,
.haper-share-icon-btn:hover {
  background-color: var(--haper-gold-0-5);
  color: var(--haper-gold-5);
  transform: scale(1.1);
}

/* Featured Media */
.haper-article-featured-media {
  margin-bottom: 28px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--haper-shadow-sm);
}

.haper-article-featured-media img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Entry Content */
.haper-article-content {
  font-size: 16px;
  line-height: 2;
  color: var(--haper-navy-4);
}

.haper-article-content p {
  margin-bottom: 24px;
}

.haper-article-content h2,
.haper-article-content h3,
.haper-article-content h4 {
  color: var(--haper-navy-5);
  font-weight: 700;
  margin: 32px 0 16px;
}

.haper-article-content h2 {
  font-size: 20px;
}

.haper-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 20px 0;
}

/* Article Taxonomy Footer */
.haper-taxonomy-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--haper-gold-1-5);
  font-size: 14px;
  color: var(--haper-navy-3);
}

.haper-taxonomy-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.haper-tax-label {
  font-weight: 700;
  color: var(--haper-navy-5);
}

.haper-tax-values a {
  color: var(--haper-navy-3);
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-tax-values a:hover {
  color: var(--haper-gold-5);
}

.haper-tax-divider {
  border: none;
  border-top: 1px dashed var(--haper-gold-1-5);
  margin: 4px 0;
}

/* Sidebar Styling */
.haper-sidebar-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--haper-shadow-sm);
  border: 1px solid var(--haper-gold-1-5);
}

.haper-sidebar-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--haper-navy-5);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--haper-gold-1);
}

.haper-follow-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.haper-social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 12px;
  text-decoration: none;
  color: var(--haper-navy-5);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--haper-transition-fast);
}

.haper-social-item:hover {
  background: var(--haper-gold-0-5);
  transform: translateY(-2px);
}

.haper-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.haper-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.haper-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--haper-navy-4);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--haper-transition-fast);
}

.haper-category-link:hover {
  color: var(--haper-gold-5);
}

.haper-category-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #f1f5f9;
  color: var(--haper-navy-5);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
}

/* Below Sections Common Headers */
.haper-section {
  margin-top: 50px;
}

.haper-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.haper-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.haper-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--haper-navy-5);
  margin: 0;
}

.haper-title-accent-icon {
  display: flex;
  align-items: center;
}

.haper-btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e2e8f0;
  color: var(--haper-navy-5);
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--haper-transition-fast);
}

.haper-btn-view-all:hover {
  background: var(--haper-gold-5);
  color: #ffffff;
}

/* User Reviews Section */
.haper-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.haper-review-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--haper-shadow-sm);
  border: 1px solid var(--haper-gold-1-5);
  display: flex;
  gap: 14px;
}

.haper-review-avatar img,
.haper-avatar-placeholder {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.haper-review-content {
  flex: 1;
}

.haper-review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.haper-review-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--haper-navy-5);
}

.haper-review-date {
  font-size: 12px;
  color: var(--haper-navy-2);
}

.haper-review-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--haper-gold-5);
}

.haper-review-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--haper-navy-3);
  margin: 0;
}

/* Comment Form Section (Figma 321:4304) */
.haper-comment-form-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: stretch;
}

.haper-spotlight-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--haper-gold-1-5);
  box-shadow: var(--haper-shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.haper-spotlight-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.haper-btn-like,
.haper-btn-card-like {
  background: transparent;
  border: none;
  color: var(--haper-navy-2);
  cursor: pointer;
  padding: 4px;
  transition: color var(--haper-transition-fast);
}

.haper-btn-like:hover,
.haper-btn-card-like:hover {
  color: #e74c3c;
}

.haper-spotlight-thumb {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  height: 180px;
}

.haper-spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.haper-spotlight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--haper-navy-2);
  margin-bottom: 10px;
}

.haper-spotlight-author,
.haper-spotlight-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.haper-spotlight-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}

.haper-spotlight-title a {
  color: var(--haper-navy-5);
  text-decoration: none;
}

/* Comment Form Container */
.haper-comment-form-container {
  background: #eef2f7;
  border-radius: 24px;
  padding: 28px;
}

.haper-comment-form .haper-form-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.haper-form-textarea-col textarea {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--haper-navy-5);
  resize: vertical;
  box-sizing: border-box;
  transition: border-color var(--haper-transition-fast);
}

.haper-form-textarea-col textarea:focus {
  outline: none;
  border-color: var(--haper-gold-5);
}

.haper-form-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.haper-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.haper-field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--haper-navy-5);
}

.haper-field-group input {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--haper-navy-5);
  box-sizing: border-box;
  transition: border-color var(--haper-transition-fast);
}

.haper-field-group input:focus {
  outline: none;
  border-color: var(--haper-gold-5);
}

.haper-form-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.haper-star-rating-picker {
  display: flex;
  align-items: center;
  gap: 6px;
}

.haper-rating-label {
  font-size: 13px;
  color: var(--haper-navy-4);
  font-weight: 600;
}

.haper-stars-input {
  display: flex;
  align-items: center;
  gap: 2px;
}

.haper-star-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 2px;
  transition: color var(--haper-transition-fast);
}

.haper-star-btn.active {
  color: var(--haper-gold-5);
}

.haper-btn-submit-comment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--haper-gold-5);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--haper-transition-fast);
}

.haper-btn-submit-comment:hover {
  background: var(--haper-gold-6);
}

/* Related Posts Grid (Figma 321:4361) */
.haper-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.haper-blog-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--haper-shadow-sm);
  border: 1px solid var(--haper-gold-1-5);
  transition:
    transform var(--haper-transition-base),
    box-shadow var(--haper-transition-base);
}

.haper-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--haper-shadow-md);
}

.haper-blog-card-thumb-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 180px;
  margin-bottom: 14px;
}

.haper-blog-card-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.haper-btn-card-like {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.haper-blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--haper-navy-2);
  margin-bottom: 10px;
}

.haper-card-meta-author,
.haper-card-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.haper-blog-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}

.haper-blog-card-title a {
  color: var(--haper-navy-5);
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-blog-card-title a:hover {
  color: var(--haper-gold-5);
}

/* Single Post Responsive Rules */
@media (max-width: 1200px) {
  .haper-social-share-pill {
    position: static;
    flex-direction: row;
    margin-bottom: 20px;
    width: fit-content;
  }

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

@media (max-width: 992px) {
  .haper-single-grid.has-sidebar {
    grid-template-columns: 1fr;
  }

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

  .haper-comment-form-layout {
    grid-template-columns: 1fr;
  }

  .haper-comment-form .haper-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .haper-article-card {
    padding: 20px;
  }

  .haper-article-title {
    font-size: 20px;
  }

  .haper-reviews-grid,
  .haper-related-grid {
    grid-template-columns: 1fr;
  }

  .haper-form-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }

  .haper-btn-submit-comment {
    justify-content: center;
  }
}

/* ==========================================================================
   Blog / Archive / Search Page Styles (Figma node 321:4395)
   ========================================================================== */

.haper-blog-archive-main {
  padding-bottom: 60px;
  background-color: #f7f9fc;
}

/* Archive Header Row — title + sorting */
.haper-archive-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.haper-archive-header-row .haper-section-title {
  font-size: 22px;
}

/* Sorting Tabs (Figma node 321:4458) */
.haper-sorting-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--haper-navy-3);
}

.haper-sorting-label {
  font-weight: 600;
  color: var(--haper-navy-4);
}

.haper-sort-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--haper-navy-3);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
  transition: color var(--haper-transition-fast);
}

.haper-sort-tab:hover {
  color: var(--haper-navy-5);
}

.haper-sort-tab.active {
  color: var(--haper-navy-5);
  font-weight: 700;
}

.haper-sort-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--haper-gold-5);
  display: inline-block;
}

/* Blog Grid Layout (2-column: main cards + sidebar) */
.haper-blog-grid-layout {
  display: grid;
  gap: 30px;
}

.haper-blog-grid-layout.has-sidebar {
  grid-template-columns: 1fr 260px;
}

.haper-blog-grid-layout.no-sidebar {
  grid-template-columns: 1fr;
}

/* Post Cards Grid — 3 columns (Figma: 3×5 = 15 cards) */
.haper-blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Sidebar Search Card (Figma node 321:4429) */
.haper-search-card {
  /* inherits .haper-sidebar-card from single post styles */
}

.haper-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.haper-search-input {
  width: 100%;
  height: 48px;
  background: #e9eef5;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 46px 0 16px;
  font-family: inherit;
  font-size: 14px;
  color: var(--haper-navy-5);
  box-sizing: border-box;
  transition:
    border-color var(--haper-transition-fast),
    background var(--haper-transition-fast);
}

.haper-search-input:focus {
  outline: none;
  border-color: var(--haper-gold-5);
  background: #ffffff;
}

.haper-search-submit-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--haper-navy-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color var(--haper-transition-fast);
}

.haper-search-submit-btn:hover {
  color: var(--haper-gold-5);
}

/* Category active state */
.haper-category-active .haper-category-link {
  color: var(--haper-gold-5);
  font-weight: 700;
}

.haper-category-active .haper-category-count {
  background: var(--haper-gold-5);
  color: #ffffff;
}

/* Pagination (Figma node 321:4407) */
.haper-pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.haper-pagination-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.haper-pagination-list .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  background: #e2e8f0;
  color: var(--haper-navy-4);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--haper-transition-fast);
  gap: 6px;
}

.haper-pagination-list .page-numbers:hover {
  background: var(--haper-gold-1);
  color: var(--haper-navy-5);
}

.haper-pagination-list .page-numbers.current {
  background: var(--haper-gold-5);
  color: #ffffff;
}

.haper-pagination-list .prev,
.haper-pagination-list .next {
  background: #d1d8e3;
  color: var(--haper-navy-5);
  font-weight: 700;
  padding: 0 16px;
}

.haper-pagination-list .prev:hover,
.haper-pagination-list .next:hover {
  background: var(--haper-gold-5);
  color: #ffffff;
}

.haper-pagination-list .dots {
  background: transparent;
  color: var(--haper-navy-3);
}

/* No results box */
.haper-no-results-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--haper-shadow-sm);
  border: 1px solid var(--haper-gold-1-5);
}

.haper-no-results-box h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--haper-navy-5);
  margin: 0 0 12px;
}

.haper-no-results-box p {
  font-size: 15px;
  color: var(--haper-navy-3);
  margin-bottom: 24px;
}

/* Blog Archive Responsive */
@media (max-width: 1200px) {
  .haper-blog-grid-layout.has-sidebar {
    grid-template-columns: 1fr 240px;
  }
}

@media (max-width: 992px) {
  .haper-blog-grid-layout.has-sidebar {
    grid-template-columns: 1fr;
  }

  .haper-blog-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .haper-archive-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .haper-blog-cards-grid {
    grid-template-columns: 1fr;
  }

  .haper-sorting-tabs {
    flex-wrap: wrap;
    gap: 10px;
  }

  .haper-pagination-list .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .haper-pagination-list .prev,
  .haper-pagination-list .next {
    padding: 0 12px;
  }
}

/* ==========================================================================
   Footer Styles (Figma node 321:5156)
   ========================================================================== */

.haper-footer {
  padding-block: 50px 30px;
  width: 100%;
  direction: rtl;
}

.haper-footer-container {
  max-width: 1296px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}

.haper-footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 44px;
  direction: rtl;
  width: 100%;
}

/* --- Left Column: Branch Cards --- */
.haper-footer-branches-col {
  position: relative;
  width: 432px;
  height: 513px;
  max-height: 513px;
  flex-shrink: 0;
  border-radius: 50px;
  overflow: hidden;
}

.haper-footer-branches-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.haper-footer-branches-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.haper-footer-branches-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 41px 36px 41px 40px;
  box-sizing: border-box;
  height: 100%;
  max-height: 513px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--haper-gold-5, #d4b26a) rgba(255, 255, 255, 0.06);
}

.haper-footer-branches-list::-webkit-scrollbar {
  width: 5px;
}

.haper-footer-branches-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin: 30px 0;
}

.haper-footer-branches-list::-webkit-scrollbar-thumb {
  background: var(--haper-gold-5, #d4b26a);
  border-radius: 4px;
}

.haper-footer-branches-list::-webkit-scrollbar-thumb:hover {
  background: var(--haper-gold-4, #ddc188);
}

.haper-footer-branch-card__badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--haper-gold-4, #ddc188);
  background: rgba(212, 178, 106, 0.15);
  border: 1px solid rgba(212, 178, 106, 0.3);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
  margin-inline-start: auto;
}

.haper-footer-branch-card__title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-footer-branch-card__title-link:hover {
  color: var(--haper-gold-4, #ddc188);
}

.haper-footer-branch-card__val--link {
  color: inherit;
  text-decoration: none;
}

.haper-footer-branch-card__val--link:hover {
  color: var(--haper-gold-5, #d4b26a);
}

.haper-footer-branch-card {
  position: relative;
  width: 100%;
  height: 128px;
  min-height: 128px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(240, 246, 253, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 2px solid rgba(63, 119, 202, 0.35);
  padding: 16px 20px;
  box-sizing: border-box;
  transition:
    transform var(--haper-transition-fast),
    border-color var(--haper-transition-fast);
}

.haper-footer-branch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 178, 106, 0.6);
}

.haper-footer-branch-card__map {
  position: absolute;
  right: 14px;
  top: 26px;
  width: 267px;
  height: 70px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.haper-footer-branch-card__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.haper-footer-branch-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  direction: rtl;
}

.haper-footer-branch-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.haper-footer-branch-card__diamond {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--haper-gold-5, #d4b26a);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.haper-footer-branch-card__title {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.haper-footer-branch-card__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #ffffff;
}

.haper-footer-branch-card__row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.haper-footer-branch-card__label {
  font-weight: 500;
  color: #ffffff;
  opacity: 0.9;
  white-space: nowrap;
  font-size: 12px;
}

.haper-footer-branch-card__val {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.95;
  transition: color var(--haper-transition-fast);
}

a.haper-footer-branch-card__val:hover {
  color: var(--haper-gold-5, #d4b26a);
}

/* --- Right Column --- */
.haper-footer-right-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 34px;
  direction: rtl;
}

/* Row 1: Navigation Columns Grid (Figma node 321:7912) */
.haper-footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  width: 100%;
}

.haper-footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.haper-footer-nav-col__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--haper-navy-5, #00142f);
  margin: 0;
  line-height: 1.2;
}

.haper-footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.haper-footer-nav-item {
  margin: 0;
  padding: 0;
}

.haper-footer-nav-link,
.haper-footer-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #35445a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  transition: color var(--haper-transition-fast);
}

.haper-footer-nav-link:hover,
.haper-footer-nav-list a:hover {
  color: var(--haper-gold-5, #d4b26a);
}

.haper-footer-nav-diamond {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--haper-gold-5, #d4b26a);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Row 2: Badges & Social Bar (Figma node 321:7949) */
.haper-footer-badges-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.haper-footer-social-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #d9e2ec;
  height: 70px;
  border-radius: 16px;
  padding: 0 24px;
  width: 419px;
  flex: 0 0 419px;
  box-sizing: border-box;
}

.haper-footer-social-label {
  font-size: 16px;
  font-weight: 600;
  color: #35445a;
  white-space: nowrap;
}

.haper-footer-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.haper-footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform var(--haper-transition-fast),
    opacity var(--haper-transition-fast);
}

.haper-footer-social-icon:hover {
  transform: scale(1.1);
}

.haper-footer-social-icon--rubika {
  gap: 4px;
}

.haper-footer-social-rubika-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--haper-gold-5, #d4b26a);
}

.haper-footer-social-divider {
  display: inline-block;
  width: 1px;
  height: 24px;
  background-color: rgba(53, 68, 90, 0.25);
}

.haper-footer-trust-badge {
  width: 180px;
  height: 70px;
  background: #d9e2ec;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px;
  box-sizing: border-box;
  transition:
    transform var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast);
}

.haper-footer-trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(25, 39, 59, 0.08);
}

.haper-footer-trust-badge__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.haper-footer-trust-badge__img {
  max-height: 48px;
  max-width: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Row 3: About Store (Figma node 321:7970) */
.haper-footer-about-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.haper-footer-about-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.haper-footer-about-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.haper-footer-about-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.haper-footer-about-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--haper-navy-5, #00142f);
  margin: 0;
  line-height: 1.2;
}

.haper-footer-about-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #35445a;
  margin: 0;
  text-align: justify;
}

/* Row 4: Copyright Bar (Figma node 321:7976) */
.haper-footer-copyright-bar {
  width: 100%;
  height: 50px;
  background-color: var(--haper-gold-5, #d4b26a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 20px;
  box-sizing: border-box;
}

.haper-footer-copyright-text {
  font-size: 16px;
  font-weight: 500;
  color: #35445a;
  margin: 0;
  text-align: center;
}

/* Footer Responsive Breakpoints */
@media (max-width: 1150px) {
  .haper-footer-inner {
    flex-direction: column-reverse;
    align-items: center;
    gap: 40px;
  }

  .haper-footer-branches-col {
    width: 100%;
    max-width: 432px;
  }

  .haper-footer-badges-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 850px) {
  .haper-footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .haper-footer-badges-bar {
    flex-direction: column;
    width: 100%;
  }

  .haper-footer-social-pill {
    width: 100%;
    max-width: 100%;
  }

  .haper-footer-trust-badge {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 540px) {
  .haper-footer-nav-grid {
    grid-template-columns: 1fr;
  }

  .haper-footer-branches-col {
    border-radius: 28px;
  }

  .haper-footer-branches-list {
    padding: 24px 20px;
  }

  .haper-footer-social-pill {
    flex-direction: column;
    height: auto;
    padding: 16px;
    gap: 14px;
  }

  .haper-footer-social-icons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .haper-footer-copyright-bar {
    height: auto;
    padding: 14px;
  }

  .haper-footer-copyright-text {
    font-size: 13px;
  }
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.haper-contact-page {
  --haper-contact-page-bg: #f0f6fd;
  --haper-contact-brand-bg: #d9e2ec;
  --haper-contact-card-radius: 30px;
  --haper-contact-overview-gap: 22px;
  --haper-contact-gradient-start: #be9643;
  --haper-contact-gradient-middle: #f5d289;
  --haper-contact-promo-width: 222px;
  --haper-contact-promo-height: 256px;
  --haper-contact-promo-media-height: 145px;
  --haper-contact-social-bg: rgba(173, 145, 86, 0.34);
  --haper-contact-social-bg-hover: rgba(134, 112, 66, 0.42);
  background: var(--haper-contact-page-bg);
  padding: 28px 0 72px;
}

.haper-contact-heading {
  margin-bottom: 34px;
}

.haper-contact-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.haper-contact-breadcrumb__item,
.haper-contact-breadcrumb__link {
  font-size: 14px;
  line-height: 1.8;
  text-decoration: none;
  color: #748397;
}

.haper-contact-breadcrumb__link {
  transition: color var(--haper-transition-fast);
}

.haper-contact-breadcrumb__link:hover,
.haper-contact-breadcrumb__item--current,
.haper-contact-breadcrumb__separator {
  color: var(--haper-color-accent);
}

.haper-contact-breadcrumb__separator {
  display: inline-flex;
  align-items: center;
}

.haper-contact-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
}

.haper-contact-title-row__decorator {
  display: inline-flex;
  align-items: center;
}

.haper-contact-title-row__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--haper-text-main);
}

.haper-contact-overview {
  position: relative;
  margin-bottom: 28px;
}

.haper-contact-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 64%);
  gap: var(--haper-contact-overview-gap);
  align-items: stretch;
  direction: ltr;
}

.haper-contact-brand-card,
.haper-contact-info-card,
.haper-contact-form-card,
.haper-contact-branch-card {
  border-radius: 22px;
}

.haper-contact-brand-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 310px;
  border-radius: var(--haper-contact-card-radius);
  background: var(--haper-contact-brand-bg);
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  direction: rtl;
}

.haper-contact-brand-card__pattern {
  position: absolute;
  z-index: 0;
  top: -30px;
  right: 0;
  bottom: -44px;
  left: 0;
  background-image: url("assets/img/contact/contact-brand-pattern.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
}

.haper-contact-brand-card__logo {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  max-width: 68%;
  max-height: 48%;
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.haper-contact-brand-card.is-empty::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.haper-contact-info-card {
  min-width: 0;
  min-height: 310px;
  padding: 26px 24px;
  border-radius: var(--haper-contact-card-radius);
  background: linear-gradient(90deg,
      var(--haper-contact-gradient-start) 0%,
      var(--haper-contact-gradient-middle) 50%,
      var(--haper-contact-gradient-start) 100%);
  box-sizing: border-box;
  direction: rtl;
  overflow: visible;
  /* allow .haper-contact-promo__media to bleed out */
  isolation: isolate;
}

.haper-contact-info-card__content {
  display: grid;
  grid-template-columns: minmax(155px, 0.82fr) minmax(205px, 1.12fr) var(--haper-contact-promo-width);
  grid-template-rows: minmax(0, 1fr) 58px;
  grid-template-areas:
    "details intro promo"
    "socials socials promo";
  column-gap: 10px;
  row-gap: 18px;
  align-items: center;
  height: 100%;
  direction: ltr;
}

.haper-contact-info-card__details {
  grid-area: details;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  direction: ltr;
}

.haper-contact-detail {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: 100%;
  color: var(--haper-text-inverse);
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
}

.haper-contact-detail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.haper-contact-info-card__intro {
  grid-area: intro;
  min-width: 0;
  direction: rtl;
}

.haper-contact-info-card__intro p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  font-weight: 400;
  color: #35445A;
}

.haper-contact-promo {
  grid-area: promo;
  position: relative;
  align-self: center;
  justify-self: end;
  display: block;
  width: var(--haper-contact-promo-width);
  height: var(--haper-contact-promo-height);
  border-radius: 10px;
  overflow: visible;
  /* image deliberately overflows the card boundary */
  isolation: isolate;
  color: var(--haper-navy-5);
  text-decoration: none;
  direction: rtl;
}

.haper-contact-promo__media {
  position: absolute;
  z-index: 2;
  /* above the card surface, floats on top of sibling elements */
  top: calc(-1 * var(--haper-contact-promo-media-height) * 0.4);
  /* bleed above card */
  right: 1px;
  left: 1px;
  height: calc(var(--haper-contact-promo-media-height) * 1.45);
  border-radius: 12px;
  overflow: hidden;
}

.haper-contact-promo__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.haper-contact-promo__body {
  position: absolute;
  z-index: 3;
  /* push body down to clear the overflowing image */
  top: calc(var(--haper-contact-promo-media-height) * 1.1);
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 13px 10px;
  box-sizing: border-box;
}

.haper-contact-promo__text {
  margin: 0;
  font-size: 11px;
  line-height: 1.95;
  font-weight: 400;
  color: var(--haper-navy-5);
}

.haper-contact-promo__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: auto;
  color: var(--haper-gold-6);
}

.haper-contact-promo__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.haper-contact-promo__frame {
  position: absolute;
  z-index: 1;
  /* below the floating image, above the card bg */
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.haper-contact-socials {
  grid-area: socials;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-self: end;
  margin: 0;
  direction: ltr;
}

.haper-contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--haper-contact-social-bg);
  color: var(--haper-text-inverse);
  text-decoration: none;
  direction: rtl;
  transition:
    transform var(--haper-transition-fast),
    background var(--haper-transition-fast);
}

.haper-contact-social:hover {
  transform: translateY(-1px);
  background: var(--haper-contact-social-bg-hover);
}

.haper-contact-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.haper-contact-social__svg,
.haper-contact-social__uploaded-icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.haper-contact-social__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
  text-align: right;
  gap: 5px;
  align-content: center;
  align-items: center;
  justify-content: center;
}

.haper-contact-social__copy strong {
  hite-space: nowrap;
  color: var(--COLOR-PRIMARY, #00142F);
  text-align: right;
  font-family: "Doran";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}

.haper-contact-form-section {
  margin-bottom: 28px;
}

.haper-contact-form-card {
  padding: 24px 22px 22px;
  background: #e1eaf4;
}

.haper-contact-form-card__title {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--haper-navy-5);
}

.haper-contact-form__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.haper-contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.haper-contact-field__label {
  font-size: 13px;
  color: var(--haper-navy-4);
}

.haper-contact-field input,
.haper-contact-field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.56);
  color: var(--haper-navy-5);
  font-family: inherit;
  font-size: 14px;
  transition:
    box-shadow var(--haper-transition-fast),
    background var(--haper-transition-fast);
}

.haper-contact-field input {
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
}

.haper-contact-field textarea {
  min-height: 128px;
  padding: 14px;
  border-radius: 10px;
  resize: vertical;
}

.haper-contact-field input:focus,
.haper-contact-field textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 1px var(--haper-gold-5);
}

.haper-contact-field--message {
  margin-top: 20px;
}

.haper-contact-form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.haper-contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 113px;
  min-width: 113px;
  height: 40px;
  padding: 0 5px 0 31px;
  border: 0;
  border-radius: 14px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg width='113' height='40' viewBox='0 0 113 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='113' height='40' rx='14' fill='%23D4B26A'/%3E%3Cpath d='M17.5004 27.225C17.3421 27.225 17.1837 27.1667 17.0587 27.0417L11.6254 21.6083C10.7421 20.725 10.7421 19.275 11.6254 18.3917L17.0587 12.9583C17.3004 12.7167 17.7004 12.7167 17.9421 12.9583C18.1837 13.2 18.1837 13.6 17.9421 13.8417L12.5087 19.275C12.1087 19.675 12.1087 20.325 12.5087 20.725L17.9421 26.1583C18.1837 26.4 18.1837 26.8 17.9421 27.0417C17.8171 27.1583 17.6587 27.225 17.5004 27.225Z' fill='white'/%3E%3Crect x='31' y='5' width='77' height='30' rx='8' fill='%23BE9643' fill-opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 113px 40px;
  box-sizing: border-box;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    transform var(--haper-transition-fast),
    opacity var(--haper-transition-fast);
}

.haper-contact-form__submit:hover {
  background-color: transparent;
  transform: translateY(-1px);
  opacity: 0.92;
}

.haper-contact-form__submit:focus-visible {
  outline: 2px solid var(--haper-gold-6);
  outline-offset: 3px;
}

.haper-contact-form__submit-icon {
  display: none;
}

.haper-contact-branches__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.haper-contact-branches__section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--haper-navy-5);
  margin: 0;
}

.haper-contact-branches__qr-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--haper-gold-7, #867042);
  text-decoration: none;
  background: var(--haper-gold-0-5, #fbf7f0);
  border: 1px solid var(--haper-gold-2, #eee0c3);
  padding: 8px 18px;
  border-radius: 999px;
  transition: all var(--haper-transition-fast);
}

.haper-contact-branches__qr-link:hover {
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
  border-color: var(--haper-gold-5, #d4b26a);
  transform: translateY(-1px);
}

.haper-contact-branches__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.haper-contact-branch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "details identity";
  min-height: 172px;
  border: 1px solid #a9bdd4;
  border-radius: 28px;
  background: transparent;
  overflow: hidden;
  direction: ltr;
}

.haper-contact-branch-card__details {
  grid-area: details;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 26px;
  padding: 18px 12px 18px 24px;
  direction: rtl;
}

.haper-contact-branch-card__maps {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--haper-gold-5);
  direction: ltr;
}

.haper-contact-branch-card__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  min-height: 85px;
}

.haper-contact-branch-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--haper-navy-4);
  font-size: 12px;
  line-height: 1.8;
  text-decoration: none;
  direction: ltr;
  text-align: left;
}

.haper-contact-branch-card__meta-text {
  direction: rtl;
}

.haper-contact-branch-card__meta-icon {
  display: inline-flex;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--haper-gold-5);
}

.haper-contact-branch-card__identity {
  grid-area: identity;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 20px 18px 10px 8px;
  direction: rtl;
}

.haper-contact-branch-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  min-width: max-content;
}

.haper-contact-branch-card__pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--haper-gold-7, #867042);
  background: var(--haper-gold-1, #f6f0e1);
  border: 1px solid var(--haper-gold-2, #eee0c3);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

.haper-contact-branch-card__title {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin: 0;
  padding-right: 14px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--haper-navy-5);
  text-align: right;
}

.haper-contact-branch-card__title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--haper-gold-5);
  transform: translateY(-50%) rotate(45deg);
}

.haper-contact-branch-card__visual {
  position: relative;
  flex: 1 1 auto;
  min-height: 105px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.haper-contact-branch-card__visual>img,
.haper-contact-branch-card__map-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 112px;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.72;
}

.haper-contact-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
  color: var(--haper-navy-5);
  overflow: hidden;
}

.haper-contact-map-link__icon {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .haper-contact-overview__grid {
    grid-template-columns: minmax(0, 34%) minmax(0, 66%);
  }

  .haper-contact-info-card {
    --haper-contact-promo-width: 190px;
    --haper-contact-promo-height: 219px;
    --haper-contact-promo-media-height: 124px;
    padding: 24px 20px;
  }

  .haper-contact-info-card__content {
    grid-template-columns: minmax(145px, 0.8fr) minmax(180px, 1fr) var(--haper-contact-promo-width);
    column-gap: 16px;
    row-gap: 14px;
  }

  .haper-contact-socials {
    gap: 8px;
  }

  .haper-contact-social {
    gap: 7px;
    padding-inline: 8px;
  }

  .haper-contact-social__copy strong {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .haper-contact-page {
    padding-top: 20px;
  }

  .haper-contact-overview__grid,
  .haper-contact-branches__grid {
    grid-template-columns: 1fr;
  }

  .haper-contact-brand-card,
  .haper-contact-info-card {
    min-height: 310px;
  }

  .haper-contact-info-card {
    --haper-contact-promo-width: 222px;
    --haper-contact-promo-height: 256px;
    --haper-contact-promo-media-height: 145px;
  }

  .haper-contact-info-card__content {
    grid-template-columns: minmax(155px, 0.82fr) minmax(205px, 1.12fr) var(--haper-contact-promo-width);
    column-gap: 20px;
  }

  .haper-contact-form__fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .haper-contact-page {
    padding-bottom: 48px;
  }

  .haper-contact-heading {
    margin-bottom: 24px;
  }

  .haper-contact-title-row {
    margin-top: 22px;
  }

  .haper-contact-brand-card {
    min-height: 250px;
  }

  .haper-contact-brand-card__pattern {
    top: -22px;
    bottom: -32px;
  }

  .haper-contact-info-card {
    padding: 18px;
  }

  .haper-contact-info-card__content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "intro"
      "details"
      "promo"
      "socials";
    gap: 20px;
  }

  .haper-contact-info-card__details {
    align-items: flex-start;
  }

  .haper-contact-promo {
    justify-self: center;
  }

  .haper-contact-socials {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .haper-contact-form-card {
    padding: 20px 16px;
  }

  .haper-contact-branch-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "details";
  }

  .haper-contact-branch-card__identity {
    padding: 18px 18px 8px;
  }

  .haper-contact-branch-card__visual {
    min-height: 120px;
  }

  .haper-contact-branch-card__details {
    padding: 10px 18px 20px;
    gap: 18px;
  }
}

/* ==========================================================================
   About Us Page Styles (Figma node 321:3923)
   ========================================================================== */
body.haper-is-about-page {
  background-color: var(--haper-bg-about, #f0f6fd);
}

.haper-about-page {
  background-color: var(--haper-bg-about, #f0f6fd);
  min-height: calc(100vh - 127px);
  padding-block: 20px 70px;
  direction: rtl;
}

/* --------------------------------------------------------------------------
   Section 1: Hero Official Branches Banner (Figma node 321:3924)
   -------------------------------------------------------------------------- */
.haper-about-hero {
  margin-top: 28px;
  position: relative;
  width: 100%;
}

.haper-about-hero__wrapper {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.haper-about-hero__banner {
  position: relative;
  width: 100%;
  min-height: 429px;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  -webkit-mask-image: url("assets/img/about/Subtract.svg");
  mask-image: url("assets/img/about/Subtract.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  filter: drop-shadow(0 12px 36px rgba(25, 39, 59, 0.08));
}

.haper-about-hero__overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(53, 68, 90, 0) 0%,
      rgba(53, 68, 90, 0) 42%,
      rgba(53, 68, 90, 0.6) 52%,
      rgba(53, 68, 90, 0.886) 70%,
      #35445a 93%,
      #35445a 100%);
  pointer-events: none;
}

.haper-about-hero__content {
  position: relative;
  z-index: 2;
  padding: 48px 60px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.haper-about-hero__logo {
  margin-bottom: 8px;
}

.haper-about-hero__logo img {
  display: block;
  width: 74px;
  height: auto;
}

.haper-about-hero__headings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.haper-about-hero__subtitle-box {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 100%;
}

.haper-about-hero__subtitle-en {
  font-family:
    "Gilan",
    "IRANSansXV",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: 0.8px;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.haper-about-hero__line {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.haper-about-hero__title-box {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.haper-about-hero__title-fa {
  font-family: "Doran", "Doran FaNum", "IRANSansXV", sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.haper-about-hero__line-fa {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.haper-about-hero__desc-box {
  background: rgba(217, 226, 236, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  padding: 12px 18px;
  width: 100%;
  box-sizing: border-box;
}

.haper-about-hero__desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #ffffff;
  margin: 0;
  text-align: justify;
}

.haper-about-hero__nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: var(--haper-bg-about, #f0f6fd);
  box-shadow: none;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color var(--haper-transition-fast),
    transform var(--haper-transition-fast);
}

.haper-about-hero__nav svg {
  display: block;
  width: 14px;
  height: 14px;
}

.haper-about-hero__nav:hover,
.haper-about-hero__nav:focus-visible {
  background: var(--haper-bg-about, #f0f6fd);
  transform: translateY(-50%) scale(1.08);
}

.haper-about-hero__nav:focus-visible {
  outline: 2px solid rgba(212, 178, 106, 0.35);
  outline-offset: 3px;
}

.haper-about-hero__nav--prev {
  right: -11px;
  color: var(--haper-gold-5, #d4b26a);
}

.haper-about-hero__nav--next {
  left: -11px;
  color: #748397;
}

/* --------------------------------------------------------------------------
   Section 2: Stats Cards Row (Figma nodes 321:4120, 321:4129, 321:4138, 321:4147)
   -------------------------------------------------------------------------- */
.haper-about-stats {
  margin-top: 48px;
}

.haper-about-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.haper-about-stat-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #b6c5d6;
  border-radius: 24px;
  min-height: 124px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  transition:
    transform var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast),
    border-color var(--haper-transition-fast);
}

.haper-about-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(25, 39, 59, 0.08);
  border-color: var(--haper-gold-5, #d4b26a);
}

.haper-about-stat-card__diamond {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 3;
}

.haper-about-stat-card--diamond-top-right .haper-about-stat-card__diamond {
  top: -10px;
  right: 28px;
}

.haper-about-stat-card--diamond-bottom-left .haper-about-stat-card__diamond {
  bottom: -10px;
  left: 28px;
}

.haper-about-stat-card__diamond-large {
  display: block;
  width: 20px;
  height: 20px;
  background-color: var(--haper-gold-5, #d4b26a);
  transform: rotate(45deg);
  border-radius: 3px;
}

.haper-about-stat-card__diamond-small {
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--haper-gold-5, #d4b26a);
  transform: rotate(45deg);
  border-radius: 1px;
}

.haper-about-stat-card__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 95px;
  flex-shrink: 0;
  text-align: center;
}

.haper-about-stat-card__value {
  font-family: "Doran", "Doran FaNum", "IRANSansXV", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #00142f;
  line-height: 1.1;
}

.haper-about-stat-card__title {
  font-family: "Doran", "Doran FaNum", "IRANSansXV", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #00142f;
  margin-top: 6px;
  line-height: 1.2;
}

.haper-about-stat-card__divider {
  display: block;
  width: 1px;
  height: 64px;
  background: #d9e2ec;
  flex-shrink: 0;
  margin: 0 12px;
}

.haper-about-stat-card__desc {
  flex: 1;
  font-size: 15px;
  font-weight: 400;
  color: #748397;
  line-height: 1.7;
  text-align: justify;
  margin: 0;
}

.haper-about-stat-card__desc p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Section 3: Showcase & Advantage Section (Figma node 321:4006)
   -------------------------------------------------------------------------- */
.haper-about-showcase-section {
  margin-top: 48px;
}

.haper-about-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.058fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.haper-about-showcase-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 856 / 434;
  min-height: 0;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
}

.haper-about-showcase-card__background {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.haper-about-showcase-card__product {
  position: absolute;
  z-index: 2;
  top: 46%;
  left: 50%;
  display: block;
  width: min(53%, 453px);
  max-width: 453px;
  max-height: 90%;
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.haper-about-showcase-card__tagline {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 26.5%;
  max-width: 227px;
  text-align: center;
  transform: translateY(-50%);
}

.haper-about-showcase-card__tagline--en {
  right: 4.5%;
}

.haper-about-showcase-card__tagline--fa {
  left: 4.5%;
}

.haper-about-showcase-card__line {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.haper-about-showcase-card__text-en {
  margin: 0;
  font-family:
    "Gilan",
    "IRANSansXV",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.55;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(25, 39, 59, 0.12);
}

.haper-about-showcase-card__text-fa {
  margin: 0;
  font-family: "IRANSansXV", "IRANSansX", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(25, 39, 59, 0.12);
}

.haper-about-advantage-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.haper-about-advantage-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.haper-about-advantage-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.haper-about-advantage-title {
  font-family: "Doran", "Doran FaNum", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #00142f;
  margin: 0;
  line-height: 1.3;
}

.haper-about-advantage-subtitle-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.haper-about-advantage-subtitle {
  font-family: "Doran", "Doran FaNum", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #be9643;
  margin: 0;
  line-height: 1.3;
}

.haper-about-advantage-underline {
  display: block;
  width: 88px;
  height: auto;
}

.haper-about-advantage-desc {
  font-size: 15px;
  font-weight: 400;
  color: #35445a;
  line-height: 1.85;
  text-align: justify;
  margin: 0;
}

.haper-about-advantage-desc p {
  margin: 0;
}

.haper-about-brand-card {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 30px;
  height: 165px;
  min-height: 165px;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 36px 24px 190px;
  padding-inline-start: 36px;
  padding-inline-end: 190px;
  box-sizing: border-box;
  z-index: 4;
  transition: transform var(--haper-transition-fast), box-shadow var(--haper-transition-fast);
}

.haper-about-brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(25, 39, 59, 0.08);
}

.haper-about-brand-card__media {
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 255px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  pointer-events: none;
  z-index: 10;
}

.haper-about-brand-card__img {
  width: 100%;
  max-width: 255px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(25, 39, 59, 0.16));
  transition: transform var(--haper-transition-base), filter var(--haper-transition-base);
}

.haper-about-brand-card:hover .haper-about-brand-card__img {
  transform: scale(1.05) rotate(-1deg);
  filter: drop-shadow(0 18px 36px rgba(25, 39, 59, 0.22));
}

.haper-about-brand-card__info {
  position: relative;
  z-index: 5;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  text-align: right;
  margin-right: 0;
  margin-left: auto;
}

.haper-about-brand-card__title {
  font-family: "Doran", "IRANSansXV", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #00142f;
  margin: 0;
  line-height: 1.2;
}

.haper-about-brand-card__flourish svg {
  display: block;
  width: 88px;
  height: auto;
}

/* --------------------------------------------------------------------------
   Section 4: Story / Editorial Text (Figma node 321:3946)
   -------------------------------------------------------------------------- */
.haper-about-story {
  margin-top: 50px;
  margin-bottom: 50px;
}

.haper-about-story__content {
  font-size: 16px;
  font-weight: 400;
  color: #35445a;
  line-height: 2;
  text-align: justify;
}

.haper-about-story__content p {
  margin-bottom: 20px;
}

.haper-about-story__content p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Section 5: Features / Service Badges Bar (Figma node 321:3947)
   -------------------------------------------------------------------------- */
.haper-about-features {
  margin-top: 40px;
  margin-bottom: 70px;
}

.haper-about-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.haper-about-feature-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.haper-about-feature-item__icon-box {
  width: 76px;
  height: 70px;
  background: rgba(212, 178, 106, 0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform var(--haper-transition-fast),
    background var(--haper-transition-fast);
}

.haper-about-feature-item:hover .haper-about-feature-item__icon-box {
  transform: scale(1.05);
  background: rgba(212, 178, 106, 0.28);
}

.haper-about-feature-item__icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.haper-about-feature-item__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.haper-about-feature-item__title {
  color: #00142f;
  margin: 0;
  line-height: 1.3;
  text-align: right;
  font-family: 'IRANSansXV';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
}

.haper-about-feature-item__sub {
  font-size: 14px;
  font-weight: 400;
  color: #748397;
  margin: 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   About Us Page Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .haper-about-showcase-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
  }

  .haper-about-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .haper-about-hero__content {
    padding: 36px 44px;
  }
}

@media (max-width: 992px) {
  .haper-about-showcase-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .haper-about-showcase-card {
    min-height: 380px;
  }

  .haper-about-features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .haper-about-hero__banner {
    min-height: 340px;
    -webkit-mask-image: none;
    mask-image: none;
    border-radius: 20px;
  }

  .haper-about-hero__content {
    padding: 24px 20px;
    max-width: 100%;
  }

  .haper-about-hero__logo img {
    width: 56px;
  }

  .haper-about-hero__subtitle-en {
    font-size: 18px;
  }

  .haper-about-hero__title-fa {
    font-size: 20px;
  }

  .haper-about-hero__desc {
    font-size: 14px;
  }

  .haper-about-hero__nav {
    display: none;
  }

  .haper-about-stats__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .haper-about-stat-card {
    border-radius: 18px;
    padding: 16px 20px;
  }

  .haper-about-stat-card__value {
    font-size: 26px;
  }

  .haper-about-stat-card__title {
    font-size: 14px;
  }

  .haper-about-stat-card__desc {
    font-size: 13px;
  }

  .haper-about-showcase-card {
    border-radius: 20px;
    min-height: 280px;
  }

  .haper-about-showcase-card__overlay {
    padding: 16px 20px;
  }

  .haper-about-showcase-card__text-en {
    font-size: 16px;
  }

  .haper-about-showcase-card__text-fa {
    font-size: 13px;
  }

  .haper-about-brand-card {
    border-radius: 24px;
    height: auto;
    min-height: 145px;
    padding: 20px 24px 20px 180px;
    padding-inline-start: 24px;
    padding-inline-end: 180px;
    overflow: visible;
  }

  .haper-about-brand-card__info {
    width: auto;
    align-items: flex-end;
    text-align: right;
    margin-bottom: 0;
  }

  .haper-about-brand-card__media {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 190px;
    height: auto;
    justify-content: flex-start;
  }

  .haper-about-brand-card__img {
    max-width: 190px;
  }

  .haper-about-features__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .haper-about-feature-item__icon-box {
    width: 64px;
    height: 60px;
  }

  .haper-about-feature-item__icon-img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .haper-about-stat-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .haper-about-stat-card__divider {
    display: none;
  }

  .haper-about-stat-card__metric {
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
  }

  .haper-about-showcase-card__overlay {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
  }

  .haper-about-brand-card {
    padding: 16px 18px 16px 145px;
    padding-inline-start: 18px;
    padding-inline-end: 145px;
    border-radius: 20px;
    min-height: 130px;
  }

  .haper-about-brand-card__media {
    left: -12px;
    width: 150px;
  }

  .haper-about-brand-card__img {
    max-width: 150px;
  }

  .haper-about-brand-card__title {
    font-size: 18px;
  }
}

/* Mega menu tab shape on hover */
.haper-mega-menu__tab-btn {
  position: relative;
}

.haper-mega-menu__tab-btn::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 24px;
  background: var(--haper-gold-5, #d4b26a);
  border-radius: 0 6px 6px 0;
  opacity: 0;
  transition: opacity var(--haper-transition-fast);
}

.haper-mega-menu__tab-btn:hover::after,
.haper-mega-menu__tab-btn.is-active::after {
  opacity: 1;
}

/* ==========================================================================\n   Header V2 - Figma implementation\n   ========================================================================== */
.site-header {
  background: transparent;
  isolation: isolate;
}

.site-header .haper-top-bar {
  position: relative;
  z-index: 160;
  min-height: 61px;
  padding: 0;
  background: #f0f6fd;
  border: 0;
  border-radius: 80px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  color: #35445a;
}

.site-header .haper-top-bar__inner {
  min-height: 61px;
  padding-inline: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header .haper-top-bar__social {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.site-header .haper-top-bar__social-title {
  color: #35445a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.site-header .haper-top-bar__social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .haper-top-bar__social-circle {
  width: 22px;
  height: 22px;
  padding: 0;
  color: #c79f4c;
  border: 0;
  background: transparent;
}

.site-header .haper-top-bar__social-circle:hover {
  color: #ad9156;
  transform: translateY(-1px);
}

.site-header .haper-top-bar__navigation {
  display: flex;
  align-items: center;
  gap: 27px;
  min-width: 0;
}

.site-header .haper-topbar-categories-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 0;
  margin: 0;
  color: #c79f4c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-header .haper-topbar-categories-btn:hover,
.site-header .haper-topbar-categories-btn[aria-expanded="true"] {
  color: #ad9156;
}

.site-header .haper-topbar-nav,
.site-header .haper-topbar-nav__list {
  margin: 0;
  padding: 0;
}

.site-header .haper-topbar-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 27px;
}

.site-header .haper-topbar-nav__list>li {
  margin: 0;
  padding: 0;
}

.site-header .haper-topbar-nav__list>li>a {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  color: #35445a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-header .haper-topbar-nav__list>li>a:hover,
.site-header .haper-topbar-nav__list>li.current-menu-item>a,
.site-header .haper-topbar-nav__list>li.current-menu-ancestor>a {
  color: #c79f4c;
}

.site-header .haper-main-header {
  position: relative;
  z-index: 110;
  min-height: 78px;
  padding: 16px 0 14px;
  background: transparent;
  border: 0;
}

.site-header .haper-main-header__inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header .haper-main-header__start {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header .haper-main-header__end {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .haper-branding {
  flex: 0 0 auto;
}

.site-header .haper-logo-link,
.site-header .haper-logo-box {
  width: 112px;
  height: 48px;
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px 12px;
  box-sizing: border-box;
  border-radius: 14px;
  background: #d9e2ec;
  text-decoration: none;
}

.site-header .haper-logo-link:hover,
.site-header .haper-logo-box:hover {
  background: #d1ddea;
}

.site-header .haper-logo-link .haper-header-logo-img,
.site-header .haper-logo-link .custom-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: none;
}

.site-header .haper-logo-link:hover .haper-header-logo-img,
.site-header .haper-logo-link:hover .custom-logo {
  transform: none;
}

.site-header .haper-logo-text {
  color: #6c7f99;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.site-header .haper-header-search {
  width: min(430px, 42vw);
  height: 48px;
  flex: 0 1 430px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 16px;
  box-sizing: border-box;
  border-radius: 14px;
  background: #d9e2ec;
  color: #7e8ca0;
}

.site-header .haper-header-search__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8b99ac;
}

.site-header .haper-header-search__input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #35445a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
}

.site-header .haper-header-search__input::placeholder {
  color: #8e9bad;
  opacity: 1;
}

.site-header .haper-header-search__input::-webkit-search-cancel-button {
  display: none;
}

.site-header .haper-header-cart-wrap {
  position: relative;
}

.site-header .haper-cart-pill {
  min-width: 138px;
  height: 48px;
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 14px;
  background: #d9e2ec;
  color: #19273b;
  box-shadow: none;
}

.site-header .haper-cart-pill:hover,
.site-header .haper-header-cart-wrap.is-open .haper-cart-pill {
  background: #d1ddea;
  box-shadow: none;
}

.site-header .haper-cart-pill__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #35445a;
  border-inline-end: 1px solid rgba(53, 68, 90, 0.12);
  padding-inline-end: 8px;
  box-sizing: content-box;
}

.site-header .haper-cart-pill__badge {
  min-width: 74px;
  padding: 0;
  background: transparent;
  display: flex;
  direction: rtl;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.site-header .haper-cart-pill__count {
  color: #c79f4c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
}

.site-header .haper-cart-pill__total {
  color: #35445a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.site-header .haper-header-account-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.site-header .haper-account-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #d9e2ec;
  color: #35445a;
  box-shadow: none;
}

.site-header .haper-account-btn:hover,
.site-header .haper-header-account-wrap.is-open .haper-account-btn {
  background: #d1ddea;
  transform: none;
}

.site-header .haper-account-chevron-btn {
  width: 24px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #35445a;
}

.site-header .haper-mini-cart-dropdown,
.site-header .haper-user-dropdown {
  top: calc(100% + 12px);
}

.site-header .haper-header-backdrop {
  position: fixed;
  z-index: 120;
  inset-inline: 0;
  bottom: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-header .haper-header-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-header .haper-mega-menu {
  position: absolute;
  z-index: 150;
  top: 77px;
  inset-inline: 0;
  width: 100%;
  padding-top: 9px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.site-header .haper-mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.site-header .haper-mega-menu__container {
  width: 100%;
  max-width: 1288px;
  padding-inline: 0;
}

.site-header .haper-mega-menu__card {
  min-height: 382px;
  display: flex;
  align-items: stretch;
  gap: 28px;
  padding: 24px 28px;
  box-sizing: border-box;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  overflow: visible;
}

.site-header .haper-mega-menu__sidebar {
  width: 250px;
  min-width: 250px;
  flex: 0 0 250px;
  align-self: stretch;
}

.site-header .haper-mega-menu__tabs-container {
  height: 100%;
  min-height: 334px;
  padding: 14px 12px;
  border-radius: 30px;
  background: #19273b;
  display: flex;
  align-items: center;
}

.site-header .haper-mega-menu__tabs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
}

.site-header .haper-mega-menu__tab-item {
  position: relative;
}

.site-header .haper-mega-menu__tab-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 47px;
  padding: 10px 17px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  background: #354a65;
  color: #ffffff;
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  overflow: visible;
}

.site-header .haper-mega-menu__tab-btn::after {
  display: none;
}

.site-header .haper-mega-menu__tab-btn::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 18px solid #ddb85f;
  transform: translateY(-50%) scaleX(0);
  transform-origin: right center;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-header .haper-mega-menu__tab-btn:hover {
  background: #405673;
}

.site-header .haper-mega-menu__tab-btn.is-active {
  background: #ddb85f;
  color: #ffffff;
  box-shadow: none;
  font-weight: 500;
}

.site-header .haper-mega-menu__tab-btn.is-active::before {
  opacity: 1;
  transform: translateY(-50%) scaleX(1);
}

.site-header .haper-mega-menu__tab-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header .haper-mega-menu__content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 0 4px;
}

.site-header .haper-mega-menu__panel {
  display: none;
  height: 100%;
}

.site-header .haper-mega-menu__panel.is-active {
  display: block;
}

.site-header .haper-mega-menu__grid {
  width: 100%;
  min-height: 310px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.site-header .haper-mega-menu__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-inline: 24px;
  border: 0;
  border-inline-end: 1px solid #d9e2ec;
}

.site-header .haper-mega-menu__col:first-child {
  border-inline-end: 1px solid #d9e2ec;
}

.site-header .haper-mega-menu__col:last-child {
  border-inline-end: 0;
}

.site-header .haper-mega-menu__group {
  min-width: 0;
}

.site-header .haper-mega-menu__title {
  margin: 0 0 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.site-header .haper-mega-menu__diamond {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  display: inline-block;
  background: #ddb85f;
  transform: rotate(45deg);
}

.site-header .haper-mega-menu__title-link {
  color: #c79f4c;
  text-decoration: none;
}

.site-header .haper-mega-menu__title-link:hover {
  color: #ad9156;
}

.site-header .haper-mega-menu__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .haper-mega-menu__link {
  display: inline-block;
  color: #607087;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  transition: color 0.18s ease, transform 0.18s ease;
}

.site-header .haper-mega-menu__link:hover {
  color: #19273b;
  transform: translateX(-2px);
}

/* Mobile side drawer. */
.site-header .haper-mobile-drawer {
  position: fixed;
  z-index: 310;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header .haper-mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 390px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f0f6fd;
  box-shadow: -16px 0 48px rgba(25, 39, 59, 0.18);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  overflow: hidden;
}

.site-header .haper-mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.site-header .haper-mobile-drawer.is-open .haper-mobile-drawer__panel {
  transform: translateX(0);
}

.site-header .haper-mobile-drawer__header {
  min-height: 72px;
  padding: 12px 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(53, 68, 90, 0.08);
}

.site-header .haper-mobile-drawer__logo {
  width: 112px;
  height: 44px;
  padding: 7px 10px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 13px;
  background: #d9e2ec;
  color: #35445a;
  text-decoration: none;
}

.site-header .haper-mobile-drawer__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-header .haper-mobile-drawer__close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #d9e2ec;
  color: #35445a;
  cursor: pointer;
}

.site-header .haper-mobile-drawer__search {
  height: 46px;
  margin: 12px 16px 4px;
  padding-inline: 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 13px;
  background: #d9e2ec;
  color: #7e8ca0;
}

.site-header .haper-mobile-drawer__search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #35445a;
  font-family: inherit;
  font-size: 14px;
}

.site-header .haper-mobile-drawer__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 16px 24px;
}

.site-header .haper-mobile-primary-nav__list {
  margin: 0;
  padding: 0 0 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(53, 68, 90, 0.1);
}

.site-header .haper-mobile-primary-nav__list>li>a {
  min-height: 44px;
  padding: 10px 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  border-radius: 11px;
  color: #35445a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.site-header .haper-mobile-primary-nav__list>li.current-menu-item>a,
.site-header .haper-mobile-primary-nav__list>li>a:hover {
  background: rgba(217, 226, 236, 0.7);
  color: #c79f4c;
}

.site-header .haper-mobile-categories {
  padding-top: 18px;
}

.site-header .haper-mobile-categories__heading {
  margin: 0 0 10px;
  color: #19273b;
  font-size: 15px;
  font-weight: 600;
}

.site-header .haper-mobile-categories__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.site-header .haper-mobile-category {
  overflow: hidden;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid rgba(53, 68, 90, 0.07);
}

.site-header .haper-mobile-category__toggle {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #35445a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.site-header .haper-mobile-category__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.site-header .haper-mobile-category__icon {
  display: inline-flex;
  color: #c79f4c;
}

.site-header .haper-mobile-category__arrow {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.site-header .haper-mobile-category__toggle[aria-expanded="true"] .haper-mobile-category__arrow {
  transform: rotate(180deg);
}

.site-header .haper-mobile-category__content {
  display: none;
  padding: 2px 14px 14px;
}

.site-header .haper-mobile-category__content.is-open {
  display: block;
}

.site-header .haper-mobile-category__all {
  display: inline-block;
  margin-bottom: 12px;
  color: #c79f4c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.site-header .haper-mobile-category__group+.haper-mobile-category__group {
  margin-top: 14px;
}

.site-header .haper-mobile-category__group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #35445a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.site-header .haper-mobile-category__diamond {
  width: 7px;
  height: 7px;
  background: #ddb85f;
  transform: rotate(45deg);
}

.site-header .haper-mobile-category__group ul {
  margin: 8px 15px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.site-header .haper-mobile-category__group li a {
  color: #607087;
  text-decoration: none;
  font-size: 13px;
}

.site-header .haper-mobile-drawer__footer {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(53, 68, 90, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header .haper-mobile-drawer__social-title {
  color: #607087;
  font-size: 12px;
}

.site-header .haper-mobile-drawer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .haper-mobile-drawer__socials a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c79f4c;
  text-decoration: none;
}

body.haper-mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .site-header .haper-top-bar__inner {
    padding-inline: 28px;
  }

  .site-header .haper-top-bar__navigation,
  .site-header .haper-topbar-nav__list {
    gap: 18px;
  }

  .site-header .haper-header-search {
    width: min(360px, 36vw);
    flex-basis: 360px;
  }

  .site-header .haper-mega-menu__container {
    width: calc(100% - 48px);
  }

  .site-header .haper-mega-menu__sidebar {
    width: 220px;
    min-width: 220px;
    flex-basis: 220px;
  }

  .site-header .haper-mega-menu__col {
    padding-inline: 16px;
  }
}

@media (max-width: 991px) {
  .site-header .haper-top-bar {
    display: none;
  }

  .site-header .haper-main-header {
    min-height: 68px;
    padding: 10px 0;
    background: #f0f6fd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }

  .site-header .haper-main-header__inner {
    padding-inline: 16px;
    gap: 10px;
  }

  .site-header .haper-main-header__start {
    flex: 0 1 auto;
  }

  .site-header .haper-header-search {
    display: none;
  }

  .site-header .haper-logo-link,
  .site-header .haper-logo-box {
    width: 100px;
    min-width: 100px;
    height: 46px;
  }

  .site-header .haper-main-header__end {
    margin-inline-start: auto;
    gap: 7px;
  }

  .site-header .haper-mobile-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #d9e2ec;
    color: #35445a;
  }

  .site-header .haper-mega-menu {
    display: none !important;
  }

  .site-header .haper-header-backdrop {
    z-index: 300;
  }

  .site-header .haper-header-backdrop.is-mobile {
    top: 0 !important;
  }

  .site-header .haper-mini-cart-dropdown,
  .site-header .haper-user-dropdown {
    z-index: 330;
  }
}

@media (max-width: 600px) {
  .site-header .haper-main-header__inner {
    padding-inline: 10px;
  }

  .site-header .haper-logo-link,
  .site-header .haper-logo-box {
    width: 84px;
    min-width: 84px;
    height: 42px;
    border-radius: 12px;
    padding: 6px 8px;
  }

  .site-header .haper-account-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .site-header .haper-account-chevron-btn {
    display: none;
  }

  .site-header .haper-cart-pill {
    min-width: 44px;
    width: 44px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }

  .site-header .haper-cart-pill__icon {
    width: auto;
    height: auto;
    flex-basis: auto;
    border: 0;
    padding: 0;
  }

  .site-header .haper-cart-pill__badge {
    display: none;
  }

  .site-header .haper-mobile-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .site-header .haper-mini-cart-dropdown,
  .site-header .haper-user-dropdown {
    top: 72px;
  }

  .site-header .haper-mobile-drawer__panel {
    width: min(92vw, 370px);
  }
}

/* ==========================================================================
   Header Mega Menu — Figma sidebar SVG background
   Source: Group 345406.svg
   ========================================================================== */
@media (min-width: 992px) {
  .site-header .haper-mega-menu__sidebar {
    width: 234px;
    min-width: 234px;
    flex: 0 0 234px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
  }

  .site-header .haper-mega-menu__tabs-container {
    width: 234px;
    height: 272px;
    min-height: 272px;
    padding: 8px 12px;
    border-radius: 0;
    background-color: transparent;
    background-image: url("assets/img/header/mega-menu-sidebar-bg.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 234px 272px;
    box-sizing: border-box;
    overflow: visible;
    display: flex;
    align-items: center;
  }

  .site-header .haper-mega-menu__tabs {
    width: 100%;
    gap: 8px;
  }

  .site-header .haper-mega-menu__tab-btn {
    min-height: 43px;
    padding: 8px 14px;
    border-radius: 12px;
  }

  /* The gold side accent is part of the supplied SVG itself. */
  .site-header .haper-mega-menu__tab-btn::before,
  .site-header .haper-mega-menu__tab-btn::after {
    display: none !important;
  }

  .site-header .haper-mega-menu__tab-btn.is-active {
    background: #d4b26a;
  }
}

/* ==========================================================================
   Home Page — Figma node 190:4503
   All rules are scoped to the homepage implementation to avoid cross-page
   regressions. Static hero geometry uses the supplied Figma SVG assets.
   ========================================================================== */
.haper-home-page {
  --haper-home-max: 1296px;
  --haper-home-bg: #f0f6fd;
  --haper-home-surface: #d9e2ec;
  --haper-home-navy: #19273b;
  --haper-home-gold: #d4b26a;
  width: 100%;
  margin: 0;
  padding: 26px 0 86px;
  background: var(--haper-home-bg);
  color: var(--haper-navy-5, #19273b);
  overflow: hidden;
}

.haper-home-page *,
.haper-home-page *::before,
.haper-home-page *::after {
  box-sizing: border-box;
}

.haper-home-shell {
  width: min(var(--haper-home-max), calc(100% - 48px));
  margin-inline: auto;
}

.haper-home-hero-shell {
  width: min(1344px, calc(100% - 32px));
  margin-inline: auto;
}

.haper-home-page a {
  text-decoration: none;
}

/* Shared Figma section heading. */
.haper-home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  margin: 0 0 30px;
  direction: ltr;
}

.haper-home-section-heading__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
}

.haper-home-section-heading__title {
  margin: 0;
  color: var(--haper-home-navy);
  font-family: var(--haper-font-doran);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.haper-home-section-heading__ornament {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 60px;
  height: 16px;
}

.haper-home-section-heading__line {
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 43px;
  height: 1px;
  background: var(--haper-home-gold);
  opacity: 0.8;
}

.haper-home-section-heading__circle {
  position: absolute;
  inset-inline-start: 42px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--haper-home-gold);
  border-radius: 50%;
  background: var(--haper-home-bg);
  transform: translateY(-50%);
}

.haper-home-section-heading__diamond {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--haper-home-gold);
  transform: translateY(-50%) rotate(45deg);
}

.haper-home-section-heading__diamond--large {
  inset-inline-end: 1px;
}

.haper-home-section-heading__diamond--small {
  inset-inline-end: -7px;
  width: 7px;
  height: 7px;
  opacity: 0.72;
}

.haper-home-section-heading__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 5px 8px 5px 14px;
  border-radius: 14px;
  background: #d9e2ec;
  color: var(--haper-navy-4, #35445a);
  direction: ltr;
  font-size: 13px;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.haper-home-section-heading__all:hover {
  background: #cfdae6;
  transform: translateX(-2px);
}

.haper-home-section-heading__all svg {
  flex: 0 0 auto;
}

/* Hero — exact supplied Subtract / Group 299 / Group 54 assets. */
.haper-home-hero {
  position: relative;
  width: 100%;
}

.haper-home-hero__stage {
  position: relative;
  width: calc(100% - 24px);
  max-width: 1320px;
  aspect-ratio: 1320 / 429;
  margin-inline: auto;
  isolation: isolate;
}

.haper-home-hero__frame,
.haper-home-hero__lines,
.haper-home-hero__glow,
.haper-home-hero__slides,
.haper-home-hero__slide,
.haper-home-hero__slide-link {
  position: absolute;
  inset: 0;
}

.haper-home-hero__frame {
  z-index: 0;
  background: url("assets/img/home/hero-frame.svg") center / 100% 100% no-repeat;
}

.haper-home-hero__lines {
  z-index: 1;
  display: block;
  width: 1320px;
  height: 429px;
  max-width: 100%;
  object-fit: fill;
  pointer-events: none;
}

.haper-home-hero__glow {
  z-index: 2;
  top: 0;
  right: 50%;
  left: auto;
  display: block;
  width: 61.82%;
  height: 100%;
  object-fit: fill;
  transform: translateX(50%);
  pointer-events: none;
}

.haper-home-hero__slides {
  z-index: 3;
}

.haper-home-hero__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 450ms ease, visibility 450ms ease;
  pointer-events: none;
}

.haper-home-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.haper-home-hero__slide-link {
  color: inherit;
}

.haper-home-hero__product {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 35%;
  height: 94%;
  transform: translateX(-50%);
  pointer-events: none;
}

.haper-home-hero__product-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 16px rgba(3, 15, 32, 0.22));
}

.haper-home-hero__copy {
  z-index: 5;
  color: #fff;
  pointer-events: none;
}

.haper-home-hero__copy--right {
  position: absolute;
  top: 37%;
  right: 5.4%;
  width: 19%;
  height: 35%;
}

.haper-home-hero__title {
  position: absolute;
  top: 10%;
  right: 0;
  width: 52%;
  margin: 0;
  color: #fff;
  font-family: var(--haper-font-doran);
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 500;
  line-height: 1.55;
  text-align: right;
}

.haper-home-hero__brand {
  position: absolute;
  top: -2%;
  right: 54%;
  height: 95%;
  margin: 0;
  color: #fff;
  font-family: var(--haper-font-doran-fanum);
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 400;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.95;
}

.haper-home-hero__copy--left {
  display: contents;
}

.haper-home-hero__tagline {
  position: absolute;
  z-index: 5;
  top: 42%;
  left: 63.5%;
  width: 16.5%;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--haper-font-doran);
  font-size: clamp(18px, 1.75vw, 30px);
  font-weight: 300;
  line-height: 1.5;
  direction: ltr;
  text-align: left;
}

.haper-home-hero__tagline::before,
.haper-home-hero__tagline::after,
.haper-home-hero__description::before,
.haper-home-hero__description::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.haper-home-hero__tagline::before,
.haper-home-hero__description::before {
  top: -13px;
}

.haper-home-hero__tagline::after,
.haper-home-hero__description::after {
  bottom: -13px;
}

.haper-home-hero__description {
  position: absolute;
  z-index: 5;
  top: 44%;
  left: 6.1%;
  width: 28%;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(11px, 1.05vw, 15px);
  font-weight: 400;
  line-height: 2;
  text-align: right;
}

.haper-home-hero__nav {
  position: absolute;
  z-index: 8;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(212, 178, 106, 0.72);
  border-radius: 50%;
  background: var(--haper-home-bg);
  color: var(--haper-home-gold);
  transform: translateY(-50%);
  cursor: pointer;
}

.haper-home-hero__nav--prev {
  left: -25px;
}

.haper-home-hero__nav--next {
  right: -25px;
}

/* Product strip directly below hero. */
.haper-home-hero-products {
  position: relative;
  z-index: 4;
  min-height: 161px;
  margin-top: 20px;
  padding: 26px 0 25px;
  background: #d9e2ec;
  border-radius: 28px;
  overflow: hidden;
}

.haper-home-hero-products__track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  min-height: 110px;
}

.haper-home-hero-products__item {
  display: flex;
  flex-direction: row-reverse;
  ;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 18px;
  color: var(--haper-home-navy);
  direction: rtl;
}

.haper-home-hero-products__content {
  min-width: 0;
}

.haper-home-hero-products__title {
  min-height: 48px;
  margin: 0 0 5px;
  color: var(--haper-home-navy);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.haper-home-hero-products__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--haper-home-gold);
  font-size: 12px;
  direction: ltr;
}

.haper-home-hero-products__price strong {
  font-family: var(--haper-font-doran-fanum);
  font-size: 18px;
  font-weight: 500;
}

.haper-home-hero-products__divider {
  display: block;
  width: 1px;
  height: 80px;
  background: rgba(25, 39, 59, 0.12);
}

.haper-home-hero-products__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 110px;
}

.haper-home-hero-products__image img {
  max-width: 88px;
  max-height: 108px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Collection row. */
.haper-home-collections {
  margin-top: 70px;
}

.haper-home-collections__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.haper-home-collection-card {
  position: relative;
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: center;
  height: 160px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.haper-home-collection-card--navy {
  background: radial-gradient(circle at 15% 25%, #6b9bd0 0, #355474 34%, #19273b 78%);
}

.haper-home-collection-card--gold {
  background: radial-gradient(circle at 18% 25%, #ffe59a 0, #e0b74f 42%, #c79936 100%);
}

.haper-home-collection-card__image-wrap {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 0 0 8px;
}

.haper-home-collection-card__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 154px;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .18));
}

.haper-home-collection-card__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 10px 18px 10px 4px;
  text-align: right;
}

.haper-home-collection-card__title-en {
  font-family: var(--haper-font-doran);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.25;
  direction: ltr;
}

.haper-home-collection-card__subline {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin: 2px 0 12px;
  direction: ltr;
  opacity: .72;
}

.haper-home-collection-card__subline span {
  flex: 1;
  height: 1px;
  background: currentColor;
}

.haper-home-collection-card__subline small {
  font-size: 9px;
}

.haper-home-collection-card__title-fa {
  font-size: 12px;
  font-weight: 500;
}

.haper-home-collection-card__diamond {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 8px;
  height: 8px;
  background: #0f1723;
  transform: rotate(45deg);
}

.haper-home-collection-card--navy .haper-home-collection-card__diamond {
  background: var(--haper-home-gold);
}

/* Best sellers — reuse the canonical archive card. */
.haper-home-products {
  margin-top: 76px;
}

.haper-home-products__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.haper-home-products__grid .haper-product-card--archive {
  width: 100%;
  min-width: 0;
}

/* Paired promotional cards. */
.haper-home-promos {
  margin-top: 82px;
}

.haper-home-promos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.haper-home-promo-card {
  position: relative;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  min-height: 246px;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.haper-home-promo-card--navy {
  background-color: var(--haper-home-navy);
  background-image: radial-gradient(circle at 25% 50%, rgba(74, 101, 139, .68), transparent 38%);
}

.haper-home-promo-card--gold {
  background-color: #cf9d36;
  background-image: radial-gradient(circle at 28% 50%, rgba(255, 239, 178, .72), transparent 42%);
}

.haper-home-promo-card__image-wrap {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.haper-home-promo-card__image {
  display: block;
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.haper-home-promo-card__copy {
  position: relative;
  z-index: 3;
  padding: 32px 38px;
  text-align: right;
}

.haper-home-promo-card__copy h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.7;
}

.haper-home-promo-card__copy p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  line-height: 1.9;
}

.haper-home-promo-card__copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 30px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--haper-home-navy);
  font-size: 11px;
  font-weight: 600;
}

.haper-home-promo-card__decor span {
  position: absolute;
  z-index: 4;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
}

.haper-home-promo-card__decor span:nth-child(1) {
  top: 18px;
  left: 45%;
}

.haper-home-promo-card__decor span:nth-child(2) {
  right: 32px;
  top: 30px;
  width: 8px;
  height: 8px;
  background: var(--haper-home-gold);
}

.haper-home-promo-card__decor span:nth-child(3) {
  right: 32px;
  bottom: 28px;
  width: 8px;
  height: 8px;
  background: var(--haper-home-gold);
}

/* Special offers — Figma Frame 62. */
.haper-home-special {
  margin-top: 0;
}

.haper-home-promos+.haper-home-section-heading,
.haper-home-special+.haper-home-section-heading,
.haper-home-bundles+.haper-home-golden,
.haper-home-golden+.haper-home-section-heading,
.haper-home-brands+.haper-home-section-heading {
  margin-top: 76px;
}

.haper-home-special__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #d9e3ee;
  background: #f0f6fd;
}

.haper-home-special-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  min-width: 0;
  min-height: 180px;
  direction: rtl;
  background: #f0f6fd;
  border-inline-end: 1px solid #d9e3ee;
  border-bottom: 1px solid #d9e3ee;
  overflow: hidden;
}

.haper-home-special-card:nth-child(3n) {
  border-inline-end: 0;
}

.haper-home-special-card:nth-last-child(-n+3) {
  border-bottom: 0;
}

.haper-home-special-card__content {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 18px 20px 22px;
}

.haper-home-special-card__media {
  grid-column: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 24px 12px 15px;
}

.haper-home-special-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 122px;
}

.haper-home-special-card__image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96px;
  max-height: 116px;
  object-fit: contain;
}

.haper-home-special-card__wish {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b6c5d6;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

.haper-home-special-card__wish:hover {
  color: #8291a4;
  transform: translateY(-1px);
}

.haper-home-special-card__wish.is-active {
  color: #d4b26a;
}

.haper-home-special-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 18px;
  color: #53665f;
  font-size: 11px;
  line-height: 1.4;
}

.haper-home-special-card__temperament,
.haper-home-special-card__volume {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.haper-home-special-card__temperament svg,
.haper-home-special-card__volume svg {
  flex: 0 0 auto;
  color: #d4b26a;
}

.haper-home-special-card__title {
  margin: 14px 0 0;
  min-height: 50px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  text-align: right;
  font-family: 'IRANSansX';
}

.haper-home-special-card__title a {
  color: #35445a;
}

.haper-home-special-card__commerce {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  direction: ltr;
}

.haper-home-special-card__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 92px;
  direction: rtl;
}

.haper-home-special-card__regular-row,
.haper-home-special-card__sale-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.haper-home-special-card__regular-row del {
  color: #8291a4;
  font-size: 10px;
  line-height: 1;
}

.haper-home-special-card__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 17px;
  padding: 0 5px;
  border-radius: 5px;
  background: #d4b26a;
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.haper-home-special-card__sale-row {
  color: #35445a;
  font-size: 11px;
}

.haper-home-special-card__sale-row strong {
  color: #c79f4c;
  font-family: var(--haper-font-doran-fanum);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}

.haper-home-special-card__purchase-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  direction: ltr;
}

.haper-home-special-card__cart,
.woocommerce .haper-home-special-card__cart.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #d9e3ee;
  box-shadow: none;
  color: #8291a4;
  line-height: 1;
  transition: transform .2s ease, background-color .2s ease;
}

.haper-home-special-card__cart:hover,
.woocommerce .haper-home-special-card__cart.button:hover {
  background: #d0dce8;
  transform: translateY(-1px);
}

.haper-home-special-card__cart svg {
  width: 20px;
  height: 20px;
}

.haper-home-special-card__credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 48px;
  min-height: 40px;
  color: #8291a4;
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
}

.haper-home-special-card__credit img {
  display: block;
  width: auto;
  height: 40px;
  max-width: 48px;
  object-fit: contain;
}

.haper-home-special-card__credit span {
  display: block;
  white-space: nowrap;
}

/* Recommended product sets. */
.haper-home-bundles {
  position: relative;
}

.haper-home-bundles__grid {
  display: grid;
  grid-template-columns: repeat(4, 306px);
  gap: 24px;
  width: 100%;
  justify-content: center;
  padding-top: 18px;
}

.haper-home-bundle-card {
  position: relative;
  width: 306px;
  height: 446px;
  color: var(--haper-navy-4);
  background-image: url("assets/img/home/bundle-card.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 306px 446px;
  transition: background-image var(--haper-transition-fast);
}

.haper-home-bundle-card:hover,
.haper-home-bundle-card:focus-within {
  background-image: url("assets/img/home/bundle-card-hover.svg");
}

.haper-home-bundle-card__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 28px 16px 32px;
}

.haper-home-bundle-card__badge {
  position: absolute;
  z-index: 5;
  top: -22px;
  right: 16px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 92px;
  height: 34px;
  padding: 0 8px 4px;
  background: url("assets/img/home/bundle-badge.svg") center / 92px 34px no-repeat;
  color: var(--haper-navy-4);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.haper-home-bundle-card__badge::after {
  content: "";
  position: absolute;
  right: 43px;
  bottom: -10px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--haper-home-bg);
  border-radius: 50%;
  background: var(--haper-gold-5);
  box-shadow: 0 0 0 1px rgba(212, 178, 106, 0.14);
}

.haper-home-bundle-card__badge-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--haper-navy-4);
}

.haper-home-bundle-card__badge-icon svg {
  display: block;
}

.haper-home-bundle-card__header {
  flex: 0 0 54px;
  text-align: center;
}

.haper-home-bundle-card__title {
  margin: 0;
  color: var(--haper-navy-4);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.haper-home-bundle-card__subtitle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 20px;
  margin-top: 2px;
  color: var(--haper-navy-1-5);
  font-family: Gilan, IRANSansX, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  direction: ltr;
}

.haper-home-bundle-card__subtitle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--haper-navy-0);
}

.haper-home-bundle-card__media {
  display: grid;
  grid-template-columns: 140px 124px;
  gap: 10px;
  align-items: center;
  width: 274px;
  height: 140px;
  margin-top: 8px;
  direction: rtl;
}

.haper-home-bundle-card__main-image {
  width: 140px;
  height: 140px;
}

.haper-home-bundle-card__main-image img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.haper-home-bundle-card__thumbs {
  display: grid;
  grid-template-columns: repeat(2, 56px);
  grid-auto-rows: 56px;
  gap: 8px;
  align-content: center;
  justify-content: center;
  width: 124px;
  height: 124px;
  direction: rtl;
}

.haper-home-bundle-card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid rgba(182, 197, 214, 0.72);
  border-radius: 8px;
  background: var(--haper-home-bg);
}

.haper-home-bundle-card__thumb img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.haper-home-bundle-card__contents {
  width: 274px;
  margin-top: 0;
}

.haper-home-bundle-card__primary-item,
.haper-home-bundle-card__tags span {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #d9e2ec;
  color: var(--haper-navy-4);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.haper-home-bundle-card__primary-item {
  width: 274px;
  height: 35px;
  padding: 6px 10px;
}

.haper-home-bundle-card__tags {
  display: grid;
  grid-template-columns: repeat(2, 132px);
  grid-auto-rows: 35px;
  gap: 10px;
  width: 274px;
  margin-top: 10px;
}

.haper-home-bundle-card__tags span {
  width: 132px;
  height: 35px;
  padding: 6px 8px;
}

.haper-home-bundle-card__footer {
  display: grid;
  grid-template-columns: 100px 158px;
  gap: 16px;
  align-items: end;
  width: 274px;
  height: 40px;
  margin-top: auto;
  direction: ltr;
}

.haper-home-bundle-card__price {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  height: 40px;
  direction: rtl;
}

.haper-home-bundle-card__price-top {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-height: 16px;
  direction: rtl;
}

.haper-home-bundle-card__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 17px;
  padding-inline: 4px;
  border-radius: 4px;
  background: var(--haper-gold-5);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.haper-home-bundle-card__price del {
  overflow: hidden;
  max-width: 68px;
  color: var(--haper-navy-1);
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-decoration-thickness: 1px;
}

.haper-home-bundle-card__current-price {
  display: flex;
  flex-direction: row-reverse;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  margin-top: 1px;
  color: var(--haper-gold-6);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  direction: rtl;
}

.haper-home-bundle-card__currency {
  color: var(--haper-navy-4);
  font-size: 10px;
  font-weight: 400;
}

.haper-home-bundle-card__amount {
  color: var(--haper-gold-6);
  font-size: 16px;
  font-weight: 500;
  direction: ltr;
}

.haper-home-bundle-card__button,
.woocommerce .haper-home-bundle-card__button.button {
  position: relative;
  display: block;
  width: 158px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: url("assets/img/home/bundle-order-button.svg") center / 158px 40px no-repeat;
  color: var(--haper-navy-4);
  font-size: 14px;
  font-weight: 400;
  line-height: 40px;
  text-decoration: none;
  transition: none;
}

.haper-home-bundle-card__button span {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 122px;
  height: 30px;
  line-height: 30px;
  text-align: center;
}

.haper-home-bundle-card:hover .haper-home-bundle-card__button,
.haper-home-bundle-card:focus-within .haper-home-bundle-card__button,
.woocommerce .haper-home-bundle-card:hover .haper-home-bundle-card__button.button,
.woocommerce .haper-home-bundle-card:focus-within .haper-home-bundle-card__button.button {
  background-image: url("assets/img/home/bundle-order-button-hover.svg");
  color: #fff;
}

/* Golden Friday banner. */
.haper-home-golden {
  margin-top: 76px;
}

.haper-home-golden__banner {
  position: relative;
  display: grid;
  grid-template-columns: 34% 32% 34%;
  align-items: center;
  min-height: 289px;
  border-radius: 30px;
  overflow: hidden;
  background-color: #cda044;
  background-image:
    radial-gradient(circle at 43% 50%, rgba(255, 255, 255, .55), transparent 21%),
    linear-gradient(95deg, #c59631, #e6bd62 50%, #c69533);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.haper-home-golden__english {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  direction: ltr;
}

.haper-home-golden__english strong {
  font-family: var(--haper-font-doran);
  font-size: clamp(27px, 3vw, 50px);
  font-weight: 300;
  line-height: 1.15;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.haper-home-golden__english span {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 72%;
  margin-top: 7px;
  font-size: 13px;
}

.haper-home-golden__english i {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .6);
}

.haper-home-golden__image-wrap {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.haper-home-golden__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 285px;
  object-fit: contain;
}

.haper-home-golden__copy {
  position: relative;
  padding: 30px 44px 30px 20px;
  text-align: right;
}

.haper-home-golden__copy h2 {
  margin: 0 0 12px;
  color: var(--haper-home-navy);
  font-size: 23px;
  font-weight: 700;
}

.haper-home-golden__copy p {
  margin: 0;
  color: var(--haper-home-navy);
  font-size: 15px;
  line-height: 1.8;
}

.haper-home-golden__diamond {
  position: absolute;
  right: 24px;
  bottom: -36px;
  width: 15px;
  height: 15px;
  background: #fff;
  transform: rotate(45deg);
}

/* Popular brands. */
.haper-home-brands__track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
}

.haper-home-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 187px;
  padding: 12px 14px;
  border-inline-start: 1px solid rgba(217, 226, 236, .8);
  background: rgba(255, 255, 255, .55);
  color: var(--haper-home-navy);
}

.haper-home-brand-card:first-child {
  border-inline-start: 0;
}

.haper-home-brand-card__latin {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  color: var(--haper-navy-4);
  font-family: var(--haper-font-doran);
  font-size: 10px;
  direction: ltr;
}

.haper-home-brand-card__latin i {
  width: 18px;
  height: 1px;
  background: #96aac8;
}

.haper-home-brand-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 103px;
  height: 103px;
  margin: 4px 0 8px;
}

.haper-home-brand-card__logo img {
  max-width: 94px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.haper-home-brand-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
}

.haper-home-brand-card__footer strong {
  min-width: 0;
  color: var(--haper-home-navy);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.haper-home-brand-card__footer small {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--haper-home-gold);
  color: #fff;
  font-size: 8px;
}

/* Blog composition. */
.haper-home-blog__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 24px;
  min-height: 356px;
  direction: ltr;
}

.haper-home-blog-feature {
  grid-column: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 356px;
  padding: 16px;
  border: 1px solid rgba(122, 141, 169, .32);
  border-radius: 26px;
  background: rgba(255, 255, 255, .25);
  direction: rtl;
  overflow: hidden;
}

.haper-home-blog-feature::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 50%;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(122, 141, 169, .32);
  border-radius: 50%;
  background: var(--haper-home-bg);
  transform: translateX(-50%);
  z-index: 2;
}

.haper-home-blog-feature__image {
  display: block;
  height: 227px;
  border-radius: 18px;
  overflow: hidden;
  background: #d9e2ec;
}

.haper-home-blog-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.haper-home-blog-feature__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  color: var(--haper-navy-3);
  font-size: 10px;
}

.haper-home-blog-feature__meta span,
.haper-home-blog-feature__meta time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.haper-home-blog-feature h3 {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
}

.haper-home-blog-feature h3 a {
  color: var(--haper-home-navy);
}

.haper-home-blog__small-grid {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  direction: rtl;
}

.haper-home-blog-small {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  min-height: 166px;
  border: 1px solid rgba(122, 141, 169, .3);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, .25);
}

.haper-home-blog-small::before {
  content: "";
  position: absolute;
  top: -27px;
  left: 30%;
  width: 58px;
  height: 48px;
  border: 1px solid rgba(122, 141, 169, .3);
  border-radius: 50%;
  background: var(--haper-home-bg);
  z-index: 2;
}

.haper-home-blog-small__image {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 10px;
  border-radius: 16px;
  overflow: hidden;
  background: #d9e2ec;
}

.haper-home-blog-small__image img {
  width: 100%;
  height: 100%;
  min-height: 144px;
  object-fit: cover;
}

.haper-home-blog-small__body {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 16px 10px 14px 16px;
  text-align: right;
}

.haper-home-blog-small__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--haper-navy-2);
  font-size: 9px;
}

.haper-home-blog-small h3 {
  margin: 15px 0 7px;
  font-size: 12px;
  line-height: 1.7;
}

.haper-home-blog-small h3 a {
  color: var(--haper-home-navy);
}

.haper-home-blog-small p {
  margin: 0;
  color: var(--haper-navy-3);
  font-size: 9px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Desktop/tablet tightening. */
@media (max-width: 1199px) {
  .haper-home-products__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .haper-home-hero-products__track {
    overflow-x: auto;
    grid-template-columns: repeat(5, 245px);
    scrollbar-width: none;
  }

  .haper-home-hero-products__track::-webkit-scrollbar {
    display: none;
  }

  .haper-home-brands__track {
    grid-template-columns: repeat(7, 185px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .haper-home-brands__track::-webkit-scrollbar {
    display: none;
  }

  .haper-home-blog__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .haper-home-blog-small {
    grid-template-columns: minmax(0, 1fr) 130px;
  }
}

@media (max-width: 991px) {
  .haper-home-page {
    padding-top: 18px;
  }

  .haper-home-shell {
    width: min(100% - 32px, var(--haper-home-max));
  }

  .haper-home-hero-shell {
    width: calc(100% - 24px);
  }

  .haper-home-hero__stage {
    width: 100%;
    aspect-ratio: 16 / 8.7;
    border-radius: 24px;
    overflow: hidden;
    background: var(--haper-home-navy);
  }

  .haper-home-hero__frame,
  .haper-home-hero__lines,
  .haper-home-hero__glow {
    width: 100%;
    height: 100%;
  }

  .haper-home-hero__product {
    width: 43%;
    height: 86%;
  }

  .haper-home-hero__copy--right {
    right: 4%;
    width: 26%;
  }

  .haper-home-hero__tagline {
    left: 59%;
    width: 18%;
  }

  .haper-home-hero__description {
    left: 4%;
    width: 30%;
  }

  .haper-home-hero__nav--prev {
    left: 8px;
  }

  .haper-home-hero__nav--next {
    right: 8px;
  }

  .haper-home-collections__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haper-home-products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .haper-home-special__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haper-home-promos__grid {
    grid-template-columns: 1fr;
  }

  .haper-home-golden__banner {
    grid-template-columns: 32% 32% 36%;
    min-height: 230px;
  }

  .haper-home-blog__layout {
    grid-template-columns: 1fr;
  }

  .haper-home-blog-feature,
  .haper-home-blog__small-grid {
    grid-column: 1;
  }

  .haper-home-blog-feature {
    width: 100%;
    max-width: 520px;
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .haper-home-page {
    padding-top: 12px;
    padding-bottom: 56px;
  }

  .haper-home-shell {
    width: calc(100% - 24px);
  }

  .haper-home-section-heading {
    min-height: 34px;
    margin-bottom: 20px;
  }

  .haper-home-section-heading__title {
    font-size: 17px;
  }

  .haper-home-section-heading__ornament {
    width: 48px;
  }

  .haper-home-section-heading__line {
    width: 31px;
  }

  .haper-home-section-heading__circle {
    inset-inline-start: 30px;
  }

  .haper-home-section-heading__all {
    min-height: 32px;
    padding-inline: 8px 11px;
    font-size: 11px;
  }

  .haper-home-hero__stage {
    min-height: 520px;
    aspect-ratio: auto;
  }

  .haper-home-hero__frame {
    background-size: auto 100%;
  }

  .haper-home-hero__glow {
    width: 125%;
    right: 50%;
  }

  .haper-home-hero__product {
    top: 55px;
    bottom: auto;
    width: 62%;
    height: 260px;
  }

  .haper-home-hero__copy--right {
    top: 24px;
    right: 20px;
    width: calc(100% - 40px);
    height: auto;
  }

  .haper-home-hero__title {
    position: static;
    width: 60%;
    font-size: 22px;
  }

  .haper-home-hero__brand {
    top: 2px;
    right: auto;
    left: 10px;
    height: 120px;
    font-size: 11px;
  }

  .haper-home-hero__tagline {
    top: 330px;
    left: 20px;
    width: calc(100% - 40px);
    font-size: 20px;
    text-align: center;
  }

  .haper-home-hero__description {
    top: 408px;
    left: 24px;
    width: calc(100% - 48px);
    font-size: 12px;
    text-align: center;
  }

  .haper-home-hero__nav {
    top: 52%;
  }

  .haper-home-hero-products {
    min-height: 130px;
    margin-top: 14px;
    padding: 14px 0;
    border-radius: 20px;
  }

  .haper-home-hero-products__track {
    grid-template-columns: repeat(5, 230px);
  }

  .haper-home-hero-products__item {
    grid-template-columns: minmax(0, 1fr) 1px 74px;
    padding-inline: 14px;
  }

  .haper-home-hero-products__image {
    width: 74px;
    height: 100px;
  }

  .haper-home-collections,
  .haper-home-products,
  .haper-home-promos,
  .haper-home-golden,
  .haper-home-promos+.haper-home-section-heading,
  .haper-home-special+.haper-home-section-heading,
  .haper-home-bundles+.haper-home-golden,
  .haper-home-golden+.haper-home-section-heading,
  .haper-home-brands+.haper-home-section-heading {
    margin-top: 52px;
  }

  .haper-home-collections__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .haper-home-collections__grid::-webkit-scrollbar,
  .haper-home-products__grid::-webkit-scrollbar,
  .haper-home-bundles__grid::-webkit-scrollbar,
  .haper-home-brands__track::-webkit-scrollbar {
    display: none;
  }

  .haper-home-collection-card {
    flex: 0 0 280px;
    height: 150px;
    scroll-snap-align: start;
  }

  .haper-home-products__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .haper-home-products__grid .haper-product-card--archive {
    flex: 0 0 235px;
    scroll-snap-align: start;
  }

  .haper-home-promo-card {
    min-height: 210px;
    border-radius: 24px;
  }

  .haper-home-promo-card__copy {
    padding: 20px;
  }

  .haper-home-promo-card__copy h3 {
    font-size: 18px;
  }

  .haper-home-special__grid {
    grid-template-columns: 1fr;
  }

  .haper-home-special-card {
    grid-template-columns: minmax(0, 1fr) 112px;
    min-height: 170px;
  }

  .haper-home-special-card__content {
    padding: 20px 14px 16px;
  }

  .haper-home-special-card__media {
    padding-inline: 8px;
  }

  .haper-home-special-card__meta {
    gap: 8px;
    font-size: 10px;
  }

  .haper-home-special-card__title {
    margin-top: 10px;
    font-size: 13px;
  }

  .haper-home-golden__banner {
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
    padding-top: 20px;
  }

  .haper-home-golden__english {
    grid-column: 1;
  }

  .haper-home-golden__image-wrap {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .haper-home-golden__copy {
    grid-column: 1;
    padding: 10px 18px 24px;
  }

  .haper-home-golden__copy h2 {
    font-size: 17px;
  }

  .haper-home-golden__copy p {
    font-size: 12px;
  }

  .haper-home-golden__english strong {
    font-size: 25px;
  }

  .haper-home-brands__track {
    grid-template-columns: repeat(7, 170px);
  }

  .haper-home-blog-feature {
    height: auto;
    min-height: 350px;
  }

  .haper-home-blog__small-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .haper-home-blog-small {
    grid-template-columns: minmax(0, 1fr) 128px;
    min-height: 150px;
  }

  .haper-home-blog-small__image img {
    min-height: 128px;
  }
}

@media (max-width: 420px) {
  .haper-home-section-heading__ornament {
    display: none;
  }

  .haper-home-section-heading__title {
    font-size: 16px;
  }

  .haper-home-section-heading__all {
    max-width: 105px;
  }

  .haper-home-special-card {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .haper-home-golden__banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .haper-home-golden__english,
  .haper-home-golden__copy,
  .haper-home-golden__image-wrap {
    grid-column: 1;
  }

  .haper-home-golden__image-wrap {
    grid-row: 2;
    height: 190px;
  }

  .haper-home-golden__copy {
    grid-row: 3;
    text-align: center;
  }
}

/* Keep the decorative Group 299 / Group 54 layers clipped to the exact
   supplied Subtract (28) silhouette, matching the Figma mask group. */
.haper-home-hero__visual-mask {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: url("assets/img/home/hero-frame.svg");
  mask-image: url("assets/img/home/hero-frame.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.haper-home-hero__visual-mask .haper-home-hero__lines {
  z-index: 1;
}

.haper-home-hero__visual-mask .haper-home-hero__glow {
  z-index: 2;
}

/* ==========================================================================
   Homepage image-only artwork sections
   Collections, paired promos and Golden Friday are uploaded as finished
   artwork. Frontend only renders the source image and optional link.
   ========================================================================== */
.haper-home-collection-card,
.haper-home-promo-card,
.haper-home-golden__banner {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
  isolation: auto;
  line-height: 0;
}

.haper-home-collection-card__image,
.haper-home-promo-card__image,
.haper-home-golden__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  filter: none;
}

.haper-home-collections__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.haper-home-promos__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.haper-home-collection-card:hover,
.haper-home-promo-card:hover,
.haper-home-golden__banner:hover {
  opacity: .96;
}

@media (max-width: 991px) {
  .haper-home-collections__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haper-home-promos__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .haper-home-collections__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .haper-home-collections__grid::-webkit-scrollbar {
    display: none;
  }

  .haper-home-collection-card {
    flex: 0 0 min(78vw, 306px);
    height: auto;
    scroll-snap-align: start;
  }

  .haper-home-promo-card,
  .haper-home-golden__banner {
    min-height: 0;
    height: auto;
  }
}

/* ==========================================================================
   Homepage Special Offers — flat Figma cards
   The Figma component has no elevation effect. Explicitly neutralize any
   inherited theme/WooCommerce shadows without affecting other product cards.
   ========================================================================== */
.haper-home-page .haper-home-special__grid,
.haper-home-page .haper-home-special-card,
.haper-home-page .haper-home-special-card__content,
.haper-home-page .haper-home-special-card__media,
.haper-home-page .haper-home-special-card__image {
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.haper-home-page .haper-home-special-card::before,
.haper-home-page .haper-home-special-card::after,
.haper-home-page .haper-home-special-card__content::before,
.haper-home-page .haper-home-special-card__content::after,
.haper-home-page .haper-home-special-card__media::before,
.haper-home-page .haper-home-special-card__media::after {
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}


/* ==========================================================================
   Homepage Recommended Sets - responsive layout
   ========================================================================== */
@media (max-width: 1199px) {
  .haper-home-bundles__grid {
    grid-template-columns: repeat(3, 306px);
  }
}

@media (max-width: 991px) {
  .haper-home-bundles__grid {
    grid-template-columns: repeat(2, 306px);
  }
}

@media (max-width: 767px) {
  .haper-home-bundles__grid {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding: 18px 2px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .haper-home-bundles__grid::-webkit-scrollbar {
    display: none;
  }

  .haper-home-bundle-card {
    flex: 0 0 306px;
    scroll-snap-align: start;
  }
}

/* ==========================================================================
   Homepage Special Offers — restore Figma card geometry
   Keeps the SVG shadow layer out of document flow so each product remains
   exactly 432x180 inside the 3x2 Frame 62 grid.
   ========================================================================== */
.haper-home-page .haper-home-special__grid {
  position: relative;
  overflow: visible;
  border: 0;
  background: transparent;
}

.haper-home-page .haper-home-special-card {
  position: relative;
  isolation: isolate;
  height: 180px;
  min-height: 180px;
  overflow: visible;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: row-reverse;
}

.haper-home-page .haper-home-special-card__background {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  display: block;
  width: 500px;
  height: 196px;
  max-width: none;
  margin: 0;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%);
}

.haper-home-page .haper-home-special-card__content,
.haper-home-page .haper-home-special-card__media {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Homepage Recommended Sets — layered Figma card background
   Normal: Subtract (32) beneath Subtract (33)
   Hover:  Subtract (35) beneath Subtract (34)
   ========================================================================== */
.haper-home-page .haper-home-bundle-card {
  position: relative;
  isolation: isolate;
  width: 306px;
  height: 446px;
  overflow: visible;
  background: none;
  transition: none;
}

.haper-home-page .haper-home-bundle-card::before,
.haper-home-page .haper-home-bundle-card::after {
  content: "";
  position: absolute;
  top: 0;
  display: block;
  height: 446px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  transition: none;
}

.haper-home-page .haper-home-bundle-card::before {
  z-index: 0;
  left: 28px;
  width: 268px;
  background-image: url("assets/img/home/bundle-card-back.svg");
}

.haper-home-page .haper-home-bundle-card::after {
  z-index: 1;
  left: 0;
  width: 306px;
  background-image: url("assets/img/home/bundle-card-front.svg");
}

.haper-home-page .haper-home-bundle-card:hover,
.haper-home-page .haper-home-bundle-card:focus-within {
  z-index: 2;
  background: none;
}

.haper-home-page .haper-home-bundle-card:hover::before,
.haper-home-page .haper-home-bundle-card:focus-within::before {
  background-image: url("assets/img/home/bundle-card-back-hover.svg");
}

.haper-home-page .haper-home-bundle-card:hover::after,
.haper-home-page .haper-home-bundle-card:focus-within::after {
  background-image: url("assets/img/home/bundle-card-front-hover.svg");
}

.haper-home-page .haper-home-bundle-card__inner {
  position: relative;
  z-index: 3;
}

.haper-home-page .haper-home-bundle-card__badge {
  z-index: 5;
}

@media (max-width: 767px) {
  .haper-home-page .haper-home-special__grid {
    overflow: hidden;
  }

  .haper-home-page .haper-home-special-card {
    height: 170px;
    min-height: 170px;
    overflow: hidden;
  }

  .haper-home-page .haper-home-special-card__background {
    width: calc(100% + 40px);
    height: auto;
  }
}

/* ==========================================================================
   Homepage Popular Brands — Figma Frame 97 / Group 345206
   Exact static SVG card layer with dynamic WooCommerce product_brand data.
   ========================================================================== */
.haper-home-page .haper-home-brands {
  --haper-home-brand-card-width: 185px;
  --haper-home-brand-card-height: 187px;
  --haper-home-brand-bg: var(--haper-bg-404, #f0f6fd);
  --haper-home-brand-line: var(--haper-navy-0, #a4b9d8);
  --haper-home-brand-muted: var(--haper-navy-2, #6c7f99);
  --haper-home-brand-text: var(--haper-navy-4, #35445a);
  --haper-home-brand-accent: var(--haper-gold-5, #d4b26a);
  position: relative;
  width: 100%;
  margin: 0;
  overflow: visible;
}

.haper-home-page .haper-home-brands__viewport {
  position: relative;
  width: 100%;
  overflow: visible;
}

.haper-home-page .haper-home-brands__track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  min-width: 100%;
  height: var(--haper-home-brand-card-height);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  direction: rtl;
}

.haper-home-page .haper-home-brand-card {
  position: relative;
  isolation: isolate;
  flex: 0 0 var(--haper-home-brand-card-width);
  width: var(--haper-home-brand-card-width);
  min-width: var(--haper-home-brand-card-width);
  height: var(--haper-home-brand-card-height);
  min-height: var(--haper-home-brand-card-height);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--haper-home-brand-text);
  text-decoration: none;
  overflow: visible;
}

.haper-home-page .haper-home-brand-card:first-child {
  border: 0;
}

.haper-home-page .haper-home-brand-card__background {
  position: absolute;
  z-index: 0;
  top: -13px;
  left: -41px;
  display: block;
  max-width: none;
  width: auto;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.haper-home-page .haper-home-brand-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 12px 14px 13px;
  box-sizing: border-box;
}

.haper-home-page .haper-home-brand-card__latin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-height: 20px;
  color: var(--haper-home-brand-muted);
  font-family: "Gilan", var(--haper-font-doran), sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  white-space: nowrap;
}

.haper-home-page .haper-home-brand-card__latin i {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 1px;
  background: var(--haper-home-brand-line);
}

.haper-home-page .haper-home-brand-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 92px;
  margin: 2px 0 6px;
}

.haper-home-page .haper-home-brand-card__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 104px;
  max-height: 84px;
  object-fit: contain;
  mix-blend-mode: normal;
}

.haper-home-page .haper-home-brand-card__footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 24px;
  direction: rtl;
}

.haper-home-page .haper-home-brand-card__footer strong {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--haper-home-brand-text);
  font-family: "IRANSansXFaNum", "IRANSansXV", "IRANSansX", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.haper-home-page .haper-home-brand-card__footer small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 57px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--haper-home-brand-accent);
  color: var(--haper-gold-0, #ffffff);
  font-family: "IRANSansXFaNum", "IRANSansXV", "IRANSansX", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.8;
  white-space: nowrap;
  box-sizing: border-box;
}

@media (max-width: 1300px) {
  .haper-home-page .haper-home-brands__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 13px 0 12px;
    margin: -13px 0 -12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .haper-home-page .haper-home-brands__viewport::-webkit-scrollbar {
    display: none;
  }

  .haper-home-page .haper-home-brands__track {
    min-width: max-content;
  }
}

@media (max-width: 767px) {
  .haper-home-page .haper-home-brands {
    --haper-home-brand-card-width: 170px;
    --haper-home-brand-card-height: 172px;
  }

  .haper-home-page .haper-home-brand-card__background {
    transform: scale(0.92);
    transform-origin: center center;
    top: -20px;
    left: -48px;
  }

  .haper-home-page .haper-home-brand-card__content {
    padding-inline: 12px;
  }

  .haper-home-page .haper-home-brand-card__latin {
    font-size: 11px;
  }

  .haper-home-page .haper-home-brand-card__logo {
    min-height: 78px;
  }

  .haper-home-page .haper-home-brand-card__logo img {
    max-width: 92px;
    max-height: 74px;
  }

  .haper-home-page .haper-home-brand-card__footer strong {
    font-size: 12px;
  }

  .haper-home-page .haper-home-brand-card__footer small {
    min-width: 52px;
    height: 22px;
    font-size: 9px;
  }
}

/* ==========================================================================
   Home Page Blog — Figma Group 345247
   ========================================================================== */
.haper-home-page .haper-home-blog {
  width: 100%;
  margin-top: 72px;
}

.haper-home-page .haper-home-section-heading--blog {
  margin-bottom: 34px;
}

.haper-home-page .haper-home-section-heading--blog .haper-home-section-heading__all {
  position: relative;
  width: 127px;
  min-width: 127px;
  height: 40px;
  min-height: 40px;
  padding: 0 5px 0 31px;
  border: 0;
  border-radius: 14px;
  background-color: transparent;
  background-image: url("assets/img/home/blog-view-all.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 127px 40px;
  color: #35445a;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  overflow: hidden;
  transition: transform 180ms ease;
}

.haper-home-page .haper-home-section-heading--blog .haper-home-section-heading__all:hover {
  background-color: transparent;
  transform: translateX(-2px);
}

.haper-home-page .haper-home-blog__layout {
  display: grid;
  grid-template-columns: minmax(0, 966px) 306px;
  gap: 24px;
  width: 100%;
  min-height: 356px;
  direction: ltr;
  align-items: stretch;
}

.haper-home-page .haper-home-blog-card__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.haper-home-page .haper-home-blog-feature,
.haper-home-page .haper-home-blog-small {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.haper-home-page .haper-home-blog-feature::before,
.haper-home-page .haper-home-blog-small::before {
  display: none;
}

.haper-home-page .haper-home-blog-feature {
  grid-column: 2;
  position: relative;
  width: 306px;
  height: 356px;
  min-height: 356px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  direction: rtl;
}

.haper-home-page .haper-home-blog-feature__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 274px;
  height: 227px;
  flex: 0 0 227px;
  margin: 0;
  border-radius: 16px;
  background: #d9e2ec;
  overflow: hidden;
}

.haper-home-page .haper-home-blog-feature__image img,
.haper-home-page .haper-home-blog-small__image img,
.haper-home-page .haper-home-blog-card__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.haper-home-page .haper-home-blog-card__image-placeholder {
  background: #d9e2ec;
}

.haper-home-page .haper-home-blog-feature__meta,
.haper-home-page .haper-home-blog-small__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  color: #35445a;
  white-space: nowrap;
}

.haper-home-page .haper-home-blog-feature__meta {
  width: 100%;
  height: 18px;
  margin-top: 9px;
  font-size: 9px;
}

.haper-home-page .haper-home-blog-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  direction: rtl;
  line-height: 18px;
}

.haper-home-page .haper-home-blog-card__meta-item img {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.haper-home-page .haper-home-blog-feature__title {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  padding: 0;
  color: #35445a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  text-align: right;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.haper-home-page .haper-home-blog-feature__title a,
.haper-home-page .haper-home-blog-small__title a {
  color: inherit;
}

.haper-home-page .haper-home-blog__small-grid {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 471px));
  grid-auto-rows: 166px;
  gap: 24px;
  width: 100%;
  direction: rtl;
  align-content: start;
}

.haper-home-page .haper-home-blog-small {
  position: relative;
  width: 100%;
  max-width: 471px;
  height: 166px;
  min-height: 166px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 254px) 171px;
  column-gap: 14px;
  align-items: center;
  direction: ltr;
}

.haper-home-page .haper-home-blog-small__body {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 104px;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  direction: rtl;
  text-align: right;
}

.haper-home-page .haper-home-blog-small__image {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 171px;
  height: 134px;
  margin: 0;
  border-radius: 16px;
  background: #d9e2ec;
  overflow: hidden;
}

.haper-home-page .haper-home-blog-small__meta {
  width: 100%;
  height: 18px;
  margin: 0;
  font-size: 9px;
}

.haper-home-page .haper-home-blog-small__title {
  margin: 7px 0 4px;
  padding: 0;
  color: #35445a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.haper-home-page .haper-home-blog-small__excerpt {
  margin: 0;
  padding: 0;
  color: rgba(53, 68, 90, 0.72);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.8;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1199px) {
  .haper-home-page .haper-home-blog__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .haper-home-page .haper-home-blog-feature {
    width: 280px;
  }

  .haper-home-page .haper-home-blog-feature__image {
    width: 248px;
  }

  .haper-home-page .haper-home-blog__small-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haper-home-page .haper-home-blog-small {
    grid-template-columns: minmax(0, 1fr) 145px;
    column-gap: 10px;
  }

  .haper-home-page .haper-home-blog-small__image {
    width: 145px;
  }
}

@media (max-width: 991px) {
  .haper-home-page .haper-home-blog__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .haper-home-page .haper-home-blog-feature {
    grid-column: 1;
    width: 306px;
    justify-self: center;
  }

  .haper-home-page .haper-home-blog-feature__image {
    width: 274px;
  }

  .haper-home-page .haper-home-blog__small-grid {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haper-home-page .haper-home-blog-small {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .haper-home-page .haper-home-blog {
    margin-top: 48px;
  }

  .haper-home-page .haper-home-section-heading--blog {
    margin-bottom: 24px;
  }

  .haper-home-page .haper-home-blog__small-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }

  .haper-home-page .haper-home-blog-small {
    width: min(100%, 471px);
    height: 166px;
    min-height: 166px;
    justify-self: center;
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .haper-home-page .haper-home-blog-small__image {
    width: 150px;
  }
}

@media (max-width: 520px) {
  .haper-home-page .haper-home-blog-feature {
    width: min(306px, 100%);
  }

  .haper-home-page .haper-home-blog-feature__image {
    width: 100%;
  }

  .haper-home-page .haper-home-blog-small {
    height: auto;
    min-height: 150px;
    padding: 14px;
    grid-template-columns: minmax(0, 1fr) 118px;
    column-gap: 10px;
  }

  .haper-home-page .haper-home-blog-small__image {
    width: 118px;
    height: 118px;
  }

  .haper-home-page .haper-home-blog-small__body {
    height: auto;
    min-height: 104px;
  }

  .haper-home-page .haper-home-blog-small__meta {
    font-size: 8px;
  }

  .haper-home-page .haper-home-blog-small__title {
    font-size: 11px;
  }

  .haper-home-page .haper-home-blog-small__excerpt {
    font-size: 8.5px;
  }
}

/* Blog card decorative heart and final Figma spacing. */
.haper-home-page .haper-home-blog-card__heart {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: 20px;
  height: 20px;
  color: #b6c5d6;
  line-height: 0;
  pointer-events: none;
}

.haper-home-page .haper-home-blog-card__heart svg {
  width: 20px;
  height: 20px;
}

.haper-home-page .haper-home-blog-feature__image {
  margin-top: 34px;
}

.haper-home-page .haper-home-blog-small__body {
  align-self: start;
  margin-top: 30px;
}

@media (max-width: 520px) {
  .haper-home-page .haper-home-blog-small__body {
    margin-top: 18px;
  }
}


/* ==========================================================================
   Homepage Blog Alignment Fix
   Keep the featured card and the left article grid aligned on desktop.
   ========================================================================== */
.haper-home-page .haper-home-blog__layout {
  align-items: start;
}

.haper-home-page .haper-home-blog-feature {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.haper-home-page .haper-home-blog__small-grid {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin-top: 0;
}

@media (max-width: 991px) {

  .haper-home-page .haper-home-blog-feature,
  .haper-home-page .haper-home-blog__small-grid {
    grid-column: 1;
    grid-row: auto;
  }
}


/* ==========================================================================
   Global "View All" button — Figma Frame 4
   Shared across homepage, single post and WooCommerce sections.
   ========================================================================== */
.haper-home-section-heading__all,
.haper-btn-view-all,
.haper-section-view-all {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 127px;
  min-width: 127px;
  max-width: 127px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 5px 0 31px;
  border: 0;
  border-radius: 14px;
  background-color: transparent;
  background-image: url("assets/img/common/view-all-button.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 127px 40px;
  box-shadow: none;
  color: #35445a;
  direction: rtl;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  gap: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: opacity 180ms ease;
}

.haper-home-section-heading__all:hover,
.haper-home-section-heading__all:focus-visible,
.haper-btn-view-all:hover,
.haper-btn-view-all:focus-visible,
.haper-section-view-all:hover,
.haper-section-view-all:focus-visible {
  background-color: transparent;
  background-image: url("assets/img/common/view-all-button.svg");
  color: #35445a;
  transform: none;
  opacity: 0.94;
}

.haper-home-section-heading__all>svg,
.haper-btn-view-all>svg,
.haper-section-view-all>svg {
  display: none;
}

.haper-home-section-heading__all>span,
.haper-btn-view-all>span,
.haper-section-view-all>span {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

/* ==========================================================================
   Header V3 — Figma Group 345413 / MegaMenu L1
   Primary WordPress menu sits beside the logo. Only the dedicated categories
   item opens the existing mega menu; cart/account dropdowns stay unchanged.
   ========================================================================== */
@media (min-width: 992px) {
  .site-header .haper-top-bar {
    z-index: 180;
  }

  .site-header .haper-top-bar__inner {
    min-height: 61px;
    padding-inline: 58px;
  }

  .site-header .haper-top-bar__support-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #35445a;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-header .haper-top-bar__support-link:hover {
    color: #35445a;
  }

  .site-header .haper-top-bar__support-text {
    color: #35445a;
  }

  .site-header .haper-top-bar__support-phone {
    color: #c79f4c;
    font-size: 14px;
    font-weight: 600;
    direction: ltr;
    unicode-bidi: isolate;
  }

  .site-header .haper-top-bar__support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c79f4c;
  }

  .site-header .haper-main-header {
    z-index: 170;
    min-height: 88px;
    padding: 14px 0;
    background: #f0f6fd;
    border: 0;
  }

  .site-header .haper-main-header__inner {
    min-height: 60px;
    gap: 36px;
  }

  .site-header .haper-main-header__start {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 34px;
    min-width: 0;
  }

  .site-header .haper-main-header__end {
    flex: 0 0 auto;
    margin-inline-start: auto;
  }

  .site-header .haper-branding {
    flex: 0 0 auto;
  }

  .site-header .haper-primary-nav {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-header .haper-primary-nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-header .haper-primary-nav__list > li {
    margin: 0;
    padding: 0;
  }

  .site-header .haper-primary-nav__list > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 6px 0;
    color: #8291a4;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color 180ms ease;
  }

  .site-header .haper-primary-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: currentColor;
  }

  .site-header .haper-primary-nav__icon svg {
    display: block;
  }

  .site-header .haper-primary-nav__list > li > a:hover,
  .site-header .haper-primary-nav__list > li.current-menu-item > a,
  .site-header .haper-primary-nav__list > li.current-menu-ancestor > a,
  .site-header .haper-primary-nav__list > li.haper-primary-nav__item--mega > a,
  .site-header .haper-primary-nav__list > li.haper-primary-nav__item--mega > a[aria-expanded="true"] {
    color: #c79f4c;
  }

  .site-header .haper-header-search {
    display: none;
  }

  .site-header .haper-mega-menu {
    top: calc(100% + 9px);
    z-index: 190;
    padding-top: 0;
  }

  .site-header .haper-mini-cart-dropdown,
  .site-header .haper-user-dropdown {
    z-index: 210;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .site-header .haper-top-bar__inner {
    padding-inline: 28px;
  }

  .site-header .haper-main-header__start {
    gap: 22px;
  }

  .site-header .haper-primary-nav__list {
    gap: 18px;
  }

  .site-header .haper-primary-nav__list > li > a {
    gap: 5px;
    font-size: 13px;
  }

  .site-header .haper-primary-nav__icon svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 991px) {
  .site-header .haper-primary-nav {
    display: none;
  }
}

.site-header .haper-mobile-primary-nav__list .haper-primary-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-inline-end: 8px;
  color: currentColor;
}

.site-header .haper-mobile-primary-nav__list .haper-primary-nav__icon svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Homepage hero/product-strip synchronization
   Product cards act as slider controls while preserving the existing Figma UI.
   ========================================================================== */
.haper-home-hero-products__item {
  border: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.haper-home-hero-products__item:focus-visible {
  outline: 2px solid var(--haper-home-gold);
  outline-offset: -2px;
  border-radius: 14px;
}

