/* =========================================================
   MODAZ - Minimalist eCommerce Theme for OpenCart 3.0.5.0
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:   #111111;
  --color-secondary: #555555;
  --color-muted:     #999999;
  --color-border:    #e8e8e8;
  --color-bg:        #ffffff;
  --color-bg-light:  #f9f9f9;
  --color-accent:    #c9a96e;
  --color-sale:      #e74c3c;
  --font-main:       'Manrope', sans-serif;
  --transition:      0.3s ease;
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:       0 4px 20px rgba(0,0,0,0.10);
  --radius:          0px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--color-primary);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, button, select, textarea { font-family: var(--font-main); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  margin: 0.75rem auto 0;
}
.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

/* =========================================================
   HEADER
   ========================================================= */
#header-top-bar {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 8px 0;
}
#header-top-bar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}
#header-top-bar a { color: #ccc; }
#header-top-bar a:hover { color: #fff; }
.top-bar-message { flex: 1; text-align: center; }
.top-bar-links { display: flex; gap: 16px; align-items: center; }
.top-bar-links a { display: flex; align-items: center; gap: 5px; }

#header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 30px;
  gap: 20px;
}

/* Logo */
#logo {
  display: flex;
  align-items: center;
}
#logo a {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
#logo img { max-height: 50px; }

/* Main Nav */
#nav-main {
  display: flex;
  align-items: center;
  justify-content: center;
}
#nav-main > ul {
  display: flex;
  gap: 2px;
  align-items: center;
}
#nav-main > ul > li {
  position: relative;
}
#nav-main > ul > li > a {
  display: block;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  transition: color var(--transition);
}
#nav-main > ul > li > a:hover,
#nav-main > ul > li.active > a { color: var(--color-accent); }

/* Dropdown */
#nav-main .dropdown-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  z-index: 100;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
#nav-main > ul > li {
  position: relative;
}
#nav-main > ul > li:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#nav-main .dropdown-menu a {
  display: block;
  padding: 9px 20px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  white-space: nowrap;
}
#nav-main .dropdown-menu a:hover { color: var(--color-primary); background: var(--color-bg-light); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.header-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--color-primary);
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 50%;
  transition: background var(--transition);
}
.header-action-btn:hover { background: var(--color-bg-light); color: var(--color-accent); }
.header-action-btn svg { width: 20px; height: 20px; }
.badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.search-overlay.active { display: flex; }
.search-overlay-inner { width: 100%; max-width: 640px; padding: 0 20px; }
.search-overlay input {
  width: 100%;
  font-size: 2rem;
  font-weight: 300;
  border: none;
  border-bottom: 2px solid var(--color-primary);
  padding: 16px 0;
  outline: none;
  background: transparent;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}
.search-overlay input::placeholder { color: var(--color-muted); }
.search-overlay-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-secondary);
  background: none;
  border: none;
  line-height: 1;
}

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

/* =========================================================
   MAIN CONTENT WRAPPER
   ========================================================= */
#content { min-height: 60vh; }

