/* ============================================
   GRACE HAVEN STUDIO LLC - Main Stylesheet
   Men's Sportswear Brand
   ============================================ */

:root {
  --primary: #1a1a1a;
  --secondary: #ff4d2d;
  --accent: #f5f5f5;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --transition: all .25s ease;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

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

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; color: var(--text-dark); }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary);
  color: #e5e7eb;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar a { color: #e5e7eb; }
.top-bar a:hover { color: var(--secondary); }

/* ===== Navbar ===== */
.navbar-brand-custom {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .5px;
  color: var(--primary) !important;
}
.navbar-brand-custom span {
  color: var(--secondary);
}
.navbar-custom {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  padding: 14px 0;
}
.navbar-custom .nav-link {
  font-weight: 600;
  color: var(--primary) !important;
  padding: 8px 16px !important;
  position: relative;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .5px;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--secondary) !important;
}
.navbar-custom .nav-link.active::after,
.navbar-custom .nav-link:hover::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: var(--secondary);
}
.cart-icon {
  position: relative;
  font-size: 18px;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--secondary);
  color: #fff;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ===== Hero Banner ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.1) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 1.6rem;
  opacity: .9;
}
.hero .eyebrow {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-radius: 2px;
}

/* ===== Buttons ===== */
.btn { font-weight: 600; padding: 12px 28px; border-radius: 4px; transition: var(--transition); text-transform: uppercase; font-size: 13px; letter-spacing: .5px; }
.btn-primary-custom {
  background: var(--secondary);
  color: #fff !important;
  border: 2px solid var(--secondary);
}
.btn-primary-custom:hover { background: #e63a1a; border-color: #e63a1a; transform: translateY(-2px); }
.btn-dark-custom { background: var(--primary); color: #fff !important; border: 2px solid var(--primary); }
.btn-dark-custom:hover { background: #000; transform: translateY(-2px); }
.btn-outline-light-custom {
  background: transparent;
  color: #fff !important;
  border: 2px solid #fff;
}
.btn-outline-light-custom:hover { background: #fff; color: var(--primary) !important; }
.btn-outline-dark-custom {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}
.btn-outline-dark-custom:hover { background: var(--primary); color: #fff !important; }

/* ===== Section Headings ===== */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title .eyebrow {
  color: var(--secondary);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.section-title h2 { margin: 0; }
.section-title p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 14px auto 0;
}

/* ===== Feature Boxes ===== */
.feature-box {
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  background: #fff;
  transition: var(--transition);
  height: 100%;
}
.feature-box:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  color: var(--secondary);
  font-size: 26px;
}
.feature-box h5 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-box p { color: var(--text-muted); margin: 0; font-size: 14px; }

/* ===== Product Cards ===== */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,.1);
  border-color: transparent;
}
.product-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 ratio */
  background: #f8f8f8;
  overflow: hidden;
}
.product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 1px;
  z-index: 2;
}
.product-info { padding: 18px 16px 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.product-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--primary);
  min-height: 42px;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--secondary); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.price-now { color: var(--secondary); font-weight: 800; font-size: 1.2rem; }
