:root {
  --black: #111111;
  --dark: #202b3b;
  --muted: #777;
  --line: #e7e7e7;
  --soft: #f5f5f5;
  --white: #fff;
  --accent: #f04f3f;
  --radius: 14px;
  --max: 1240px;
}

/* ==========================
   RESET & GLOBAL STYLES
========================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: var(--black);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.container {
  width: min(var(--max), 92%);
  margin: auto;
}

/* ==========================
   TOP BANNER
========================== */

.top-banner {
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  padding: 9px 15px;
  text-align: center;
}

.top-banner a {
  font-weight: 700;
  text-decoration: underline;
}

/* ==========================
   NAVIGATION
========================== */

.navbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 28px;
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  margin: auto;
  width: min(var(--max), 92%);
}

.logo {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.nav-links {
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 23px;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 0.6;
}

.search {
  align-items: center;
  background: #f5f5f5;
  border-radius: 22px;
  display: flex;
  flex: 1;
  gap: 9px;
  height: 42px;
  margin-left: auto;
  max-width: 390px;
  padding: 0 15px;
}

.search input {
  background: transparent;
  border: 0;
  font-size: 13px;
  outline: 0;
  width: 100%;
}

.nav-icons {
  display: flex;
  font-size: 19px;
  gap: 17px;
}

.icon-btn {
  background: transparent;
  position: relative;
}

.cart-count {
  align-items: center;
  background: var(--accent);
  border-radius: 20px;
  color: #fff;
  display: grid;
  font-size: 9px;
  height: 16px;
  min-width: 16px;
  place-items: center;
  position: absolute;
  right: -8px;
  top: -9px;
}

.mobile-menu {
  background: none;
  display: none;
  font-size: 21px;
}

/* ==========================
   BUTTONS
========================== */

.btn {
  align-items: center;
  background: var(--dark);
  border-radius: 28px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  padding: 14px 30px;
  transition: 0.2s;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.outline-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 28px;
}

/* ==========================
   HERO SECTION
========================== */

.hero {
  background: #f4f4f4;
  overflow: hidden;
}

.hero-grid {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 550px;
}

.hero-copy {
  padding: 65px 20px 65px 0;
}

.hero-copy h1 {
  font-size: clamp(43px, 5.1vw, 72px);
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 0.96;
  max-width: 650px;
}

.hero-copy p {
  color: #666;
  font-size: 14px;
  margin: 26px 0;
  max-width: 530px;
}

.hero-stats {
  display: flex;
  gap: 35px;
  margin-top: 35px;
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: #777;
  font-size: 10px;
}

.hero-image {
  height: 550px;
  position: relative;
}

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

.spark {
  color: var(--dark);
  font-size: 44px;
  font-weight: 900;
  position: absolute;
}

.spark.one {
  right: 35px;
  top: 75px;
}

.spark.two {
  left: 15px;
  top: 285px;
}

/* ==========================
   BRAND STRIP
========================== */

.brands {
  background: var(--dark);
  color: #fff;
}

.brand-row {
  align-items: center;
  display: flex;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 800;
  height: 78px;
  justify-content: space-between;
  gap: 25px;
}

.brand-row span:nth-child(2) {
  font-family: Arial, sans-serif;
  font-style: italic;
}

.brand-row span:nth-child(5) {
  font-family: Georgia, serif;
  font-weight: 500;
}

/* ==========================
   GENERAL SECTIONS
========================== */

.section {
  padding: 70px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 35px;
  text-align: center;
}

.center-link {
  margin-top: 32px;
  text-align: center;
}

/* ==========================
   PRODUCT GRIDS & CARDS
========================== */

.products-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  min-width: 0;
}

.product-image {
  aspect-ratio: 1 / 1.13;
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
  width: 100%;
}

.product-card:hover .product-image img {
  transform: scale(1.035);
}

.product-info {
  padding-top: 13px;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.stars {
  color: #f4b400;
  font-size: 12px;
  letter-spacing: 1px;
}

.rating {
  color: #888;
  font-size: 11px;
  margin-left: 4px;
}

.price {
  font-size: 14px;
  font-weight: 800;
  margin-top: 7px;
}

.old-price {
  color: #aaa;
  font-weight: 500;
  margin-left: 7px;
  text-decoration: line-through;
}

.discount {
  background: #ffe9e6;
  border-radius: 12px;
  color: #d85043;
  font-size: 9px;
  margin-left: 5px;
  padding: 3px 7px;
}

/* ==========================
   DRESS CATEGORIES
========================== */

.dress-grid {
  background: #f5f5f5;
  border-radius: 18px;
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr 1fr;
  padding: 28px;
}

.dress-card {
  background: #ddd;
  border-radius: 12px;
  height: 210px;
  overflow: hidden;
  position: relative;
}

.dress-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.dress-card span {
  background: #fff;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 800;
  left: 20px;
  padding: 8px 13px;
  position: absolute;
  top: 20px;
}

/* ==========================
   REVIEWS
========================== */

.reviews {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(3, 1fr);
}

.review {
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 23px;
}

.review .stars {
  margin-bottom: 10px;
}

.review h4 {
  font-size: 13px;
  margin-bottom: 7px;
}

.review p {
  color: #666;
  font-size: 11px;
}

.review-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
}

