/* ==========================================================
   Danish International - Japan-to-Worldwide Export
   Custom CSS3 Stylesheet
   Color Identity: Navy Blue (#0b2545) & Crimson Red (#c8102e)
   ========================================================== */

:root {
  --primary-navy: #0b2545;
  --primary-navy-dark: #07192f;
  --primary-navy-light: #133863;
  --accent-red: #c8102e;
  --accent-red-hover: #b00d27;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Navigation */
.top-bar {
  background-color: var(--primary-navy-dark);
  color: #94a3b8;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-header {
  background-color: var(--primary-navy);
  color: #ffffff;
  border-bottom: 4px solid var(--accent-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo svg {
  width: 42px;
  height: 42px;
}
.brand-title {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-title span {
  color: var(--accent-red);
}
.brand-subtitle {
  font-size: 9px;
  color: #cbd5e1;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
  list-style: none;
}
.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  padding: 8px 11px;
  border-radius: 6px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-item > a:hover,
.nav-item.active > a,
.nav-item:hover > a {
  background-color: var(--primary-navy-light);
  color: #facc15;
}
.nav-arrow {
  font-size: 9px;
  transition: transform 0.25s ease;
  color: rgba(255, 255, 255, 0.7);
}
.nav-item:hover .nav-arrow,
.nav-item.dropdown-open .nav-arrow {
  transform: rotate(180deg);
  color: #facc15;
}

/* Dropdown Menu (Level 1) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background-color: #07192f;
  border: 1px solid #1e3a5f;
  border-top: 3px solid var(--accent-red);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  padding: 6px 0;
  list-style: none;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}
.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu,
.nav-item.dropdown-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu li {
  position: relative;
  list-style: none;
}
.dropdown-menu li a {
  float: left;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 0;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.dropdown-menu li a:hover,
.dropdown-menu li a.active {
  background-color: #133863;
  color: #ffffff;
  padding-left: 20px;
}
.dropdown-menu li a i.sub-icon {
  font-size: 11px;
  width: 14px;
  color: var(--accent-red);
  text-align: center;
  margin-right: 4px;
}
.dropdown-menu li a:hover i.sub-icon {
  color: #facc15;
}
.dropdown-menu .dropdown-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-red);
  color: #ffffff;
  text-transform: uppercase;
}
.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 5px 0;
}

/* Nested Dropdown Sub-menu (Level 2) */
.has-nested-dropdown {
  position: relative;
}
.has-nested-dropdown > a .nested-arrow {
  font-size: 9px;
  margin-left: auto;
  color: #94a3b8;
  transition: transform 0.2s;
}
.nested-dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  background-color: #061527;
  border: 1px solid #1e3a5f;
  border-left: 3px solid var(--accent-gold);
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}
.has-nested-dropdown:hover > .nested-dropdown-menu,
.has-nested-dropdown:focus-within > .nested-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.has-nested-dropdown:hover > a .nested-arrow {
  transform: translateX(3px);
  color: #facc15;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-red {
  background-color: var(--accent-red);
  color: #ffffff;
}
.btn-red:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-1px);
}
.btn-navy {
  background-color: var(--primary-navy);
  color: #ffffff;
}
.btn-navy:hover {
  background-color: var(--primary-navy-light);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}
.btn-whatsapp:hover {
  background-color: #1ebc59;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 60px 0;
  border-bottom: 4px solid var(--accent-red);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-navy-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: #facc15;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero-title span {
  color: #f87171;
}
.hero-desc {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 24px;
  max-width: 540px;
}

/* Hero Search Box */
.hero-finder-card {
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
}
.finder-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.finder-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-red);
  text-transform: uppercase;
}
.finder-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-navy);
}

/* Forms */
.form-group {
  margin-bottom: 12px;
}
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #334155;
}
.form-control {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #f8fafc;
  outline: none;
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--primary-navy);
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(11, 37, 69, 0.15);
}

/* Grid Layouts */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 36px auto;
}
.section-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 4px;
}
.section-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary-navy);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Product Card */
.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.product-image-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background-color: #0f172a;
  overflow: hidden;
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}
.product-badge-status {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--accent-emerald);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.product-badge-grade {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent-red);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}
.product-content {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-ref {
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  color: var(--accent-red);
}
.product-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 4px 0 8px 0;
  line-height: 1.3;
}
.product-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 11px;
  background-color: #f8fafc;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 12px;
  color: #475569;
}
.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
  margin-bottom: 10px;
}
.price-usd {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-navy);
}
.price-jpy {
  font-size: 10px;
  color: #94a3b8;
  font-family: monospace;
}

/* Shipping Calculator Box */
.calculator-box {
  background-color: var(--primary-navy);
  color: white;
  border-radius: 16px;
  padding: 30px;
  border-left: 6px solid var(--accent-red);
  box-shadow: 0 10px 25px rgba(11, 37, 69, 0.2);
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* Footer */
.main-footer {
  background-color: var(--primary-navy-dark);
  color: #cbd5e1;
  padding: 50px 0 20px 0;
  border-top: 4px solid var(--accent-red);
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
  border-left: 3px solid var(--accent-red);
  padding-left: 8px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 12px;
  color: #94a3b8;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
}

/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 1024px) {
  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 14px;
    background: #07192f;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #1e3a5f;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-item {
    width: 100%;
  }
  .nav-item > a {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
  }
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #0b2545;
    padding: 4px 0 4px 14px;
    border-left: 2px solid var(--accent-red);
    margin: 4px 0 8px 10px;
    border-radius: 4px;
    pointer-events: auto;
  }
  .nav-item.dropdown-open > .dropdown-menu {
    display: block;
  }
  .has-nested-dropdown .nested-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: #061527;
    padding: 4px 0 4px 14px;
    border-left: 2px solid var(--accent-gold);
    margin: 4px 0 8px 10px;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .has-nested-dropdown.dropdown-open > .nested-dropdown-menu {
    display: block;
  }
  .mobile-toggle {
    display: block;
  }

  /* Admin panel tablet adaptation */
  .admin-layout {
    flex-direction: column !important;
  }
  .admin-sidebar {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 3px solid var(--accent-red) !important;
  }
  .admin-main {
    padding: 16px !important;
  }
}

@media (max-width: 768px) {
  .top-bar-left, .top-bar-right {
    width: 100%;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .brand-title {
    font-size: 16px;
  }
  .brand-subtitle {
    font-size: 8px;
  }
  .hero-title {
    font-size: 26px !important;
  }
  .section-title {
    font-size: 22px !important;
  }
  .floating-wa-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 14px;
    font-size: 12px;
  }
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .btn {
    padding: 9px 14px;
    font-size: 12px;
  }
  .product-card-img {
    height: 180px;
  }
}
