/* LINLIN CRYSTAL / editorial boutique theme */
:root {
  --ink: #17352f;
  --ink-soft: #315a50;
  --paper: #f8f5ef;
  --paper-deep: #eee8dd;
  --card: #fffdf9;
  --line: #ded8ce;
  --accent: #c56e4c;
  --accent-dark: #9c4e36;
  --gold: #b99354;
  --muted: #6d766f;
  --shadow: 0 18px 45px rgba(23, 53, 47, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; color: var(--ink); line-height: 1.7; background: var(--paper); }
body::before { content: ""; display: block; height: 4px; background: var(--accent); }
a { text-decoration: none; color: inherit; transition: color .25s, background .25s, transform .25s, box-shadow .25s; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
img { max-width: 100%; }

.header { position: sticky; top: 0; z-index: 1000; background: rgba(248,245,239,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-container { max-width: 1320px; height: 84px; margin: auto; padding: 0 28px; display: flex; align-items: center; gap: 36px; }
.logo { min-width: 215px; }
.logo a { color: var(--ink); letter-spacing: .17em; }
.logo h3 { font-family: Georgia, serif; font-size: 21px; font-weight: 700; letter-spacing: .14em; }
.navbar { flex: 1; }
.nav-menu { display: flex; justify-content: center; align-items: center; gap: 34px; list-style: none; }
.nav-menu a { color: var(--ink-soft); font-size: 14px; letter-spacing: .08em; padding: 29px 0 25px; border-bottom: 2px solid transparent; }
.nav-menu a:hover { color: var(--accent); border-color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 18px; }
.lang-btn { padding: 7px 11px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; }
.lang-btn:hover, .lang-btn.active { color: var(--card); background: var(--ink); border-color: var(--ink); }
.header-icons { display: flex; gap: 14px; }
.icon-link { position: relative; display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); font-size: 17px; }
.icon-link:hover { color: var(--accent); transform: translateY(-2px); }
.cart-count { position: absolute; top: -6px; right: -8px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 10px; font-weight: 700; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); }
.mobile-menu { display: none; padding: 12px 28px 22px; background: var(--paper); border-top: 1px solid var(--line); }
.mobile-menu ul { list-style: none; }
.mobile-menu li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.mobile-menu li ul { padding-left: 16px; }
.mobile-menu a { display: block; color: var(--ink-soft); font-size: 14px; }

.main-content { min-height: calc(100vh - 88px - 260px); }
.container, .features-container, .products-container, .footer-container { max-width: 1260px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.hero { min-height: 640px; position: relative; display: flex; align-items: flex-end; padding: 80px max(28px, calc((100vw - 1260px) / 2)); background-position: center; background-size: cover; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,45,39,.82), rgba(17,45,39,.22) 68%, rgba(17,45,39,.06)); }
.hero-content { position: relative; z-index: 1; max-width: 590px; color: #fff; }
.hero h1 { margin-bottom: 16px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(42px, 6vw, 76px); line-height: 1.1; letter-spacing: .04em; font-weight: 500; }
.hero p { max-width: 440px; margin-bottom: 30px; color: rgba(255,255,255,.86); font-size: 17px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px; border-radius: 3px; font-size: 13px; letter-spacing: .1em; font-weight: 700; }
.btn-primary { color: #fff; background: var(--accent); }
.btn-primary:hover { color: #fff; background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(197,110,76,.28); }
.btn-secondary { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.7); }
.btn-secondary:hover { color: var(--ink); background: #fff; border-color: #fff; }
.btn-success { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.btn-success:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

.features, .products { padding: 92px 0; }
.features { background: var(--paper-deep); }
.products { background: var(--paper); }
.products[style] { background: var(--paper-deep) !important; }
.section-title { margin-bottom: 8px; color: var(--ink); font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(30px, 4vw, 46px); font-weight: 500; letter-spacing: .04em; text-align: center; }
.section-subtitle { margin-bottom: 42px; color: var(--muted); font-size: 14px; letter-spacing: .08em; text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { padding: 34px 24px; background: rgba(255,253,249,.7); border: 1px solid rgba(222,216,206,.8); text-align: center; }
.feature-card:hover { background: var(--card); box-shadow: var(--shadow); transform: translateY(-5px); }
.feature-icon { margin-bottom: 18px; font-size: 30px; filter: grayscale(.35); }
.feature-card h3 { margin-bottom: 10px; font-family: Georgia, "Noto Serif TC", serif; font-size: 21px; font-weight: 500; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 38px; }
.product-card { position: relative; min-height: 330px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(23,53,47,.05); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-image { display: block; width: 100%; height: 330px; object-fit: cover; transition: transform .7s ease; }
.product-card:hover .product-image { transform: scale(1.045); }
.product-overlay { position: absolute; inset: 35% 0 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 24px 22px; color: #fff; background: linear-gradient(transparent, rgba(16,42,36,.9)); }
.product-title { margin-bottom: 5px; font-family: Georgia, "Noto Serif TC", serif; font-size: 23px; font-weight: 500; }
.product-description { color: rgba(255,255,255,.82); font-size: 13px; }
.product-overlay p { color: #f8d89d !important; margin-bottom: 10px; }
.product-overlay .btn { align-self: flex-start; min-height: 36px; padding: 7px 16px; font-size: 11px; }
.product-badge { position: absolute; top: 15px; left: 15px; padding: 4px 9px; color: var(--ink); background: rgba(255,253,249,.9); font-size: 10px; letter-spacing: .08em; }
.view-all-btn { text-align: center; }

.static-page { padding: 70px 0; background: var(--paper); }
.static-page .container { padding-top: 42px; padding-bottom: 48px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.static-page h1 { display: inline-block; margin-bottom: 24px; padding-bottom: 12px; color: var(--ink); border-bottom: 2px solid var(--accent); font-family: Georgia, "Noto Serif TC", serif; font-size: 38px; font-weight: 500; }
.static-page h2 { margin: 38px 0 14px; padding-left: 14px; color: var(--ink-soft); border-left: 3px solid var(--accent); font-family: Georgia, "Noto Serif TC", serif; font-size: 24px; font-weight: 500; }
.static-page h3, .static-page h4 { color: var(--ink); }
.static-page p, .static-page li { color: #58645e; font-size: 15px; line-height: 2; }
.static-page ul, .static-page ol { margin-left: 22px; }
.static-page a { color: var(--accent-dark); font-weight: 700; }
.faq-item { margin-bottom: 22px; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--line); background: var(--paper); }
.faq-item:hover { border-left-color: var(--accent); }
.faq-item h4 { margin-bottom: 5px; font-size: 17px; }
.faq-item p { padding-left: 0; border: 0; }

/* shop, detail and cart components */
.product-card-link { display: block; color: inherit; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 68px; padding-top: 70px; padding-bottom: 70px; }
.product-detail-image { width: 100%; max-height: 680px; object-fit: cover; background: var(--paper-deep); }
.product-detail-info { align-self: center; }
.product-detail-info .product-title { color: var(--ink); font-family: Georgia, "Noto Serif TC", serif; font-size: 42px; }
.product-price { margin: 12px 0 22px; color: var(--accent-dark); font-family: Georgia, serif; font-size: 28px; font-weight: 700; }
.product-detail-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-item { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.detail-item strong { display: block; color: var(--ink); font-size: 12px; }
.quantity-selector { display: flex; align-items: center; gap: 0; margin: 20px 0; }
.quantity-btn, .quantity-input { width: 40px; height: 40px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); text-align: center; }
.quantity-input { width: 58px; border-left: 0; border-right: 0; }
.btn-add-to-cart { width: 100%; min-height: 52px; }
.product-info-tabs { margin-top: 30px; }
.tab-headers { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.tab-link { padding: 12px 0; color: var(--muted); border-bottom: 2px solid transparent; }
.tab-link.active { color: var(--accent-dark); border-color: var(--accent); }
.tab-content { padding: 22px 0; color: var(--muted); }
.cart-table { width: 100%; border-collapse: collapse; background: var(--card); }
.cart-table th, .cart-table td { padding: 18px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table th { color: var(--ink); background: var(--paper-deep); font-size: 12px; letter-spacing: .08em; }
.cart-item-image { width: 84px; height: 84px; object-fit: cover; }
.cart-item-name { font-weight: 700; }
.cart-item-remove, .remove-link { color: var(--accent-dark); font-size: 13px; }
.cart-summary { max-width: 380px; margin: 28px 0 60px auto; padding: 24px; background: var(--card); border: 1px solid var(--line); }
.measure-guide, .size-guide, .size-chart { padding: 20px; background: var(--paper-deep); }

.footer { padding: 66px 0 22px; color: rgba(255,255,255,.75); background: var(--ink); }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 38px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-column h4 { margin-bottom: 17px; color: #f1d5a1; font-family: Georgia, serif; font-size: 16px; font-weight: 500; letter-spacing: .08em; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 8px; }
.footer-column a { color: rgba(255,255,255,.72); font-size: 13px; }
.footer-column a:hover { color: #f1d5a1; }
.footer-column p { color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.9; }
.footer-bottom { padding-top: 22px; text-align: center; }
.footer-policies { margin-bottom: 10px; font-size: 11px; }
.footer-policies a { color: rgba(255,255,255,.65); margin: 0 5px; }
.footer-copyright { color: rgba(255,255,255,.4); font-size: 11px; }

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; } .mb-20 { margin-bottom: 20px; } .mt-40 { margin-top: 40px; } .mb-40 { margin-bottom: 40px; }

@media (max-width: 900px) {
  .header-container { height: 72px; padding: 0 20px; gap: 18px; }
  .logo { min-width: auto; }
  .logo h3 { font-size: 17px; }
  .navbar { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu.active { display: block; }
  .header-right { margin-left: auto; gap: 10px; }
  .language-selector { display: none; }
  .hero { min-height: 540px; padding: 60px 28px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .product-detail-layout { grid-template-columns: 1fr; gap: 38px; padding-top: 40px; }
}

@media (max-width: 560px) {
  .container, .features-container, .products-container, .footer-container { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: 470px; padding: 42px 18px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 14px; }
  .hero-buttons { align-items: stretch; flex-direction: column; max-width: 230px; }
  .features, .products { padding: 62px 0; }
  .features-grid, .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card, .product-image { min-height: 320px; height: 320px; }
  .section-subtitle { margin-bottom: 28px; }
  .static-page { padding: 34px 0; }
  .static-page .container { padding-top: 26px; padding-bottom: 30px; }
  .static-page h1 { font-size: 30px; }
  .product-detail-info .product-title { font-size: 33px; }
  .details-grid { grid-template-columns: 1fr; }
  .cart-table { display: block; overflow-x: auto; white-space: nowrap; }
  .footer { padding-top: 46px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}
