/* Storefront layout: shared header, home and product purchase flow. */
:root {
  --pk-orange: #ef8026;
  --pk-orange-dark: #dc6c16;
}

.container { max-width: 100%; }
.pk-beta-notice { padding: 8px 15px; background: #fff0e4; color: #613408; text-align: center; font-size: 12px; line-height: 18px; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--pk-graphite);
  outline-offset: 3px;
}

#top.pk-topbar { margin: 0; padding: 12px 0; }
.pk-topbar-left, .pk-topbar-right, .pk-topbar-contact { display: flex; align-items: center; gap: 12px; }
.pk-topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; }
.pk-topbar-right { margin-left: auto; gap: 16px; }
.pk-topbar a, .pk-schedule-btn { font-weight: 800; color: var(--pk-graphite); font-size: 13px; }
.pk-topbar a:hover { color: var(--pk-orange-dark); }
.pk-topbar-left { gap: 18px; }
.pk-topbar-left a, .pk-top-phone { white-space: nowrap; }
.pk-topbar-left .fa { color: var(--pk-orange); margin-right: 6px; }
.pk-topbar #logo { margin: 0; text-align: center; }
.pk-topbar #logo img { width: 300px; height: auto; max-height: 56px; margin: 0 auto; }
.pk-schedule-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px; border: 1px solid var(--pk-border); border-radius: 999px; background: #f5f6f8; white-space: nowrap; }
.pk-schedule-btn .fa { color: var(--pk-orange); }
.pk-schedule-btn small { color: var(--pk-muted); font-size: 11px; font-weight: 700; }
.pk-schedule-btn:hover, .pk-schedule.open .pk-schedule-btn { border-color: var(--pk-orange); background: #fff7ef; }
.pk-schedule-menu { left: auto; right: 0; min-width: 240px; padding: 12px; border-radius: 8px; }
.pk-schedule-menu li { display: flex; justify-content: space-between; gap: 16px; padding: 8px; }
.pk-main-header { background: var(--pk-graphite); padding: 14px 0; box-shadow: 0 6px 18px rgba(35, 40, 50, .12); border: 0; }
.pk-main-header-inner { display: grid; grid-template-columns: 190px minmax(0, 1fr) 230px; align-items: center; gap: 20px; }
.pk-main-header-inner::before, .pk-main-header-inner::after,
.pk-topbar-inner::before, .pk-topbar-inner::after { display: none; }
.pk-logo-text { font-size: 24px; font-weight: 800; color: var(--pk-graphite); }
.pk-catalog-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 8px; background: #fff; color: var(--pk-graphite); font-size: 13px; font-weight: 800; }
.pk-catalog-button .fa { color: var(--pk-orange); }
.pk-catalog-button:hover, .pk-catalog-button.active { background: var(--pk-orange); color: var(--pk-graphite-dark); }
.pk-catalog-button:hover .fa, .pk-catalog-button.active .fa { color: inherit; }
.pk-main-header a:focus-visible, .pk-main-header button:focus-visible { outline-color: #fff; }
.pk-search-wrap { min-width: 0; }
.pk-search-wrap #search { margin: 0; width: 100%; }
.pk-search-wrap #search .input-lg { height: 44px; padding: 10px 14px; border: 1px solid var(--pk-border); border-right: 0; border-radius: 8px 0 0 8px; background: #f8f9fa; font-size: 14px; box-shadow: none; }
.pk-search-wrap #search .input-lg:focus { border-color: var(--pk-orange); }
.pk-search-wrap #search .btn-lg { height: 44px; padding: 10px 18px; border-radius: 0 8px 8px 0; border: 1px solid var(--pk-orange); background: var(--pk-orange); color: var(--pk-graphite-dark); text-shadow: none; }
.pk-search-wrap #search .btn-lg:hover { background: var(--pk-orange-dark); }
.pk-header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.pk-header-actions a { font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 54px; min-height: 44px; padding: 2px 6px; border-radius: 6px; color: #fff; font-size: 11px; line-height: 16px; }
.pk-header-actions a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.pk-header-actions i { font-size: 19px; line-height: 22px; color: var(--pk-orange); }
#top #form-language .pk-lang-btn:hover { background: #fff7ef; color: #a54908; }
#top #form-language .pk-lang-btn.active { background: #ff7a00; color: var(--pk-graphite-dark); }

/* The same category tree becomes a wide menu on desktop and an accordion on smaller screens. */
.pk-menu-line { position: absolute; left: 0; right: 0; z-index: 1000; padding: 0 15px; }
.pk-menu-line > .container { padding: 12px; background: #fff; border: 1px solid var(--pk-border); border-top: 0; border-radius: 0 0 10px 10px; box-shadow: 0 12px 24px rgba(35, 40, 50, .12); }
.pk-menu-line #menu { position: relative; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.pk-catalog-list, .pk-submenu-tiles { padding: 0; margin: 0; list-style: none; }
.pk-catalog-item { min-width: 0; }
.pk-catalog-row { display: flex; align-items: center; min-height: 44px; border-radius: 7px; }
.pk-catalog-row:hover { background: #f4f6f8; }
.pk-catalog-item.pk-branch-open > .pk-catalog-row { background: #fff0e4; }
.pk-catalog-row > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px; color: var(--pk-graphite); font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.pk-catalog-row > a > .fa { width: 18px; flex-shrink: 0; color: #a54908; text-align: center; }
.pk-submenu-toggle { width: 44px; height: 44px; flex-shrink: 0; border: 0; background: transparent; color: var(--pk-graphite); border-radius: 6px; }
.pk-submenu-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.pk-submenu-toggle:hover { background: #ffe4d0; }
.pk-submenu { padding: 6px 0 8px 14px; }
.pk-submenu-heading { display: none; }
.pk-menu-tile { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 8px; color: var(--pk-graphite); font-size: 13px; font-weight: 700; border: 1px solid transparent; border-radius: 8px; overflow-wrap: anywhere; }
.pk-menu-tile:hover { color: var(--pk-graphite-dark); background: #fff7ef; border-color: #f7d4ba; }
.pk-menu-tile-image { width: 44px; height: 36px; flex-shrink: 0; display: grid; place-items: center; color: #a54908; font-size: 20px; }
.pk-menu-tile-image img { width: 100%; height: 100%; object-fit: contain; }
.pk-menu-tile-arrow { margin-left: auto; color: var(--pk-muted); }

@media (min-width: 992px) {
  .pk-menu-line > .container { padding: 0; overflow: hidden; }
  .pk-menu-line #menu { --pk-menu-rail: clamp(225px, 22vw, 280px); }
  .pk-catalog-list { width: var(--pk-menu-rail); min-height: 410px; padding: 12px; border-right: 1px solid var(--pk-border); background: #f5f6f8; }
  .pk-catalog-row:hover { background: #fff; }
  .pk-submenu-toggle i { transform: rotate(-90deg); }
  .pk-submenu-toggle[aria-expanded="true"] i { transform: rotate(-90deg); color: #a54908; }
  .pk-submenu { position: absolute; inset: 0 0 0 var(--pk-menu-rail); padding: 22px; overflow: auto; }
  .pk-submenu-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--pk-border); color: var(--pk-graphite); }
  .pk-submenu-heading strong { font-size: 19px; font-weight: 800; }
  .pk-submenu-heading a { flex-shrink: 0; color: #a54908; font-weight: 700; }
  .pk-submenu-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
  .pk-menu-tile { height: 100%; min-height: 126px; flex-direction: column; justify-content: flex-start; padding: 10px; border-color: var(--pk-border); text-align: center; }
  .pk-menu-tile-image { width: 100%; height: 72px; font-size: 32px; }
  .pk-menu-tile-arrow { display: none; }
}

@media (max-width: 991px) {
  .pk-menu-line { position: static; padding: 0; }
  .pk-menu-line > .container { border-radius: 0; box-shadow: none; }
  .pk-catalog-item + .pk-catalog-item { border-top: 1px solid var(--pk-border); }
}

/* Compact links to child categories on category pages. */
.pk-subcategories { margin-bottom: 20px; }
#product-category #content .pk-subcategory-title { margin: 0 0 8px; font-size: 13px; }
#product-category #content .pk-subcategory-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
#product-category #content .pk-subcategories .pk-menu-tile { display: flex; height: 100%; min-height: 48px; flex-direction: row; justify-content: flex-start; padding: 5px 8px; gap: 8px; border-color: var(--pk-border); border-radius: 8px; background: #fff; text-align: left; box-shadow: none; }
#product-category #content .pk-subcategories .pk-menu-tile:hover { color: var(--pk-graphite-dark); background: #fff7ef; border-color: #f7d4ba; }
.pk-subcategories .pk-menu-tile-image { width: 38px; height: 32px; font-size: 17px; }
.pk-subcategories .pk-menu-tile-arrow { display: none; }

/* Home: the search and category links use existing OpenCart routes. */
.pk-home-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 28px 0; padding: 40px; background: #fff; border: 1px solid var(--pk-border); border-radius: 12px; }
.pk-eyebrow { color: var(--pk-muted); text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; margin-bottom: 16px; }
.pk-home-intro h1 { margin: 0 0 18px; color: var(--pk-graphite); font-size: 40px; font-weight: 800; line-height: 1.15; letter-spacing: -1px; max-width: 600px; }
.pk-home-intro > p:last-child { color: var(--pk-muted); font-size: 15px; line-height: 1.7; max-width: 480px; margin: 0; }
.pk-home-finder { padding: 24px; border: 1px solid var(--pk-border); border-radius: 8px; background: #f8f9fa; }
.pk-home-finder h2 { font-size: 20px; line-height: 1.3; font-weight: 800; margin: 0 0 20px; }
.pk-home-finder label { font-weight: 600; display: block; color: var(--pk-muted); font-size: 13px; margin-bottom: 8px; }
.pk-home-finder .form-control { height: 46px; font-size: 16px; border-radius: 6px; border-color: var(--pk-border); box-shadow: none; }
.pk-home-finder .btn { width: 100%; margin-top: 12px; min-height: 46px; font-size: 14px; font-weight: 800; border-radius: 6px; background: var(--pk-orange); border-color: var(--pk-orange); color: var(--pk-graphite-dark); text-shadow: none; box-shadow: none; }
.pk-home-finder .btn:hover { background: var(--pk-orange-dark); }
.pk-search-hint { margin: 10px 0 0; color: var(--pk-muted); font-size: 12px; }
.pk-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pk-section-heading h2 { margin: 0; font-size: 24px; font-weight: 800; }
.pk-section-heading a { color: var(--pk-muted); font-size: 13px; }
.pk-section-heading a:hover { color: var(--pk-graphite); }
.pk-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.pk-category-tile { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px solid var(--pk-border); border-radius: 8px; background: #fff; color: var(--pk-graphite); font-size: 16px; font-weight: 800; }
.pk-category-tile:hover { border-color: var(--pk-orange); color: var(--pk-graphite); }
.pk-category-tile > i:first-child { color: #b95309; font-size: 24px; }
.pk-category-tile > i:last-child { margin-left: auto; color: var(--pk-muted); }
.pk-home-modules { margin-top: 32px; }
.pk-home-modules > h3 { margin: 28px 0 18px; font-size: 24px; }
.pk-home-modules .swiper-viewport { margin-bottom: 28px; }

/* Product content has a single heading and a logical mobile reading order. */
#product-product .pk-product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); grid-template-areas: "gallery title" "gallery details" "description description"; grid-template-rows: auto 1fr auto; gap: 20px 32px; margin: 20px 0 28px; padding: 28px; border-radius: 10px; box-shadow: none; }
#product-product .pk-product-layout::before, #product-product .pk-product-layout::after { display: none; }
.pk-product-gallery { grid-area: gallery; min-width: 0; }
#product-product .pk-product-title { grid-area: title; font-size: 28px; line-height: 1.25; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.pk-product-details { grid-area: details; min-width: 0; }
.pk-product-description { grid-area: description; min-width: 0; padding-top: 24px; border-top: 1px solid var(--pk-border); font-size: 14px; line-height: 1.7; }
#product-product .thumbnails { padding: 16px; border: 0; border-radius: 0; margin: 0; }
#product-product .thumbnails > li { margin-left: 0; }
#product-product .thumbnails > li:first-child { margin-bottom: 0; }
#product-product .thumbnail img { height: 300px; max-height: 300px; max-width: 100%; object-fit: contain; }
#product-product .image-additional .thumbnail img { height: 56px; }
#product-product .list-unstyled { margin: 0 0 12px; }
#product-product .list-unstyled li { font-size: 13px; padding: 3px 0; }
#product-product .list-unstyled h2 { margin: 12px 0; font-size: 30px; font-weight: 800; }
#product-product .pk-product-details > .btn-group { float: none; display: flex; justify-content: flex-end; margin: 16px 0 0; }
#product-product #product { border: 0; padding: 0; margin-top: 14px; border-radius: 0; }
#product-product .pk-purchase { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: end; gap: 8px 12px; }
#product-product .pk-purchase label { grid-column: 1 / -1; margin: 0; }
#product-product .pk-purchase br { display: none; }
#product-product #input-quantity { width: 80px; height: 46px; border-radius: 6px; }
#product-product #button-cart { height: 46px; border-radius: 6px; font-size: 16px; font-weight: 800; color: var(--pk-graphite-dark); box-shadow: none; }
#product-product .product-colors { margin-top: 24px; }
.pk-colors-title { margin-bottom: 8px; font-weight: 700; }
#product-product .product-colors-list li a, #product-product .product-colors-list li.color-current { border-radius: 6px; }

@media (max-width: 1199px) {
  .pk-topbar #logo img { width: 210px; }
  .pk-topbar-left, .pk-topbar-right { gap: 12px; }
  .pk-main-header-inner { grid-template-columns: 165px minmax(0, 1fr) auto; gap: 14px; }
  .pk-header-actions { gap: 10px; }
  .pk-header-actions a:nth-child(2) { display: none; }
  .pk-home-hero { padding: 28px; gap: 24px; }
  .pk-home-intro h1 { font-size: 34px; }
}
@media (max-width: 991px) {
  .pk-topbar-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .pk-topbar-left { grid-row: 2; grid-column: 1; flex-wrap: wrap; }
  .pk-topbar #logo { grid-row: 1; grid-column: 1; text-align: left; }
  .pk-topbar #logo img { width: 220px; margin: 0; }
  .pk-topbar-right { display: contents; }
  .pk-topbar-contact { grid-row: 1; grid-column: 2; justify-self: end; }
  .pk-schedule { grid-row: 2; grid-column: 2; justify-self: end; }
  .pk-main-header-inner { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; }
  .pk-catalog-button > span { display: none; }
  .pk-home-hero { gap: 20px; padding: 24px; }
  .pk-home-intro h1 { font-size: 30px; }
  .pk-home-finder { padding: 20px; }
  #product-product .pk-product-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); gap: 20px; padding: 20px; }
}
@media (max-width: 767px) {
  #product-product .breadcrumb > li { max-width: calc(100% - 12px); overflow-wrap: anywhere; }
  #top.pk-topbar { padding: 10px 0; }
  .pk-topbar-inner { gap: 10px; }
  .pk-topbar #logo img { width: clamp(110px, 36vw, 140px); max-height: 30px; }
  .pk-topbar-contact, .pk-topbar-left { gap: 8px; }
  .pk-topbar-left a, .pk-schedule-btn { font-size: 11px; }
  .pk-topbar .pk-top-phone { font-size: 11px; }
  .pk-schedule-btn { line-height: 1.2; }
  .pk-schedule-btn small { display: block; font-size: 10px; }
  .pk-main-header { padding: 12px 0; }
  .pk-main-header-inner { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
  .pk-header-actions { grid-column: 3; grid-row: 1; }
  .pk-header-actions .pk-action-secondary { display: none; }
  .pk-header-actions a { min-width: 40px; padding: 0 2px; font-size: 11px; }
  .pk-catalog-button { grid-column: 1; grid-row: 1; padding: 0; }
  .pk-search-wrap { grid-column: 2; grid-row: 1; }
  .pk-search-wrap #search .input-lg { font-size: 16px; padding-left: 10px; }
  .pk-search-wrap #search .btn-lg { padding: 10px 14px; }
  .pk-home-hero { grid-template-columns: 1fr; margin: 16px 0 24px; padding: 22px 18px; gap: 22px; }
  .pk-eyebrow { font-size: 10px; letter-spacing: 1px; margin-bottom: 12px; }
  .pk-home-intro h1 { font-size: 30px; margin-bottom: 12px; }
  .pk-home-intro > p:last-child { font-size: 14px; line-height: 1.6; }
  .pk-home-finder { padding: 18px; }
  .pk-home-finder h2 { font-size: 19px; margin-bottom: 16px; }
  .pk-section-heading { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .pk-section-heading h2 { font-size: 22px; }
  .pk-category-grid { grid-template-columns: 1fr; gap: 10px; }
  .pk-category-tile { padding: 18px; font-size: 15px; }
  .pk-home-modules { margin-top: 24px; }
  #product-product .pk-product-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "gallery" "details" "description"; gap: 16px; padding: 18px 14px; margin-top: 16px; }
  #product-product .pk-product-title { font-size: 24px; }
  #product-product .thumbnails { padding: 0; }
  #product-product .thumbnail img { height: 180px; max-height: 180px; }
  #product-product .image-additional { width: 54px; margin-top: 8px; margin-bottom: 0; }
  #product-product .image-additional .thumbnail img { height: 40px; }
  #product-product .pk-product-details > .btn-group { margin-bottom: 0; }
  #product-product .pk-product-description { padding-top: 16px; }
  #product-product #input-quantity { font-size: 16px; }
  #product-product .product-colors { margin-top: 20px; }
}

@media (max-width: 390px) {
  .pk-topbar-inner { grid-template-columns: minmax(0, 1fr) 28px auto; }
  .pk-topbar-left { grid-column: 1 / 3; gap: 5px; }
  .pk-topbar-contact { grid-column: 2 / 4; }
  .pk-schedule { grid-column: 3; }
  .pk-topbar-left .fa { display: none; }
}