.review-card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 18px;
}

.review-card p {
  color: #666;
  font-size: 11px;
  margin-top: 8px;
}

/* ==========================
   NEWSLETTER
========================== */

.newsletter {
  align-items: center;
  background: var(--dark);
  border-radius: 15px;
  color: #fff;
  display: grid;
  gap: 25px;
  justify-content: space-between;
  padding: 28px 35px;
}

.newsletter h2 {
  font-size: 22px;
  line-height: 1.05;
  max-width: 360px;
}

.news-form {
  display: flex;
  gap: 10px;
  width: 450px;
}

.news-form input {
  border: 0;
  border-radius: 25px;
  flex: 1;
  outline: 0;
  padding: 13px 17px;
}

.news-form button {
  background: #fff;
  border-radius: 25px;
  font-weight: 800;
  padding: 12px 20px;
}

/* ==========================
   FOOTER
========================== */

footer {
  padding: 55px 0 25px;
}

.footer-grid {
  display: grid;
  gap: 35px;
  grid-template-columns: 1.5fr repeat(4, 1fr);
}

.footer-brand p {
  color: #777;
  font-size: 11px;
  margin: 13px 0 18px;
  max-width: 270px;
}

.socials {
  display: flex;
  gap: 9px;
}

.socials span {
  border: 1px solid #ddd;
  border-radius: 50%;
  display: grid;
  font-size: 11px;
  height: 29px;
  place-items: center;
  width: 29px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 17px;
}

.footer-col a {
  color: #777;
  display: block;
  font-size: 11px;
  margin: 10px 0;
}

.footer-bottom {
  border-top: 1px solid #eee;
  color: #888;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  margin-top: 35px;
  padding-top: 18px;
}

/* ==========================
   BREADCRUMBS & CATEGORIES
========================== */

.breadcrumb {
  color: #888;
  font-size: 11px;
  margin: 25px 0;
}

.category-layout {
  display: grid;
  gap: 35px;
  grid-template-columns: 220px 1fr;
}

.filters {
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  height: max-content;
  padding: 20px;
  position: sticky;
  top: 95px;
}

.filter-head {
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 22px;
}

.filter-group {
  border-top: 1px solid #eee;
  padding: 18px 0;
}

.filter-group h4 {
  font-size: 12px;
  margin-bottom: 13px;
}

.check {
  align-items: center;
  color: #666;
  display: flex;
  font-size: 11px;
  gap: 8px;
  margin: 9px 0;
}

.color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.color {
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #ddd;
  height: 21px;
  width: 21px;
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.size {
  background: #393939;
  border-radius: 18px;
  font-size: 10px;
  padding: 7px 10px;
}

.size.active {
  background: var(--dark);
  color: #fff;
}

.range {
  width: 100%;
}

.category-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.category-head h1 {
  font-size: 28px;
}

.sort {
  color: #666;
  font-size: 11px;
}

.category-products {
  grid-template-columns: repeat(3, 1fr);
}

/* ==========================
   PRODUCT DETAILS
========================== */

.product-page {
  display: grid;
  gap: 50px;
  grid-template-columns: 1.05fr 0.95fr;
  margin: 30px 0 70px;
}

.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: 90px 1fr;
}

.thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.thumb {
  background: #f5f5f5;
  border-radius: 9px;
  cursor: pointer;
  overflow: hidden;
}

.thumb.active {
  outline: 2px solid #222;
}

.thumb img {
  aspect-ratio: 1;
  object-fit: cover;
}

.main-product-image {
  background: #f5f5f5;
  border-radius: 15px;
  overflow: hidden;
}

.main-product-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-detail h1 {
  font-size: 34px;
  letter-spacing: -1.3px;
  margin-bottom: 10px;
}

.detail-rating {
  margin-bottom: 18px;
}

.detail-price {
  font-size: 28px;
  font-weight: 900;
}

.detail-price del {
  color: #aaa;
  font-size: 18px;
  margin-left: 8px;
}

.detail-desc {
  color: #666;
  font-size: 12px;
  margin: 20px 0 25px;
  max-width: 540px;
}

.option-title {
  color: #777;
  font-size: 11px;
  margin: 17px 0 9px;
}

.swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #ccc;
  height: 28px;
  width: 28px;
}

.swatch.selected {
  box-shadow: 0 0 0 2px #222;
}

.size-buttons {
  display: flex;
  gap: 8px;
}

.size-buttons button {
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 11px;
  padding: 10px 17px;
}

.size-buttons button.active {
  background: var(--dark);
  color: #fff;
}

