/* ==========================================================================
   Doctor National - Modern Grid Sections (Bestsellers & New Arrivals)
   ========================================================================== */

:root {
  --dn-brand: #ef011c;
  --dn-brand-ink: #ffffff;
  --dn-bg: #ffffff;
  --dn-surface: #f2f2f2;
  --dn-text: #231f20;
  --dn-muted: #7a7a7a;
  --dn-line: #e2e2e2;
  --dn-page: #dcdde0;
}

.dn-sec {
  padding: 32px 12px 28px;
  background: var(--dn-bg);
  position: relative;
}

.dn-sec + .dn-sec {
  border-top: 8px solid var(--dn-surface);
}

.dn-sec .container {
  padding-inline: 8px;
}

/* Header (Centered with 36px Red Underline) */
.dn-sec-head {
  text-align: center;
  margin-bottom: 22px;
  padding-inline: 8px;
}

.dn-sec-title {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding-inline-start: .28em;
  color: var(--dn-text);
  font-family: 'Poppins', 'Cairo', sans-serif;
  line-height: 1.3;
}

html[lang="ar"] .dn-sec-title,
html[dir="rtl"] .dn-sec-title,
body[dir="rtl"] .dn-sec-title {
  letter-spacing: 0;
  font-weight: 700;
  font-size: 21px;
  padding: 0;
}

.dn-sec-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--dn-brand);
}

.dn-sec-sub {
  margin: 12px auto 0;
  max-width: 340px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--dn-muted);
  text-align: center;
}

/* Static Grid (2 columns on mobile, 4 on desktop) */
.dn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  .dn-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 992px) {
  .dn-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

/* Card */
.dn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--dn-bg);
  border: 1px solid var(--dn-line);
  border-radius: 0;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.dn-card:hover {
  border-color: #c9c9c9;
  box-shadow: 0 4px 14px rgba(35, 31, 32, .06);
}

/* Media (Aspect-Ratio 4/5) */
.dn-media {
  position: relative;
  aspect-ratio: 4 / 5;
  display: block;
  background: var(--dn-surface);
  overflow: hidden;
  border-radius: 0;
}

.dn-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.dn-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  display: block;
  transition: transform .3s ease;
}

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

/* Flag (Top-Start) */
.dn-flag {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  padding: 4px 10px;
  background: var(--dn-brand);
  color: var(--dn-brand-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  z-index: 2;
  text-transform: uppercase;
}

html[lang="ar"] .dn-flag,
html[dir="rtl"] .dn-flag,
body[dir="rtl"] .dn-flag {
  letter-spacing: 0;
  font-size: 11.5px;
}

.dn-flag.rank {
  background: var(--dn-text);
  color: var(--dn-bg);
}

/* Info */
.dn-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 10px 12px;
}

.dn-cat {
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dn-muted);
  background: var(--dn-surface);
  border: 1px solid var(--dn-line);
  padding: 3px 8px;
  border-radius: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dn-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--dn-text);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  text-decoration: none;
  transition: color .15s ease;
}

.dn-title:hover {
  color: var(--dn-brand);
  text-decoration: none;
}

/* Stars */
.dn-stars {
  display: flex;
  gap: 1px;
  color: var(--dn-muted);
  align-items: center;
}

.dn-stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Price */
.dn-price-row {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  width: 100%;
}