/* =========================================================
   HERO / BANNER SLIDER
   ========================================================= */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-light);
}
.hero-slide {
  position: relative;
  width: 100%;
}
.hero-slide img {
  width: 100%;
  height: 85vh;
  object-fit: cover;
  object-position: center;
}
.hero-caption {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  max-width: 480px;
}
.hero-caption-center {
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.hero-pretitle {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-secondary);
  margin-bottom: 12px;
  display: block;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.hero-title span { display: block; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-modaz {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-dark {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-dark:hover { background: transparent; color: var(--color-primary); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-accent:hover { background: #b8904e; border-color: #b8904e; color: #fff; }
.btn-white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.btn-white:hover { background: transparent; color: #fff; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn, button.btn-primary, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  transition: all var(--transition);
  border-radius: 0;
}
.btn:hover, button.btn-primary:hover { background: transparent; color: var(--color-primary); }
.btn-default { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn-default:hover { border-color: var(--color-primary); }
.btn-danger { background: var(--color-sale); border-color: var(--color-sale); color: #fff; }
.btn-danger:hover { background: #c0392b; border-color: #c0392b; }
.btn-info { background: #3498db; border-color: #3498db; color: #fff; }
.btn-warning { background: #f39c12; border-color: #f39c12; color: #fff; }

/* =========================================================
   LAYOUT CONTAINERS
   ========================================================= */
.container-modaz {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 30px;
}
#container { max-width: 1280px; margin: 0 auto; padding: 0 30px; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 70px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 100px 0; }
.section-bg { background: var(--color-bg-light); }

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.product-thumb {
  position: relative;
  background: #fff;
  transition: transform var(--transition);
}
.product-thumb:hover { transform: translateY(-4px); }
.product-thumb:hover .product-actions { opacity: 1; transform: translateY(0); }
.product-thumb:hover .product-img-secondary { opacity: 1; }

.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-bg-light);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-thumb:hover .product-img-wrap img { transform: scale(1.04); }

.product-img-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  display: inline-block;
}
.badge-new { background: var(--color-primary); color: #fff; }
.badge-sale { background: var(--color-sale); color: #fff; }
.badge-hot { background: var(--color-accent); color: #fff; }

.product-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  padding: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}
.product-actions .btn-cart {
  flex: 1;
  font-size: 0.75rem;
  padding: 10px 16px;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.product-actions .btn-cart:hover { background: var(--color-accent); }
.product-actions .btn-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.product-actions .btn-icon:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.product-actions .btn-icon svg { width: 16px; height: 16px; }

.product-info { padding: 14px 0 6px; }
.product-category-tag {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 5px;
}
.product-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-name a:hover { color: var(--color-accent); }
.product-price { display: flex; align-items: center; gap: 8px; }
.price-new { font-weight: 600; font-size: 0.95rem; color: var(--color-primary); }
.price-old { font-size: 0.85rem; color: var(--color-muted); text-decoration: line-through; }
.price-special { color: var(--color-sale); font-weight: 600; }

.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.stars { color: #f5c518; font-size: 0.75rem; letter-spacing: 2px; }
.rating-count { font-size: 0.75rem; color: var(--color-muted); }

/* =========================================================
   CATEGORY BANNER STRIPS
   ========================================================= */
.category-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-banner {
  position: relative;
  overflow: hidden;
}
.category-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.category-banner:hover img { transform: scale(1.06); }
.category-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  color: #fff;
}
.category-banner-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.category-banner-link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 2px;
  display: inline-block;
}
.category-banner-link:hover { color: #fff; border-color: #fff; }

/* =========================================================
   PROMO STRIP
   ========================================================= */
.promo-strip {
  background: var(--color-primary);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.promo-strip h2 { font-size: 2rem; font-weight: 300; letter-spacing: 0.08em; margin-bottom: 12px; }
.promo-strip p { font-size: 1rem; color: rgba(255,255,255,0.7); margin-bottom: 24px; }

/* =========================================================
   FEATURES BAR
   ========================================================= */
.features-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.features-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 30px;
  border-right: 1px solid var(--color-border);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-text h4 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.feature-text p { font-size: 0.78rem; color: var(--color-muted); }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter-section {
  background: var(--color-bg-light);
  padding: 70px 0;
  text-align: center;
}
.newsletter-section h2 { font-size: 1.6rem; margin-bottom: 8px; }
.newsletter-section p { color: var(--color-muted); margin-bottom: 30px; }
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 2px solid var(--color-primary);
}
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-size: 0.9rem;
  background: transparent;
  letter-spacing: 0.04em;
}
.newsletter-form button {
  padding: 14px 28px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--color-accent); }

/* =========================================================
   FOOTER
   ========================================================= */
#footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { padding-right: 20px; }
.footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  display: block;
}
.footer-logo img { max-height: 40px; filter: brightness(10); }
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.6);
}
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.social-link:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.social-link svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-payments { display: flex; gap: 8px; }
.payment-icon {
  height: 24px;
  opacity: 0.5;
  filter: brightness(10);
  transition: opacity var(--transition);
}
.payment-icon:hover { opacity: 1; }

/* =========================================================
   BREADCRUMB
   ========================================================= */
#common-home #column-right,
#common-home #column-left { display: none; }

.breadcrumb-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-light);
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--color-border);
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li:last-child { color: var(--color-primary); font-weight: 500; }

/* =========================================================
   PAGE LAYOUT
   ========================================================= */
.page-wrapper { padding: 50px 0; }
.row-layout {
  display: grid;
  gap: 40px;
}
.row-layout.has-sidebar-left { grid-template-columns: 260px 1fr; }
.row-layout.has-sidebar-right { grid-template-columns: 1fr 260px; }
.row-layout.has-both-sidebars { grid-template-columns: 220px 1fr 220px; }

/* =========================================================
   SIDEBAR
   ========================================================= */
#column-left, #column-right { }

.module-box {
  margin-bottom: 30px;
  border: 1px solid var(--color-border);
  padding: 0;
}
.module-box-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.module-box-content { padding: 16px 18px; }

/* Category tree */
.category-tree { list-style: none; padding: 0; }
.category-tree li { border-bottom: 1px solid var(--color-border); }
.category-tree li:last-child { border-bottom: none; }
.category-tree li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px;
  font-size: 0.85rem;
  color: var(--color-secondary);
  transition: all var(--transition);
}
.category-tree li a:hover { color: var(--color-primary); background: var(--color-bg-light); padding-left: 22px; }
.category-tree li.active > a { color: var(--color-primary); font-weight: 600; }

/* Price filter */
.price-range-slider { padding: 10px 0; }
.price-inputs { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.price-inputs input {
  width: 80px;
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  outline: none;
}
.price-inputs input:focus { border-color: var(--color-primary); }

/* =========================================================
   PRODUCT CATEGORY PAGE
   ========================================================= */
.category-header { margin-bottom: 30px; }
.category-header h1 { font-size: 1.8rem; margin-bottom: 8px; }
.category-desc { color: var(--color-secondary); font-size: 0.9rem; line-height: 1.7; }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.shop-toolbar-left, .shop-toolbar-right { display: flex; align-items: center; gap: 12px; }
.shop-results { font-size: 0.82rem; color: var(--color-muted); }

.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  cursor: pointer;
  background: transparent;
  color: var(--color-muted);
  transition: all var(--transition);
}
.view-btn.active, .view-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.view-btn svg { width: 16px; height: 16px; }

.sort-select, .limit-select {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  font-family: var(--font-main);
  outline: none;
  cursor: pointer;
  color: var(--color-primary);
  background: #fff;
  min-width: 160px;
}
.sort-select:focus, .limit-select:focus { border-color: var(--color-primary); }

/* List view override */
.product-grid.list-view {
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
}
.product-grid.list-view .product-thumb {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  background: #fff;
  transform: none;
}
.product-grid.list-view .product-img-wrap {
  aspect-ratio: auto;
  height: 240px;
}
.product-grid.list-view .product-info { padding: 24px; }
.product-grid.list-view .product-name { font-size: 1.1rem; margin-bottom: 10px; }
.product-grid.list-view .product-desc { display: block !important; font-size: 0.85rem; color: var(--color-secondary); line-height: 1.7; margin: 10px 0; }
.product-grid.list-view .product-actions { position: static; opacity: 1; transform: none; padding: 0; margin-top: 16px; }

.product-desc { display: none; }

/* Pagination */
.pagination-wrap { margin-top: 40px; display: flex; justify-content: center; }
.pagination {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination li a, .pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-secondary);
  transition: all var(--transition);
}
.pagination li a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination li.active span {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =========================================================
   PRODUCT DETAIL PAGE
   ========================================================= */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

.product-gallery { position: relative; }
.product-main-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-bg-light);
  margin-bottom: 12px;
  cursor: zoom-in;
}
.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.product-thumb-item {
  width: 76px;
  height: 76px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.product-thumb-item.active, .product-thumb-item:hover { border-color: var(--color-primary); }
.product-thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { padding-top: 10px; }
.product-detail-category {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
  display: block;
}
.product-detail-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.2;
}
.product-detail-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.product-detail-rating .stars { font-size: 0.9rem; }
.product-detail-rating a { font-size: 0.8rem; color: var(--color-muted); text-decoration: underline; }
.product-detail-price { margin-bottom: 20px; }
.product-detail-price .price-new { font-size: 1.6rem; font-weight: 700; }
.product-detail-price .price-old { font-size: 1.1rem; }
.product-detail-price .price-tax { font-size: 0.78rem; color: var(--color-muted); margin-top: 4px; display: block; }

.product-detail-desc {
  font-size: 0.9rem;
  color: var(--color-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.product-options { margin-bottom: 24px; }
.product-option-group { margin-bottom: 16px; }
.option-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
}
.option-selected-val { font-weight: 400; color: var(--color-muted); }
.option-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 34px;
  height: 34px;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--transition);
}
.swatch.active, .swatch:hover { border-color: var(--color-primary); }
.size-swatch {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0 10px;
  width: auto;
}
.size-swatch.active, .size-swatch:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.size-swatch.out-of-stock { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.product-qty-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
}
.qty-btn {
  width: 38px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-primary);
  transition: background var(--transition);
  padding: 0;
}
.qty-btn:hover { background: var(--color-bg-light); }
.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  height: 42px;
  font-size: 0.9rem;
  font-family: var(--font-main);
  font-weight: 500;
  outline: none;
}

.product-add-actions { display: flex; gap: 10px; margin-bottom: 24px; }
.product-add-actions .btn-add-cart {
  flex: 1;
  padding: 14px 24px;
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}
.product-add-actions .btn-add-cart:hover { background: var(--color-accent); border-color: var(--color-accent); }
.product-add-actions .btn-wishlist, .product-add-actions .btn-compare {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: none;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-secondary);
}
.product-add-actions .btn-wishlist:hover, .product-add-actions .btn-compare:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.product-meta { font-size: 0.82rem; color: var(--color-muted); display: flex; flex-direction: column; gap: 6px; }
.product-meta span { display: flex; gap: 6px; }
.product-meta span strong { color: var(--color-primary); font-weight: 500; }

/* Tabs */
.product-tabs { margin-top: 60px; border-top: 1px solid var(--color-border); }
.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  gap: 0;
  margin-bottom: 30px;
}
.tab-btn {
  padding: 14px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tab-btn:hover { color: var(--color-primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p { font-size: 0.9rem; line-height: 1.8; color: var(--color-secondary); }

/* Review form */
.review-form { max-width: 540px; }
.form-group { margin-bottom: 18px; }
.form-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 7px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  font-size: 0.88rem;
  font-family: var(--font-main);
  outline: none;
  transition: border-color var(--transition);
  background: #fff;
  color: var(--color-primary);
}
.form-control:focus { border-color: var(--color-primary); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 12px;
  border-bottom: 2px solid var(--color-primary);
  text-align: left;
  color: var(--color-primary);
}
.cart-table td {
  padding: 20px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  font-size: 0.9rem;
}
.cart-product-cell { display: flex; align-items: center; gap: 16px; }
.cart-product-img { width: 80px; height: 100px; object-fit: cover; flex-shrink: 0; }
.cart-product-info .name { font-weight: 500; font-size: 0.9rem; margin-bottom: 4px; }
.cart-product-info .options { font-size: 0.78rem; color: var(--color-muted); }
.cart-remove-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: none;
  cursor: pointer;
  color: var(--color-muted);
  transition: all var(--transition);
}
.cart-remove-btn:hover { background: var(--color-sale); color: #fff; border-color: var(--color-sale); }

.cart-totals {
  background: var(--color-bg-light);
  padding: 30px;
  border: 1px solid var(--color-border);
}
.cart-totals h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.totals-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; }
.totals-row.total { font-weight: 700; font-size: 1rem; border-top: 2px solid var(--color-primary); margin-top: 10px; padding-top: 14px; }

.coupon-form { display: flex; gap: 8px; margin-top: 20px; }
.coupon-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  outline: none;
  font-size: 0.85rem;
  font-family: var(--font-main);
}
.coupon-form input:focus { border-color: var(--color-primary); }
.coupon-form button {
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.coupon-form button:hover { background: var(--color-accent); }

/* =========================================================
   ACCOUNT / FORMS
   ========================================================= */
.account-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
}
.account-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.account-card p { color: var(--color-muted); font-size: 0.88rem; margin-bottom: 28px; }
.form-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
  color: var(--color-muted);
  font-size: 0.8rem;
}
.form-divider::before, .form-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--color-border);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }
.form-footer-link { font-size: 0.82rem; text-align: center; color: var(--color-muted); margin-top: 16px; }
.form-footer-link a { color: var(--color-primary); font-weight: 500; text-decoration: underline; }