.buy-row {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.quantity {
  align-items: center;
  background: #f5f5f5;
  border-radius: 25px;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  width: 130px;
}

.quantity button {
  background: none;
  font-size: 19px;
}

.add-btn {
  flex: 1;
}

.tabs {
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}

.tab {
  font-size: 12px;
  font-weight: 700;
  padding: 17px;
}

.tab.active {
  border-bottom: 2px solid #222;
}

/* ==========================
   SHOPPING CART
========================== */

.cart-layout {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.25fr 0.75fr;
  margin-bottom: 60px;
}

.cart-box,
.summary-box {
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 24px;
}

.cart-item {
  align-items: center;
  border-bottom: 1px solid #eee;
  display: grid;
  gap: 17px;
  grid-template-columns: 85px 1fr auto;
  padding: 18px 0;
}

.cart-item img {
  background: #f5f5f5;
  border-radius: 8px;
  height: 95px;
  object-fit: cover;
  width: 85px;
}

.cart-item h3 {
  font-size: 13px;
}

.cart-item p {
  color: #777;
  font-size: 10px;
  margin: 4px 0;
}

.remove {
  background: none;
  color: #d44;
  font-size: 11px;
}

.cart-item .quantity {
  width: 105px;
}

.summary-box h2 {
  font-size: 19px;
  margin-bottom: 22px;
}

.sum-line {
  color: #666;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin: 15px 0;
}

.sum-line.total {
  border-top: 1px solid #eee;
  color: #111;
  font-size: 16px;
  font-weight: 900;
  padding-top: 18px;
}

.promo {
  display: flex;
  margin: 18px 0;
}

.promo input {
  background: #f5f5f5;
  border: 0;
  border-radius: 22px 0 0 22px;
  flex: 1;
  outline: 0;
  padding: 11px 13px;
}

.promo button {
  background: var(--dark);
  border-radius: 0 22px 22px 0;
  color: #fff;
  padding: 0 18px;
}

.checkout {
  margin-top: 8px;
  width: 100%;
}

/* ==========================
   EMPTY STATES
========================== */

.empty {
  color: #777;
  padding: 50px 10px;
  text-align: center;
}

.empty h2 {
  color: #111;
  margin-bottom: 10px;
}

/* ==========================
   TABLET RESPONSIVENESS
========================== */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
    order: -1;
  }

  .nav-inner {
    gap: 15px;
  }

  .search {
    max-width: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 50px 0 30px;
  }

  .hero-copy h1 {
    letter-spacing: -2.5px;
  }

  .hero-image {
    height: 410px;
  }

  .hero-stats {
    gap: 20px;
  }

  .brand-row {
    font-size: 17px;
    height: 60px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter {
    align-items: stretch;
    flex-direction: column;
  }

  .news-form {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .category-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .category-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-page {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   MOBILE RESPONSIVENESS
========================== */

@media (max-width: 560px) {
  .top-banner {
    font-size: 10px;
  }

  .navbar {
    height: 64px;
  }

  .logo {
    font-size: 21px;
  }

  .nav-icons {
    gap: 10px;
  }

  .search {
    display: none;
  }

  .hero-copy {
    padding: 42px 0 28px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 12px;
  }

  .hero-stats {
    justify-content: space-between;
  }

  .stat strong {
    font-size: 18px;
  }

  .hero-image {
    height: 390px;
  }

  .brand-row {
    font-size: 14px;
    justify-content: space-around;
    overflow: hidden;
  }

  .brand-row span:nth-child(5) {
    display: none;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .products-grid {
    gap: 13px;
  }

  .product-name {
    font-size: 11px;
  }

  .price {
    font-size: 12px;
  }

  .dress-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .dress-card {
    height: 170px;
  }

  .reviews,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .newsletter {
    padding: 24px 20px;
  }

  .newsletter h2 {
    font-size: 19px;
  }

  .news-form {
    flex-direction: column;
  }

  .news-form button {
    padding: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .category-head h1 {
    font-size: 22px;
  }

  .category-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: 65px 1fr;
  }

  .product-detail h1 {
    font-size: 27px;
  }

  .detail-price {
    font-size: 24px;
  }

  .buy-row {
    flex-wrap: wrap;
  }

  .quantity {
    width: 100%;
  }

  .add-btn {
    height: 45px;
  }

  .cart-item {
    grid-template-columns: 65px 1fr;
  }

  .cart-item img {
    height: 75px;
    width: 65px;
  }

  .cart-item .quantity {
    grid-column: 2;
    width: 100px;
  }

  .remove {
    margin-left: 180px;
    position: absolute;
  }

  .cart-box,
  .summary-box {
    padding: 17px;
  }
}

.shop-tabs {
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 24px;
  display: flex;
  gap: 12px;
}
.shop-tabs a {
  padding: 8px 18px;
  border-radius: 20px;
  background: #f0f0f0;
  color: #000;
  text-decoration: none;
}
.shop-tabs a.active {
  background: #000;
  color: #fff;
}
.nav-links a.active {
  font-weight: 700;
  border-bottom: 2px solid #000;
}
