/* ==========================================================================
   THEME.CSS — Modern design system for the storefront
   Loaded after style.css / plugins.css / custom.css so it wins the cascade.
   Provides a full light + dark theme built on CSS custom properties, and
   restyles every shared component used across all storefront pages
   (home, products, articles, account, contact, user panel, orders).
   ========================================================================== */

/* ---------- 1. Design tokens ------------------------------------------- */
:root {
  color-scheme: light;

  /* Brand — shared with the admin panel for a consistent identity */
  --primary: #148F86;
  --primary-50: #EBF7F5;
  --primary-100: #CFEEEA;
  --primary-200: #9FDDD5;
  --primary-400: #3FBBAA;
  --primary-600: #107169;
  --primary-700: #0C544D;
  --gold: #C99A3A;
  --gold-100: #F5E8CB;
  --danger: #D64545;
  --success: #1F9D6C;
  --warning: #C99A3A;

  /* Surfaces */
  --bg: #F7F5F0;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4F5F6;
  --border: #E4E6E8;
  --border-strong: #C8CCD1;

  /* Text */
  --text: #15181D;
  --text-muted: #6C737C;
  --text-soft: #9BA2AA;
  --text-on-primary: #FFFFFF;

  /* Effects */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(21, 24, 29, .06), 0 1px 1px rgba(21, 24, 29, .04);
  --shadow: 0 6px 20px -4px rgba(21, 24, 29, .12), 0 2px 6px -2px rgba(21, 24, 29, .06);
  --shadow-lg: 0 20px 45px -12px rgba(21, 24, 29, .25);
  --transition: 180ms cubic-bezier(.4, 0, .2, 1);
  --header-h: 84px;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --primary: #3FBBAA;
  --primary-50: #0C2A28;
  --primary-100: #0F3733;
  --primary-200: #14514A;
  --primary-400: #3FBBAA;
  --primary-600: #6FCCC0;
  --primary-700: #9FDDD5;
  --gold: #E0BE73;
  --gold-100: #3A2F16;
  --danger: #F27272;
  --success: #4FCB92;
  --warning: #E0BE73;

  --bg: #101216;
  --bg-alt: #15181D;
  --surface: #1A1E24;
  --surface-2: #20242B;
  --border: #2A2F37;
  --border-strong: #3A4048;

  --text: #F1F2F4;
  --text-muted: #A6ACB4;
  --text-soft: #7D848D;
  --text-on-primary: #0A1211;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 10px 30px -8px rgba(0, 0, 0, .55), 0 2px 8px -2px rgba(0, 0, 0, .35);
  --shadow-lg: 0 25px 60px -15px rgba(0, 0, 0, .65);
}

/* Respect system preference before JS runs (avoids a flash) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
  }
}

/* ---------- 2. Base ------------------------------------------------------ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Vazirmatn', 'primary-font', 'segoe ui', 'tahoma', sans-serif !important;
  transition: background var(--transition), color var(--transition);
  direction: rtl;
}

body, html { overflow-x: hidden; }

a { transition: color var(--transition), background var(--transition), border-color var(--transition), opacity var(--transition); }

h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 700; letter-spacing: -.01em; }

p { color: var(--text-muted); line-height: 1.9; }

::selection { background: var(--primary); color: var(--text-on-primary); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }

.container { max-width: 1240px; }

/* ---------- 3. Header / navigation --------------------------------------- */
header { margin-top: 0 !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__bar {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 20px;
}

.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 42px; width: auto; display: block; }
.site-header__logo .brand-text { font-size: 20px; font-weight: 800; color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav a i { font-size: 14px; opacity: .8; }
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a.active { background: var(--primary-50); color: var(--primary); }

.site-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-full);
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid transparent;
  position: relative;
}
.icon-btn:hover { background: var(--primary-50); color: var(--primary); }
.icon-btn .badge-count {
  position: absolute; top: -4px; left: -4px;
  min-width: 19px; height: 19px; padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--danger); color: #fff;
  font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-alt);
}

.theme-toggle { cursor: pointer; }
.theme-toggle .fa-moon-o { display: none; }
html[data-theme="dark"] .theme-toggle .fa-sun-o { display: none; }
html[data-theme="dark"] .theme-toggle .fa-moon-o { display: inline-block; }

.search-container { position: relative; }
.search-container form { display: flex; align-items: center; background: var(--surface-2); border-radius: var(--radius-full); border: 1px solid var(--border); overflow: hidden; }
.search-container .search-input {
  border: 0; background: transparent; outline: none;
  padding: 10px 6px 10px 14px; width: 190px; font-size: 13.5px; color: var(--text);
}
.search-container .search-input::placeholder { color: var(--text-soft); }
.search-container .search-button { border: 0; background: transparent; color: var(--text-muted); width: 38px; height: 38px; border-radius: var(--radius-full); cursor: pointer; }
.search-container .search-button:hover { color: var(--primary); }

