/*
Theme Name: SimoDecor
Theme URI: https://simodecor.com
Author: SimoDecor
Author URI: https://simodecor.com
Description: A modern home-decor affiliate storefront theme for WordPress, built for showcasing curated Amazon Associates products with category browsing, search & filtering, and editable content via the Customizer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simodecor
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #c8a96e;
  --gold-dark:   #a8894e;
  --dark:        #1c2333;
  --dark-2:      #232d3f;
  --cream:       #faf8f4;
  --beige:       #f0ebe3;
  --muted:       #8a8070;
  --text:        #2a2118;
  --border:      #e8e1d8;
  --white:       #ffffff;
  --radius:      2px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #d6cfc6; color: var(--text); line-height: 1.6; }
.site-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 0 40px rgba(0,0,0,.15);
  overflow: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar {
  background: var(--beige);
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.announcement-bar .inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.announcement-bar .item { display: flex; align-items: center; gap: 6px; }
.announcement-bar .gold { color: var(--gold); font-weight: 600; cursor: pointer; }
.announcement-bar .gold:hover { text-decoration: underline; }
@media(max-width:768px){ .announcement-bar .hide-sm { display: none; } }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-main {
  max-width: 1280px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo — centered */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-box {
  width: 38px; height: 38px; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.logo-box svg { color: var(--gold); }
.logo-name { font-weight: 700; font-size: 17px; line-height: 1.2; color: var(--text); }
.logo-tagline { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Side panels */
.header-side {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
}
.header-left { justify-content: flex-start; }
.header-right { justify-content: flex-end; }

.header-tagline-text {
  font-size: 11px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.header-divider { color: var(--border); font-size: 13px; }

.header-amazon-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFD814; color: #111;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 8px 16px;
  transition: background .2s;
  white-space: nowrap;
}
.header-amazon-cta:hover { background: #F7CA00; }
.header-amazon-cta svg { flex-shrink: 0; }

.header-prime-badge {
  font-size: 10px; color: var(--muted); letter-spacing: .04em;
  white-space: nowrap;
}


/* Search */
.search-bar { flex: 1; display: flex; }
.search-bar select {
  border: 1px solid var(--border); border-right: none;
  background: #f9f7f4; color: var(--muted);
  padding: 0 12px; font-size: 13px; font-family: inherit;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8070' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  padding-right: 28px; cursor: pointer;
}
.search-bar input {
  flex: 1; border: 1px solid var(--border); border-right: none;
  padding: 10px 16px; font-size: 13px; font-family: inherit;
  color: var(--text); outline: none;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar input:focus { border-color: var(--gold); }
.search-btn {
  background: var(--dark); color: var(--white);
  padding: 10px 16px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.search-btn:hover { background: var(--dark-2); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-action {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted); font-size: 11px; transition: color .2s; position: relative;
}
.header-action:hover { color: var(--gold); }
.header-action svg { width: 22px; height: 22px; stroke-width: 1.5; }
.badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--gold); color: var(--white);
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
@media(max-width:768px){
  .header-main { padding: 12px 16px; justify-content: center; }
  .header-side { display: none; }
}

/* ── NAVIGATION ── */
.site-nav { border-top: 1px solid var(--border); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center;
}
.nav-inner a {
  padding: 12px 14px; font-size: 13px; font-weight: 500;
  color: var(--text); white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-inner a:hover, .nav-inner a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-inner a svg { width: 12px; height: 12px; }
.hamburger { display: none; padding: 12px 16px; color: var(--muted); }
.mobile-menu { display: none; flex-direction: column; }
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 20px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border);
}
@media(max-width:768px){
  .nav-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hamburger { display: block; }
  .desktop-nav { display: none; }
  .mobile-menu.open { display: flex; }
}

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 6;
  min-height: 420px;
  max-height: 620px;
  display: flex; align-items: center; justify-content: flex-start;
  background: #e8e0d4;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg') center center / cover no-repeat;
  width: 100%; height: 100%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,.92) 0%, rgba(255,255,255,.72) 40%, rgba(255,255,255,.2) 65%, transparent 100%);
}
.hero-content {
  position: relative; max-width: 1280px; margin: 0 auto; padding: 0 60px;
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
}
.hero-badge {
  display: inline-block;
  background: var(--gold); color: var(--white);
  font-size: 12px; font-weight: 600;
  padding: 6px 18px; border-radius: 50px; margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 700; line-height: 1.2;
  color: var(--text); margin-bottom: 16px; max-width: 480px;
}
.hero p {
  color: var(--muted); font-size: 15px; line-height: 1.7;
  max-width: 380px; margin-bottom: 32px;
}
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ccc; cursor: pointer; transition: background .2s;
}
.hero-dots span.active { background: var(--gold); }
@media(max-width: 768px) {
  .hero { aspect-ratio: 4 / 3; max-height: 480px; }
  .hero-content { padding: 0 24px; }
  .hero-overlay { background: linear-gradient(to bottom, rgba(255,255,255,.95) 0%, rgba(255,255,255,.8) 60%, transparent 100%); }
}

