/* DesignWithWoods Consolidated WordPress Theme Styling */

/* Header & Navigation */
.dww-site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e7e5e4;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
}

.dww-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dww-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #1c1917;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dww-brand-logo img {
  height: 40px;
  width: auto;
}

.dww-main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dww-main-nav a {
  text-decoration: none;
  color: #292524;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.dww-main-nav a:hover {
  color: #78350f;
}

.dww-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dww-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #1c1917;
  padding: 0.5rem;
  border-radius: 9999px;
  position: relative;
  transition: background 0.2s;
}

.dww-icon-btn:hover {
  background-color: #f5f5f4;
}

.dww-badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #d97706;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product Cards Grid */
.dww-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dww-product-card {
  background-color: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.dww-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
}

.dww-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #e7e5e4;
  overflow: hidden;
}

.dww-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.dww-product-card:hover .dww-card-media img {
  transform: scale(1.05);
}

.dww-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(28, 25, 23, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.dww-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dww-wood-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #78350f;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dww-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.dww-card-title a {
  text-decoration: none;
  color: #1c1917;
}

.dww-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #e7e5e4;
}

.dww-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1c1917;
}

.dww-btn-sm {
  background-color: #1c1917;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}

.dww-btn-sm:hover {
  background-color: #78350f;
}

/* Material Swatches Grid */
.dww-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.dww-swatch-item {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dww-swatch-item:hover, .dww-swatch-item.active {
  border-color: #d97706;
  box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.15);
}

.dww-swatch-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 0.75rem auto;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.dww-swatch-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Single Product Detail Page */
.dww-single-product-container {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 992px) {
  .dww-single-product-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .dww-main-nav {
    display: none;
  }
}

.dww-gallery-thumbs {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.dww-thumb-btn {
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.dww-thumb-btn.active {
  border-color: #1c1917;
}

.dww-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom Quote Estimator Box */
.dww-quote-box {
  background-color: #f5f5f4;
  border: 1px solid #e7e5e4;
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin: 3rem 0;
}

.dww-form-group {
  margin-bottom: 1.5rem;
}

.dww-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.dww-form-group input, .dww-form-group select, .dww-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #d6d3d1;
  font-family: inherit;
  font-size: 1rem;
  background-color: #ffffff;
}

/* Footer Section */
.dww-footer {
  background-color: #1c1917;
  color: #a8a29e;
  padding: 4rem 1.5rem 2rem 1.5rem;
  margin-top: 5rem;
}

.dww-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .dww-footer-inner {
    grid-template-columns: 1fr;
  }
}

.dww-footer h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.dww-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dww-footer li {
  margin-bottom: 0.75rem;
}

.dww-footer a {
  color: #d6d3d1;
  text-decoration: none;
  transition: color 0.2s;
}

.dww-footer a:hover {
  color: #d97706;
}

.dww-footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #292524;
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