.site-header__user-menu { position: relative; }
.site-header__user-menu > a.icon-btn { }
.user-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 190px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: var(--transition); z-index: 60;
}
.site-header__user-menu:hover .user-dropdown,
.site-header__user-menu:focus-within .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 13.5px; font-weight: 600;
}
.user-dropdown a:hover { background: var(--surface-2); color: var(--primary); }
.user-dropdown a i { width: 16px; text-align: center; color: var(--text-soft); }

/* mobile nav */
.mobile-toggle { display: none; }
.navigation1 { display: none; }
@media (max-width: 991px) {
  .site-nav { display: none; }
  .search-container .search-input { width: 120px; }
  .mobile-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: var(--radius-full);
    background: var(--surface-2); border: 0; cursor: pointer; color: var(--text);
  }
  .navigation1.open .nav_bar_b { transform: translateX(0); }
  .nav_bar_b {
    position: fixed; inset-inline-start: 0; top: 0; bottom: 0; width: 82%; max-width: 320px;
    background: var(--surface); z-index: 1200; box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform var(--transition);
    padding: 24px 18px; overflow-y: auto;
  }
  html:not([dir="ltr"]) .nav_bar_b { transform: translateX(-105%); }
  .navigation1.open .nav_bar_b { transform: translateX(0) !important; }
  .nav_bar_b ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
  .nav_bar_b a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: 14.5px; }
  .nav_bar_b a:hover, .nav_bar_b a.active { background: var(--primary-50); color: var(--primary); }
  .nav_bar_b li:first-child { margin-bottom: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .nav_bar_b li:first-child img { height: 34px; }
}
.hamburger1 { background: transparent; border: 0; }
#bar11, #bar12, #bar13 { background: var(--text) !important; }

.admin { }
.admin ul.mgt { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }

/* ---------- 4. Buttons ---------------------------------------------------- */
.btn, .default_button, .primary_btn, .add_to_cart a, .checkout_btn, .cart_submit,
.login_submit, .btn_more a, .btn-list a, a.btn, button.btn, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary) !important;
  color: var(--text-on-primary) !important;
  border: 1px solid var(--primary) !important;
  border-radius: var(--radius-full) !important;
  padding: 11px 26px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.btn:hover, .default_button:hover, .primary_btn:hover, .add_to_cart a:hover,
.checkout_btn:hover, .cart_submit:hover, .login_submit:hover {
  background: var(--primary-600) !important;
  border-color: var(--primary-600) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline-secondary, .btn-warning, .btn-danger {
  background: transparent !important; color: var(--text) !important; border: 1px solid var(--border-strong) !important;
}
.btn-danger { color: var(--danger) !important; border-color: var(--danger) !important; }

/* ---------- 5. Forms ------------------------------------------------------ */
input:not([type=checkbox]):not([type=radio]), select, textarea, .form-control {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  width: 100%;
  transition: var(--transition);
}
input::placeholder, textarea::placeholder { color: var(--text-soft) !important; }
input:focus, select:focus, textarea:focus, .form-control:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--primary-50) !important;
  background: var(--surface) !important;
}
label { color: var(--text); font-weight: 600; font-size: 13.5px; }

.container_input { color: var(--text); }
.checkmark { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 6px; }
.container_input input:checked ~ .checkmark { background: var(--primary); border-color: var(--primary); }

/* Account pages (login / register / forgot / reset) */
.login_page_bg, .account_page_bg, .cart_page_bg, .contact_page_bg, .error_page_bg,
.blog_page_section, .shop_area {
  background: var(--bg) !important;
  padding: 50px 0 70px;
}
.login_form_container, .account_form, .account_login_form, .error_form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 460px;
  margin: 0 auto;
}
.login_form_container h2, .login_form_container h3,
.account_form h2, .account_form h3 { margin-bottom: 22px; }
.error_section { text-align: center; padding: 70px 0; }

/* ---------- 6. Breadcrumb / page hero -------------------------------------- */
.breadcrumbs_area {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 10px;
}
.breadcrumb_content ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.breadcrumb_content ul li { color: var(--text-muted); font-size: 13.5px; font-weight: 600; }
.breadcrumb_content ul li:not(:last-child)::after { content: '/'; margin-inline-start: 8px; color: var(--text-soft); }
.breadcrumb_content ul li a { color: var(--text); }
.breadcrumb_content ul li a:hover { color: var(--primary); }

.section_title h2, .product_header h2 {
  font-size: 22px; position: relative; padding-inline-start: 16px; margin-bottom: 26px;
}
.section_title h2::before, .product_header h2::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 4px; bottom: 4px; width: 4px;
  border-radius: var(--radius-full); background: var(--primary);
}

/* ---------- 7. Slider / hero ------------------------------------------------ */
.slider_section { border-radius: var(--radius-lg); overflow: hidden; margin-inline: 20px; }
.single_slider { border-radius: var(--radius-lg); overflow: hidden; }
.owl-dots { text-align: center; margin-top: 14px; }
.owl-dot span { background: var(--border-strong) !important; }
.owl-dot.active span { background: var(--primary) !important; }
.owl-nav [class*=owl-] {
  background: var(--surface) !important; color: var(--text) !important;
  box-shadow: var(--shadow); border-radius: var(--radius-full) !important;
}

