/* ==========================================================================
   GG2 storefront — pages.css
   Static pages: about (關於我們) + contact (聯絡我們) + news/blog (最新消息).
   NOTE: keep all @media blocks at the END of this file — the cascade is
   source-ordered, so desktop rules placed after a media query override it.
   ========================================================================== */

/* Page hero band */
.page-hero{background:linear-gradient(135deg,var(--wine-dark) 0%,var(--wine) 78%);color:#fff;text-align:center;padding:60px 5% 52px}
.page-hero .ph-eyebrow{color:#e9c879;text-transform:uppercase;letter-spacing:4px;font-size:13px;font-weight:700}
.page-hero h1{font-family:'Playfair Display','Noto Serif TC',serif;font-size:42px;line-height:1.2;margin:12px 0 14px}
.page-hero p{color:#f1ddc3;max-width:620px;margin:0 auto;font-size:16px;line-height:1.8}

/* Value cards (about / contact services) */
.value-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.value-card{background:#fff;border:1px solid #f0e6d8;border-radius:var(--radius);padding:30px 24px;box-shadow:var(--shadow);text-align:center}
.value-card .icon{width:64px;height:64px;border-radius:50%;background:#faf3ea;display:flex;align-items:center;justify-content:center;font-size:28px;margin:0 auto 18px}
.value-card h3{font-family:'Noto Serif TC',serif;font-size:19px;margin:0 0 10px;color:#281010}
.value-card p{color:var(--muted);font-size:14px;line-height:1.7;margin:0}

/* Contact layout */
.contact-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:36px;align-items:start}
.channel{display:flex;gap:16px;background:#fff;border:1px solid #f0e6d8;border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow)}
.channel + .channel{margin-top:16px}
.channel .icon{flex-shrink:0;width:46px;height:46px;border-radius:50%;background:#faf3ea;display:flex;align-items:center;justify-content:center;font-size:20px}
.channel .k{font-size:12px;color:var(--muted);letter-spacing:1px;text-transform:uppercase}
.channel .v{font-size:16px;font-weight:500;color:#281010;margin-top:2px}
.channel a.v{color:var(--wine);transition:.2s}
.channel a.v:hover{color:var(--gold)}

/* Contact form */
.contact-form{background:#fff;border:1px solid #f0e6d8;border-radius:var(--radius);padding:32px;box-shadow:var(--shadow)}
.contact-form h3{font-family:'Noto Serif TC',serif;font-size:22px;margin:0 0 6px;color:#281010}
.contact-form .form-sub{color:var(--muted);font-size:14px;margin:0 0 22px}
.field{margin-bottom:16px}
.field label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
.field input,.field select,.field textarea{width:100%;box-sizing:border-box;border:1px solid #e8ddd0;border-radius:var(--radius-sm);padding:11px 14px;font:inherit;font-size:15px;background:#fffdf9;color:#281010}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--gold)}
.field textarea{min-height:120px;resize:vertical}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-note{font-size:12px;color:var(--muted);margin:14px 0 0}

/* ── Feedback band (About page) ─────────────────────────── */
.feedback{text-align:center;max-width:680px;margin:0 auto}
.feedback h2{font-size:32px;margin-bottom:14px}
.feedback p{color:var(--muted);font-size:16px;line-height:1.8;margin-bottom:24px}
.feedback .btn{display:inline-flex}

/* ── News listing ───────────────────────────────────────── */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.news-card{background:#fff;border:1px solid #eee3d2;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;transition:.25s}
.news-card:hover{transform:translateY(-4px)}
.news-card .thumb{display:block;aspect-ratio:16/10;overflow:hidden;flex-shrink:0}
.news-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .45s}
.news-card:hover .thumb img{transform:scale(1.06)}
.news-card .body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.news-card .date{font-size:12px;color:var(--gold);letter-spacing:1.5px;font-weight:700}
.news-card h3{font-size:18px;line-height:1.45;margin:0}
.news-card h3 a{color:#281010;transition:.2s}
.news-card h3 a:hover{color:var(--wine)}
.news-card p{font-size:14px;color:var(--muted);line-height:1.7;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:1}
.news-card .more{font-size:13px;font-weight:700;color:var(--wine)}
.news-card .more:hover{color:var(--gold)}

/* ── Blog detail ────────────────────────────────────────── */
.blog-wrap{max-width:840px;margin:0 auto}
.blog-hero-img{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.blog-hero-img img{width:100%;display:block}
.blog-meta{margin:26px 0 10px}
.blog-meta .date{font-size:13px;color:var(--gold);letter-spacing:1.5px;font-weight:700}
.blog-wrap h1{font-size:34px;line-height:1.3;margin:0 0 22px}
.blog-body p{font-size:16px;line-height:1.9;color:#43302a;margin:0 0 18px}
.blog-gallery{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:26px 0 0}
.blog-gallery img{width:100%;border-radius:12px;display:block;cursor:zoom-in;transition:opacity .2s}
.blog-gallery img:hover{opacity:.85}
.blog-back{margin:36px 0 0}
.section-link{font-size:14px;font-weight:600;color:var(--wine);white-space:nowrap}
.section-link:hover{color:var(--gold)}

/* ── Related news list ──────────────────────────────────── */
.related-list{display:flex;flex-direction:column;border-top:1px solid #eee3d2}
.related-item{display:flex;align-items:center;gap:16px;padding:16px 6px;border-bottom:1px solid #eee3d2;transition:.2s}
.related-item:hover{background:#fffaf2}
.related-item .date{font-size:12px;color:var(--gold);font-weight:700;letter-spacing:1px;flex-shrink:0}
.related-item .t{flex:1;font-size:16px;font-weight:500;color:#281010}
.related-item .arrow{color:var(--wine);font-weight:700}
.related-item:hover .t{color:var(--wine)}

/* ── Pagination (news listing) ──────────────────────────── */
.pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin:38px 0 0}
.page-btn,.page-num{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 14px;border-radius:999px;border:1px solid #e8ddd0;background:#fff;font-size:14px;font-weight:600;color:var(--wine);transition:.2s}
.page-num{padding:0;min-width:40px}
.page-btn:hover,.page-num:hover{border-color:var(--gold);color:var(--gold)}
.page-num.current{background:var(--wine);border-color:var(--wine);color:#f6e6c6;cursor:default}
.page-btn.disabled{color:var(--muted);background:#faf6ef;cursor:default}

/* ── Blog gallery lightbox ──────────────────────────────── */
.lightbox{position:fixed;inset:0;z-index:300;background:rgba(24,9,9,.93);display:flex;align-items:center;justify-content:center}
.lightbox[hidden]{display:none}
.lb-img{max-width:92vw;max-height:84vh;object-fit:contain;border-radius:8px;box-shadow:0 24px 60px rgba(0,0,0,.5)}
.lb-btn{position:absolute;border:none;cursor:pointer;color:#f6e6c6;background:rgba(255,255,255,.08);border-radius:50%;display:flex;align-items:center;justify-content:center;transition:.2s}
.lb-btn:hover{background:rgba(201,164,92,.35);color:#fff}
.lb-btn:disabled{opacity:.3;cursor:default}
.lb-close{top:18px;right:18px;width:44px;height:44px;font-size:18px}
.lb-prev{left:14px;top:50%;transform:translateY(-50%);width:52px;height:52px;font-size:34px;line-height:1}
.lb-next{right:14px;top:50%;transform:translateY(-50%);width:52px;height:52px;font-size:34px;line-height:1}
.lb-count{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);color:#e9c879;font-size:14px;letter-spacing:3px;font-weight:600}

/* ── Auth: login / register (會員登入/註冊) ───────────────── */
.auth-section{padding-top:48px}
.auth-wrap{max-width:520px;margin:0 auto}
.auth-wrap .contact-form{display:grid;gap:16px;margin:0}
.auth-submit{width:100%;margin-top:8px}
.auth-switch{margin-top:18px;text-align:center;font-size:14px;color:#6d6d6d}
.auth-switch a{color:var(--accent,#a4843c);font-weight:600;text-decoration:underline}
.form-alert{background:#fdeeee;border:1px solid #efc9c9;color:#8a1f1f;border-radius:12px;padding:12px 16px;font-size:14px;margin-bottom:18px}
.form-alert.ok{background:#eef7ee;border-color:#c4e2c4;color:#1f6b2a}
.auth-social{margin-bottom:22px}
.as-label{margin:0 0 10px;font-size:14px;font-weight:600;color:#2a2a2a}
.as-buttons{display:grid;gap:10px}
.as-btn{display:flex;align-items:center;justify-content:center;gap:10px;height:48px;border-radius:12px;border:1.5px solid #e5d5c0;background:#fff;font-size:15px;font-weight:600;color:#3a3a3a;text-decoration:none;transition:.2s}
.as-btn:hover{border-color:var(--gold);box-shadow:0 4px 14px rgba(191,13,14,.08)}
.as-facebook{border-color:#cfdcf5;color:#1877F2}
.as-facebook:hover{border-color:#1877F2}
.field-row{display:flex;gap:10px;align-items:stretch}
.field-row select{flex:0 0 150px}
.field-row input{flex:1;min-width:0}
.check-row{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.6;color:#3a3a3a;cursor:pointer}
.check-row input{width:16px;height:16px;margin-top:4px;flex:0 0 16px;accent-color:var(--accent,#a4843c);cursor:pointer}
.check-row a{color:var(--accent,#a4843c);text-decoration:underline}

/* ── Legal pages: 網站使用條款 / 私隱政策 ─────────────────── */
.legal-section{padding-top:48px}
.legal-wrap{max-width:860px;margin:0 auto;background:#fff;border:1px solid #eee0d0;border-radius:16px;padding:44px 48px;box-shadow:0 10px 30px rgba(60,20,30,.06)}
.legal-content{font-size:15px;line-height:1.9;color:#3a3a3a}
.legal-content h6{font-size:17px;font-weight:700;color:var(--wine);margin:26px 0 10px}
.legal-content p{margin:0 0 12px}
.legal-content ul{margin:0 0 14px;padding-left:22px}
.legal-content li{margin-bottom:8px}
/* nested decimal clause numbering (1. / 1.1 / 1.1.1) with hanging indent.
   Indent scales with depth so wide numbers (e.g. 20.1.1.) never overlap text. */
.legal-content ol{counter-reset:item;list-style:none;margin:0 0 12px;padding:0}
.legal-content ol ol{margin:8px 0 4px}
.legal-content ol li{counter-increment:item;position:relative;padding-left:4ch}
.legal-content ol ol li{padding-left:8ch}
.legal-content ol ol ol li{padding-left:12ch}
.legal-content ol ol ol ol li{padding-left:16ch}
.legal-content ol li::before{content:counters(item,'.') '.';position:absolute;left:0;top:0;font-weight:600;color:var(--wine)}
/* prod renders the deepest sub-clauses as a./b./c. (ol.alpha in the scraped HTML) */
.legal-content ol.alpha>li::before{content:counter(item,lower-alpha) '.';font-weight:400;color:#3a3a3a}

/* ── Cart: 我的購物車 ─────────────────────────────────────── */
.cart-section{padding-top:48px}
.cart-wrap{max-width:960px;margin:0 auto}
.cart-empty{text-align:center;padding:40px 0 56px}
.ce-text{font-size:18px;color:#3a3a3a;margin-bottom:24px}
.cart-lines{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.cart-line{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid #eee0d0;border-radius:14px;padding:14px 18px}
.cl-img{flex:0 0 84px}
.cl-img img{width:84px;height:84px;object-fit:contain;display:block}
.cl-info{flex:1;min-width:0;display:grid;gap:2px}
.cl-name{font-weight:600;color:#2a2a2a;text-decoration:none}
.cl-name:hover{color:var(--wine)}
.cl-name-tc{font-size:14px;font-weight:500;color:#3d3d3d}
.cl-sub{font-size:13px;color:var(--muted)}
.cl-unit{font-size:13px;color:var(--muted)}
.cl-qty{flex:0 0 auto}
.cl-total{flex:0 0 96px;text-align:right;font-weight:700;color:var(--wine);font-size:16px}
.cl-remove{flex:0 0 34px;width:34px;height:34px;border-radius:50%;border:1px solid #e5d5c0;background:#fff;color:#a08c70;font-size:18px;line-height:1;cursor:pointer;transition:.2s}
.cl-remove:hover{border-color:#c33;color:#c33}
.cart-actions{display:flex;justify-content:space-between;align-items:center;margin-top:18px}
.btn-text{border:0;background:none;color:var(--muted);font-size:13px;cursor:pointer;text-decoration:underline}
.btn-text:hover{color:#c33}
.cart-summary{margin-top:26px;background:#fff;border:1px solid #eee0d0;border-radius:14px;padding:22px 26px}
.cart-summary dl{margin:0;display:grid;gap:10px}
.cart-summary dl>div{display:flex;justify-content:space-between;font-size:15px}
.cart-summary dt{color:var(--muted)}
.cart-summary dd{margin:0;font-weight:600}
.cs-free{color:#1f6b2a;font-style:normal;font-weight:700}
.cs-note{font-size:13px;color:var(--muted);font-weight:400}
.cs-total{border-top:1px solid #eee0d0;padding-top:12px;font-size:18px}
.cs-total dd{color:var(--wine)}
.cs-checkout{display:block;width:100%;margin-top:18px;text-align:center}
.cs-continue{display:block;text-align:center;margin-top:14px;font-size:14px;color:var(--accent,#a4843c);text-decoration:underline}
.cl-orig{color:#b0a08a;font-weight:400;margin-left:2px}
/* Flash-sale countdown chip inside a cart line (reuses .card-countdown from base.css, left-aligned) */
.cl-flash{justify-content:flex-start;max-width:max-content;margin-top:6px}
.cart-columns{display:flex;gap:22px;margin-top:26px;align-items:flex-start}
.cart-shipping{flex:1;min-width:0}
.shipping-form{background:#fff;border:1px solid #eee0d0;border-radius:14px;padding:20px 22px}
.shipping-form>label{display:block;font-weight:600;font-size:15px;margin-bottom:10px;color:#2a2a2a}
.shipping-row{display:flex;gap:10px}
.shipping-select{flex:1;min-width:0;height:44px;border:1px solid #e5d5c0;border-radius:10px;padding:0 12px;font-size:14px;color:#3a3a3a;background:#fff}
.shipping-hint{margin:10px 0 0;font-size:13px;color:var(--muted)}
.btn-sm{padding:9px 16px;font-size:13px;height:44px;white-space:nowrap}
.cart-summary{flex:0 0 360px;margin-top:0}
.cs-gift dd{color:#1f6b2a;font-weight:700}
.gift-picker{margin-top:26px;background:#fff;border:1px solid #eee0d0;border-radius:14px;padding:20px 22px}
.gp-title{margin:0 0 14px;font-size:16px;color:#2a2a2a}
.gift-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.gift-row{display:flex;align-items:center;gap:14px;border:1px solid #f0e6d8;border-radius:10px;padding:12px 16px}
.gift-row.is-chosen{border-color:var(--gold);background:#fdf8ee}
.gr-name{flex:1;min-width:0;font-size:14px;color:#3a3a3a}
.gr-price{flex:0 0 auto;font-size:14px;font-weight:600;color:var(--wine)}
.gr-chosen{font-style:normal;font-size:14px;font-weight:700;color:#1f6b2a}

/* ── Wishlist: 我的收藏 ─────────────────────────────────── */
.wishlist-section{padding-top:48px}
.wishlist-empty{text-align:center;padding:40px 0 56px}
.wishlist-hint{margin:0 0 18px;font-size:14px;color:var(--muted);text-align:center}
.wishlist-hint a{color:var(--accent,#a4843c)}
.wishlist-lines{list-style:none;margin:0 auto;padding:0;display:grid;gap:14px;max-width:960px}
.wishlist-line{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid #eee0d0;border-radius:14px;padding:14px 18px}
.wl-img{flex:0 0 84px}
.wl-img img{width:84px;height:84px;object-fit:contain;display:block}
.wl-info{flex:1;min-width:0;display:grid;gap:2px}
.wl-name{font-weight:600;color:#2a2a2a;text-decoration:none}
.wl-name:hover{color:var(--wine)}
.wl-sub{font-size:13px;color:var(--muted)}
.wl-price{font-size:15px;font-weight:700;color:var(--wine)}
.wl-actions{flex:0 0 auto;display:flex;align-items:center;gap:10px}
.wl-remove{width:34px;height:34px;border-radius:50%;border:1px solid #e5d5c0;background:#fff;color:var(--wine);font-size:16px;line-height:1;cursor:pointer;transition:.2s}
.wl-remove:hover{border-color:var(--wine)}

/* ── Responsive (MUST stay last) ────────────────────────── */
@media(max-width:1100px){
  .value-grid{grid-template-columns:repeat(2,1fr)}
  .news-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:767px){
  .page-hero{padding:44px 5% 40px}
  .page-hero h1{font-size:30px}
  .auth-section{padding-top:36px}
  .value-grid{grid-template-columns:1fr}
  .legal-section{padding-top:36px}
  .legal-wrap{padding:28px 20px;border-radius:12px}
  .cart-section{padding-top:36px}
  .cart-line{flex-wrap:wrap;gap:10px 12px;padding:12px 14px}
  .cl-img{flex:0 0 64px}
  .cl-img img{width:64px;height:64px}
  .cl-info{flex:1 1 calc(100% - 76px)}
  .cl-unit{display:none}
  /* Discounted lines keep the 單價 + struck-through original visible so the
     mobile layout still shows the deal (plain lines stay hidden). */
  .cl-unit.has-orig{display:block;font-size:12px;margin-top:2px}
  .cl-qty{flex:0 0 auto}
  .cl-total{flex:1;text-align:left;font-size:15px}
  .cl-remove{flex:0 0 34px;margin-left:auto}
  .cart-actions{flex-direction:column;gap:12px;align-items:stretch}
  .cart-actions .btn{width:100%}
  .cart-columns{flex-direction:column;gap:16px}
  .cart-summary{flex:1 1 auto;width:100%}
  .gift-row{flex-wrap:wrap}
  .gr-action{flex:1 1 100%}
  .wishlist-section{padding-top:36px}
  .wishlist-line{flex-wrap:wrap;gap:10px 12px;padding:12px 14px}
  .wl-img{flex:0 0 64px}
  .wl-img img{width:64px;height:64px}
  .wl-info{flex:1 1 calc(100% - 76px)}
  .wl-actions{flex:1 1 100%;justify-content:space-between}
  .gr-action .btn{width:100%}
  /* cart loads product.css for the shared .qty-stepper — keep the FAB above the bottom nav */
  .float-buttons{bottom:92px}
  .news-grid{grid-template-columns:1fr;gap:14px}
  .news-card{flex-direction:row;align-items:stretch}
  .news-card .thumb{width:122px;aspect-ratio:auto}
  .news-card .body{padding:12px 14px;gap:5px}
  .news-card h3{font-size:15px}
  .news-card p{display:none}
  .news-card .more{font-size:12px}
  .blog-gallery{grid-template-columns:1fr}
  .blog-wrap h1{font-size:26px}
  .related-item .t{font-size:15px}
  .contact-grid{grid-template-columns:1fr}
  .field-row{grid-template-columns:1fr}
  .contact-form{padding:24px 20px}
}
