/* ==========================================
   DD SHOP - CORE LAYOUT, HEADER & FOOTER
   ========================================== */

/* Page Container Layout */
.dd-shop-container {
  max-width: var(--dd-max-width);
  margin: 0 auto;
  padding: 0 var(--dd-gutter);
  width: 100%;
}

/* ACCESSIBILITY TOP RIBBON (Matches Corporate Site) */
.acc-bar {
  background: var(--dd-blue-dark);
  color: #fff;
  font-size: 11px;
  padding: 4px 0;
}

.acc-bar a,
.acc-bar button {
  color: #cce0ff;
  background: none;
  border: none;
  font-size: 11px;
  padding: 0 6px;
  cursor: pointer;
  text-decoration: none;
}

.acc-bar a:hover,
.acc-bar button:hover {
  color: #fff;
  text-decoration: underline;
}

.acc-bar .divider {
  color: #5a7fa8;
  margin: 0 4px;
}

.acc-bar-badge {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 8px;
}

.lang-actions {
  margin-right: 0;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.acc-bar .lang-btn {
  color: #1a3c6e;
  border: none;
  border-left: 1px solid #dce7f4;
  padding: 3px 10px;
  min-width: 62px;
  background: #ffffff;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.acc-bar .lang-btn:first-child {
  border-left: none;
}

.color-globe {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
  background:
    radial-gradient(circle at 68% 31%, #34a853 0 12%, transparent 13%),
    radial-gradient(circle at 35% 58%, #34a853 0 15%, transparent 16%),
    radial-gradient(circle at 54% 72%, #fbbc04 0 12%, transparent 13%),
    linear-gradient(135deg, #2f80ed 0%, #4fc3f7 72%);
  box-shadow:
    inset 0 0 0 1px rgba(26, 60, 110, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.75);
}

.acc-bar .lang-btn:hover {
  color: #1a3c6e;
  text-decoration: none;
  background: #f6f9fd;
}

/* STICKY MAIN HEADER */
.shop-header {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--dd-border-light);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

/* Logo Brand Area */
.shop-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: fit-content;
}

.shop-brand img {
  width: 185px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .shop-brand img {
    width: 160px;
  }
}

@media (max-width: 575.98px) {
  .shop-brand img {
    width: 140px;
  }
}

.shop-badge {
  background: var(--dd-green-subtle);
  color: var(--dd-green-dark);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--dd-radius-sm);
  border: 1px solid rgba(46, 125, 50, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Header Search Engine Bar */
.shop-search-wrapper {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: var(--dd-bg-page);
  border: 2px solid var(--dd-border);
  border-radius: var(--dd-radius-pill);
  padding: 4px 6px 4px 18px;
  transition: var(--dd-transition-fast);
}

.search-input-group:focus-within {
  border-color: var(--dd-green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

.search-input-group>i.bi-search {
  color: var(--dd-text-muted);
  font-size: 16px;
  margin-right: 10px;
}

.search-input-group input {
  border: none;
  background: transparent;
  width: 100%;
  padding: 8px 0;
  font-size: 14px;
  color: var(--dd-text-dark);
  outline: none;
}

.search-btn {
  background: var(--dd-green-gradient);
  color: #fff;
  border: none;
  border-radius: var(--dd-radius-pill);
  padding: 8px 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--dd-transition-fast);
}

.search-btn i {
  color: #ffffff;
}

.search-btn:hover {
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
  transform: translateY(-1px);
}

/* Instant Search Dropdown Modal */
.search-overlay-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--dd-radius-md);
  box-shadow: var(--dd-shadow-lg);
  border: 1px solid var(--dd-border);
  padding: 16px;
  z-index: 1050;
  display: none;
  animation: fadeInDown 0.2s ease-out;
}

.search-overlay-dropdown.active {
  display: block;
}

.search-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dd-text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.recent-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.search-tag {
  background: var(--dd-bg-page);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius-pill);
  padding: 4px 12px;
  font-size: 12px;
  color: var(--dd-text-medium);
  cursor: pointer;
  transition: var(--dd-transition-fast);
}

.search-tag:hover {
  background: var(--dd-green-subtle);
  color: var(--dd-green-dark);
  border-color: var(--dd-green-light);
}

.trending-list {
  list-style: none;
}

.trending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--dd-radius-sm);
  cursor: pointer;
  transition: var(--dd-transition-fast);
}

.trending-item:hover {
  background: var(--dd-bg-subtle);
  color: var(--dd-green-dark);
}

/* Header Actions Bar (Wishlist, Notifications, Cart, Profile) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--dd-text-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1.2;
}

.header-action-btn:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: var(--dd-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.12);
}

.header-action-icon {
  font-size: 19px;
  color: #334155;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.header-action-btn:hover .header-action-icon {
  color: var(--dd-green);
}

.action-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  background: var(--dd-brand-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  height: 18px;
  min-width: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.cart-summary-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.cart-summary-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--dd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cart-summary-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--dd-green-dark);
}

/* Account Dropdown Menu */
.account-dropdown-wrapper {
  position: relative;
  z-index: 1060;
}

.account-popover {
  position: absolute;
  top: 100%;
  right: 0;
  width: 250px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid #e2e8f0;
  padding: 8px 0;
  z-index: 999999;
  display: none;
  margin-top: 8px;
  transform-origin: top right;
  animation: accountPopoverIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-popover::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

@keyframes accountPopoverIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.account-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  transform: rotate(45deg);
}

.account-dropdown-wrapper:hover .account-popover,
.account-dropdown-wrapper:focus-within .account-popover {
  display: block;
}

.account-header-info {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
}

.account-avatar-head {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dd-green-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(46, 125, 50, 0.25);
  flex-shrink: 0;
}

.account-user-details {
  overflow: hidden;
}

.account-name {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.2;
}

.account-phone {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.account-menu-list {
  list-style: none;
  padding: 6px 0 0 0;
  margin: 0;
}

.account-menu-item a,
.account-menu-item button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.account-menu-item a i,
.account-menu-item button i {
  font-size: 16px;
  color: #64748b;
  transition: color 0.2s ease;
}

.account-menu-item a:hover,
.account-menu-item button:hover {
  background: #f0fdf4;
  color: var(--dd-green-dark);
  padding-left: 22px;
}

.account-menu-item a:hover i,
.account-menu-item button:hover i {
  color: var(--dd-green);
}

/* MEGA NAVIGATION BAR */
.mega-nav-bar {
  background: var(--dd-blue-dark);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 0;
}

.mega-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mega-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.mega-nav-item {
  position: relative;
}

.mega-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--dd-transition-fast);
  line-height: 1.2;
}