/* ---------- 8. Category tiles ---------------------------------------------- */
.categories_product_inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.single_categories_product {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: var(--transition); flex: 1 1 200px; max-width: 240px;
  background: var(--surface);
}
.single_categories_product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.categories_product_thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.categories_product_content { padding: 14px 16px; text-align: center; }
.categories_product_content h4 a { font-size: 15px; font-weight: 700; color: var(--text); }

/* ---------- 9. Product cards ------------------------------------------------ */
.product_area { padding: 34px 0; }
.single_product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.single_product:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.product_thumb { position: relative; background: #ffffff; overflow: hidden; }
.product_thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease; }
.single_product:hover .product_thumb img { transform: scale(1.06); }
.product_thumb .secondary_img { position: absolute; inset: 0; opacity: 0; transition: var(--transition); }
.single_product:hover .secondary_img { opacity: 1; }

.label_product { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; }
.label_sale {
  background: var(--gold) !important; color: #16130a !important;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.product_content { padding: 16px; }
.product_name a {
  color: var(--text); font-size: 14.5px; font-weight: 700; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 46px;
}
.product_name a:hover { color: var(--primary); }
.price_box { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.current_price { color: var(--primary); font-weight: 800; font-size: 16px; }
.old_price { color: var(--text-soft); text-decoration: line-through; font-size: 13px; }
.add_to_cart { margin-top: 14px; }
.add_to_cart a { width: 100%; padding: 10px 18px !important; font-size: 13.5px !important; }

/* ---------- 10. Blog / article cards ---------------------------------------- */
.single_blog {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); height: 100%;
}
.single_blog:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog_thumb img, .article_image { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.blog_content { padding: 18px; }
.blog_content h4 a { font-size: 16px; font-weight: 700; color: var(--text); }
.blog_content h4 a:hover { color: var(--primary); }
.post_meta p, .post_meta a { color: var(--text-soft); font-size: 12.5px; }
.post_desc p { font-size: 13.5px; margin: 10px 0; }
.post_readmore a { color: var(--primary); font-weight: 700; font-size: 13px; }
.post_readmore a:hover { text-decoration: underline; }

/* Article detail */
.post_title { color: var(--text); }
.post_header, .blog_details, .blog_wrapper_inner {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.main_image_article { border-radius: var(--radius); width: 100%; object-fit: cover; }
.blog_sidebar_widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }

/* ---------- 11. Product detail ---------------------------------------------- */
.product_details_wrapper, .product_d_inner {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.product_d_right h2, .product_d_right h1 { margin-bottom: 10px; }
.product_d_table td, .product_d_table th { border-color: var(--border) !important; color: var(--text); padding: 10px !important; }
.product-details-tab .nav-link, .product-details-tab a {
  color: var(--text-muted); font-weight: 700; border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
}
.product-details-tab .nav-link.active, .product-details-tab .active { color: var(--primary) !important; border-color: var(--primary) !important; }

.comments_box { margin-top: 20px; }
.comment_list { list-style: none; padding: 0; }
.comment_content {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.comment_title a, .comment_title { color: var(--text); font-weight: 700; }
.comment_meta { color: var(--text-soft); font-size: 12px; }
.comment_text p { font-size: 13.5px; }
.comment_reply a { color: var(--primary); font-weight: 700; font-size: 12.5px; }
.comments_form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; margin-top: 20px; }

/* ---------- 12. Sidebar filters / product list ------------------------------ */
.blog_sidebar_widget, .price-range, .list_two { color: var(--text); }
.btn-grid-4 a, .grid_4 a { color: var(--text-muted); border-radius: var(--radius-sm); }
.btn-grid-4 a.active, .grid_4 a.active { color: var(--primary); background: var(--primary-50); }

/* ---------- 13. Tabs / dashboard --------------------------------------------- */
.dashboard_content, .dashboard-list {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.dashboard-list a, .dashboard_tab_button {
  color: var(--text-muted); font-weight: 700; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  border-radius: var(--radius-sm);
}
.dashboard-list a:hover, .dashboard-list a.active, .dashboard_tab_button.active {
  background: var(--primary-50); color: var(--primary);
}

/* ---------- 14. Cart / basket / checkout -------------------------------------- */
.cart_page table, .cart_page_bg table { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.cart_page th, .cart_page td { border-color: var(--border) !important; color: var(--text) !important; vertical-align: middle !important; }
.cart_quantity_button { border: 1px solid var(--border) !important; border-radius: var(--radius-sm); overflow: hidden; }
.cart_quantity_input { border: 0 !important; text-align: center; }
.cart_quantity_up, .cart_quantity_down { background: var(--surface-2) !important; color: var(--text) !important; cursor: pointer; }
.cart_quantity_delete { color: var(--danger) !important; cursor: pointer; }
.coupon_area { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 18px; }
.cart_subtotal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.cart_subtotal table td, .cart_subtotal table th { border-color: var(--border) !important; }

/* ---------- 15. Tickets / contact -------------------------------------------- */
.panel, .panel-default { background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-heading { background: var(--surface-2) !important; border-color: var(--border) !important; padding: 14px 18px !important; }
.panel-title { color: var(--text) !important; }
.list-group-item { background: var(--surface) !important; border-color: var(--border) !important; color: var(--text) !important; }
.list-group-item.hover-ticet:hover { background: var(--surface-2) !important; }
.contact_message.content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); height: 100%; }
.contact_message h3 { margin-bottom: 14px; }
.contact_message ul { list-style: none; padding: 0; }
.contact_message ul li { padding: 8px 0; border-bottom: 1px dashed var(--border); color: var(--text-muted); }
.contact-map iframe { border-radius: var(--radius-lg); filter: var(--map-filter, none); width: 100%; }
html[data-theme="dark"] .contact-map iframe { filter: invert(0.92) hue-rotate(180deg) contrast(0.9); }

/* ---------- 16. Alerts / badges ----------------------------------------------- */
.alert { border-radius: var(--radius); border: 1px solid transparent; padding: 14px 18px; }
.alert-success { background: color-mix(in srgb, var(--success) 15%, var(--surface)); color: var(--success); border-color: var(--success); }
.alert-danger { background: color-mix(in srgb, var(--danger) 15%, var(--surface)); color: var(--danger); border-color: var(--danger); }
.alert-info, .alert-warning { background: var(--primary-50); color: var(--primary); border-color: var(--primary-200); }
.badge { border-radius: var(--radius-full); font-weight: 700; }
.badge-success { background: var(--success) !important; }
.badge-danger { background: var(--danger) !important; }

/* ---------- 17. Pagination ------------------------------------------------------ */
.pagination { gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span, .blog_pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border-radius: var(--radius-sm) !important;
  background: var(--surface) !important; border: 1px solid var(--border) !important; color: var(--text) !important;
  font-weight: 700; font-size: 13px;
}
.pagination a.current, .pagination .current, .pagination a:hover { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }

/* ---------- 18. Footer ----------------------------------------------------------- */
.footer_widgets { background: var(--surface-2); border-top: 1px solid var(--border); margin-top: 60px; }
.footer_top { padding: 54px 0 20px; }
.widgets_container h3 { font-size: 15.5px; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.widgets_container h3::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px; background: var(--primary); border-radius: var(--radius-full); }
.footer_menu ul { list-style: none; padding: 0; }
.footer_menu ul li { margin-bottom: 9px; }
.footer_menu ul li a { color: var(--text-muted); font-size: 13px; }
.footer_menu ul li a:hover { color: var(--primary); }
.footer_contact_inner { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.contact_icone img { width: 22px; opacity: .8; }
.footer_contact p, .footer_contact strong { color: var(--text-muted); font-size: 13px; }
.app_img img { max-width: 130px; border-radius: var(--radius-sm); }
.footer_bottom { background: var(--surface); border-top: 1px solid var(--border); padding: 16px 0; }
.footer_bottom [style*="margin-right"] { margin-right: 0 !important; text-align: end; }
.copyright_area p, .copyright_area p a { color: var(--text-soft); font-size: 12.5px; }
.copyright_area p a:hover { color: var(--primary); }

/* ---------- 19. Scroll-to-top ----------------------------------------------------- */
#scrollUp {
  width: 44px !important; height: 44px !important; border-radius: var(--radius-full) !important;
  background: var(--primary) !important; color: #fff !important;
  display: flex !important; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); bottom: 24px !important; inset-inline-end: 24px !important; inset-inline-start: auto !important;
}

/* ---------- 20. Modals ------------------------------------------------------------- */
.mwsModal-content { background: var(--surface) !important; color: var(--text) !important; border-radius: var(--radius-lg) !important; border: 1px solid var(--border) !important; }
.mwsModal-header { border-color: var(--border) !important; }

/* ---------- 21. Misc polish ---------------------------------------------------------- */
img { max-width: 100%; }
hr { border-color: var(--border); }
.color_white { color: #fff !important; }

@media (max-width: 767px) {
  .site-header__bar { padding: 12px 16px; gap: 14px; }
  .site-header__logo img { height: 34px; }
  .search-container { display: none; }
  .categories_product_inner { gap: 12px; }
  .single_categories_product { flex-basis: 42%; }
}

/* ==========================================================================
   22. REBUILD LAYER — new layout primitives used by the rebuilt page markup
   ========================================================================== */

/* Generic surface card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 26px; }
.card-pad-sm { padding: 18px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800; color: var(--primary);
  background: var(--primary-50); padding: 6px 14px; border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.eyebrow i { font-size: 11px; }

/* Page hero (used on about/contact/tickets/auth/etc.) */
.page-hero {
  padding: 46px 0 6px;
  text-align: center;
}
.page-hero h1 { font-size: 26px; margin-bottom: 8px; }
.page-hero p { max-width: 560px; margin: 0 auto; font-size: 14px; }

/* Simple grid helpers */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stat-pill {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-pill i { width: 38px; height: 38px; border-radius: var(--radius-full); background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.stat-pill strong { display: block; font-size: 13px; color: var(--text); }
.stat-pill span { font-size: 12px; color: var(--text-soft); }

/* Sort pills (product list toolbar) */
.sort-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sort-pills form { margin: 0; }
.sort-pills button {
  background: var(--surface) !important; color: var(--text-muted) !important;
  border: 1px solid var(--border) !important; border-radius: var(--radius-full) !important;
  padding: 8px 16px !important; font-size: 12.5px !important; font-weight: 700 !important;
  cursor: pointer; box-shadow: none !important;
}
.sort-pills button:hover, .sort-pills button.active { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; }

/* Filter / sidebar widget card */
.widget_list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.widget_list h3, .widget_title h3 { font-size: 14.5px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.widget_list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.widget_list ul li a { display: block; padding: 8px 6px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13px; font-weight: 600; }
.widget_list ul li a:hover { background: var(--primary-50); color: var(--primary); }
.widget_search form { display: flex; gap: 8px; align-items: center; }
.widget_search input { flex: 1; }

/* Products grid */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1199px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.category-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.category-strip::-webkit-scrollbar { height: 6px; }

/* Auth pages */
.auth-shell { padding: 54px 0 80px; }
.auth-card {
  max-width: 460px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px 36px; text-align: center;
}
.auth-card .eyebrow { margin-bottom: 6px; }
.auth-card h2 { font-size: 21px; margin-bottom: 6px; }
.auth-card p.subtitle { font-size: 13px; margin-bottom: 22px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; text-align: start; }
.auth-card label { margin-bottom: -6px; }
.auth-card .auth-links { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: -4px; }
.auth-card .auth-links a { color: var(--primary); font-weight: 700; }
.auth-card button[type=submit] {
  background: var(--primary) !important; color: var(--text-on-primary) !important; border: 0 !important;
  border-radius: var(--radius-full) !important; padding: 13px !important; font-weight: 800 !important; margin-top: 6px;
  cursor: pointer;
}
.auth-card button[type=submit]:hover { background: var(--primary-600) !important; }
.auth-foot { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 18px; }
.auth-foot a { color: var(--primary); font-weight: 700; }

/* Dashboard shell (user panel) */
.dash-shell { padding: 30px 0 70px; display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .dash-shell { grid-template-columns: 1fr; } }
.dash-side { position: sticky; top: calc(var(--header-h) + 16px); }
.dash-profile { text-align: center; padding: 22px 18px; }
.dash-profile img { width: 76px; height: 76px; border-radius: var(--radius-full); object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--primary-50); display: block; }
.dash-profile .avatar-fallback {
  width: 76px; height: 76px; border-radius: var(--radius-full); margin: 0 auto 12px;
  background: var(--primary-50); color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
}
.dash-nav { list-style: none; padding: 8px; margin: 0; display: flex; flex-direction: column; gap: 3px; }
.dash-nav li a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13.5px; color: var(--text-muted); }
.dash-nav li a i { width: 16px; text-align: center; color: var(--text-soft); }
.dash-nav li a:hover { background: var(--surface-2); color: var(--text); }
.dash-nav li a.active { background: var(--primary-50); color: var(--primary); }
.dash-nav li a.active i { color: var(--primary); }
.dash-content h3 { font-size: 18px; margin-bottom: 16px; }
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.info-list li { padding: 13px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; }
.info-list li.warn { background: color-mix(in srgb, var(--warning) 12%, var(--surface)); border-color: var(--warning); color: var(--warning); }
.info-list li h5 { margin: 0; font-size: 13.5px; color: inherit; }

table.table-modern { width: 100%; border-collapse: collapse; }
table.table-modern th, table.table-modern td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); }
table.table-modern th { color: var(--text-soft); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
table.table-modern tr:last-child td { border-bottom: 0; }

/* Ticket list */
.ticket-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticket-list a { display: block; }
.ticket-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.ticket-row:hover { border-color: var(--primary-200); transform: translateY(-2px); box-shadow: var(--shadow); }
.ticket-row .status { font-size: 11.5px; font-weight: 800; padding: 5px 12px; border-radius: var(--radius-full); }
.status.answered { background: color-mix(in srgb, var(--success) 18%, var(--surface)); color: var(--success); }
.status.pending { background: color-mix(in srgb, var(--danger) 18%, var(--surface)); color: var(--danger); }
.ticket-thread { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticket-thread li { padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; }
.ticket-thread li.label { background: transparent; border: 0; padding: 4px 4px 0; color: var(--text-soft); font-size: 12px; font-weight: 700; }

/* Contact split */
.contact-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; } }

/* Result / status card */
.result-card { text-align: center; max-width: 620px; margin: 60px auto; }
.result-card i.result-icon { font-size: 46px; margin-bottom: 14px; display: inline-block; }
.result-card.is-success i { color: var(--success); }
.result-card.is-warning i { color: var(--warning); }
.result-card.is-info i { color: var(--primary); }

/* Gallery (product detail) */
.pd-gallery-thumb { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 12px; }
.pd-gallery-thumb img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: contain; background: var(--surface-2); }
.s-tab-zoom { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.s-tab-zoom li a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--border); }
.s-tab-zoom li a.active, .s-tab-zoom li a:hover { border-color: var(--primary); }
.s-tab-zoom img { width: 64px; height: 64px; object-fit: cover; display: block; }

.pd-title { font-size: 21px; margin-bottom: 4px; }
.pd-meta-row { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-soft); font-size: 12.5px; margin-bottom: 6px; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.color-swatches label { margin: 0; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.qty-row input { width: 80px !important; text-align: center; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share-row .label { width: 100%; font-size: 12.5px; color: var(--text-soft); margin-bottom: 2px; }
.share-row a { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; }
.share-row a:hover { background: var(--primary-50); color: var(--primary); border-color: var(--primary-200); }

/* Tabs (rebuilt visual, functional attrs kept: data-toggle=tab / .nav / .tab-pane) */
.tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; list-style: none; padding: 0; }
.tab-nav li a { display: inline-flex; padding: 12px 18px; font-weight: 700; font-size: 13.5px; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-nav li a.active { color: var(--primary); border-color: var(--primary); }

.review-item { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); }
.review-item img { width: 46px; height: 46px; border-radius: var(--radius-full); object-fit: cover; }
.star-row { color: var(--gold); font-size: 13px; }
.rating-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.rating-pick label {
  border: 1px solid var(--border) !important; background: var(--surface) !important; color: var(--text) !important;
  padding: 8px 14px !important; border-radius: var(--radius-full) !important; cursor: pointer; font-weight: 700;
}

/* Cart summary */
.cart-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.cart-summary h3 { font-size: 16px; margin-bottom: 14px; }
.cart-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.cart-line.total { border-bottom: 0; padding-top: 14px; font-weight: 800; font-size: 15px; color: var(--text); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   23. AURORA LAYER — bold visual identity upgrade (hero, glow cards, motion)
   Loaded last: wins the cascade over the flatter rules above without
   deleting them, so nothing regresses if a page doesn't use the new classes.
   ========================================================================== */

:root {
  --aurora-1: #17B3A3;
  --aurora-2: #6C5CE7;
  --aurora-3: #C99A3A;
  --aurora-pink: #E6668E;
  --glow-primary: 20, 184, 166;
  --grain-opacity: .035;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html[data-theme="dark"] {
  --glow-primary: 63, 187, 170;
  --bg: #0A0E14;
  --bg-alt: #10151D;
  --surface: #141A23;
  --surface-2: #1B222D;
  --border: #262E3A;
  --border-strong: #37414F;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---- ambient page backdrop -------------------------------------------- */
body {
  position: relative;
  background:
    radial-gradient(1000px 500px at 8% -8%, color-mix(in srgb, var(--aurora-1) 10%, transparent), transparent 60%),
    radial-gradient(900px 480px at 96% 0%, color-mix(in srgb, var(--aurora-2) 9%, transparent), transparent 60%),
    var(--bg) !important;
  background-attachment: fixed;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(1100px 620px at 10% -10%, color-mix(in srgb, var(--aurora-1) 16%, transparent), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, color-mix(in srgb, var(--aurora-2) 14%, transparent), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, color-mix(in srgb, var(--aurora-pink) 8%, transparent), transparent 65%),
    var(--bg) !important;
  background-attachment: fixed;
}

@keyframes floatY { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes floatX { 0%, 100% { transform: translateX(0) } 50% { transform: translateX(12px) } }
@keyframes spinSlow { to { transform: rotate(360deg) } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--glow-primary), .45) } 50% { box-shadow: 0 0 0 8px rgba(var(--glow-primary), 0) } }
@keyframes shimmer { 0% { background-position: -400px 0 } 100% { background-position: 400px 0 } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: translateY(0) } }
@keyframes popIn { 0% { transform: scale(.85); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }
@keyframes gradientShift { 0% { background-position: 0% 50% } 50% { background-position: 100% 50% } 100% { background-position: 0% 50% } }

.reveal { animation: fadeUp .7s var(--ease-spring) both; }
.reveal-1 { animation-delay: .05s; } .reveal-2 { animation-delay: .12s; } .reveal-3 { animation-delay: .19s; }
.reveal-4 { animation-delay: .26s; } .reveal-5 { animation-delay: .33s; } .reveal-6 { animation-delay: .4s; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-spring), transform .7s var(--ease-spring); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* gradient text helper */
.text-gradient {
  background: linear-gradient(92deg, var(--aurora-1), var(--aurora-2) 55%, var(--aurora-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto;
}

/* ---- HERO (home page) --------------------------------------------------- */
.hero-aurora {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 18px 20px 40px;
  padding: 64px 40px 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  isolation: isolate;
}
.hero-aurora::before {
  content: ''; position: absolute; inset: -2px; z-index: -2;
  background: conic-gradient(from 180deg at 30% 20%, var(--aurora-1), var(--aurora-2), var(--aurora-pink), var(--aurora-3), var(--aurora-1));
  opacity: .16; filter: blur(60px);
}
html[data-theme="dark"] .hero-aurora::before { opacity: .34; }
.hero-aurora::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(2px);
}
.hero-blob {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  filter: blur(50px); opacity: .5; z-index: -1; pointer-events: none;
}
.hero-blob.b1 { background: var(--aurora-1); top: -80px; inset-inline-start: -60px; animation: floatY 9s ease-in-out infinite; }
.hero-blob.b2 { background: var(--aurora-2); bottom: -100px; inset-inline-end: -40px; animation: floatX 11s ease-in-out infinite; }
.hero-blob.b3 { background: var(--aurora-3); top: 30%; inset-inline-end: 20%; width: 140px; height: 140px; opacity: .35; animation: floatY 7s ease-in-out infinite reverse; }

.hero-aurora .eyebrow {
  background: color-mix(in srgb, var(--primary) 14%, var(--surface)); box-shadow: var(--shadow-sm);
}
.hero-aurora h1 {
  font-size: clamp(26px, 4vw, 42px); line-height: 1.35; margin: 14px 0 14px; max-width: 720px;
}
.hero-aurora p.hero-sub { font-size: 15px; max-width: 560px; margin-bottom: 26px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-cta-row .btn-ghost {
  background: transparent !important; color: var(--text) !important; border: 1px solid var(--border-strong) !important;
  box-shadow: none !important;
}
.hero-cta-row .btn-ghost:hover { background: var(--surface-2) !important; transform: translateY(-1px); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 34px; }
.hero-stats .stat { min-width: 90px; }
.hero-stats .stat strong { display: block; font-size: 22px; font-weight: 800; color: var(--text); }
.hero-stats .stat strong .fa { font-size: 16px; color: var(--primary); margin-inline-start: 4px; }
.hero-stats .stat span { font-size: 12px; color: var(--text-soft); }

/* trust / feature strip under hero */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 20px 44px; }
@media (max-width: 900px) { .feature-strip { grid-template-columns: repeat(2, 1fr); } }
.feature-strip .f-item {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.feature-strip .f-item:hover { transform: translateY(-3px); border-color: var(--primary-200); box-shadow: var(--shadow); }
.feature-strip .f-item i {
  width: 42px; height: 42px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2)); color: #fff;
}
.feature-strip .f-item strong { display: block; font-size: 13.5px; }
.feature-strip .f-item span { font-size: 11.5px; color: var(--text-soft); }

/* section header with gradient accent bar + link */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.section-head .section_title h2 { margin-bottom: 4px; }
.section-head .section-tag { font-size: 12.5px; color: var(--text-soft); }
.section-head .see-all { font-size: 13px; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.section-head .see-all:hover { text-decoration: underline; }

/* ---- glow product cards -------------------------------------------------- */
.single_product { position: relative; }
.single_product::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
  opacity: 0; transition: opacity .35s ease;
}
.single_product:hover::before { opacity: .55; }
.single_product { transform-style: preserve-3d; }
.single_product:hover { transform: translateY(-7px) scale(1.012); }
.current_price {
  background: linear-gradient(92deg, var(--primary), var(--aurora-2));
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.label_sale { background: linear-gradient(120deg, var(--aurora-3), #e8c266) !important; }

.add_to_cart a { position: relative; overflow: hidden; }
.add_to_cart a::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-120%); transition: transform .55s ease;
}
.add_to_cart a:hover::after { transform: translateX(120%); }

/* just-added pulse */
.pulse-once { animation: popIn .4s var(--ease-spring); }

/* ---- cart badge ---------------------------------------------------------- */
.icon-btn.basket { position: relative; }
.icon-btn .badge-count.bump { animation: popIn .35s var(--ease-spring); }
.icon-btn.basket.cart-glow { animation: pulseGlow 1.1s ease-out 1; }

/* ---- cart page polish ----------------------------------------------------- */
.cart_page_bg { position: relative; }
.cart-row-fade { animation: fadeUp .35s ease both; }
.cart-row-removing { opacity: 0 !important; transform: translateX(24px); transition: opacity .3s ease, transform .3s ease; }
.cart_quantity_button { transition: var(--transition); }
.cart_quantity_button.is-updating { opacity: .55; pointer-events: none; }
.cart_quantity_up:active, .cart_quantity_down:active { transform: scale(.9); }
.cart_quantity_input { font-weight: 800 !important; color: var(--primary) !important; background: transparent !important; }

.cart-summary {
  background: linear-gradient(165deg, var(--surface), color-mix(in srgb, var(--primary) 6%, var(--surface)));
  border: 1px solid var(--border);
}
.cart-summary::before {
  content: ''; display: block; height: 4px; margin: -1px -1px 18px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--aurora-1), var(--aurora-2), var(--aurora-3));
  background-size: 200% auto; animation: gradientShift 6s ease infinite;
}
.cart-line.total p:last-child { font-size: 18px; }
.checkout_btn a { width: 100%; position: relative; overflow: hidden; }
.checkout_btn a::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-120%); transition: transform .6s ease;
}
.checkout_btn a:hover::after { transform: translateX(120%); }

