/* ============================================================
   DIPLOMAT TAILORING — Main Stylesheet
   Palette: Navy #1C2B4A | Cream #F7F4EF | Stone #EDE8E1
            Gold #C9B06A | Muted blue-grey #7a8fa8
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,400&family=Jost:wght@300;400;500&display=swap');

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

body {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: #1C2B4A;
}

a { color: #1C2B4A; text-decoration: none; }
a:hover { color: #C9B06A; }

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   TOPBAR
   ============================================================ */
.dt-topbar {
  background: #1C2B4A;
  color: #C9B06A;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 9px 20px;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  border-bottom: 1px solid #e8e2d9 !important;
  background: #fff !important;
  padding: 0 !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: none !important;
}

.site-header .col-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 40px;
  max-width: 100%;
}

/* Logo */
.site-branding {
  flex: 1;
  text-align: center;
  order: 2;
}

.site-branding .site-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 22px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #1C2B4A !important;
  font-weight: 500 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.site-branding .site-title a {
  color: #1C2B4A !important;
}

.site-branding .site-title a:hover {
  color: #C9B06A !important;
}

/* Hide tagline */
.site-description { display: none; }

/* Primary nav — left side */
.main-navigation {
  flex: 1;
  order: 1;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.main-navigation ul li {
  position: relative;
}

.main-navigation ul li a {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  padding: 0 16px;
  height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.main-navigation ul li a:hover,
.main-navigation ul li:hover > a {
  color: #1C2B4A;
  border-bottom-color: #1C2B4A;
}

/* Dropdown menus */
.main-navigation ul li ul {
  position: absolute;
  top: 68px;
  left: 0;
  background: #fff;
  border: 1px solid #e8e2d9;
  border-top: 2px solid #1C2B4A;
  padding: 28px 32px;
  min-width: 520px;
  display: none;
  flex-direction: row;
  gap: 32px;
  z-index: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

.main-navigation ul li:hover > ul {
  display: flex;
}

.main-navigation ul li ul li {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.main-navigation ul li ul li a {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #333;
  padding: 5px 0;
  height: auto;
  border-bottom: none;
  display: block;
}

.main-navigation ul li ul li a:hover {
  color: #1C2B4A;
  border-bottom: none;
}

/* Dropdown column headers — use aria-label or first item */
.main-navigation .menu-item-has-children > ul > .menu-item:first-child > a {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bbb;
  cursor: default;
  pointer-events: none;
}

/* Header right — cart & search */
.dt-header-right {
  flex: 1;
  order: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.dt-header-right a {
  color: #1a1a1a;
  font-size: 18px;
  transition: color 0.2s;
}

.dt-header-right a:hover { color: #1C2B4A; }

/* Hide Storefront's default header cart if present */
.site-header-cart { display: none !important; }

/* ============================================================
   HERO
   ============================================================ */
.dt-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

.dt-hero-text {
  background: #F7F4EF;
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dt-hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 20px;
}

.dt-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.1;
  color: #1C2B4A;
  margin: 0 0 24px;
}

.dt-hero-sub {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 320px;
}

.dt-btn-primary {
  display: inline-block;
  background: #1C2B4A;
  color: #fff !important;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid #1C2B4A;
  margin-right: 12px;
  transition: background 0.2s;
}

.dt-btn-primary:hover {
  background: #162238;
  color: #fff !important;
}

.dt-btn-secondary {
  display: inline-block;
  background: transparent;
  color: #1C2B4A !important;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid #1C2B4A;
  transition: background 0.2s, color 0.2s;
}

.dt-btn-secondary:hover {
  background: #1C2B4A;
  color: #fff !important;
}

.dt-hero-image {
  overflow: hidden;
  position: relative;
}

.dt-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ============================================================
   SALE TICKER
   ============================================================ */
.dt-sale-ticker {
  background: #1C2B4A;
  color: #C9B06A;
  text-align: center;
  padding: 14px 20px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.dt-sale-ticker:hover { background: #162238; }
.dt-sale-ticker a { color: #C9B06A; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.dt-section {
  padding: 56px 40px;
}

.dt-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  border-bottom: 1px solid #e8e2d9;
  padding-bottom: 16px;
}

.dt-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: #1C2B4A;
  margin: 0;
}

.dt-section-link {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  transition: color 0.2s;
}

.dt-section-link:hover { color: #1C2B4A; }

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.dt-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dt-cat-card {
  cursor: pointer;
}

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

.dt-cat-img {
  background: #EDE8E1;
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 12px;
}

.dt-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dt-cat-name {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
}

/* ============================================================
   BRANDS STRIP
   ============================================================ */
.dt-brands-strip {
  padding: 36px 40px;
  border-top: 1px solid #e8e2d9;
  border-bottom: 1px solid #e8e2d9;
  background: #F7F4EF;
}

.dt-brands-label {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #bbb;
  text-align: center;
  margin-bottom: 24px;
}

.dt-brands-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
}

.dt-brand-name {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #555;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 14px;
  transition: color 0.2s;
}

.dt-brand-name:hover { color: #1C2B4A; }

/* ============================================================
   EDITORIAL FEATURE BLOCK
   ============================================================ */
.dt-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 40px 56px;
}

.dt-editorial-img {
  overflow: hidden;
  min-height: 320px;
}

.dt-editorial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dt-editorial-img:hover img { transform: scale(1.03); }

.dt-editorial-text {
  background: #1C2B4A;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dt-editorial-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9B06A;
  margin-bottom: 16px;
}

.dt-editorial-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}

.dt-editorial-body {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #7a8fa8;
  line-height: 1.8;
  margin-bottom: 32px;
}

.dt-btn-gold {
  display: inline-block;
  border: 1px solid #C9B06A;
  color: #C9B06A !important;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 28px;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}

.dt-btn-gold:hover {
  background: #C9B06A;
  color: #1C2B4A !important;
}

/* ============================================================
   WOOCOMMERCE — PRODUCT CARDS
   ============================================================ */
.woocommerce ul.products li.product {
  text-align: left !important;
}

.woocommerce ul.products li.product a img {
  transition: transform 0.4s ease;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.03);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Jost', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  color: #1a1a1a !important;
  padding: 12px 0 4px !important;
}

.woocommerce ul.products li.product .price {
  font-family: 'Jost', sans-serif !important;
  font-size: 13px !important;
  color: #555 !important;
}

.woocommerce ul.products li.product .price ins {
  color: #1C2B4A !important;
  font-weight: 500 !important;
}

.woocommerce ul.products li.product .price del {
  color: #bbb !important;
}

/* Add to cart button */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button {
  background: #1C2B4A !important;
  color: #fff !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  padding: 10px 20px !important;
  border: 1px solid #1C2B4A !important;
  transition: background 0.2s !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: #162238 !important;
  color: #fff !important;
}

/* Sale badge */
.woocommerce span.onsale {
  background: #C9B06A !important;
  color: #1C2B4A !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  border-radius: 0 !important;
  min-height: auto !important;
  min-width: auto !important;
  padding: 5px 10px !important;
  line-height: 1.4 !important;
}

/* ============================================================
   WOOCOMMERCE — SINGLE PRODUCT
   ============================================================ */
.woocommerce div.product .product_title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 36px !important;
  font-weight: 400 !important;
  color: #1C2B4A !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: 'Jost', sans-serif !important;
  color: #1C2B4A !important;
  font-size: 20px !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-family: 'Jost', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: #555 !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1C2B4A !important;
  color: #7a8fa8 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.dt-footer-top {
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 100%;
}

.dt-footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9B06A;
  margin-bottom: 14px;
}

.dt-footer-desc {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #7a8fa8;
  line-height: 1.75;
}

.dt-footer-col h5 {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9B06A;
  margin: 0 0 16px;
  font-weight: 500;
}

.dt-footer-col a {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #7a8fa8;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.dt-footer-bottom {
  background: #111d30;
  color: #444;
  text-align: center;
  padding: 14px 20px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Hide Storefront default footer widgets styling */
.site-footer .col-full { padding: 0 !important; max-width: 100% !important; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .dt-hero { grid-template-columns: 1fr; }
  .dt-hero-image { min-height: 380px; }
  .dt-hero-text { padding: 48px 32px; }
  .dt-hero-title { font-size: 40px; }
  .dt-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .dt-editorial { grid-template-columns: 1fr; margin: 0 0 40px; }
  .dt-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 24px; }
  .site-header .col-full { padding: 0 20px; }
  .dt-section { padding: 40px 20px; }
  .dt-brands-strip { padding: 28px 20px; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 600px) {
  .dt-hero-title { font-size: 32px; }
  .dt-hero-text { padding: 36px 24px; }
  .dt-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dt-footer-top { grid-template-columns: 1fr; padding: 32px 20px; }
  .dt-brands-row { gap: 4px; }
  .dt-editorial-text { padding: 36px 28px; }
  .dt-editorial-title { font-size: 26px; }
  .main-navigation { display: none; }
}