/* Alerts */
.alert {
  padding: 13px 18px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: #d4edda; color: #155724; border-left: 3px solid #28a745; }
.alert-danger { background: #f8d7da; color: #721c24; border-left: 3px solid var(--color-sale); }
.alert-warning { background: #fff3cd; color: #856404; border-left: 3px solid #ffc107; }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 3px solid #17a2b8; }

/* =========================================================
   CHECKOUT
   ========================================================= */
.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.checkout-step.active { color: var(--color-primary); }
.checkout-step.done { color: var(--color-accent); }
.step-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.75rem;
}
.step-divider { width: 60px; height: 1px; background: var(--color-border); margin: 0 8px; }

.checkout-section {
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}
.checkout-section-header {
  padding: 16px 24px;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}
.checkout-section-header h3 {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.checkout-section-body { padding: 24px; }

/* =========================================================
   MINI CART SIDEBAR
   ========================================================= */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: #fff;
  z-index: 3000;
  box-shadow: var(--shadow-md);
  transition: right 0.4s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2999;
}
.cart-sidebar-overlay.open { display: block; }
.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}
.cart-sidebar-header h3 { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
}
.cart-sidebar-items { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-sidebar-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.cart-sidebar-img { width: 72px; height: 90px; object-fit: cover; flex-shrink: 0; }
.cart-sidebar-info { flex: 1; }
.cart-sidebar-name { font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; }
.cart-sidebar-price { font-size: 0.85rem; color: var(--color-accent); font-weight: 600; }
.cart-sidebar-qty { font-size: 0.78rem; color: var(--color-muted); }
.cart-sidebar-footer { padding: 20px 24px; border-top: 1px solid var(--color-border); }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 600; font-size: 1rem; margin-bottom: 16px; }
.cart-sidebar-actions { display: flex; flex-direction: column; gap: 10px; }

/* =========================================================
   INFORMATION / STATIC PAGES
   ========================================================= */
.info-page { max-width: 760px; }
.info-page h1 { font-size: 2rem; margin-bottom: 24px; }
.info-page p { font-size: 0.92rem; line-height: 1.8; color: var(--color-secondary); margin-bottom: 16px; }
.info-page h2 { font-size: 1.2rem; margin: 28px 0 12px; }

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: 1.4rem; margin-bottom: 16px; }
.contact-info p { font-size: 0.9rem; color: var(--color-secondary); line-height: 1.8; margin-bottom: 24px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.contact-detail svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-detail span { font-size: 0.88rem; color: var(--color-secondary); line-height: 1.6; }

/* =========================================================
   SEARCH RESULTS
   ========================================================= */
.search-form-bar {
  display: flex;
  border: 2px solid var(--color-primary);
  max-width: 540px;
  margin-bottom: 32px;
}
.search-form-bar input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-family: var(--font-main);
}
.search-form-bar button {
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.search-form-bar button:hover { background: var(--color-accent); }

/* =========================================================
   404 ERROR PAGE
   ========================================================= */
.error-page {
  text-align: center;
  padding: 80px 20px;
}
.error-page h1 { font-size: 8rem; font-weight: 700; color: var(--color-border); line-height: 1; margin-bottom: 0; }
.error-page h2 { font-size: 1.8rem; margin-bottom: 14px; }
.error-page p { color: var(--color-muted); margin-bottom: 32px; }

/* =========================================================
   SCROLL TO TOP
   ========================================================= */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  border: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--color-accent); }
#scroll-top svg { width: 18px; height: 18px; }

/* =========================================================
   SLICK / SWIPER OVERRIDES
   ========================================================= */
.slick-dots { bottom: 20px; }
.slick-dots li button:before { font-size: 8px; color: #fff; opacity: 0.6; }
.slick-dots li.slick-active button:before { opacity: 1; }
.slick-prev, .slick-next {
  z-index: 10;
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.9) !important;
  color: var(--color-primary) !important;
  transition: all var(--transition);
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.slick-prev { left: 20px; }
.slick-next { right: 20px; }
.slick-prev:before, .slick-next:before { display: none; }
.slick-prev:hover, .slick-next:hover { background: var(--color-primary) !important; color: #fff !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 992px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  #nav-main { display: none; }
  .mobile-menu-btn { display: flex; }
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
  .category-banners { grid-template-columns: 1fr 1fr; }
  .features-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .features-bar-inner .feature-item:nth-child(2) { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .row-layout.has-sidebar-left, .row-layout.has-sidebar-right { grid-template-columns: 1fr; }
  #column-left, #column-right { display: none; }
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero-slide img { height: 70vh; }
  .hero-caption { left: 5%; max-width: 90%; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; border: none; gap: 8px; }
  .newsletter-form input { border: 2px solid var(--color-primary); padding: 12px 16px; }
  .newsletter-form button { padding: 13px 28px; }
  .category-banners { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100%; right: -100%; }
  .account-card { padding: 24px; }
  .checkout-progress { display: none; }
  .shop-toolbar { flex-direction: column; align-items: flex-start; }
  .features-bar-inner { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--color-border); }
  .feature-item:last-child { border-bottom: none; }
  #header-top-bar .top-bar-links { display: none; }
  .header-inner { padding: 14px 16px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .container-modaz, #container { padding: 0 16px; }
  .page-wrapper { padding: 30px 0; }
  .section { padding: 48px 0; }
}

/* =========================================================
   MOBILE NAV DRAWER
   ========================================================= */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 3000;
  transition: left 0.35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-nav-drawer.open { left: 0; }
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2999;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav-header span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mobile-nav-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; }
.mobile-nav-menu { list-style: none; padding: 10px 0; }
.mobile-nav-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-bg-light);
}
.mobile-nav-menu li a:hover { background: var(--color-bg-light); }
.mobile-nav-sub { display: none; background: var(--color-bg-light); }
.mobile-nav-sub a { padding-left: 34px; font-weight: 400; color: var(--color-secondary); font-size: 0.84rem; }
.mobile-nav-sub.open { display: block; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease both; }
.fade-in-up-delay-1 { animation-delay: 0.1s; }
.fade-in-up-delay-2 { animation-delay: 0.2s; }
.fade-in-up-delay-3 { animation-delay: 0.3s; }

/* =========================================================
   OPENCART OVERRIDES
   ========================================================= */