.cart-empty-state { text-align: center; padding: 70px 24px; }
.cart-empty-state i {
  font-size: 54px; width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; background: var(--primary-50); color: var(--primary);
  animation: floatY 4s ease-in-out infinite;
}
.cart-empty-state h3 { font-size: 19px; margin-bottom: 8px; }
.cart-empty-state p { font-size: 13.5px; margin-bottom: 22px; }

/* ---- dashboard stat cards -------------------------------------------------- */
.stat-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 900px) { .stat-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-card-grid { grid-template-columns: 1fr; } }
.stat-card {
  position: relative; overflow: hidden; padding: 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.stat-card i {
  width: 42px; height: 42px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
}
.stat-card.gold i { background: linear-gradient(135deg, var(--aurora-3), #e8c266); }
.stat-card.pink i { background: linear-gradient(135deg, var(--aurora-pink), var(--aurora-2)); }
.stat-card strong { display: block; font-size: 20px; font-weight: 800; }
.stat-card span { font-size: 12px; color: var(--text-soft); }

.completion-ring { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 20px; }
.completion-ring svg { transform: rotate(-90deg); flex-shrink: 0; }
.completion-ring circle { fill: none; stroke-width: 8; }
.completion-ring .bg { stroke: var(--surface-2); }
.completion-ring .fg { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease-spring); }
.completion-ring strong { font-size: 15px; display: block; }
.completion-ring span { font-size: 12.5px; color: var(--text-soft); }

/* ---- toast / skeleton shimmer utility (available for future async UI) ----- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%); background-size: 400px 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius-sm); }

/* ---- header polish: gradient underline accent ------------------------------ */
.site-header { border-bottom: 1px solid var(--border); position: relative; }
.site-header::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--aurora-1), var(--aurora-2), var(--aurora-3), transparent);
  opacity: .6;
}
.site-header__logo img { filter: drop-shadow(0 1px 6px rgba(var(--glow-primary), .25)); }
.site-nav a.active { position: relative; }
.site-nav a.active::after {
  content: ''; position: absolute; bottom: 3px; inset-inline: 14px; height: 2px; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--aurora-1), var(--aurora-2));
}