.price-old { color: var(--text-muted); text-decoration: line-through; font-size: .9rem; }
.product-actions { margin-top: auto; }
.btn-add-cart {
  width: 100%;
  padding: 10px 16px;
  font-size: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-add-cart:hover { background: var(--secondary); }

/* ===== Product Detail ===== */
.pd-gallery .main-img-wrap {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.pd-gallery .main-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pd-thumb {
  width: 78px;
  height: 78px;
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #f8f8f8;
  position: relative;
  transition: var(--transition);
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pd-thumb:hover { border-color: var(--secondary); }
.pd-thumb.active { border-color: var(--secondary); box-shadow: 0 0 0 2px rgba(255,77,45,.15); }

.pd-info .pd-cat {
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.pd-info h1 { font-size: 2rem; margin-bottom: 12px; line-height: 1.2; }
.pd-rating { color: var(--warning); margin-bottom: 14px; font-size: 14px; }
.pd-rating span { color: var(--text-muted); margin-left: 6px; }
.pd-price { margin-bottom: 18px; display: flex; align-items: baseline; gap: 14px; }
.pd-price .now { color: var(--secondary); font-weight: 800; font-size: 2rem; }
.pd-price .old { color: var(--text-muted); text-decoration: line-through; font-size: 1.15rem; }
.pd-price .save {
  background: #fff0eb;
  color: var(--secondary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.pd-desc { color: var(--text-muted); margin-bottom: 24px; }

.variant-section { margin-bottom: 18px; }
.variant-label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.variant-label span { color: var(--text-muted); font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: 6px; }

.color-list { display: flex; gap: 10px; flex-wrap: wrap; }
.color-opt {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  background: #f8f8f8;
  transition: var(--transition);
  padding: 0;
}
.color-opt img { width: 100%; height: 100%; object-fit: cover; }
.color-opt:hover { border-color: var(--secondary); }
.color-opt.active { border-color: var(--secondary); box-shadow: 0 0 0 2px rgba(255,77,45,.2); }

.size-list { display: flex; gap: 8px; flex-wrap: wrap; }
.size-opt {
  min-width: 50px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}
.size-opt:hover { border-color: var(--primary); }
.size-opt.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qty-box {
  display: inline-flex;
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.qty-box button {
  width: 40px;
  height: 44px;
  border: none;
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.qty-box button:hover { background: var(--accent); }
.qty-box input {
  width: 56px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  outline: none;
}

.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pd-actions .btn { flex: 1; min-width: 160px; padding: 14px 24px; font-size: 14px; }

.pd-meta {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 14px;
  color: var(--text-muted);
}
.pd-meta div { margin-bottom: 6px; }
.pd-meta b { color: var(--text-dark); font-weight: 600; }

/* ===== Cart Page ===== */
.cart-table { width: 100%; }
.cart-row {
  display: grid;
  grid-template-columns: 110px 1fr 140px 130px 130px 60px;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cart-row.head {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.cart-thumb {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f8f8;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-prod-name { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.cart-prod-name:hover { color: var(--secondary); }
.cart-prod-meta { font-size: 13px; color: var(--text-muted); }
.cart-remove { background: none; border: none; color: var(--danger); font-size: 18px; cursor: pointer; padding: 6px; }
.cart-remove:hover { color: var(--primary); }
.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.cart-empty i { font-size: 64px; color: #d1d5db; margin-bottom: 20px; }
.cart-empty h3 { color: var(--primary); margin-bottom: 10px; }

.cart-summary {
  background: var(--accent);
  padding: 28px;
  border-radius: 8px;
  position: sticky;
  top: 100px;
}
.cart-summary h4 { margin-bottom: 18px; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 1px; }
.cart-summary .row-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #d1d5db;
}
.cart-summary .row-item:last-of-type { border-bottom: none; }
.cart-summary .total { font-weight: 800; font-size: 1.25rem; color: var(--secondary); }

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(120deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #fff;
  padding: 70px 0 50px;
  text-align: center;
  margin-bottom: 50px;
}
.page-header h1 { color: #fff; margin-bottom: 10px; }
.page-header .breadcrumb-nav {
  font-size: 14px;
  color: #d1d5db;
}
.page-header .breadcrumb-nav a { color: var(--secondary); }
.page-header .breadcrumb-nav span { margin: 0 8px; }

/* ===== About ===== */
.about-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
}

/* ===== Contact ===== */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 22px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.contact-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  color: var(--secondary);
  font-size: 22px;
}
.contact-card h5 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { color: var(--text-muted); margin: 0; font-size: 14px; }
.contact-card a { color: var(--text-muted); }
.contact-card a:hover { color: var(--secondary); }

.form-control-custom {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}
.form-control-custom:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(255,77,45,.1); }

/* ===== Footer ===== */
.footer {
  background: #0f0f0f;
  color: #b3b3b3;
  padding: 60px 0 0;
  margin-top: 80px;
}
.footer h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}
.footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--secondary);
}
.footer a { color: #b3b3b3; }
.footer a:hover { color: var(--secondary); }
.footer p { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer .brand-name { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer .brand-name span { color: var(--secondary); }
.footer .contact-line { font-size: 14px; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 10px; }
.footer .contact-line i { color: var(--secondary); margin-top: 4px; }
.footer .subscriber-form { display: flex; gap: 6px; margin-top: 8px; }
.footer .subscriber-form input {
  flex: 1;
  padding: 11px 12px;
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
}
.footer .subscriber-form input:focus { outline: none; border-color: var(--secondary); }
.footer .subscriber-form button {
  background: var(--secondary);
  border: none;
  color: #fff;
  padding: 0 18px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}
.footer .subscriber-form button:hover { background: #e63a1a; }
.footer .social-icons { display: flex; gap: 10px; margin-top: 16px; }
.footer .social-icons a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f1f1f;
  border-radius: 50%;
  font-size: 14px;
  color: #b3b3b3;
}
.footer .social-icons a:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid #1f1f1f;
  margin-top: 40px;
  padding: 22px 0;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* ===== Legal Pages ===== */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px 40px;
}
.legal-content h2 { margin: 32px 0 14px; font-size: 1.4rem; }
.legal-content h3 { margin: 24px 0 10px; font-size: 1.15rem; }
.legal-content p { margin-bottom: 14px; line-height: 1.8; }
.legal-content ul { margin-bottom: 14px; padding-left: 22px; }
.legal-content ul li { margin-bottom: 6px; }

/* ===== Toast notification ===== */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: #fff;
  padding: 16px 22px;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toast-notification.success { background: var(--success); }
.toast-notification.error { background: var(--danger); }
.toast-notification i { font-size: 18px; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero { min-height: 460px; padding: 60px 0; }
  .cart-row {
    grid-template-columns: 90px 1fr 100px;
    row-gap: 8px;
  }
  .cart-row.head { display: none; }
  .cart-row .col-price,
  .cart-row .col-qty,
  .cart-row .col-total,
  .cart-row .col-remove { grid-column: span 1; }
}
@media (max-width: 575px) {
  .hero { min-height: 420px; }
  .product-name { min-height: auto; }
  .pd-actions .btn { width: 100%; }
  .cart-row { grid-template-columns: 80px 1fr; }
  .cart-row .col-remove { position: absolute; right: 0; }
}