/* ── BUTTONS ── */
.btn-dark {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--dark); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  padding: 14px 32px; transition: background .2s;
}
.btn-dark:hover { background: var(--dark-2); }
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  padding: 12px 28px; transition: background .2s;
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--text); color: var(--text);
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  padding: 8px 20px; transition: all .2s;
}
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ── SECTION UTILITIES ── */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: 16px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text);
}
.view-all {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text);
  transition: color .2s;
}
.view-all:hover { color: var(--gold); }
.view-all svg { width: 16px; height: 16px; }

/* ── CATEGORY CIRCLES ── */
.categories-section { background: var(--white); padding: 56px 0; }
.category-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
}
@media(max-width:900px){ .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:500px){ .category-grid { grid-template-columns: repeat(2, 1fr); } }
.category-item { display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; }
.circle-img {
  width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
  border: 2px solid transparent; transition: border-color .3s;
}
.category-item:hover .circle-img { border-color: var(--gold); }
.circle-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.category-item:hover .circle-img img { transform: scale(1.1); }
.category-label { text-align: center; }
.category-label strong { display: block; font-size: 13px; color: var(--text); transition: color .2s; }
.category-label span { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; justify-content: center; }
.category-item:hover .category-label strong,
.category-item:hover .category-label span { color: var(--gold); }

