.market-page,.product-page { max-width:1180px; margin:0 auto; padding-bottom:70px; color:#21180b; }
.market-hero { min-height:300px; display:flex; align-items:center; margin:0 -1px; padding:42px 48px; border-radius:0 0 20px 20px; background:linear-gradient(90deg,rgba(255,249,238,.98) 0%,rgba(255,249,238,.86) 34%,rgba(255,249,238,.08) 66%),url('../img/market-hero.png?v=20260916-2') center/cover no-repeat; color:#271706; }
.market-hero>div { max-width:440px; }
.market-hero span { color:#e0ab27; font-size:11px; font-weight:800; letter-spacing:.14em; }
.market-hero h1 { margin:8px 0 0; color:#e6ae21; font-size:48px; }
.market-hero h2 { margin:5px 0 12px; font-size:28px; line-height:1.3; }
.market-hero p { margin:0; color:#684b24; line-height:1.7; }
.market-controls { padding:22px 28px 4px; }
.market-search { display:grid; grid-template-columns:1fr auto; gap:12px; }
.market-search input { min-width:0; padding:14px 18px; border:1px solid #decda9; border-radius:12px; background:#fff; font-size:14px; }
.market-search button { padding:0 28px; border:0; border-radius:12px; background:linear-gradient(135deg,#dfa91e,#a96f00); color:#fff; font-weight:800; cursor:pointer; }
.market-categories { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:11px; margin-top:18px; padding:3px; }
.market-categories a { position:relative; min-width:0; min-height:82px; padding:11px 6px 10px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; overflow:hidden; border:1px solid #e7d7b8; border-radius:15px; color:#4b391b; text-decoration:none; background:linear-gradient(155deg,#fff 0%,#fffdf8 58%,#faf3e5 100%); box-shadow:0 5px 15px rgba(78,49,6,.055),inset 0 1px 0 #fff; font-size:11px; font-weight:650; letter-spacing:.01em; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,color .2s ease; }
.market-categories a::after { content:""; position:absolute; left:18%; right:18%; bottom:0; height:2px; border-radius:3px 3px 0 0; background:linear-gradient(90deg,transparent,#d39a10,transparent); opacity:0; transform:scaleX(.45); transition:opacity .2s ease,transform .2s ease; }
.market-categories a b { width:32px; height:32px; display:grid; place-items:center; border:1px solid #ead9b6; border-radius:50%; color:#a96f00; background:linear-gradient(145deg,#fffdf7,#f5e7c9); box-shadow:inset 0 1px 0 #fff,0 3px 8px rgba(109,72,8,.08); font-size:15px; line-height:1; }
.market-categories a span { white-space:nowrap; line-height:1.2; }
.market-categories a:hover { transform:translateY(-3px); border-color:#d6ae59; color:#8e5d00; box-shadow:0 11px 24px rgba(91,58,5,.12),inset 0 1px 0 #fff; }
.market-categories a:hover::after { opacity:1; transform:scaleX(1); }
.market-categories a.active { border-color:#bd7e00; color:#fffaf0; background:linear-gradient(145deg,#e0a818 0%,#bd7e00 55%,#966000 100%); box-shadow:0 10px 22px rgba(153,98,0,.24),inset 0 1px 0 rgba(255,255,255,.45); transform:translateY(-2px); }
.market-categories a.active::before { content:""; position:absolute; width:70px; height:70px; top:-45px; right:-38px; border-radius:50%; background:rgba(255,255,255,.17); }
.market-categories a.active::after { opacity:1; transform:scaleX(1); background:linear-gradient(90deg,transparent,#fff2b8,transparent); }
.market-categories a.active b { border-color:rgba(255,255,255,.5); color:#925d00; background:linear-gradient(145deg,#fff8dc,#f0c762); box-shadow:0 4px 10px rgba(79,47,0,.2); }
.market-heading { display:flex; align-items:end; justify-content:space-between; padding:30px 28px 15px; }
.market-heading span { color:#a36f09; font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.market-heading h2 { margin:4px 0 0; font-size:27px; }
.market-heading>b { color:#8b7a5c; font-size:12px; }
.market-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:15px; padding:0 28px; }
.product-card { overflow:hidden; border:1px solid #e2d1ae; border-radius:14px; background:linear-gradient(180deg,#fff 0%,#fffdf9 100%); color:#21180b; text-decoration:none; box-shadow:0 6px 18px rgba(48,31,3,.07); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.product-card:hover { transform:translateY(-5px); border-color:#c99527; box-shadow:0 16px 32px rgba(67,42,3,.15); }
.product-photo,.product-main-photo { background:#30090c; overflow:hidden; }
.product-photo img,.product-main-photo img { display:block; width:100%; height:100%; object-fit:contain; }
.product-photo { position:relative; aspect-ratio:1/1; border-bottom:1px solid #eadfc9; }
.product-love { position:absolute; z-index:2; top:9px; right:9px; width:24px; height:24px; display:grid; place-items:center; padding:0; border:0; background:transparent; color:#fff; font:700 22px/1 Arial,sans-serif; cursor:pointer; text-shadow:0 1px 4px rgba(0,0,0,.85); transition:transform .18s,color .18s; }
.product-love:hover { transform:scale(1.12); color:#f4bf2a; }
.product-love.is-loved { color:#f4b400; }
.product-love span { display:block; }
.product-card-body { padding:12px 13px 13px; }
.product-card h3 { min-height:36px; margin:0; display:-webkit-box; overflow:hidden; font-size:14px; font-weight:750; line-height:1.3; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.product-card p { margin:6px 0 8px; color:#9a8868; font-size:10px; }
.product-card strong { display:block; color:#21180b; font-size:18px; line-height:1.2; letter-spacing:.01em; }
.product-card small { display:flex; align-items:center; gap:4px; margin-top:7px; color:#9a896c; font-size:10px; }
.product-card small span,.product-rating b,.reviews-summary span,.review-list b { color:#ed9d00; }
.market-empty { margin:20px 28px; padding:22px; border:1px dashed #d9c69e; border-radius:12px; color:#76694f; text-align:center; }
.product-breadcrumb { display:flex; gap:8px; padding:24px 28px 16px; color:#8a7858; font-size:12px; }
.product-breadcrumb a { color:#a36e05; text-decoration:none; }
.product-showcase { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr); gap:38px; padding:0 28px 36px; }
.product-main-photo { position:relative; aspect-ratio:1/1; border-radius:18px; box-shadow:0 14px 35px rgba(48,28,0,.15); }
.product-main-photo>b { position:absolute; top:18px; right:18px; padding:9px 12px; border-radius:10px; background:#d39a0b; color:#fff; }
.product-info { padding:18px 0; }
.product-title-row { display:flex; justify-content:space-between; align-items:start; gap:15px; }
.product-title-row h1 { margin:0; font-size:34px; line-height:1.2; }
.product-title-row>span { padding:7px 9px; border-radius:8px; background:#d39a0b; color:#fff; font-size:12px; font-weight:800; }
.product-rating { color:#74664d; }
.product-price { display:block; margin:25px 0; font-size:36px; }
.product-description { padding:16px; border-left:3px solid #d49a0b; border-radius:0 10px 10px 0; background:#fff7e6; }
.product-description h3,.product-description p { margin:0; }
.product-description p { margin-top:7px; color:#71634b; line-height:1.65; }
.product-specs { display:grid; gap:0; margin:18px 0; }
.product-specs>div { display:grid; grid-template-columns:120px 1fr; padding:10px 0; border-bottom:1px solid #eee4cf; }
.product-specs dt { color:#8c7c60; }
.product-specs dd { margin:0; font-weight:700; }
.product-contact-button { display:block; padding:14px; border-radius:11px; background:linear-gradient(135deg,#dfa91e,#aa7000); color:#fff; font-weight:800; text-align:center; text-decoration:none; }
.product-contact-button span { margin-right:5px; }
.product-quantity { display:flex; align-items:center; gap:14px; margin:18px 0 14px; }
.product-quantity>strong { font-size:14px; }
.quantity-stepper { display:grid; grid-template-columns:36px 46px 36px; overflow:hidden; border:1px solid #dfd0b2; border-radius:9px; background:#fff; }
.quantity-stepper button,.quantity-stepper output { height:36px; display:grid; place-items:center; border:0; background:#fff; color:#3b2a0d; font:700 15px/1 inherit; }
.quantity-stepper button { cursor:pointer; }
.quantity-stepper button:hover { background:#fff4d8; color:#a86c00; }
.quantity-stepper output { border-right:1px solid #eee2cc; border-left:1px solid #eee2cc; }
.product-secondary-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.product-secondary-actions button { min-height:43px; padding:9px 12px; border:1px solid #decda9; border-radius:10px; background:#fff; color:#59472b; font-weight:650; cursor:pointer; transition:border-color .18s,color .18s,background .18s; }
.product-secondary-actions button:hover { border-color:#c58a0a; color:#9b6500; background:#fffaf0; }
.product-detail-love.is-loved { color:#b97700; background:#fff6dd; }
.product-detail-love span,.product-secondary-actions [data-product-share] span { margin-right:5px; font-size:18px; font-style:normal; }
.product-detail-love em { font-style:normal; }
.reviews-panel { margin:0 28px; padding:28px; border:1px solid #e4d5b5; border-radius:18px; background:#fff; }
.reviews-tabs { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,1fr); margin:-28px -28px 0; border-bottom:1px solid #eadfc9; text-align:center; }
.reviews-tabs button { position:relative; padding:17px 8px; border:0; background:transparent; color:#21180b; font:750 14px/1.3 inherit; cursor:pointer; }
.reviews-tabs button:hover,.reviews-tabs button.active { color:#a66c00; background:#fffaf0; }
.reviews-tabs button.active::after { content:""; position:absolute; right:20%; bottom:-1px; left:20%; height:2px; background:#d09100; }
.product-tab-panel { margin-top:26px; }
.product-tab-panel[hidden] { display:none!important; }
.reviews-tab-layout { display:grid; grid-template-columns:220px 1fr; gap:28px; }
.product-description-panel { padding:8px 14px; }
.product-description-panel>p { max-width:820px; color:#655943; line-height:1.8; }
.reviews-summary { padding:15px; text-align:center; }
.reviews-summary strong { display:block; font-size:48px; }
.reviews-summary span { display:block; font-size:20px; letter-spacing:2px; }
.reviews-summary p { color:#89795d; font-size:12px; }
.rating-bars { display:grid; gap:7px; margin-top:18px; text-align:left; }
.rating-bars>div { display:grid; grid-template-columns:28px 1fr 32px; align-items:center; gap:7px; }
.rating-bars small { color:#7b6d56; font-size:9px; }
.rating-bars i { height:6px; overflow:hidden; border-radius:9px; background:#eee6d7; }
.rating-bars i b { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#d99d09,#f2bf35); }
.reviews-content h2 { margin:0 0 18px; }
.review-form { padding:16px; border:1px solid #ead9b8; border-radius:13px; background:#fffaf0; }
.review-form fieldset { display:flex; flex-direction:row-reverse; justify-content:flex-end; margin:0 0 10px; padding:0; border:0; }
.review-form legend { margin-bottom:7px; font-weight:700; }
.review-form input { position:absolute; opacity:0; }
.review-form label { padding:6px; color:#d9c9a7; font-size:30px; cursor:pointer; }
.review-form label:hover,.review-form label:hover~label,.review-form input:checked~label { color:#d79500; }
.review-form>div { display:grid; grid-template-columns:1fr auto; gap:9px; }
.review-form textarea { padding:11px; border:1px solid #dbc9a6; border-radius:9px; resize:vertical; }
.review-form button { padding:0 22px; border:0; border-radius:9px; background:#c88900; color:#fff; font-weight:800; }
.review-login a { display:block; padding:14px; border-radius:10px; background:#fff6df; color:#966601; text-align:center; }
.review-list article { display:grid; grid-template-columns:42px 1fr; gap:12px; padding:20px 0; border-bottom:1px solid #eee4cf; }
.review-avatar { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:#8c806a; color:#fff; }
.review-list h3 { margin:0; font-size:14px; }
.review-list b i { color:#e4d9c3; font-style:normal; }
.review-list p { margin:8px 0; color:#5f5648; line-height:1.6; }
.review-list time { color:#95886f; font-size:10px; }
.question-form { display:grid; grid-template-columns:1fr auto; gap:10px; padding:16px; border:1px solid #ead9b8; border-radius:13px; background:#fffaf0; }
.question-form textarea { padding:12px; border:1px solid #dbc9a6; border-radius:9px; resize:vertical; }
.question-form button { padding:0 22px; border:0; border-radius:9px; background:#c88900; color:#fff; font-weight:800; cursor:pointer; }
.question-list article { display:grid; grid-template-columns:42px 1fr; gap:12px; padding:18px 0; border-bottom:1px solid #eee4cf; }
.question-list h3,.question-list p { margin:0; }
.question-list p { margin-top:6px; color:#5f5648; line-height:1.6; }
.question-list time { color:#95886f; font-size:10px; }
.market-not-found { padding:100px 20px; text-align:center; }
@media(max-width:900px){.market-grid{grid-template-columns:repeat(3,1fr)}.market-categories{grid-template-columns:repeat(5,1fr)}.product-showcase{gap:22px}.reviews-tab-layout{grid-template-columns:1fr}.reviews-summary{text-align:left}.rating-bars{max-width:320px}}
@media(max-width:600px){
  .market-page,.product-page{padding-bottom:85px}.market-hero{min-height:230px;padding:28px 20px;border-radius:0}.market-hero>div{max-width:300px}.market-hero h1{font-size:34px}.market-hero h2{font-size:20px}.market-hero p{font-size:12px}.market-controls{padding:14px 10px 0}.market-search{grid-template-columns:1fr}.market-search button{padding:12px}.market-categories{display:flex;overflow-x:auto;gap:8px;padding-bottom:5px}.market-categories a{flex:0 0 82px}.market-heading{padding:22px 10px 12px}.market-heading h2{font-size:22px}.market-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 10px}.product-card h3{min-height:34px;font-size:12px}.product-card-body{padding:9px}.product-card strong{font-size:14px}.product-breadcrumb{padding:16px 12px 10px}.product-showcase{grid-template-columns:1fr;padding:0 12px 22px}.product-title-row h1{font-size:25px}.product-price{margin:16px 0;font-size:29px}.product-info{padding:0}.product-secondary-actions{grid-template-columns:1fr}.reviews-panel{margin:0 12px;padding:16px}.reviews-tabs{margin:-16px -16px 0}.reviews-tabs button{padding:13px 4px;font-size:11px}.reviews-summary strong{font-size:36px}.review-form>div,.question-form{grid-template-columns:1fr}.review-form button,.question-form button{padding:12px}.review-form label{font-size:27px}}