@media (max-width: 767px) {
  .hero-aurora { margin: 12px 12px 28px; padding: 40px 22px 32px; }
  .feature-strip { margin: 0 12px 30px; }
  .stat-card-grid { gap: 10px; }
}

/* ==========================================================================
   24. PRODUCT DETAIL + LIST — buy box, gallery, empty state polish
   ========================================================================== */

.product_d_right { position: relative; }
@media (min-width: 992px) {
  .buy-box-sticky { position: sticky; top: calc(var(--header-h) + 18px); }
}

.pd-gallery-thumb { position: relative; background: var(--surface-2); }
.pd-gallery-thumb img { transition: transform .5s ease; }
.pd-gallery-thumb:hover img { transform: scale(1.04); }
.s-tab-zoom li a { transition: var(--transition); }
.s-tab-zoom li a:hover { transform: translateY(-2px); }

.pd-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.pd-badges span {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  padding: 6px 12px; border-radius: var(--radius-full); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
}
.pd-badges span.ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.pd-badges span i { color: inherit; }

.price_box .current_price { font-size: 22px; }
.product_variant.quantity.qty-row { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.product_variant.quantity.qty-row button.btn { flex-shrink: 0; animation: none; }
.product_variant.quantity.qty-row button.btn:hover { animation: pulseGlow 1s ease-out 1; }

.color-swatches label { transition: var(--transition); }
.color-swatches label:hover { transform: translateY(-2px); }

.tab-nav li a { position: relative; }
.tab-nav li a.active::after { content: ''; position: absolute; bottom: -1px; inset-inline: 6px; height: 2px; background: linear-gradient(90deg, var(--aurora-1), var(--aurora-2)); border-radius: var(--radius-full); }

/* empty state reuse for product list / search */
.no-results-state { text-align: center; padding: 60px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.no-results-state i { font-size: 46px; width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; background: var(--primary-50); color: var(--primary); }
.no-results-state h3 { font-size: 17px; margin-bottom: 6px; }
.no-results-state p { font-size: 13.5px; margin-bottom: 18px; }

/* products grid stagger animation */
.shop_wrapper .single_product, .product_carousel .single_product { animation: fadeUp .55s var(--ease-spring) both; }
.shop_wrapper .col-lg-4:nth-child(3n+1) .single_product { animation-delay: .02s; }
.shop_wrapper .col-lg-4:nth-child(3n+2) .single_product { animation-delay: .08s; }
.shop_wrapper .col-lg-4:nth-child(3n+3) .single_product { animation-delay: .14s; }