/* ── FEATURES BAR ── */
.features-bar {
  border: 1px solid var(--border); background: var(--white);
  margin: 0 20px 48px;
  max-width: 1240px; margin-left: auto; margin-right: auto; margin-bottom: 0;
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media(max-width:768px){ .features-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-item:nth-child(2) { border-right: 3px solid var(--gold); }
@media(max-width:768px){ .feature-item { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); } }
.feature-item svg { width: 36px; height: 36px; stroke-width: 1.3; color: var(--muted); flex-shrink: 0; }
.feature-title { font-size: 13px; font-weight: 600; color: var(--text); }
.feature-sub { font-size: 11px; color: var(--muted); }

/* ── PRODUCT CARDS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media(max-width:1100px){ .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media(max-width:768px){ .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:400px){ .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.product-card {
  background: var(--white);
  transition: box-shadow .25s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.product-img {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  flex-shrink: 0;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-img img { transform: scale(1.06); }
.discount-badge {
  position: absolute; top: 8px; left: 8px;
  background: #e63946; color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 8px;
}
.product-img-link { display: block; }
.product-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-title {
  font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.45em * 2);
}
.product-title:hover { color: var(--gold); }
.stars { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.stars svg { width: 12px; height: 12px; }
.stars .filled { fill: #f59e0b; color: #f59e0b; }
.stars .empty { fill: #e5e7eb; color: #e5e7eb; }
.review-count { font-size: 10px; color: var(--muted); margin-left: 4px; }
.product-price-row { display: flex; align-items: center; margin-bottom: 10px; }
.product-price { font-size: 13px; font-weight: 700; color: var(--text); }
.product-price-old { font-size: 11px; color: var(--muted); text-decoration: line-through; margin-left: 5px; }
.amazon-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 8px 12px;
  background: #FFD814; color: #111;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  transition: background .2s;
  margin-top: auto;
}
.amazon-btn:hover { background: #F7CA00; }

/* ── THREE COLUMN SECTION ── */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media(max-width:900px){ .three-col { grid-template-columns: 1fr; } }
.col-box { background: var(--white); padding: 20px; }
.col-box-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.col-box-title h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* New Arrivals large image */
.new-arrival-img { position: relative; }
.new-arrival-img img { width: 100%; height: 220px; object-fit: cover; display: block; }
.new-arrival-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.new-arrival-info { color: var(--white); }
.new-arrival-info strong { display: block; font-size: 14px; margin-bottom: 2px; }
.new-arrival-info span { font-size: 12px; opacity: .85; }

/* Best Sellers list */
.bestseller-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bestseller-item:last-child { border-bottom: none; }
.bestseller-img { width: 60px; height: 60px; object-fit: cover; flex-shrink: 0; }
.bestseller-info { flex: 1; min-width: 0; }
.bestseller-info p { font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bestseller-price { font-size: 13px; font-weight: 700; color: var(--text); flex-shrink: 0; }

/* Room Inspiration */
.room-insp { position: relative; }
.room-insp img { width: 100%; height: 220px; object-fit: cover; display: block; }
.room-insp-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
.room-insp-overlay h4 { color: var(--white); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.room-insp-overlay p { color: rgba(255,255,255,.85); font-size: 12px; margin-bottom: 16px; }

/* ── NEWSLETTER ── */
.newsletter { background: var(--dark); padding: 56px 0; }
.newsletter-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  flex-wrap: wrap;
}
.newsletter-left { display: flex; align-items: center; gap: 20px; }
.newsletter-icon {
  width: 52px; height: 52px; border: 2px solid var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.newsletter-icon svg { color: var(--gold); }
.newsletter-title { font-size: 18px; font-weight: 700; color: var(--white); }
.newsletter-sub { font-size: 13px; color: rgba(255,255,255,.55); }
.newsletter-form { display: flex; flex: 1; min-width: 280px; max-width: 520px; }
.newsletter-form input {
  flex: 1; padding: 14px 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: var(--white); font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button {
  background: var(--gold); color: var(--white); padding: 14px 28px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  cursor: pointer; transition: background .2s; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--gold-dark); }

/* ── FOOTER ── */
.site-footer { background: var(--dark-2); color: rgba(255,255,255,.6); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
@media(max-width:1024px){ .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:640px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.45); margin: 16px 0 24px; max-width: 220px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 34px; height: 34px; background: rgba(255,255,255,.08);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--white); font-weight: 700; transition: background .2s;
}
.social-btn:hover { background: var(--gold); }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--white); margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 12px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.contact-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; }
.contact-row svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.payment-icons { display: flex; gap: 8px; margin-top: 20px; }
.pay-badge {
  background: rgba(255,255,255,.1); color: var(--white);
  font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0; text-align: center;
  font-size: 12px; color: rgba(255,255,255,.3);
}


/* ── MISC ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.logo-footer { display: flex; align-items: center; gap: 10px; }

/* ── WORDPRESS-SPECIFIC HELPERS ── */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Product cards render as plain <a> or <div> from PHP - keep card content non-underlined */
.product-card a { text-decoration: none; }

/* Hide filtered-out product cards (used by script.js live filter) */
.product-card.is-hidden { display: none !important; }

/* Remove bullet points from WordPress nav menu <li> items
   (wp_nav_menu outputs <li> even without a <ul> wrapper) */
.nav-inner li,
.mobile-menu li,
.footer-col li {
  list-style: none;
}
.nav-inner li,
.mobile-menu li {
  display: inline-block;
}

/* Category circle as a real link */
.category-item { text-decoration: none; color: inherit; }

/* Pagination (blog / shop archives) */
.sd-pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0; }
.sd-pagination a, .sd-pagination span {
  padding: 8px 14px; border: 1px solid var(--border); font-size: 13px; color: var(--text);
}
.sd-pagination .current { background: var(--dark); color: var(--white); border-color: var(--dark); }
.sd-pagination a:hover { border-color: var(--gold); color: var(--gold); }

/* Simple content page wrapper (page.php / single.php) */
.sd-content { max-width: 860px; margin: 0 auto; padding: 56px 20px; }
.sd-content h1 { font-family: 'Playfair Display', serif; font-size: 32px; margin-bottom: 20px; color: var(--text); }
.sd-content p { margin-bottom: 16px; color: var(--text); }
.sd-content img { margin: 20px 0; }
