/*
Theme Name: Loom Legend
Theme URI: https://loomnlegend.com
Author: Loom & Legend
Description: Custom theme for Loom & Legend store
Version: 1.0
*/

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

body {
  font-family: "Segoe UI", sans-serif;
  color: #333;
  background: #fff;
}

/* HEADER */
.site-header {
  background: #1a1a1a;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 2px;
}

.site-logo span { color: #c9a84c; }

.main-nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 30px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.main-nav a:hover { color: #c9a84c; }

.header-cart {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  text-align: center;
  padding: 100px 40px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.hero h1 span { color: #c9a84c; }

.hero p {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.btn-primary {
  background: #c9a84c;
  color: #1a1a1a;
  padding: 15px 40px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background: #fff;
  color: #1a1a1a;
}

/* TRUST BADGES */
.trust-badges {
  background: #f8f8f8;
  padding: 30px 40px;
  display: flex;
  justify-content: center;
  gap: 60px;
  text-align: center;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.badge-icon { font-size: 28px; }

.badge-text {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* PRODUCTS GRID */
.section-title {
  text-align: center;
  padding: 60px 40px 30px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #c9a84c;
  margin-bottom: 15px;
}

.btn-cart {
  width: 100%;
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.3s;
  text-decoration: none;
  display: block;
  text-align: center;
}

.btn-cart:hover { background: #c9a84c; color: #1a1a1a; }

/* FOOTER */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 60px 40px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-brand .brand-name {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.footer-brand .brand-name span { color: #c9a84c; }

.footer-brand p {
  color: #999;
  line-height: 1.8;
  font-size: 14px;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: #999;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover { color: #c9a84c; }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  text-align: center;
  color: #666;
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
}

/* MOBILE */
@media (max-width: 768px) {
  .site-header { padding: 15px 20px; }
  .main-nav { display: none; }
  .hero h1 { font-size: 28px; }
  .trust-badges { gap: 20px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 20px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* MAGAZINE REDESIGN */
.hero-banner { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; background: #0d0d0d; overflow: hidden; }
.hero-content { padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.hero-tag { background: #c9a84c; color: #000; padding: 6px 16px; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; display: inline-block; margin-bottom: 25px; width: fit-content; }
.hero-content h1 { font-size: 64px; font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content h1 span { color: #c9a84c; }
.hero-content p { font-size: 16px; color: #aaa; margin-bottom: 40px; max-width: 380px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 15px; }
.btn-secondary { background: transparent; color: #fff; padding: 15px 35px; border: 1px solid #fff; text-decoration: none; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; transition: all 0.3s; }
.btn-secondary:hover { background: #fff; color: #000; }
.hero-image { position: relative; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); }

.trust-strip { background: #c9a84c; display: flex; justify-content: center; gap: 60px; padding: 15px 40px; flex-wrap: wrap; }
.trust-item { color: #000; font-size: 13px; font-weight: 600; letter-spacing: 1px; }

.categories-section, .products-section, .why-us { padding: 70px 40px; max-width: 1400px; margin: 0 auto; }
.section-heading { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 40px; letter-spacing: 2px; text-transform: uppercase; position: relative; }
.section-heading::after { content: \"\"; display: block; width: 60px; height: 3px; background: #c9a84c; margin: 15px auto 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.section-header .section-heading { margin-bottom: 0; }
.view-all { color: #c9a84c; text-decoration: none; font-weight: 600; font-size: 14px; }

.categories-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 400px; gap: 15px; }
.cat-card { position: relative; overflow: hidden; border-radius: 8px; display: block; text-decoration: none; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 25px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; }
.cat-overlay span { display: block; font-size: 22px; font-weight: 700; margin-bottom: 5px; }
.cat-overlay small { font-size: 13px; color: #c9a84c; font-weight: 600; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.product-card { position: relative; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.sale-badge, .new-badge { position: absolute; top: 15px; left: 15px; padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: 1px; z-index: 2; border-radius: 3px; }
.sale-badge { background: #e74c3c; color: #fff; }
.new-badge { background: #c9a84c; color: #000; }
.product-img-wrap { display: block; position: relative; overflow: hidden; height: 300px; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; color: #fff; font-weight: 600; font-size: 14px; }
.product-card:hover .product-overlay { opacity: 1; }
.product-info { padding: 20px; }
.product-name { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.product-price { margin-bottom: 15px; }
.new-price { font-size: 18px; font-weight: 700; color: #c9a84c; }
.btn-cart { display: block; width: 100%; background: #1a1a1a; color: #fff; border: none; padding: 12px; text-align: center; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border-radius: 3px; transition: background 0.3s; cursor: pointer; }
.btn-cart:hover { background: #c9a84c; color: #1a1a1a; }

.deals-banner { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; background: #1a1a1a; }
.deals-content { padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.deals-tag { background: #e74c3c; color: #fff; padding: 6px 16px; font-size: 11px; font-weight: 700; letter-spacing: 3px; display: inline-block; margin-bottom: 20px; width: fit-content; }
.deals-content h2 { font-size: 56px; font-weight: 900; color: #c9a84c; margin-bottom: 15px; }
.deals-content p { color: #aaa; font-size: 16px; margin-bottom: 35px; }
.deals-image img { width: 100%; height: 100%; object-fit: cover; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.why-card { text-align: center; padding: 40px 25px; border: 1px solid #eee; border-radius: 8px; transition: border-color 0.3s, transform 0.3s; }
.why-card:hover { border-color: #c9a84c; transform: translateY(-5px); }
.why-icon { font-size: 40px; display: block; margin-bottom: 15px; }
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.why-card p { color: #666; font-size: 14px; line-height: 1.7; }

.newsletter { background: linear-gradient(135deg, #1a1a1a, #2d2d2d); color: #fff; text-align: center; padding: 80px 40px; }
.newsletter h2 { font-size: 36px; font-weight: 800; margin-bottom: 15px; letter-spacing: 2px; }
.newsletter p { color: #aaa; font-size: 16px; margin-bottom: 35px; }
.newsletter-form { display: flex; max-width: 500px; margin: 0 auto; gap: 0; }
.newsletter-form input { flex: 1; padding: 15px 20px; border: none; font-size: 14px; outline: none; }
.newsletter-form button { background: #c9a84c; color: #000; border: none; padding: 15px 30px; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; }
.newsletter-form button:hover { background: #fff; }

@media(max-width: 768px) {
  .hero-banner { grid-template-columns: 1fr; }
  .hero-image { height: 300px; }
  .hero-content { padding: 50px 25px; }
  .hero-content h1 { font-size: 36px; }
  .categories-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .deals-banner { grid-template-columns: 1fr; }
  .deals-image { height: 250px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { gap: 20px; }
}
@media(max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
}

/* PAGE TEMPLATE */
.page-hero { background: linear-gradient(135deg, #1a1a1a, #2d2d2d); color: #fff; text-align: center; padding: 80px 40px; }
.page-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.page-hero h1::after { content: \"\"; display: block; width: 60px; height: 3px; background: #c9a84c; margin: 20px auto 0; }
.page-content { max-width: 900px; margin: 60px auto; padding: 0 40px; line-height: 1.9; font-size: 16px; color: #444; }
.page-content h1 { display: none; }
.page-content h2 { font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 35px 0 15px; padding-bottom: 10px; border-bottom: 2px solid #c9a84c; }
.page-content p { margin-bottom: 15px; }
