:root {
  --primary-color: #5c2c12; 
  --secondary-color: #d35400; 
  --bg-light: #fff8ef;
  --text-dark: #2b2b2b;
  --border-color: #f0d9bd;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

.container { width: min(100% - 24px, 1180px); margin-inline: auto; }

/* Header */
.header { background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); position: sticky; top: 0; z-index: 100; }
.header__top { background: var(--primary-color); color: #fff; padding: 8px 0; font-size: 13px; text-align: center; }
.header__content { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ps-logo { font-size: 24px; font-weight: 900; color: var(--secondary-color); }
.form-search { flex: 1; display: flex; }
.form-search input { width: 100%; padding: 10px 15px; border: 1px solid var(--border-color); border-radius: 8px 0 0 8px; outline: none; }
.form-search button { padding: 10px 20px; background: var(--secondary-color); border: none; color: #fff; border-radius: 0 8px 8px 0; cursor: pointer; font-weight: bold; }
.header__actions a { margin-left: 15px; font-weight: bold; color: var(--primary-color); }

/* Breadcrumb */
.ps-breadcrumb { padding: 15px 0; font-size: 14px; color: #666; }
.ps-breadcrumb span { color: var(--secondary-color); font-weight: bold; }

/* Product Detail Box */
.ps-product-box { background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 25px; margin-bottom: 30px; box-shadow: 0 8px 20px rgba(120, 70, 30, 0.08); display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.product-gallery img { width: 100%; border-radius: 12px; object-fit: cover; aspect-ratio: 1/1; background: #f8f8f8; }

.product-info h1 { font-size: 32px; color: var(--primary-color); line-height: 1.2; margin-bottom: 10px; }
.product-price { margin: 15px 0; }
.price-old { text-decoration: line-through; color: #777; font-size: 16px; display: block; }
.price-current { font-size: 36px; font-weight: 900; color: var(--secondary-color); }
.badge-ready { background: #27ae60; color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; }

.product-desc { margin-bottom: 20px; color: #555; }

/* Action Buttons */
.action-group { display: flex; gap: 10px; margin-top: 20px; }
.btn { flex: 1; text-align: center; padding: 14px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-buy { background: var(--secondary-color); color: #fff; border: none; }
.btn-buy:hover { background: #b84700; }
.btn-cart { background: #fff; border: 2px solid var(--secondary-color); color: var(--secondary-color); }

/* Tabs / Review Section */
.ps-tab-root { background: #fff; border-radius: 14px; box-shadow: 0 8px 20px rgba(120, 70, 30, 0.08); overflow: hidden; margin-bottom: 30px; border: 1px solid var(--border-color); }
.tab-list { display: flex; border-bottom: 1px solid var(--border-color); background: #fafafa; }
.tab-list div { padding: 15px 25px; font-weight: bold; color: var(--primary-color); cursor: pointer; border-bottom: 3px solid var(--secondary-color); }
.tab-content { padding: 25px; }
.review-card { padding: 15px; border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 15px; background: #fff8ef; }
.review-card .stars { color: #f39c12; margin-bottom: 5px; }

/* FAQ Section */
.faq-wrap { background: var(--primary-color); border-radius: 14px; padding: 30px; margin-bottom: 30px; color: #fff; }
.faq-wrap h2 { text-align: center; margin-bottom: 20px; }
.faq-item { background: #fff; color: var(--text-dark); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.faq-q { padding: 15px; font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; background: #fff; }
.faq-a { padding: 0 15px 15px 15px; font-size: 14px; color: #666; display: block; }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--border-color); padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.footer-col h4 { color: var(--primary-color); margin-bottom: 15px; font-size: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 14px; color: #555; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #eee; font-size: 14px; color: #777; }

@media(max-width: 768px) {
  .ps-product-box { grid-template-columns: 1fr; }
  .header__content { flex-wrap: wrap; }
  .form-search { order: 3; flex-basis: 100%; margin-top: 10px; }
}