.mega-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.mega-nav-item.active .mega-nav-link {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.mega-nav-link.flash-link {
  color: #fbbf24;
}

.mega-nav-link.flash-link i {
  color: #f59e0b;
}

.mega-nav-link.flash-link:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fef08a;
}

.mega-nav-right {
  display: flex;
  align-items: center;
}

/* Mega Dropdown Panel */
.mega-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 880px;
  background: #ffffff;
  color: var(--dd-text-dark);
  border-radius: 0 0 var(--dd-radius-md) var(--dd-radius-md);
  box-shadow: 0 12px 32px rgba(6, 22, 44, 0.15);
  border: 1px solid var(--dd-border);
  padding: 24px 28px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  z-index: 1100;
}

.mega-nav-item:hover .mega-dropdown-panel {
  display: grid;
}

.mega-col-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--dd-green-dark, #1b5e20);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--dd-green-subtle, #e8f5e9);
}

.mega-col-links {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

.mega-col-links li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-col-links li a {
  display: block;
  padding: 6px 0;
  color: var(--dd-text-medium);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: var(--dd-transition-fast);
}

.mega-col-links li a:hover {
  color: var(--dd-green);
  transform: translateX(4px);
}

/* FOOTER STYLING (REUSED FROM INDEX.HTML) */
.footer {
  background: linear-gradient(135deg, #06162c 0%, #082852 52%, #06234a 100%);
  color: #c8d8ee;
  padding: 46px 0 0;
  border-top: 4px solid rgba(46, 125, 50, 0.85);
  margin-top: 60px;
}

.footer-logo {
  width: 310px;
  max-width: 100%;
  text-align: left;
}

.footer-logo .logo-mark {
  line-height: 0.86;
  text-align: left;
  width: 100%;
  margin: 0 0 18px;
}

.footer-logo .brand-logo-img {
  width: 280px;
  margin: 0;
}

.footer-credit a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: inherit;
  text-decoration: underline;
}

.footer .row {
  align-items: stretch;
}

.footer .row>[class*="col-"] {
  position: relative;
}

.footer .col-lg-3:first-child .footer-logo {
  margin-left: 0;
}

.footer .row>[class*="col-"]:not(:first-child) {
  border-left: 2px solid rgba(157, 184, 217, 0.24);
  padding-left: 42px;
}

.footer h6 {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer p {
  font-size: 13px;
  line-height: 1.75;
  color: #c8d8ee;
  margin-bottom: 0;
  max-width: 310px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li a {
  color: #c8d8ee;
  text-decoration: none;
  font-size: 13px;
  line-height: 2.2;
  display: block;
}

.footer ul li a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b3d88;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.footer-social a:nth-child(1) {
  color: #1877f2;
}

.footer-social a:nth-child(2) {
  color: #0a66c2;
}

.footer-social a:nth-child(3) {
  color: #ff0000;
}

.footer-social a:nth-child(4) {
  color: #e4405f;
}

.footer-social a:nth-child(5) {
  color: #111;
}

.footer-social a:hover {
  transform: translateY(-2px);
}

.footer-contact-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #d9e7f6;
}

.footer-contact-row i {
  font-size: 18px;
  color: #d9e7f6;
  margin-top: 2px;
}

.footer-bottom {
  background: rgba(3, 17, 37, 0.68);
  padding: 10px 0;
  margin-top: 28px;
  font-size: 12px;
  color: #d9e7f6;
  border-top: 2px solid rgba(157, 184, 217, 0.18);
}

.footer-bottom a {
  color: #d9e7f6;
  text-decoration: none;
  margin: 0 10px;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer-credit {
  margin-left: auto;
  font-weight: 700;
  color: #d9e7f6;
}

/* ACCESSIBILITY BOTTOM BAR */
.bottom-acc-bar {
  background: #fff;
  padding: 0;
  font-size: 12px;
  border-top: 2px solid #d8e2ef;
  box-shadow: 0 -3px 12px rgba(8, 40, 82, 0.08);
}

.bottom-acc-bar .container-fluid {
  min-height: 58px;
}

.bottom-acc-bar button {
  background: #fff;
  border: 0;
  border-right: 2px solid #d6e1ee;
  color: #1a3c6e;
  padding: 14px 28px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
  transition: all 0.2s;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.bottom-acc-bar button:first-child {
  border-left: 0;
}

.bottom-acc-bar button:hover {
  background: #f0f5fc;
  color: #0b3d88;
}

@media (max-width: 991.98px) {
  .footer .row>[class*="col-"]:not(:first-child) {
    border-left: none;
    padding-left: 12px;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

/* ==========================================
   DD SHOP - MEGA MENU / SIDE DRAWER
   Matches Screenshot 1 (Shop by Category, Quick Access, My Account)
   ========================================== */
.shop-mega-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 36, 71, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: none;
}

.shop-mega-drawer-backdrop.active {
  display: block;
}

.shop-mega-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  z-index: 1250;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
}

.shop-mega-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dd-border);
}

.drawer-slogan {
  font-size: 11px;
  color: var(--dd-green-dark);
  font-weight: 700;
  margin-top: 4px;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dd-bg-subtle);
  border: 1px solid var(--dd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.drawer-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dd-text-light);
  letter-spacing: 0.8px;
  margin: 20px 0 10px 0;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--dd-radius-md);
  color: var(--dd-text-dark);
  font-weight: 600;
  font-size: 14px;
  transition: var(--dd-transition-fast);
}

.drawer-nav-item a:hover {
  background: var(--dd-green-subtle);
  color: var(--dd-green-dark);
}

.drawer-nav-item i.nav-icon {
  font-size: 18px;
  color: var(--dd-green);
  margin-right: 12px;
}

.drawer-trust-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--dd-radius-md);
  padding: 14px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}