* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #1f1f1f;
  background: #fff;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* TOP BAR */
.topbar {
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.account-links,
.account-links a,
.cart-box a {
  color: #111;
}

.account-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* SOCIAL */
.social-bar {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.social-inner {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-inner a,
.footer-social a {
  font-size: 15px;
  color: #111;
  transition: 0.3s;
}

.social-inner a:hover,
.footer-social a:hover {
  color: #8a6a3f;
}

/* HEADER */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  padding: 22px 0 10px;
}

.logo {
  max-height: 70px;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 24px;
  margin: 0 auto 16px;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111;
  transition: 0.3s;
}

.main-nav a:hover {
  color: #8a6a3f;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
  z-index: 10;
  padding: 10px 0;
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  text-transform: none;
  letter-spacing: 0;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* SECTIONS */
.section {
  padding: 60px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
}

.section-heading.center {
  justify-content: center;
}

.section-heading h2 {
  font-size: 32px;
  font-weight: 600;
}

.view-all {
  font-size: 14px;
  text-transform: uppercase;
  color: #8a6a3f;
  letter-spacing: 1px;
}

/* PRODUCTS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.product-card {
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: #f5f5f5;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-top: 14px;
  min-height: 58px;
}

.price {
  margin-top: 8px;
  color: #000;
  font-weight: bold;
  font-size: 15px;
}

/* CATEGORIES */
.category-section {
  background: #faf8f5;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.category-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.category-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255,255,255,0.92);
  color: #111;
  padding: 8px 14px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* BACK TO TOP */
.back-top-wrap {
  text-align: center;
  padding: 20px 0 10px;
}

.back-top {
  color: #8a6a3f;
  font-size: 14px;
  text-transform: uppercase;
}

/* FOOTER */
.site-footer {
  background: #111;
  color: #f5f5f5;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 50px;
  padding: 60px 0 40px;
}

.footer-logo {
  max-height: 65px;
  margin-bottom: 20px;
}

.footer-brand h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.footer-brand p {
  margin-bottom: 6px;
  color: #d5d5d5;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-links h4 {
  margin-bottom: 14px;
  font-size: 16px;
  color: #fff;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #d5d5d5;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0 30px;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.footer-bottom p {
  color: #cfcfcf;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    padding-bottom: 15px;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 14px;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 8px 0 0;
  }

  .products-grid,
  .category-grid,
  .footer-links,
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    gap: 35px;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    flex-direction: column;
    gap: 10px;
  }

  .section-heading {
    flex-direction: column;
    text-align: center;
  }

  .products-grid,
  .category-grid,
  .footer-links,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .product-card img,
  .category-card img {
    height: auto;
  }

  .section-heading h2 {
    font-size: 26px;
  }
}

.product-page {
            padding: 60px 0;
        }

        .product-layout {
            display: grid;
            grid-template-columns: 1.1fr 1fr;
            gap: 40px;
            align-items: start;
        }

        .product-gallery-wrap {
            width: 100%;
        }

        .product-main-image {
            width: 100%;
            border: 1px solid #eee;
            background: #fff;
            margin-bottom: 15px;
        }

        .product-main-image img {
            width: 100%;
            display: block;
            height: auto;
            object-fit: cover;
        }

        .product-thumbs {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 12px;
        }

        .product-thumb {
            border: 1px solid #eee;
            cursor: pointer;
            background: #fff;
            padding: 4px;
        }

        .product-thumb img {
            width: 100%;
            display: block;
            height: 90px;
            object-fit: cover;
        }

        .product-title {
            font-size: 34px;
            line-height: 1.25;
            margin-bottom: 15px;
        }

        .single-price {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .size-guide-link {
            display: inline-block;
            margin-bottom: 20px;
            font-weight: 600;
            text-decoration: none;
            color: #000;
        }

        .product-form-box {
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
            padding: 25px 0;
            margin-bottom: 25px;
        }

        .field-group {
            margin-bottom: 18px;
        }

        .field-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .field-group select,
        .field-group input[type="number"] {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid #ddd;
            background: #fff;
            font-size: 15px;
        }

        .action-row {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .btn-dark,
        .btn-outline {
            display: inline-block;
            padding: 14px 26px;
            text-decoration: none;
            border: none;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
        }

        .btn-dark {
            background: #111;
            color: #fff;
        }

        .btn-outline {
            background: #fff;
            color: #111;
            border: 1px solid #111;
        }

        .product-description-box {
            margin-top: 20px;
        }

        .product-description-box h3 {
            margin-bottom: 14px;
            font-size: 22px;
        }

        .product-description-box .rte {
            line-height: 1.7;
        }

        .related-section {
            padding: 60px 0;
            border-top: 1px solid #eee;
            margin-top: 50px;
        }

        .related-heading {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            gap: 20px;
        }

        .related-heading h2 {
            font-size: 28px;
        }

        @media (max-width: 900px) {
            .product-layout {
                grid-template-columns: 1fr;
            }

            .product-thumbs {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        @media (max-width: 600px) {
            .product-title {
                font-size: 28px;
            }

            .single-price {
                font-size: 24px;
            }

            .product-thumbs {
                grid-template-columns: repeat(3, 1fr);
            }
        }