.dn-price {
  color: var(--dn-brand);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.dn-old-price {
  font-size: 11.5px;
  color: var(--dn-muted);
  text-decoration: line-through;
}

/* Full-width Add Button */
.dn-add-block {
  display: block;
  width: 100%;
  height: 40px;
  background: var(--dn-brand);
  color: var(--dn-brand-ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: opacity .15s ease, background .2s ease;
  font-family: inherit;
  padding: 0;
}

.dn-add-block:active {
  opacity: .85;
}

.dn-add-block.done {
  background: var(--dn-text) !important;
  color: var(--dn-bg) !important;
}

html[lang="ar"] .dn-add-block,
html[dir="rtl"] .dn-add-block,
body[dir="rtl"] .dn-add-block {
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 600;
}

/* View All Button - Rounded Red Brand Style */
.dn-viewall,
.dn-viewall-block {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  height: 44px;
  margin: 18px 0 0;
  border: 1.5px solid var(--dn-brand) !important;
  border-radius: 12px !important;
  color: var(--dn-brand) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .1s ease, border-color .15s ease;
  background: transparent !important;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
  padding: 0 16px;
}

.dn-viewall:hover,
.dn-viewall-block:hover {
  background: var(--dn-brand) !important;
  color: #ffffff !important;
  text-decoration: none;
}

.dn-viewall:active,
.dn-viewall-block:active {
  transform: scale(0.98);
}

.dn-viewall-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

[dir="rtl"] .dn-viewall-icon,
html[dir="rtl"] .dn-viewall-icon,
body[dir="rtl"] .dn-viewall-icon {
  transform: scaleX(-1);
}

html[lang="ar"] .dn-viewall,
html[dir="rtl"] .dn-viewall,
body[dir="rtl"] .dn-viewall {
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 700;
}

/* Expandable Extra Cards */
.dn-card.dn-card-extra {
  display: none !important;
}

.dn-sec.is-expanded .dn-card.dn-card-extra {
  display: flex !important;
  animation: dnCardFadeIn .35s ease-out forwards;
}

@keyframes dnCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Customer Reviews - Hide arrows */
#Customers .owl-nav,
#Customers #owl-carousel-four .owl-nav,
#owl-carousel-four .owl-nav {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Vision Section
   ========================================================================== */

.vision-section {
  padding: 44px 0 52px;
  background: var(--dn-bg);
  position: relative;
}

.vision-section .vision-image {
  width: 100%;
  height: auto;
  border-radius: 0;
  overflow: hidden;
}

.vision-section .vision-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.vision {
  padding: 10px 0;
}

@media (max-width: 991px) {
  .vision {
    padding: 20px 4px;
  }
}

.vision .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dn-brand, #ef011c);
  line-height: 1;
}

.vision .eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--dn-brand, #ef011c);
  flex-shrink: 0;
}

html[lang="ar"] .vision .eyebrow,
html[dir="rtl"] .vision .eyebrow,
body[dir="rtl"] .vision .eyebrow {
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 700;
}

.vision .headline {
  margin: 0;
  font-size: 31px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--dn-text, #231f20) !important;
  font-family: 'Poppins', 'Cairo', sans-serif;
}

html[lang="ar"] .vision .headline,
html[dir="rtl"] .vision .headline,
body[dir="rtl"] .vision .headline {
  letter-spacing: 0;
  font-size: 28px;
  line-height: 1.3;
}

.vision .headline::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 22px;
  background: var(--dn-brand, #ef011c);
}

.vision .lead,
.vision .vision-body-content p.lead,
.vision .vision-body-content > p:first-of-type {
  margin: 26px 0 0;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
  color: var(--dn-text, #231f20) !important;
  text-wrap: pretty;
}

.vision .body,
.vision .vision-body-content p.body,
.vision .vision-body-content > p:not(:first-of-type) {
  margin: 22px 0 0;
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--dn-line, #e2e2e2);
  font-size: 15px;
  line-height: 1.85;
  color: #5f5f5f !important;
  text-wrap: pretty;
}

.vision .vision-body-content p {
  color: #5f5f5f;
}

/* ==========================================================================
   Modern Toast Notifications (#bar-notification)
   ========================================================================== */
#bar-notification {
  display: none;
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  width: min(92vw, 450px);
  padding: 14px 18px;
  border-radius: 14px;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: 'Poppins', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}

#bar-notification.success {
  border: 1px solid #d1fae5;
  border-inline-start: 5px solid #10b981;
}

#bar-notification.error {
  border: 1px solid #fee2e2;
  border-inline-start: 5px solid #ef011c;
}

#bar-notification.warning {
  border: 1px solid #fef3c7;
  border-inline-start: 5px solid #f59e0b;
}

#bar-notification .content {
  margin: 0;
  padding-inline-end: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #231f20;
}

#bar-notification .content + .content {
  margin-top: 8px;
}

#bar-notification .content::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

#bar-notification.success .content::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

#bar-notification.error .content::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef011c'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

#bar-notification.warning .content::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
}

#bar-notification .content a {
  color: #ef011c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-inline-start: 4px;
  transition: color 0.15s ease;
}

#bar-notification .content a:hover {
  color: #b80015;
}

#bar-notification .close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-end: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  color: #888;
  background: transparent;
  transition: all 0.2s ease;
}

#bar-notification .close::after {
  content: '✕';
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

#bar-notification .close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #111;
}