.table-bordered { border: 1px solid var(--color-border); }
.table-bordered td, .table-bordered th { border: 1px solid var(--color-border); padding: 10px 14px; font-size: 0.88rem; }
.table-hover tbody tr:hover { background: var(--color-bg-light); }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(0,0,0,0.02); }
.text-danger { color: var(--color-sale) !important; }
.text-muted { color: var(--color-muted) !important; }
.required { color: var(--color-sale); }
#input-captcha { max-width: 240px; }
.thumbnail { border: 1px solid var(--color-border); padding: 4px; }
.well { background: var(--color-bg-light); border: 1px solid var(--color-border); padding: 24px; margin-bottom: 20px; }
.panel { border: 1px solid var(--color-border); margin-bottom: 20px; }
.panel-heading { padding: 14px 18px; background: var(--color-bg-light); border-bottom: 1px solid var(--color-border); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; }
.panel-body { padding: 20px; }
.list-group-item { padding: 10px 16px; border: 1px solid var(--color-border); font-size: 0.88rem; display: block; color: var(--color-secondary); }
.list-group-item.active, .list-group-item:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.input-group { display: flex; }
.input-group .form-control { flex: 1; }
.input-group-btn { display: flex; }
.checkbox label, .radio label { font-size: 0.88rem; cursor: pointer; display: flex; gap: 8px; align-items: flex-start; }
select.form-control { height: auto; }

/* Modaz mini-cart sidebar payload */
.modaz-mini-cart-content { display: flex; flex-direction: column; min-height: 100%; }
.modaz-mini-cart-list { display: flex; flex-direction: column; gap: 0; }
.modaz-mini-cart-row { display: grid; grid-template-columns: 64px 1fr auto 24px; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--color-border); list-style: none; }
.modaz-mini-cart-thumb img { width: 64px; height: 76px; object-fit: contain; display: block; }
.modaz-mini-cart-info { min-width: 0; }
.modaz-mini-cart-name { display: block; color: var(--color-main); font-size: 0.9rem; font-weight: 500; line-height: 1.35; text-decoration: none; }
.modaz-mini-cart-options { margin-top: 4px; color: var(--color-muted); font-size: 0.75rem; line-height: 1.3; }
.modaz-mini-cart-options small { display: block; }
.modaz-mini-cart-meta { margin-top: 5px; color: var(--color-muted); font-size: 0.82rem; }
.modaz-mini-cart-price { white-space: nowrap; font-size: 0.88rem; font-weight: 600; color: var(--color-main); }
.modaz-mini-cart-remove { width: 22px; height: 22px; line-height: 18px; padding: 0; border: 1px solid var(--color-border); background: #fff; color: var(--color-muted); border-radius: 50%; cursor: pointer; font-size: 16px; }
.modaz-mini-cart-remove:hover { color: #fff; background: var(--color-main); border-color: var(--color-main); }
.modaz-mini-cart-totals { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.modaz-mini-cart-total-row { display: flex; justify-content: space-between; gap: 20px; font-size: 0.88rem; margin-bottom: 8px; }
.modaz-mini-cart-total-row.is-final { font-size: 1rem; font-weight: 700; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--color-border); }
.modaz-mini-cart-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.modaz-cart-empty-state { text-align: center; padding: 55px 20px; color: var(--color-muted); font-size: 0.95rem; }
#modaz-cart-body ul { list-style: none; padding-left: 0; margin-left: 0; }


/* Modaz cart/alert hardening */
.modaz-alert { position: fixed; top: 0; left: 0; right: 0; z-index: 10050; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 60px; font-family: 'Manrope', sans-serif; font-size: 0.9rem; letter-spacing: .02em; border: 0; }
.modaz-alert-success { background: #eaf7ee; color: #145c2b; }
.modaz-alert-danger, .modaz-alert-warning { background: #fff1f0; color: #8a1f11; }
.modaz-alert button { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .75; }
.modaz-alert button:hover { opacity: 1; }
body > .alert { display: none !important; }
#modaz-cart-source { display: none !important; }


/* Checkout/cart stability fixes */
#checkout-checkout.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 30px 70px;
}
#checkout-checkout .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0 0 28px;
  font-size: 0.82rem;
}
#checkout-checkout h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 28px;
}
#checkout-checkout .panel-group {
  max-width: 980px;
}
#checkout-checkout .panel {
  border: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 16px;
  background: #fff;
}
#checkout-checkout .panel-heading {
  background: #fafafa;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 20px;
}
#checkout-checkout .panel-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#checkout-checkout .panel-body {
  padding: 24px 20px;
}
#checkout-checkout .form-control {
  height: 44px;
  border-radius: 0;
  box-shadow: none;
}
#checkout-checkout .btn,
#checkout-checkout .button,
#checkout-checkout input[type="button"] {
  border-radius: 0;
  min-height: 44px;
  padding: 11px 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}
#checkout-checkout .btn-primary,
#checkout-checkout #button-account,
#checkout-checkout #button-login,
#checkout-checkout #button-register,
#checkout-checkout #button-payment-address,
#checkout-checkout #button-shipping-address,
#checkout-checkout #button-shipping-method,
#checkout-checkout #button-payment-method,
#checkout-checkout #button-confirm {
  background: #111;
  border-color: #111;
  color: #fff;
}
.cart-sidebar .modaz-mini-cart-content { display: flex; flex-direction: column; min-height: calc(100vh - 92px); }
.cart-sidebar .modaz-mini-cart-actions { margin-top: auto; }
.cart-sidebar .btn-modaz { text-align: center; }
@media (max-width: 767px) {
  #checkout-checkout.container { padding: 28px 16px 50px; }
}

/* Checkout and order success finishing fixes */
#checkout-checkout.container,
#checkout-success.container,
.modaz-page-container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
#checkout-checkout #content,
#checkout-success #content {
  width: 100%;
}
#checkout-checkout .panel-body {
  padding: 22px 24px;
}
#collapse-checkout-confirm .panel-body,
#collapse-checkout-confirm .table-responsive {
  width: 100%;
}
#collapse-checkout-confirm table,
#collapse-checkout-confirm .table {
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 18px;
  border-collapse: collapse;
}
#collapse-checkout-confirm table th,
#collapse-checkout-confirm table td,
#collapse-checkout-confirm .table th,
#collapse-checkout-confirm .table td {
  padding: 14px 16px;
  vertical-align: middle;
}
#collapse-checkout-confirm .buttons,
#collapse-checkout-confirm .pull-right {
  width: 100%;
  text-align: right;
}
#checkout-success .breadcrumb,
#checkout-checkout .breadcrumb {
  margin: 24px 0 18px;
}
.modaz-success-card {
  max-width: 760px;
  margin: 50px auto 80px;
  padding: 56px 48px;
  border: 1px solid var(--color-border);
  background: #fff;
  text-align: center;
}
.modaz-success-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f8f45;
  background: #eaf7ef;
}
.modaz-success-card h1 {
  margin: 0 0 16px;
  font-size: 2.1rem;
  line-height: 1.2;
}
.modaz-success-message {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 1rem;
}
.modaz-success-card .buttons,
.modaz-success-card .pull-right {
  float: none !important;
  text-align: center;
}
@media (max-width: 767px) {
  #checkout-checkout.container,
  #checkout-success.container,
  .modaz-page-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .modaz-success-card {
    margin: 28px auto 48px;
    padding: 36px 22px;
  }
  #collapse-checkout-confirm table,
  #collapse-checkout-confirm .table {
    font-size: 0.85rem;
  }
}


/* Homepage hero full-width breakout */
.common-home #heroSlider.hero-fullwidth {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

/* Remove inherited spacing/borders from injected OpenCart slideshow */
.common-home #heroSlider .container,
.common-home #heroSlider .swiper-container,
.common-home #heroSlider .slideshow,
.common-home #heroSlider .swiper-viewport {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
}

/* Make homepage banner images full width without stretching */
.common-home #heroSlider img {
    width: 100%;
    height: 760px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.common-home #heroSlider a {
    display: block;
}

@media (max-width: 992px) {
    .common-home #heroSlider img {
        height: 520px;
    }
}

