/* =================================================================
   RESET & BASE
================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #32373c;
}

/* =================================================================
   UTILITY BAR (top strip — logo, search, become a seller, login)
================================================================= */
.dm-utility-bar {
    background: #0c161d;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1000;
}

/* Logo */
.dm-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.dm-logo-wrap img {
    height: 40px !important;
    width: auto;
    display: block;
}

.dm-logo-text {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
    letter-spacing: 0.05em;
    border-left: 0.5px solid rgba(255,255,255,0.2);
    padding-left: 10px;
    line-height: 1.3;
}

/* Right side utility items */
.dm-utility-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Search form */
.dm-search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 0.5px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    padding: 5px 14px;
    transition: background 0.15s;
}

.dm-search-form:focus-within {
    background: rgba(255,255,255,0.14);
    border-color: #00aff0;
}

.dm-search-form svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: rgba(255,255,255,0.55);
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}

.dm-search-input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 12px;
    width: 160px;
    font-family: inherit;
}

.dm-search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Utility buttons */
.dm-util-btn {
    font-size: 12px;
    font-weight: 400;
    padding: 6px 14px;
    border-radius: 20px;
    border: 0.5px solid rgba(255,255,255,0.25);
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
    white-space: nowrap;
}

.dm-util-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

.dm-util-btn.dm-seller-btn {
    background: #00aff0;
    border-color: #00aff0;
    font-weight: 500;
}

.dm-util-btn.dm-seller-btn:hover {
    background: #009fd8;
    border-color: #009fd8;
}

.dm-util-btn svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    transition: transform 0.2s;
}

/* Become a Seller dropdown wrapper */
.dm-seller-wrap {
    position: relative;
}

.dm-seller-wrap:hover .dm-seller-dropdown,
.dm-seller-wrap:focus-within .dm-seller-dropdown {
    display: block;
}

.dm-seller-wrap:hover .dm-util-btn svg {
    transform: rotate(180deg);
}

/* Seller dropdown panel */
.dm-seller-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 0.5px solid #e0e4e8;
    border-top: 2px solid #00aff0;
    border-radius: 0 0 12px 12px;
    padding: 8px;
    min-width: 280px;
    z-index: 2000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.dm-seller-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.12s;
}

.dm-seller-link:hover {
    background: #f5f7fa;
}

.dm-seller-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #e8f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dm-seller-link-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #00aff0;
    stroke-width: 2;
    stroke-linecap: round;
}

.dm-seller-link-text {
    font-size: 13px;
    font-weight: 500;
    color: #32373c;
    display: block;
}

.dm-seller-link-sub {
    font-size: 11px;
    color: #9ca3af;
    display: block;
    margin-top: 1px;
}

.dm-seller-badge {
    margin-left: auto;
    background: #e8f9ff;
    color: #00aff0;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dm-seller-divider {
    border: none;
    border-top: 0.5px solid #f0f2f5;
    margin: 6px 0;
}

/* =================================================================
   MAIN NAV BAR (4 mega menu items)
================================================================= */
.dm-main-nav {
    background: #0c161d;
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 900;
}

.dm-nav-inner {
    display: flex;
    align-items: center;
    padding: 0 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Nav items */
.dm-nav-item {
    position: relative;
}

.dm-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 16px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s;
    border-bottom: 2px solid transparent;
    margin-bottom: -0.5px;
}

.dm-nav-link:hover,
.dm-nav-item:hover .dm-nav-link {
    color: #00aff0;
    border-bottom-color: #00aff0;
}

.dm-nav-link svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #9ca3af;
    stroke-width: 2;
    stroke-linecap: round;
    transition: transform 0.2s, stroke 0.15s;
}

.dm-nav-item:hover .dm-nav-link svg {
    transform: rotate(180deg);
    stroke: #00aff0;
}

/* Show mega on hover */
.dm-nav-item:hover .dm-mega {
    display: flex;
}

/* Mobile hamburger (hidden on desktop) */
.dm-hamburger {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #e5e7eb;
}

.dm-hamburger svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* =================================================================
   MEGA MENU PANELS
================================================================= */
.dm-mega {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 0.5px solid #e5e7eb;
    border-top: 2px solid #00aff0;
    border-radius: 0 0 12px 12px;
    padding: 24px;
    gap: 24px;
    min-width: 600px;
    z-index: 800;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.dm-mega.dm-mega-right {
    left: auto;
    right: 0;
}

/* Columns */
.dm-mega-col {
    flex: 1;
    min-width: 150px;
}

.dm-mega-col-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #00aff0;
    padding-bottom: 10px;
    border-bottom: 0.5px solid #f0f2f5;
    margin-bottom: 10px;
}

.dm-mega-link {
    display: block;
    font-size: 12px;
    color: #6b7280;
    padding: 4px 0;
    text-decoration: none;
    transition: color 0.12s, padding-left 0.12s;
    white-space: nowrap;
}

.dm-mega-link:hover {
    color: #00aff0;
    padding-left: 5px;
}

