/* Pawon Nusantara PHP v6.2
   Restaurant catalogue layout focused on intact menu artwork and clearer hierarchy. */

:root{
  --container:1320px;
  --catalog-green:#123f18;
  --catalog-green-soft:#eef7eb;
  --catalog-border:#dfe9dc;
  --catalog-warm:#f7f4ef;
}

body{background:#fff}
.section{padding:64px 0}
.section--tight{padding:44px 0}
.section-header{margin-bottom:26px}
.section-header h2,.section-copy h2{font-size:clamp(27px,2.5vw,36px);line-height:1.16}
.section-header p,.section-copy>p{line-height:1.55}

/* Home hero */
.hero{padding:50px 0 42px}
.hero-grid{grid-template-columns:minmax(0,.93fr) minmax(440px,1.07fr);gap:58px}
.hero h1{max-width:660px;font-size:clamp(40px,4.4vw,56px);line-height:1.06;letter-spacing:-.045em}
.hero__lead{max-width:590px;margin-top:17px;font-size:17px;line-height:1.55}
.hero__actions{margin-top:24px}
.hero__meta{margin-top:24px;padding-top:18px;gap:14px 20px}
.hero-visual__frame{display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 16px 40px rgba(29,41,57,.09)}
.hero-visual__frame img{width:100%;aspect-ratio:4/3;object-fit:contain;object-position:center;background:#fff}
.hero-visual__card{left:-18px;bottom:18px}

/* Category cards on homepage */
.category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.category-card{min-height:82px;padding:15px 16px;border-color:var(--catalog-border);border-radius:16px}
.category-card__mark{width:44px;height:44px;border-radius:14px;background:var(--catalog-green-soft);color:var(--catalog-green)}
.category-card__mark svg{width:23px;height:23px}
.category-card strong{font-size:14px;line-height:1.25}
.category-card small{font-size:11px}

/* Reusable product cards */
.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.product-card{display:flex;min-width:0;height:100%;flex-direction:column;overflow:hidden;border:1px solid var(--catalog-border);border-radius:22px;background:#fff;box-shadow:0 2px 10px rgba(22,51,20,.035);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.product-card:hover{transform:translateY(-2px);border-color:#c9d9c5;box-shadow:0 14px 32px rgba(22,51,20,.09)}
.product-card--spicy{border-color:#f2c38c}
.product-card__image{position:relative;display:grid;place-items:center;overflow:hidden;margin:18px 18px 0;border-radius:18px;background:#fff}
.product-card__image img{width:100%;aspect-ratio:4/3;object-fit:contain;object-position:center;background:#fff;transition:none}
.product-card:hover .product-card__image img{transform:none}
.product-card__badges{left:10px;top:10px;z-index:2}
.badge{min-height:24px;padding-inline:9px;font-size:9px;text-transform:uppercase}
.product-card__rating{position:absolute;z-index:2;right:10px;top:10px;display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:0 10px;border-radius:999px;background:rgba(255,255,255,.95);color:#173f1a;font-size:12px;font-weight:850;box-shadow:0 3px 12px rgba(0,0,0,.08)}
.product-card__rating span{color:#f59e0b}
.product-card__body{display:flex;flex:1;flex-direction:column;padding:15px 20px 19px}
.product-card__category{display:block;margin-bottom:5px;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.07em;text-transform:uppercase}
.product-card h3{margin:0;font-size:18px;line-height:1.28;letter-spacing:-.02em}
.product-card p{display:-webkit-box;overflow:hidden;min-height:45px;margin:12px 0 18px;color:#667085;font-size:13px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.product-card__footer{margin-top:auto;padding-top:2px}
.price-stack strong{color:#173f1a;font-size:17px}
.add-button{min-height:39px;padding:0 14px;border:1px solid #d8e6d4;border-radius:11px;background:#f2f8ef;color:#205c24}
.add-button:hover{border-color:var(--primary);background:var(--primary);color:#fff}

/* Menu catalogue */
.catalog-intro{padding:46px 0 24px;background:#fff}
.catalog-intro__copy h1{margin:0;color:#113c17;font-size:clamp(43px,4.5vw,58px);line-height:1;letter-spacing:-.05em}
.catalog-intro__copy p{margin:14px 0 0;color:#667085;font-size:16px;font-weight:600}
.catalog-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 300px auto;gap:14px;margin-top:36px}
.catalog-search-wrap{position:relative;min-width:0}
.catalog-search,.catalog-select{display:flex;align-items:center;gap:12px;min-height:56px;border:1px solid transparent;background:var(--catalog-warm)}
.catalog-search{padding:0 20px;border-radius:999px}
.catalog-search:focus-within{border-color:#bad8b5;box-shadow:0 0 0 3px rgba(47,119,51,.08)}
.catalog-search svg,.catalog-select svg{flex:0 0 auto;width:21px;height:21px;fill:none;stroke:#5ca64e;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.catalog-search input{width:100%;height:54px;border:0;outline:0;background:transparent;color:var(--ink);font-size:16px}
.catalog-search input::placeholder{color:#98a2b3}
.catalog-search-results{position:absolute;z-index:120;top:calc(100% + 8px);left:0;right:0;overflow:hidden;border:1px solid var(--catalog-border);border-radius:18px;background:#fff;box-shadow:0 18px 40px rgba(22,51,20,.14)}
.catalog-search-results .search-result{grid-template-columns:58px minmax(0,1fr) auto;padding:11px 14px}
.catalog-search-results .search-result img{width:58px;height:46px;object-fit:contain;background:#fff}
.catalog-search-results .search-empty{padding:18px}
.catalog-select{position:relative;padding:0 17px;border-color:#d8e8d4;border-radius:999px;background:#fff;box-shadow:0 2px 7px rgba(22,51,20,.05)}
.catalog-select select{width:100%;height:54px;border:0;outline:0;background:transparent;color:#205c24;font-weight:800;cursor:pointer}
.catalog-submit{min-height:56px;border-radius:999px;padding-inline:22px}
.catalog-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:15px;color:#667085;font-size:13px}
.catalog-filter-summary a{color:var(--primary);font-weight:800}
.catalog-content{padding:18px 0 78px;background:#fff}
.catalog-groups{display:grid;gap:44px}
.catalog-category{scroll-margin-top:96px}
.catalog-category__header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;padding:22px 24px;border:1px solid var(--catalog-border);border-radius:24px;background:#fff;box-shadow:0 3px 10px rgba(22,51,20,.045)}
.catalog-category__identity{display:flex;align-items:center;gap:16px;min-width:0}
.catalog-category__icon{display:grid;place-items:center;flex:0 0 auto;width:56px;height:56px;border-radius:17px;background:var(--catalog-green-soft);color:#3a873d}
.catalog-category__icon svg{width:27px;height:27px}
.catalog-category__title-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.catalog-category h2{margin:0;color:#103d16;font-size:clamp(22px,2.2vw,30px);line-height:1.12;letter-spacing:-.025em}
.catalog-category__count{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:#fff5e8;color:#a85a00;font-size:11px;font-weight:850}
.catalog-category__identity p{margin:6px 0 0;color:#667085;font-size:13px;line-height:1.45}
.catalog-category__link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:1px solid #d8e8d4;border-radius:999px;color:#205c24;font-size:13px;font-weight:850;white-space:nowrap;box-shadow:0 2px 6px rgba(22,51,20,.05)}
.catalog-category__link:hover{border-color:#a8cda2;background:#f5faf3}
.empty-state{padding:70px 20px;text-align:center;border:1px solid var(--catalog-border);border-radius:24px;background:#fbfcfa}
.empty-state__icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 14px;border-radius:18px;background:var(--catalog-green-soft);color:var(--catalog-green);font-size:28px}
.empty-state h2{margin:0;font-size:25px}
.empty-state p{margin:9px 0 22px;color:var(--muted)}

/* Other image surfaces: show the complete artwork instead of cropping it. */
.product-gallery,.split-panel__media{background:#fff}
.product-gallery img,.split-panel__media img{object-fit:contain;object-position:center;background:#fff}
.search-result img,.cart-line img,.checkout-item img{object-fit:contain;background:#fff}

/* Refinements for home sections */
.home-featured .section-header{margin-bottom:24px}
.split-panel{background:#1e281e}
.split-panel__media{display:grid;place-items:center;padding:18px}
.split-panel__media img{min-height:0;max-height:430px;border-radius:18px}

@media(max-width:1180px){
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .catalog-toolbar{grid-template-columns:minmax(0,1fr) 280px}
  .catalog-submit{display:none}
}

@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr 1fr;gap:34px}
  .hero h1{font-size:44px}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .catalog-toolbar{grid-template-columns:1fr}
  .catalog-select{width:100%}
  .catalog-category__header{align-items:flex-start}
}

@media(max-width:680px){
  .section{padding:48px 0}
  .hero{padding-top:30px}
  .hero-grid{grid-template-columns:1fr}
  .hero-visual{order:-1}
  .hero-visual__frame img{aspect-ratio:4/3}
  .catalog-intro{padding-top:34px}
  .catalog-intro__copy h1{font-size:43px}
  .catalog-toolbar{margin-top:25px;gap:10px}
  .catalog-search,.catalog-select{min-height:52px}
  .catalog-search input,.catalog-select select{height:50px}
  .catalog-category__header{padding:18px;border-radius:19px}
  .catalog-category__identity{align-items:flex-start}
  .catalog-category__icon{width:48px;height:48px;border-radius:14px}
  .catalog-category__link{display:none}
  .product-card__image{margin:12px 12px 0;border-radius:14px}
  .product-card__body{padding:13px 14px 15px}
  .product-card h3{font-size:16px}
  .product-card p{min-height:41px;margin:9px 0 14px;font-size:12px}
}

@media(max-width:500px){
  .category-grid,.product-grid{grid-template-columns:1fr}
  .catalog-category__identity p{font-size:12px}
  .catalog-category__header{gap:12px}
  .product-card__image{margin:14px 14px 0}
  .product-card__body{padding:14px 16px 17px}
  .product-card h3{font-size:18px}
  .product-card p{font-size:13px}
}

/* v6.2 compact product media
   Keeps the complete 4:3 artwork visible inside a shorter 16:10 frame.
   The media frame owns the dimensions so intrinsic image size cannot stretch cards. */
.product-grid{gap:16px}
.product-card{border-radius:18px}
.product-card__image{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16/10;
  min-height:0;
  margin:0;
  overflow:hidden;
  border-radius:17px 17px 0 0;
  background:#f8faf6;
  line-height:0;
}
.product-card__image img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:center;
  background:#fff;
}
.product-card__body{padding:13px 16px 16px}
.product-card__category{margin-bottom:4px}
.product-card h3{font-size:17px;line-height:1.22}
.product-card p{min-height:40px;margin:8px 0 13px;font-size:12.5px;line-height:1.5}
.product-card__footer{padding-top:0}
.product-card__badges{left:10px;top:10px}
.product-card__rating{right:10px;top:10px}

/* Catalogue cards stay compact and align to their own content. */
.product-grid--catalog{align-items:start}
.product-grid--catalog .product-card{height:auto;align-self:start}

/* Homepage cards use the same compact media treatment. */
.product-grid--featured{align-items:start}
.product-grid--featured .product-card{height:auto;align-self:start}

@media(max-width:680px){
  .product-grid{gap:12px}
  .product-card__image{aspect-ratio:16/10;margin:0;border-radius:15px 15px 0 0}
  .product-card__body{padding:12px 13px 14px}
  .product-card p{min-height:38px;margin:7px 0 12px}
}

@media(max-width:500px){
  .product-card__image{aspect-ratio:16/10;margin:0}
  .product-card__body{padding:13px 15px 15px}
}