@media (max-width: 576px) {
    .common-home #heroSlider img {
        height: 380px;
    }
}

/* =========================================================
   MULTI-LEVEL NAVIGATION
   ========================================================= */
#nav-main .modaz-nav-root,
#nav-main .modaz-nav-root ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#nav-main .modaz-nav-root {
  display: flex;
  gap: 2px;
  align-items: center;
}
#nav-main .modaz-nav-root > li {
  position: relative;
}
#nav-main .modaz-nav-root li.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}
#nav-main .menu-chevron {
  font-size: 1rem;
  line-height: 1;
  opacity: .45;
  transform: rotate(90deg);
  transition: transform .2s ease, opacity .2s ease;
}
#nav-main .modaz-nav-root > li:hover > a .menu-chevron {
  opacity: .85;
}
#nav-main .dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
  padding: 10px 0;
  z-index: 2500;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
#nav-main li:hover > .dropdown-menu,
#nav-main li:focus-within > .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#nav-main .dropdown-menu .dropdown-menu {
  top: -10px;
  left: calc(100% - 1px);
  transform: translateX(10px);
}
#nav-main .dropdown-menu li:hover > .dropdown-menu,
#nav-main .dropdown-menu li:focus-within > .dropdown-menu {
  transform: translateX(0);
}
#nav-main .dropdown-menu li {
  position: relative;
}
#nav-main .dropdown-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 11px 20px;
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--color-secondary);
  white-space: nowrap;
}
#nav-main .dropdown-menu a:hover {
  color: var(--color-primary);
  background: var(--color-bg-light);
}
#nav-main .dropdown-menu .menu-chevron {
  transform: none;
}

.mobile-nav-menu ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--color-bg-light);
}
.mobile-nav-menu li.open > ul {
  display: block;
}
.mobile-nav-menu li li a {
  padding-left: 36px;
  font-weight: 400;
  color: var(--color-secondary);
}
.mobile-nav-menu li li li a {
  padding-left: 52px;
  font-size: .82rem;
}
.mobile-nav-menu .mobile-toggle {
  margin-left: auto;
  font-size: 1.1rem;
  line-height: 1;
}


/* =========================================================
   YEALINK-STYLE FULL-BLEED HOMEPAGE HERO
   ========================================================= */
.common-home #heroModuleWrap.hero-fullwidth,
.common-home .hero-yealink {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
}

.common-home #heroModuleWrap .container,
.common-home #heroModuleWrap .swiper-container,
.common-home #heroModuleWrap .swiper-viewport,
.common-home #heroModuleWrap .slideshow {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.hero-yealink {
  height: 720px;
}

.hero-yealink-track {
  height: 100%;
  display: flex;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}

.hero-yealink-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-yealink-link {
  display: block;
  height: 100%;
}

.hero-yealink-image,
.common-home #heroModuleWrap img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-yealink-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,.78) 0%, rgba(255,255,255,.45) 30%, rgba(255,255,255,.10) 58%, rgba(0,0,0,.04) 100%),
    linear-gradient(180deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,0) 55%, rgba(0,0,0,.08) 100%);
  pointer-events: none;
}

.hero-yealink-content {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: min(920px, 92vw);
  text-align: center;
  color: #111;
}

.hero-yealink-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #111;
}

.hero-yealink-content p {
  margin: 0 auto 32px;
  max-width: 680px;
  font-size: clamp(1rem, 1.15vw, 1.28rem);
  line-height: 1.65;
  color: #222;
  font-weight: 400;
}

.hero-yealink-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 52px;
  padding: 0 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.28);
  background: rgba(0,0,0,.62);
  color: #fff;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: all .25s ease;
}

.btn-hero-dark:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}

.hero-yealink-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.72);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all .2s ease;
}

.hero-yealink-arrow:hover {
  background: #111;
  color: #fff;
}

.hero-yealink-prev { left: 28px; }
.hero-yealink-next { right: 28px; }

.hero-yealink-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 7;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-yealink-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(0,0,0,.24);
  cursor: pointer;
  transition: all .2s ease;
}

.hero-yealink-dots button.active {
  width: 28px;
  background: #111;
}

@media (max-width: 1200px) {
  .hero-yealink { height: 640px; }
  .hero-yealink-image,
  .common-home #heroModuleWrap img { min-height: 640px; }
}

@media (max-width: 768px) {
  .hero-yealink { height: 520px; }
  .hero-yealink-image,
  .common-home #heroModuleWrap img { min-height: 520px; }
  .hero-yealink-content { top: 32%; }
  .hero-yealink-content h1 { font-size: 2.4rem; }
  .hero-yealink-arrow { width: 40px; height: 40px; }
  .hero-yealink-prev { left: 14px; }
  .hero-yealink-next { right: 14px; }
}

@media (max-width: 480px) {
  .hero-yealink { height: 460px; }
  .hero-yealink-image,
  .common-home #heroModuleWrap img { min-height: 460px; }
  .hero-yealink-content { top: 35%; }
  .hero-yealink-content h1 { font-size: 2rem; }
  .hero-yealink-content p { font-size: .95rem; }
}

/* =========================================================
   Modaz Premium UX Upgrade Pack
   Scope: visual only; preserves OpenCart cart/checkout logic
   ========================================================= */
:root {
  --modaz-container-xl: 1480px;
  --modaz-space-xs: 8px;
  --modaz-space-sm: 16px;
  --modaz-space-md: 32px;
  --modaz-space-lg: 64px;
  --modaz-space-xl: 104px;
  --modaz-radius-sm: 8px;
  --modaz-radius-md: 14px;
  --modaz-radius-lg: 22px;
  --modaz-shadow-soft: 0 14px 34px rgba(0,0,0,.075);
  --modaz-shadow-card: 0 22px 60px rgba(0,0,0,.10);
  --modaz-bg-soft: #faf8f5;
}

body {
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.container-modaz,
.container {
  max-width: var(--modaz-container-xl);
}

/* Header refinement */
.header-main,
.modaz-header-main {
  min-height: 76px;
}
.main-menu > li > a,
.modaz-menu > li > a,
.navbar-nav > li > a {
  letter-spacing: .085em;
  font-size: .82rem;
}

/* Homepage hero: premium full-bleed proportions */
.common-home .hero-ultra-slide,
.common-home #heroSlider .swiper-slide,
.common-home #heroSlider .slideshow .swiper-slide {
  min-height: 560px;
}
.common-home .hero-ultra-slide {
  height: min(720px, 76vh);
}
.common-home .hero-ultra-content h1 {
  letter-spacing: -.045em;
}
.common-home .hero-ultra-image,
.common-home #heroSlider img {
  object-fit: cover !important;
  object-position: center center !important;
}

/* Section rhythm */
.section,
.modaz-section {
  padding-top: var(--modaz-space-xl);
  padding-bottom: var(--modaz-space-xl);
}
.section-sm {
  padding-top: var(--modaz-space-lg);
  padding-bottom: var(--modaz-space-lg);
}
.section-title,
.module-title,
.featured-title {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 48px;
}

/* Product grid spacing and premium product cards */
.row.product-layout,
.product-grid,
.product-list {
  row-gap: 46px;
}
.product-layout {
  padding: 14px !important;
}
.product-thumb {
  position: relative;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06) !important;
  border-radius: var(--modaz-radius-md);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.product-thumb:hover {
  transform: translateY(-5px);
  box-shadow: var(--modaz-shadow-soft);
  border-color: rgba(0,0,0,.10) !important;
}
.product-thumb .image {
  aspect-ratio: 4 / 3.35;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f7f7f7;
}
.product-thumb .image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
  transition: transform .32s ease;
}
.product-thumb:hover .image img {
  transform: scale(1.035);
}
.product-thumb .caption {
  padding: 22px 24px 24px !important;
}
.product-thumb h4,
.product-thumb .product-title {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.product-thumb .price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
  margin-top: 12px;
}
.product-thumb .button-group,
.product-thumb .product-actions {
  padding: 0 24px 24px;
}
.product-thumb button,
.product-thumb .btn {
  border-radius: 999px;
}