.dm-mega-link.dm-view-all {
    color: #00aff0;
    font-weight: 500;
    font-size: 11px;
    margin-top: 8px;
    display: block;
}

.dm-mega-link.dm-view-all:hover {
    padding-left: 5px;
}

/* Column divider */
.dm-mega-divider {
    width: 0.5px;
    background: #f0f2f5;
    flex-shrink: 0;
}

/* Industries grid (2-column grid inside mega) */
.dm-industries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
    min-width: 400px;
}

.dm-hub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.12s;
}

.dm-hub-item:hover {
    background: #f5f7fa;
}

.dm-hub-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #e8f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dm-hub-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #00aff0;
    stroke-width: 2;
    stroke-linecap: round;
}

.dm-hub-name {
    font-size: 12px;
    font-weight: 500;
    color: #32373c;
    display: block;
}

.dm-hub-sub {
    font-size: 11px;
    color: #9ca3af;
    display: block;
    margin-top: 1px;
}

/* Personal Shopper info box inside mega */
.dm-mega-info-box {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f5f7fa;
    border-radius: 8px;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
}

/* =================================================================
   MOBILE NAVIGATION
================================================================= */
.dm-mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 0.5px solid #e5e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dm-mobile-section {
    border-bottom: 0.5px solid #f0f2f5;
}

.dm-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #32373c;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.dm-mobile-toggle svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #9ca3af;
    stroke-width: 2;
    stroke-linecap: round;
    transition: transform 0.2s;
}

.dm-mobile-section.dm-open .dm-mobile-toggle svg {
    transform: rotate(180deg);
}

.dm-mobile-content {
    display: none;
    padding: 0 20px 16px;
    background: #f9fafb;
}

.dm-mobile-section.dm-open .dm-mobile-content {
    display: block;
}

.dm-mobile-col-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #00aff0;
    padding: 12px 0 6px;
}

.dm-mobile-link {
    display: block;
    font-size: 13px;
    color: #6b7280;
    padding: 6px 0;
    text-decoration: none;
    border-bottom: 0.5px solid #f0f2f5;
}

.dm-mobile-link:last-child {
    border-bottom: none;
}

.dm-mobile-link:hover {
    color: #00aff0;
}

.dm-mobile-actions {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dm-mobile-cta {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.dm-mobile-cta.seller {
    background: #00aff0;
    color: #fff;
}

.dm-mobile-cta.login {
    border: 1.5px solid #e0e4e8;
    color: #32373c;
}

/* =================================================================
   WORDPRESS ADMIN BAR FIX
   Prevents sticky nav hiding behind WP admin bar when logged in
================================================================= */
.admin-bar .dm-main-nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .dm-main-nav {
        top: 46px;
    }
}

/* =================================================================
   MOBILE NAV — max-height safety
================================================================= */
.dm-mobile-nav.dm-open {
    max-height: 2000px;
}

/* =================================================================
   MEGA RIGHT — prevent off-screen clip on mid-size screens
================================================================= */
@media (max-width: 1200px) {
    .dm-mega.dm-mega-right {
        left: auto;
        right: 0;
        min-width: 480px;
    }
}

@media (max-width: 1024px) {
    .dm-mega {
        min-width: unset;
        width: 95vw;
        left: 0;
        right: auto;
        flex-wrap: wrap;
    }

    .dm-mega.dm-mega-right {
        left: auto;
        right: 0;
        width: 95vw;
    }
}
@media (max-width: 960px) {
    .dm-nav-inner .dm-nav-item {
        display: none;
    }

    .dm-hamburger {
        display: flex;
    }

    .dm-mobile-nav {
        display: flex;
    }

    .dm-search-input {
        width: 120px;
    }
}

@media (max-width: 600px) {
    .dm-utility-bar {
        padding: 8px 16px;
    }

    .dm-logo-text {
        display: none;
    }

    .dm-search-form {
        display: none;
    }

    .dm-seller-wrap,
    .dm-util-btn.dm-login-btn {
        display: none;
    }
}


/* Mobile view all links */
.dm-mobile-link.dm-mobile-view-all {
    color: #00aff0;
    font-weight: 500;
}

/* Industries mega width */
.dm-mega.dm-mega-industries {
    min-width: 440px;
    padding: 20px;
}

.dm-mega-soon{
  display:block;
  padding:8px 0;
  color:rgba(255,255,255,.35);
  font-weight:600;
  cursor:default;
  pointer-events:none;
}
.dm-mega-soon .dm-soon-tag{
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  color:#5bd4ff;
  margin-left:6px;
  text-transform:uppercase;
}
.dm-mob-link.dm-mega-soon{
  padding:14px 20px;
}

/* Fix: .dm-mega desktop dropdown panel renders on a white background,
   so the base .dm-mega-soon color (translucent white) was invisible.
   Override for desktop mega panels only; mobile keeps the original. */
.dm-mega .dm-mega-soon{
  color:rgba(50,55,65,.42);
}
.dm-mega .dm-mega-soon .dm-soon-tag{
  color:#0369a1;
}
