/* ==========================================================================
   PREMIUM MEN'S FASHION SHOP - CORE STYLESHEET
   Monochrome / Minimalist / High-Contrast Typography
   ========================================================================== */

:root {
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-dark-gray: #1f1f1f;
  --color-mid-gray: #757575;
  --color-light-gray: #f4f4f4;
  --color-border: #e5e5e5;
  
  --font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --max-width: 1400px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Nav */
header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-white);
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--color-mid-gray);
}

/* Hero Section */
.hero {
  height: 80vh;
  background-color: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  letter-spacing: 4px;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--color-mid-gray);
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 1rem 2.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--color-black);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn-hero {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.btn-hero:hover {
  background-color: transparent;
  color: var(--color-white);
}

/* Product Grid */
.products-section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2.5rem;
}

@media (max-width: 650px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem .55rem;
  }

  .product-image-wrap {
    height: 210px;
  }
}

.product-card {
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  display: block;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-image-wrap {
  width: 100%;
  height: 380px;
  background-color: var(--color-light-gray);
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 700;
  color: var(--color-dark-gray);
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  text-align: center;
  margin-top: 5rem;
  font-size: 0.85rem;
  color: var(--color-mid-gray);
}

.cart-widget-toggle {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 300;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 50%;
  background: #a33b2e;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  cursor: pointer;
  font-size: 1.2rem;
}

.cart-widget-toggle svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.cart-widget-toggle b {
  position: absolute;
  top: -.25rem;
  right: -.25rem;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: .1rem .3rem;
  border-radius: 1rem;
  background: #171717;
  font-size: .7rem;
  line-height: 1.15rem;
}

.cart-widget-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 299;
  display: flex;
  flex-direction: column;
  width: min(400px, 100vw);
  height: 100vh;
  padding: 1.5rem;
  background: #f4f1ec;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .15);
  transform: translateX(105%);
  transition: transform .3s ease;
}

.cart-widget.open .cart-widget-panel { transform: translateX(0); }
.cart-widget-overlay { position: fixed; inset: 0; z-index: 298; border: 0; background: rgba(23, 23, 23, .3); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.cart-widget.open .cart-widget-overlay { opacity: 1; pointer-events: auto; }
.cart-widget-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 1.25rem; border-bottom: 1px solid #d8d3ca; }
.cart-widget-header p { color: #a33b2e; font-size: .65rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.cart-widget-header h2 { margin-top: .35rem; font-size: 1.35rem; }
.cart-widget-header span { display: block; margin-top: .4rem; color: #77736c; font-size: .7rem; }
.cart-widget-header button { border: 0; background: none; font-size: 1.7rem; cursor: pointer; }
.cart-widget-shipping { padding: 1rem 0 .25rem; color: #77736c; font-size: .68rem; }
.cart-widget-shipping > div:first-child { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.cart-widget-shipping > div:first-child span:last-child { color: #a33b2e; font-weight: 800; letter-spacing: .6px; }
.cart-widget-progress-track { height: 4px; overflow: hidden; background: #ddd7ce; }
.cart-widget-progress-track span { display: block; height: 100%; background: #a33b2e; transition: width .25s ease; }
.cart-widget-items { flex: 1; overflow-y: auto; padding: 1rem 0; }
.cart-widget-item { display: flex; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid #d8d3ca; }
.cart-widget-item-image { width: 76px; height: 96px; flex: 0 0 auto; background: #e6e1da; }
.cart-widget-item img { width: 100%; height: 100%; object-fit: cover; }
.cart-widget-item-info { min-width: 0; flex: 1; }
.cart-widget-item-heading { display: flex; justify-content: space-between; gap: .5rem; }
.cart-widget-item h3 { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.cart-widget-item-heading strong { flex: 0 0 auto; font-size: .75rem; }
.cart-widget-options, .cart-widget-unit-price { margin-top: .3rem; color: #77736c; font-size: .68rem; }
.cart-widget-item-actions { display: flex; align-items: center; justify-content: space-between; gap: .55rem; margin-top: .8rem; font-size: .75rem; }
.cart-widget-quantity { display: flex; align-items: center; gap: .25rem; padding: .2rem; border: 1px solid #d3cbc0; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(23, 23, 23, .06); }
.cart-widget-item-actions button { border: 1px solid #c9c2b8; background: transparent; cursor: pointer; }
.cart-widget-item-actions button:not(.cart-widget-remove) { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%; color: #171717; font-size: 1.1rem; line-height: 1; transition: background .2s ease, color .2s ease, transform .2s ease; }
.cart-widget-item-actions button:not(.cart-widget-remove):hover { background: #171717; color: #fff; transform: scale(1.06); }
.cart-widget-item-actions button:not(.cart-widget-remove):active { transform: scale(.92); }
.cart-widget-item-actions button:not(.cart-widget-remove):disabled { background: transparent; color: #bdb6ad; cursor: not-allowed; transform: none; }
.cart-widget-quantity span { display: grid; place-items: center; min-width: 1.9rem; height: 1.9rem; font-weight: 800; }
.cart-widget-item-actions .cart-widget-remove { padding: .25rem .4rem; border: 0; color: #a33b2e; font-size: .65rem; }
.cart-widget-empty { flex: 1; padding: 3rem 1rem; color: #77736c; text-align: center; font-size: .85rem; }
.cart-widget-empty-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border: 1px solid #c9c2b8; border-radius: 50%; color: #a33b2e; font-size: 1.5rem; }
.cart-widget-empty h3 { margin-bottom: .45rem; color: #171717; font-size: .95rem; }
.cart-widget-empty p { max-width: 220px; margin: 0 auto; }
.cart-widget-empty a { display: inline-block; margin-top: .7rem; color: #a33b2e; font-weight: 700; }
.cart-widget-summary { padding-top: 1rem; border-top: 1px solid #d8d3ca; }
.cart-widget-summary[hidden] { display: none; }
.cart-widget-subtotal { display: flex; justify-content: space-between; margin-bottom: .35rem; font-size: .85rem; }
.cart-widget-summary > p { margin-bottom: 1rem; color: #77736c; font-size: .68rem; }
.cart-widget-summary .btn-primary { display: flex; justify-content: space-between; width: 100%; padding: .9rem 1rem; text-align: left; }
.cart-widget-view-cart { display: block; margin-top: .8rem; text-align: center; font-size: .7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }

@media (max-width: 480px) {
  .cart-widget-toggle { right: .8rem; bottom: .8rem; }
  .cart-widget-panel { padding: 1.25rem; }
}