/* Category cards */
.category-banners {
  gap: 28px;
}
.category-banner {
  border-radius: var(--modaz-radius-lg);
  overflow: hidden;
  box-shadow: none;
  transition: transform .28s ease, box-shadow .28s ease;
}
.category-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--modaz-shadow-soft);
}
.category-banner img,
.category-banner > div:first-child {
  transition: transform .32s ease;
}
.category-banner:hover img {
  transform: scale(1.035);
}

/* Product detail redesign */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
  padding: 42px 0 72px;
}
.product-gallery {
  position: sticky;
  top: 108px;
}
.product-main-image {
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
  border-radius: var(--modaz-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.055);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-main-image img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  padding: 44px;
}
.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.product-thumb-item {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fafafa;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.product-thumb-item:hover,
.product-thumb-item.active {
  border-color: #111;
  transform: translateY(-2px);
}
.product-thumb-item img {
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
  padding: 8px;
}
.product-detail-info {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--modaz-radius-lg);
  padding: clamp(28px, 3.4vw, 48px);
  box-shadow: 0 8px 24px rgba(0,0,0,.035);
}
.product-detail-category {
  display: inline-flex;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 12px;
  font-weight: 700;
}
.product-detail-title {
  font-size: clamp(2.1rem, 3.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin-bottom: 20px;
}
.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #777;
}
.product-detail-price {
  padding: 24px 0;
  margin: 22px 0;
  border-top: 1px solid rgba(0,0,0,.075);
  border-bottom: 1px solid rgba(0,0,0,.075);
}
.product-detail-price .price-new,
.product-price .price-new {
  font-size: clamp(1.55rem, 2.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.035em;
}
.price-old {
  color: #999;
  margin-left: 12px;
}
.product-detail-desc {
  color: #555;
  line-height: 1.85;
  margin-bottom: 28px;
}
.product-options {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}
.product-option-group {
  padding: 18px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  background: #fbfbfb;
}
.option-label,
.form-label {
  display: block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #555;
  margin-bottom: 10px;
}
.form-control,
.sort-select,
select,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  border-radius: 10px !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  min-height: 46px;
  box-shadow: none !important;
}
.product-qty-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.qty-btn,
.qty-input {
  height: 46px;
  border: 0 !important;
  background: transparent;
}
.qty-btn {
  width: 46px;
  font-size: 1.25rem;
}
.qty-input {
  width: 54px;
  text-align: center;
  font-weight: 700;
}
.product-add-actions {
  display: grid;
  grid-template-columns: 1fr 54px 54px;
  gap: 12px;
  margin-top: 18px;
}
.btn-add-cart,
.btn-modaz.btn-dark,
.btn-hero-primary {
  border-radius: 999px;
}
.btn-add-cart {
  min-height: 56px;
  font-weight: 800;
  letter-spacing: .08em;
}
.btn-wishlist,
.btn-compare {
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #666;
}
.product-meta span {
  display: inline-flex;
  gap: 5px;
  font-size: .88rem;
}
.product-tabs {
  margin-top: 36px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--modaz-radius-lg);
  overflow: hidden;
  background: #fff;
}
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: #fafafa;
}
.tab-btn {
  padding: 20px 28px;
  border: 0;
  background: transparent;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: .78rem;
}
.tab-btn.active {
  background: #111;
  color: #fff;
}
.tab-content {
  padding: clamp(24px, 3vw, 42px);
}

/* Trust / feature strips */
.modaz-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(0,0,0,.07);
  border-bottom: 1px solid rgba(0,0,0,.07);
  background: #fff;
}
.modaz-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px 18px;
  border-right: 1px solid rgba(0,0,0,.07);
}
.modaz-trust-item:last-child { border-right: 0; }
.modaz-trust-item strong {
  display: block;
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.modaz-trust-item span {
  display: block;
  color: #888;
  font-size: .82rem;
}
.product-detail-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 22px;
}
.product-detail-trust .trust-chip {
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 14px;
  padding: 14px;
  background: #fafafa;
  font-size: .86rem;
  color: #555;
}
.product-detail-trust .trust-chip strong {
  display: block;
  color: #111;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

/* Checkout / account / success page polish */
.checkout-checkout #content,
.checkout-success #content,
.account-login #content,
.account-register #content,
.information-contact #content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 18px 72px;
}
.checkout-success #content {
  text-align: center;
}
.checkout-success #content h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -.045em;
  margin-bottom: 18px;
}
.checkout-success #content p {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}
.checkout-success #content .buttons,
.checkout-success #content .pull-right {
  float: none !important;
  text-align: center;
  margin-top: 28px;
}
.checkout-success #content .btn,
.checkout-success #content .btn-primary {
  border-radius: 999px;
  padding: 15px 34px;
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Mega menu polish */
.main-menu .dropdown-menu,
.modaz-menu .dropdown-menu,
.navbar-nav .dropdown-menu {
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--modaz-shadow-card);
}
.main-menu .dropdown-menu a,
.modaz-menu .dropdown-menu a,
.navbar-nav .dropdown-menu a {
  border-radius: 10px;
  padding: 10px 12px;
}
.main-menu .dropdown-menu a:hover,
.modaz-menu .dropdown-menu a:hover,
.navbar-nav .dropdown-menu a:hover {
  background: #f7f7f7;
}

/* Mobile refinement */
@media (max-width: 992px) {
  .container-modaz,
  .container { max-width: 100%; }
  .section,
  .modaz-section { padding-top: 64px; padding-bottom: 64px; }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 20px;
  }
  .product-gallery { position: static; }
  .product-main-image { min-height: 360px; }
  .product-main-image img { padding: 26px; }
  .product-add-actions { grid-template-columns: 1fr 52px 52px; }
  .modaz-trust-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .common-home .hero-ultra-slide { height: 480px; min-height: 420px; }
  .product-layout { padding: 8px !important; }
  .product-thumb .caption { padding: 18px !important; }
  .product-detail-info { padding: 22px; border-radius: 16px; }
  .product-detail-title { font-size: 2rem; }
  .product-detail-trust { grid-template-columns: 1fr; }
  .tab-nav { overflow-x: auto; }
  .tab-btn { white-space: nowrap; padding: 16px 20px; }
  .modaz-trust-row { grid-template-columns: 1fr; }
  .modaz-trust-item { border-right: 0; border-bottom: 1px solid rgba(0,0,0,.07); }
}

/* =========================================================
   Final polish: remove thin legacy borders from product page
   ========================================================= */
.qty-control,
.qty-control input,
.qty-control button {
    border: 0 !important;
    box-shadow: none !important;
    background: #f8f8f8;
}

.product-meta,
.product-info-meta,
.product-details-meta {
    border-top: 0 !important;
    padding-top: 0 !important;
}

.product-thumb {
    border: 0 !important;
    box-shadow: none;
}

.product-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}

/* =========================================================
   Modaz Premium UX add-ons: menu stability, sticky buy,
   checkout steps, filter/sidebar redesign, search fix
   ========================================================= */

/* Search overlay: ensure form submits to product/search and looks intentional */
.search-overlay .header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: min(720px, 92vw);
  margin: 0 auto;
}
.search-overlay .header-search-form input[type="text"] {
  width: 100%;
  padding-right: 64px !important;
}
.search-overlay-submit {
  position: absolute;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Keep multi-level dropdowns open while moving from parent to child */
#nav-main li,
#menu li,
.navbar-nav li,
.main-menu li,
.modaz-menu li {
  position: relative;
}
#nav-main li::after,
#menu li::after,
.navbar-nav li::after,
.main-menu li::after,
.modaz-menu li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 26px;
  pointer-events: auto;
}
#nav-main li > ul,
#nav-main li > .dropdown-menu,
#menu li > ul,
#menu li > .dropdown-menu,
.navbar-nav li > .dropdown-menu,
.main-menu li > .dropdown-menu,
.modaz-menu li > .dropdown-menu {
  margin-top: 0 !important;
  top: 100%;
}
#nav-main li:hover > ul,
#nav-main li:hover > .dropdown-menu,
#nav-main li:focus-within > ul,
#nav-main li:focus-within > .dropdown-menu,
#menu li:hover > ul,
#menu li:hover > .dropdown-menu,
#menu li:focus-within > ul,
#menu li:focus-within > .dropdown-menu,
.navbar-nav li:hover > .dropdown-menu,
.navbar-nav li:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Product purchase pane: keep description short and premium */
.product-detail-desc.product-short-description,
.product-short-description {
  color: #666;
  line-height: 1.85;
  margin-bottom: 28px;
  font-size: .96rem;
  max-height: 9.2em;
  overflow: hidden;
}
.product-meta {
  border-top: 0 !important;
  padding-top: 0 !important;
}

/* Sticky add-to-cart bar on product pages */
.product-sticky-buy {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 130%);
  width: min(1120px, calc(100vw - 32px));
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.product-sticky-buy.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.product-sticky-buy-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 16px 14px 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 999px;
  box-shadow: 0 20px 60px rgba(0,0,0,.14);
  backdrop-filter: blur(14px);
}
.sticky-product-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.sticky-product-summary strong {
  font-size: .95rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 620px;
}
.sticky-product-summary span {
  font-size: .86rem;
  color: #666;
  font-weight: 700;
}
.btn-sticky-add {
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 0 28px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn-sticky-add:hover {
  transform: translateY(-1px);
  background: #000;
}

/* Checkout steps UI: modern step cards without touching AJAX behaviour */
.checkout-checkout #accordion {
  counter-reset: checkout-step;
  display: grid;
  gap: 18px;
}
.checkout-checkout #accordion .panel {
  border: 0 !important;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,.055);
}
.checkout-checkout #accordion .panel-heading {
  border: 0 !important;
  background: #fff !important;
  padding: 0;
}
.checkout-checkout #accordion .panel-title,
.checkout-checkout #accordion .panel-title a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #111;
  text-decoration: none;
}
.checkout-checkout #accordion .panel-title::before {
  counter-increment: checkout-step;
  content: counter(checkout-step);
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 800;
}
.checkout-checkout #accordion .panel-body {
  padding: 26px 28px 30px;
  border-top: 1px solid rgba(0,0,0,.045) !important;
}
.checkout-checkout #accordion .panel-collapse:not(.in) + .panel-body {
  border-top: 0 !important;
}
.checkout-checkout .buttons {
  margin-top: 22px;
}
.checkout-checkout .buttons .btn,
.checkout-checkout #button-payment-address,
.checkout-checkout #button-shipping-address,
.checkout-checkout #button-shipping-method,
.checkout-checkout #button-payment-method,
.checkout-checkout #button-confirm,
.checkout-checkout #button-register,
.checkout-checkout #button-guest,
.checkout-checkout #button-login {
  min-height: 50px;
  border-radius: 999px;
  padding: 0 28px;
  font-weight: 800;
}
.checkout-checkout .table-responsive,
.checkout-checkout .table {
  width: 100%;
}
.checkout-checkout #collapse-checkout-confirm .table,
.checkout-checkout #collapse-checkout-confirm .table-responsive {
  width: 100% !important;
}

/* Filter/sidebar redesign: modern quiet cards for category/filter/account modules */
#column-left,
#column-right {
  align-self: start;
}
#column-left .panel,
#column-right .panel,
#column-left .list-group,
#column-right .list-group,
#column-left .box,
#column-right .box,
#column-left #filter,
#column-right #filter {
  border: 0 !important;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.055);
  overflow: hidden;
  margin-bottom: 24px;
}
#column-left .panel-heading,
#column-right .panel-heading,
#column-left .box-heading,
#column-right .box-heading,
#column-left .list-group > a:first-child,
#column-right .list-group > a:first-child {
  background: #fff !important;
  border: 0 !important;
  padding: 22px 24px 14px;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #111;
}
#column-left .panel-body,
#column-right .panel-body,
#column-left .box-content,
#column-right .box-content {
  padding: 18px 24px 24px;
}
#column-left .list-group-item,
#column-right .list-group-item,
#column-left .list-group a,
#column-right .list-group a {
  border: 0 !important;
  border-bottom: 1px solid rgba(0,0,0,.045) !important;
  padding: 13px 24px;
  color: #555;
  font-size: .92rem;
  background: #fff;
}
#column-left .list-group-item:hover,
#column-right .list-group-item:hover,
#column-left .list-group a:hover,
#column-right .list-group a:hover,
#column-left .list-group-item.active,
#column-right .list-group-item.active {
  background: #f8f8f8 !important;
  color: #111 !important;
}
#column-left .checkbox,
#column-right .checkbox,
#column-left .radio,
#column-right .radio {
  margin: 10px 0;
}
#column-left label,
#column-right label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #555;
}
#column-left input[type="checkbox"],
#column-right input[type="checkbox"],
#column-left input[type="radio"],
#column-right input[type="radio"] {
  min-height: 0;
  width: 16px;
  height: 16px;
  accent-color: #111;
}
#column-left #button-filter,
#column-right #button-filter,
#column-left .btn-primary,
#column-right .btn-primary {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  font-weight: 800;
  margin-top: 14px;
}

@media (max-width: 768px) {
  .product-sticky-buy {
    bottom: 12px;
    width: calc(100vw - 20px);
  }
  .product-sticky-buy-inner {
    border-radius: 18px;
    padding: 12px;
  }
  .sticky-product-summary strong {
    max-width: 52vw;
  }
  .btn-sticky-add {
    padding: 0 18px;
  }
  .checkout-checkout #accordion .panel-title,
  .checkout-checkout #accordion .panel-title a {
    padding: 0 18px;
  }
  .checkout-checkout #accordion .panel-body {
    padding: 20px 18px 24px;
  }
}


/* =========================================================
   Refinements v1.0.8: search overlay, explorer category tree,
   product price/meta hierarchy
   ========================================================= */

/* Borderless search overlay with arrow submit */
.search-overlay,
.search-overlay .search-overlay-inner,
.search-overlay .header-search-form {
  border: 0 !important;
  box-shadow: none !important;
}
.search-overlay .header-search-form {
  background: #fff !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.search-overlay .header-search-form input[type="text"],
.search-overlay input#overlaySearch {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 18px 58px 18px 0 !important;
}
.search-overlay-submit {
  position: absolute;
  right: 0 !important;
  top: 50%;
  transform: translateY(-50%);
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111 !important;
  padding: 10px 0 10px 18px !important;
  box-shadow: none !important;
}
.search-overlay-submit i {
  font-size: 1.15rem;
  line-height: 1;
}
.search-overlay-submit:hover {
  transform: translateY(-50%) translateX(3px);
  background: transparent !important;
  color: #000 !important;
}

/* Explorer-style category tree with centred connector lines */
.module-box .category-tree,
.category-tree {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  border-left: 0 !important;
}
.category-tree ul,
ul.category-tree ul,
.category-tree .category-tree {
  list-style: none !important;
  margin: 2px 0 2px 18px !important;
  padding-left: 18px !important;
  border-left: 0 !important;
  position: relative;
}
.category-tree li {
  position: relative;
  border-bottom: 0 !important;
  padding: 0 0 0 18px !important;
  margin: 0 !important;
}
.category-tree li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -12px;
  width: 1px;
  height: calc(100% + 12px);
  background: rgba(0,0,0,.12);
}
.category-tree li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: rgba(0,0,0,.12);
}
.category-tree > li::before {
  top: 50%;
  height: 50%;
}
.category-tree > li:first-child::before {
  top: 50%;
}
.category-tree li:last-child::before {
  height: calc(50% + 12px);
}
.category-tree li a {
  display: inline-flex !important;
  align-items: center;
  min-height: 36px;
  width: auto !important;
  padding: 7px 10px !important;
  border-radius: 10px;
  color: #333;
  background: transparent !important;
  line-height: 1.35;
}
.category-tree li a:hover,
.category-tree li.active > a {
  color: #000 !important;
  background: #f7f7f7 !important;
  padding-left: 12px !important;
  transform: translateX(2px);
}

/* Product price hierarchy with model/brand/stock below pricing */
.product-detail-price {
  margin-bottom: 24px;
}
.product-detail-price .product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.price-label,
.price-label-inc {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #666;
}
.product-detail-price .price-tax {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: .92rem;
  font-weight: 500;
}
.product-detail-price .price-tax span {
  text-transform: none;
}
.product-meta-under-price,
.product-detail-price .product-meta-under-price {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 0 !important;
  border-top: 0 !important;
  color: #666;
  font-size: .84rem;
}
.product-meta-under-price span {
  display: inline-flex !important;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}
.product-meta-under-price strong {
  color: #111;
  font-weight: 700;
}
.product-meta-under-price a {
  color: inherit;
  text-decoration: none;
}
.product-meta-under-price a:hover {
  color: #000;
}
@media (max-width: 680px) {
  .product-meta-under-price,
  .product-detail-price .product-meta-under-price {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 6px;
  }
}


/* =========================================================
   v109 polish: cleaner category sidebar + top-right toasts
   ========================================================= */

/* Category tree: modern nested list, no connector lines */
.module-box .category-tree,
.category-tree {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.category-tree ul,
ul.category-tree ul,
.category-tree .category-tree {
  list-style: none !important;
  margin: 4px 0 6px 0 !important;
  padding: 0 0 0 16px !important;
  border: 0 !important;
  position: relative;
}
.category-tree li {
  position: relative;
  margin: 2px 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.category-tree li::before,
.category-tree li::after,
.category-tree ul::before,
ul.category-tree ul::before {
  content: none !important;
  display: none !important;
}
.category-tree li a {
  display: flex !important;
  align-items: center;
  min-height: 38px;
  width: 100% !important;
  padding: 8px 12px 8px 14px !important;
  border-radius: 12px;
  color: #333;
  background: transparent !important;
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.35;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.category-tree ul li a,
ul.category-tree ul li a {
  font-size: .88rem;
  font-weight: 500;
  color: #666;
  min-height: 34px;
  padding-left: 14px !important;
}
.category-tree ul li a::before,
ul.category-tree ul li a::before {
  content: "›";
  margin-right: 8px;
  color: #bbb;
  font-size: 1rem;
  line-height: 1;
}
.category-tree li a:hover,
.category-tree li.active > a {
  color: #000 !important;
  background: #f6f6f6 !important;
  padding-left: 14px !important;
  transform: none !important;
}
.category-tree li.active > a {
  box-shadow: inset 3px 0 0 #111;
}

/* Top-right toast notifications */
.modaz-toast-stack {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 10060;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.modaz-alert {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  min-height: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 16px 46px 16px 18px !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.14) !important;
  font-family: 'Manrope', sans-serif;
  font-size: .9rem;
  line-height: 1.55;
  letter-spacing: 0;
  pointer-events: auto;
  animation: modazToastIn .22s ease-out;
}
.modaz-alert-success { background: #eef9f1 !important; color: #145c2b !important; }
.modaz-alert-danger,
.modaz-alert-warning { background: #fff3f0 !important; color: #8a1f11 !important; }
.modaz-alert-info { background: #eff7ff !important; color: #16466b !important; }
.modaz-alert button {
  position: absolute !important;
  right: 14px !important;
  top: 12px !important;
  transform: none !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: 20px !important;
  line-height: 1 !important;
  opacity: .55;
  cursor: pointer;
}
.modaz-alert button:hover { opacity: 1; }
.modaz-alert a { color: inherit; font-weight: 800; text-decoration: underline; }
@keyframes modazToastIn {
  from { opacity: 0; transform: translate3d(12px,-8px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
@media (max-width: 640px) {
  .modaz-toast-stack { top: 72px; right: 16px; left: 16px; width: auto; }
}


/* =========================================================
   v111 Homepage/category cleanup + custom nav support polish
   ========================================================= */

/* Remove oversized inherited OpenCart/module headings on homepage and category refine areas */
.common-home h3,
.common-home .featured-title,
.product-category h2,
.product-category .refine-search h3,
.product-category #content > h3 {
    display: none !important;
}

/* Hide newsletter blocks on homepage/footer where present */
.newsletter-section,
.newsletter-signup,
#newsletter,
.footer-newsletter,
.join-newsletter,
[class*="newsletter"] {
    display: none !important;
}

/* Featured module: smaller, padded product tiles */
.common-home .product-layout {
    padding: 24px !important;
}

.common-home .product-thumb {
    max-width: 320px;
    margin: 0 auto;
}

.common-home .product-thumb .image {
    aspect-ratio: 1 / 1;
    max-height: 240px;
    overflow: hidden;
}

.common-home .product-thumb .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.common-home .row.product-layout,
.common-home .row {
    row-gap: 50px;
}

.common-home .product-thumb .caption {
    padding-top: 18px;
    text-align: center;
}

/* Ensure custom nav links display exactly like category links */
.modaz-nav-root > li > a {
    white-space: nowrap;
}


/* ===== Account / Address Book polish v113 ===== */

.account-page-wrapper {
    padding: 56px 0 96px;
    background: #fff;
}

.account-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.account-main {
    min-width: 0;
}

.account-sidebar .list-group,
.account-sidebar .account-card,
.account-main .list-group {
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
}

.account-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.account-page-header h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.account-kicker {
    display: block;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #999;
    font-weight: 700;
    margin-bottom: 8px;
}

.account-card {
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    border-radius: 0;
}

.account-form-card {
    max-width: 980px;
    padding: 36px;
}

.form-grid {
    display: grid;
    gap: 20px;
}

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

.account-form-card .form-group {
    margin-bottom: 22px;
}

.account-form-card .form-label {
    display: block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #333;
    font-weight: 800;
    margin-bottom: 8px;
}

.account-form-card .form-control {
    width: 100%;
    min-height: 52px;
    border-radius: 14px !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    background: #fff;
    box-shadow: none !important;
    padding: 12px 16px;
}

.account-form-card .form-control:focus {
    border-color: #111 !important;
}

.radio-row {
    display: flex;
    gap: 18px;
    align-items: center;
}

.radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.account-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.address-card {
    padding: 26px;
}

.address-card-body {
    color: #444;
    line-height: 1.8;
    min-height: 110px;
}

.address-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.address-card-actions .btn-modaz,
.account-actions .btn-modaz {
    min-height: 44px;
    height: 44px;
    padding: 0 22px;
    font-size: .78rem;
}

.account-empty-state {
    max-width: 520px;
    padding: 48px;
    border: 1px solid rgba(0,0,0,.08);
    text-align: center;
    background: #fff;
}

.account-empty-state h2 {
    font-size: 1.35rem;
    margin: 12px 0 8px;
}

.account-empty-state p {
    color: #777;
    margin-bottom: 24px;
}

.account-empty-icon {
    font-size: 1.5rem;
    color: #999;
}

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

    .account-sidebar {
        order: 2;
    }

    .account-main {
        order: 1;
    }
}

@media (max-width: 640px) {
    .account-page-wrapper {
        padding: 36px 0 70px;
    }

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

    .account-form-card {
        padding: 24px;
    }

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

