/* Shared storefront components, extending the official OpenCart 4.1.0.4 views. */
.tky-shop { --tky-border: #d9d1e4; --tky-muted: #62576d; --tky-white: #fff; }
.tky-shop #container { position: relative; display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
.tky-shop main { flex: 1; padding-bottom: 48px; }
.tky-shop #content, .tky-shop #column-left, .tky-shop #column-right { padding-bottom: 0; min-width: 0; }
.tky-shop footer { position: static; width: 100%; border-right: 0; border-left: 0; border-bottom: 0; }
.tky-shop h4, .tky-shop h5, .tky-shop h6 { color: var(--tky-ink); font-weight: 800; }
.tky-shop h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.tky-shop label, .tky-shop .col-form-label { font-size: .95rem; font-weight: 700; }
.tky-shop legend { font-size: 1.25rem; font-weight: 800; color: var(--tky-ink); border-bottom: 2px dashed var(--tky-border); }
.tky-shop .text-muted, .tky-shop .form-text { color: var(--tky-muted) !important; }
.tky-shop .row { --bs-gutter-y: 0; }
.tky-shop img { max-width: 100%; }
.tky-shop button:focus-visible { outline: 3px solid var(--tky-ink) !important; }
.tky-shop .btn { padding: .65rem 1rem; box-shadow: none; line-height: 1.3; }
.tky-shop .btn-light, .tky-shop .btn-outline-secondary { color: var(--tky-ink); background: var(--tky-white); border: 1px solid var(--tky-border); }
.tky-shop .btn-light:hover, .tky-shop .btn-light.active { color: var(--tky-ink); background: var(--tky-lime); border-color: var(--tky-ink); }
.tky-shop .btn-primary { border: 2px solid var(--tky-purple); box-shadow: 0 3px 0 var(--tky-ink); }
.tky-shop .btn-primary:active { box-shadow: none; }
.tky-shop .form-control, .tky-shop .form-select { color: var(--tky-ink); background-color: #fff; border: 1px solid #a99ab9; border-radius: 9px; font-size: 1rem; }
.tky-shop .form-control:focus, .tky-shop .form-select:focus { border-color: var(--tky-purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tky-purple) 20%, transparent); }
.tky-shop .form-control.is-invalid { border-color: #a4262c; }
.tky-shop .form-control:disabled, .tky-shop .form-select:disabled { background-color: #f1edf5; }
.tky-shop .input-group-text { color: var(--tky-ink); background: var(--tky-paper); border-color: #a99ab9; font-weight: 700; }
.tky-shop .form-check-input:checked { background-color: var(--tky-purple); border-color: var(--tky-purple); }
.tky-shop .input-group > .form-control, .tky-shop .input-group > .form-select { min-width: 0; }

/* Navigation, breadcrumbs and paper headings on every page. */
.tky-shop .tky-nav { gap: 12px; }
.tky-shop #menu { padding: 0; }
.tky-shop #menu .nav-link { padding: 14px 10px; font-size: .94rem; }
.tky-shop #menu .nav-link:hover { background: var(--tky-lime); border-radius: 8px 8px 0 0; }
.tky-shop .dropdown-menu { border: 2px solid var(--tky-ink); border-radius: 10px; box-shadow: 5px 5px 0 color-mix(in srgb, var(--tky-ink) 18%, transparent); padding: 8px; }
.tky-shop .dropdown-item { padding: 10px 12px; border-radius: 5px; white-space: normal; }
.tky-shop .dropdown-item:hover, .tky-shop .dropdown-item:focus { color: var(--tky-ink); background: var(--tky-lime); }
.tky-shop #top .dropdown-item { color: #322052; }
.tky-shop .breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 0; padding: 10px 0 18px; margin: 0; border: 0; font-size: .87rem; }
.tky-shop .breadcrumb > li.breadcrumb-item { padding: 0; white-space: normal; overflow-wrap: anywhere; text-shadow: none; }
.tky-shop .breadcrumb > li.breadcrumb-item::after { display: none; }
.tky-shop .breadcrumb > li.breadcrumb-item + li::before { content: "/"; float: none; padding: 0 10px; color: var(--tky-muted); }
.tky-shop #content > h1, .tky-shop #shopping-cart > h1 { position: relative; isolation: isolate; width: fit-content; max-width: 100%; background: var(--tky-orange); padding: 14px 24px; margin: 8px 0 30px; border-radius: 3px 18px 4px 12px; font-size: clamp(1.85rem, 3.2vw, 2.8rem); overflow-wrap: anywhere; }
.tky-decor #content > h1::before, .tky-decor #shopping-cart > h1::before { content: ""; position: absolute; width: 66px; height: 16px; background: var(--tky-lime); top: -7px; right: 18px; transform: rotate(4deg); z-index: -1; }
.tky-shop #content > h2, .tky-shop #content > h3 { margin: 28px 0 18px; }
.tky-shop #column-left .list-group, .tky-shop #column-right .list-group { border: 1px solid var(--tky-border); border-top: 7px solid var(--tky-lime); border-radius: 12px; overflow: hidden; }
.tky-shop .list-group-item { padding: 13px 18px; border-color: var(--tky-border); background: #fff; }
.tky-shop .list-group-item.active, .tky-shop .list-group-item.active:hover { background: var(--tky-purple); color: #fff; border-color: var(--tky-purple); }
.tky-shop .list-group-item:hover { background: var(--tky-paper); }
.tky-shop .pagination { gap: 5px; flex-wrap: wrap; }
.tky-shop .page-link { color: var(--tky-purple); border: 1px solid var(--tky-border); border-radius: 8px !important; min-width: 44px; min-height: 44px; text-align: center; padding: 9px; }
.tky-shop .active > .page-link { color: #fff; background: var(--tky-purple); border-color: var(--tky-purple); }

/* Catalog cards, category chips and list/grid display controls. */
.tky-category-intro { background: #fff; border: 1px solid var(--tky-border); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.tky-category-intro img { max-height: 160px; object-fit: contain; }
.tky-category-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin-bottom: 28px; }
.tky-category-links a { display: block; padding: 9px 16px; background: var(--tky-lime); color: var(--tky-ink); border: 1px solid var(--tky-ink); border-radius: 8px 3px 10px 4px; font-weight: 700; }
.tky-list-controls { display: grid; grid-template-columns: 1fr auto 2fr 1fr; gap: 14px; align-items: center; margin: 24px 0; padding: 16px; background: #fff; border: 1px solid var(--tky-border); border-radius: 12px; }
.tky-list-controls > *, .tky-list-controls .input-group { min-width: 0; }
.tky-shop #display-control { padding: 18px 6px 4px; border: 1px solid var(--tky-border); border-radius: 12px; background: #fff; margin: 24px 0; }
.tky-shop .product-thumb { border: 1px solid var(--tky-border); border-bottom: 5px solid var(--tky-orange); border-radius: 14px 14px 7px 7px; box-shadow: 0 4px 0 color-mix(in srgb, var(--tky-ink) 6%, transparent); }
.tky-shop .product-thumb:hover { border-color: var(--tky-purple); }
.tky-shop .product-thumb .description { margin-bottom: 0; padding-bottom: 12px; }
.tky-shop .product-thumb .description > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; color: var(--tky-muted); }
.tky-shop .product-thumb h4 { line-height: 1.4; margin: 0 0 12px; overflow-wrap: anywhere; }
.tky-shop .product-thumb .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 14px; }
.tky-shop .product-thumb .price-new { color: #322052; }
.tky-shop .product-thumb .price-tax { flex-basis: 100%; }
.tky-shop .product-thumb .button { position: static; display: flex; gap: 6px; padding: 0 12px 14px; }
.tky-shop .product-thumb .button button { width: 44px; flex: 0 0 44px; border: 1px solid var(--tky-border); border-radius: 8px; }
.tky-shop .product-thumb .button .tky-add { flex: 1; width: auto; padding: 8px; color: #fff; background: var(--tky-purple); border-color: var(--tky-purple); font-size: .85rem; line-height: 1.25; }
.tky-shop .product-thumb .button .tky-add:hover { color: #fff; background: var(--tky-ink); }
.tky-shop .product-thumb .tky-details { padding: 10px 12px !important; margin: 0 !important; border: 0 !important; border-radius: 8px !important; background: var(--tky-paper); color: var(--tky-ink); font-size: .8rem; }
.tky-shop .product-thumb .tky-details strong { font-size: .9rem; }
.tky-shop #product-list.row-cols-1 .product-thumb { height: 100%; }

/* Product detail, gallery, option controls and description/review tabs. */
.tky-shop #product-info #content > .row.mb-3 { --bs-gutter-x: 36px; --bs-gutter-y: 24px; }
.tky-shop #product-info #content > .row.mb-3 > .col-sm { min-width: 0; }
.tky-shop #product-info .image { position: relative; background: #fff; padding: 24px; border: 1px solid var(--tky-border); border-radius: 18px 6px 18px 6px; }
.tky-decor #product-info .image::before { content: ""; width: 110px; height: 26px; background: var(--tky-lime); position: absolute; top: -10px; left: 33%; transform: rotate(-5deg); pointer-events: none; }
.tky-shop #product-info .image > a { display: block; }
.tky-shop #product-info .image > a > img { width: 100%; aspect-ratio: 1; object-fit: contain; border: 0; }
.tky-shop #product-info .image > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tky-shop #product-info .image > div img { width: 70px; height: 70px; object-fit: contain; border-radius: 8px; }
.tky-shop #product-info h1 { font-size: clamp(1.65rem, 2.7vw, 2.35rem); line-height: 1.25; margin: 0 0 20px; overflow-wrap: anywhere; }
.tky-shop #product-info .rating { font-size: .85rem; }
.tky-shop .rating .fa-star { color: #8a5700; }
.tky-shop #product-info .price-new { display: inline-block; color: var(--tky-ink); background: var(--tky-lime); padding: 7px 14px; border-radius: 6px; }
.tky-shop #product-info .tky-details { color: var(--tky-ink); background: #fff; border: 1px solid var(--tky-border) !important; border-left: 6px solid var(--tky-orange) !important; border-radius: 10px !important; }
.tky-shop #product-info #input-quantity { flex: 0 1 65px; text-align: center; }
.tky-shop #product-info #button-cart { flex: 1; }
.tky-shop .nav-tabs { gap: 6px; border: 0; margin: 30px 0 0; }
.tky-shop .nav-tabs .nav-link { color: var(--tky-ink); background: var(--tky-lime); border: 1px solid var(--tky-border); border-radius: 10px 10px 0 0; min-height: 44px; font-weight: 700; }
.tky-shop .nav-tabs .nav-link.active { color: #fff; background: var(--tky-purple); border-color: var(--tky-purple); }
.tky-shop .tab-content { background: #fff; border: 1px solid var(--tky-border); border-radius: 0 12px 12px 12px; padding: clamp(18px, 3vw, 32px); margin-bottom: 32px; }
.tky-shop .tab-content h3 { margin-top: 24px; }

/* Accounts, information, errors and long forms share a readable paper surface. */
.tky-section-account #content, .tky-section-information #content, .tky-section-cms #content,
.tky-section-checkout #content, .tky-section-error #content, .tky-shop #common-success #content { background: #fff; border: 1px solid var(--tky-border); border-radius: 14px; padding: clamp(18px, 3vw, 32px); }
.tky-shop #account-login #content { background: transparent; border: 0; padding: 0 12px; }
.tky-login-panel { position: relative; border: 1px solid var(--tky-border) !important; border-top: 8px solid var(--tky-purple) !important; border-radius: 12px !important; padding: clamp(22px, 3vw, 36px) !important; background: #fff; }
.tky-login-panel.tky-new-customer { border-top-color: var(--tky-orange) !important; }
.tky-login-panel .text-end { margin-top: auto; }
.tky-shop .card { border-color: var(--tky-border); border-radius: 12px; overflow: hidden; }
.tky-shop .card-header { background: var(--tky-lime); color: var(--tky-ink); font-weight: 700; }
.tky-shop .card-body { padding: 22px; }
.tky-shop #information-information #content > p { max-width: 78ch; }
.tky-shop #account-account #content > ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tky-shop #account-account #content > ul a { display: block; height: 100%; padding: 16px 18px; background: var(--tky-paper); border: 1px solid var(--tky-border); border-left: 5px solid var(--tky-lime); border-radius: 9px; font-weight: 700; }
.tky-shop #error-not-found #content, .tky-shop #common-success #content { min-height: 300px; }
.tky-shop .alert { border-radius: 10px; padding: 16px 44px 16px 18px; }
.tky-shop .alert-info { color: #322052; background: #f1edf8; border-color: #c7b7db; }
.tky-shop .alert-success { color: #234024; background: #edf6e4; border-color: #afc69c; }
.tky-shop .alert-danger, .tky-shop .invalid-feedback { color: #8c1d28; }
.tky-shop .alert .btn-close { min-width: 44px; min-height: 44px; padding: 0; }

/* Cart, checkout, order history, comparison tables and payment dialogs. */
.tky-shop .table { --bs-table-bg: #fff; --bs-table-color: var(--tky-ink); --bs-table-border-color: var(--tky-border); font-size: .94rem; vertical-align: middle; }
.tky-shop .table > thead > tr > * { background: var(--tky-lime); color: var(--tky-ink); padding: 14px; font-weight: 800; }
.tky-shop .table > tbody > tr > *, .tky-shop .table > tfoot > tr > * { padding: 14px; }
.tky-shop .table-responsive { border: 1px solid var(--tky-border); border-radius: 10px; margin-bottom: 22px; }
.tky-shop .table-responsive > .table { margin-bottom: 0; }
.tky-shop #checkout-total tr:last-child > * { background: var(--tky-paper); font-size: 1.15rem; font-weight: 800; }
.tky-shop #output-cart .input-group { min-width: 155px; flex-wrap: nowrap; }
.tky-shop #output-cart input[name="quantity"] { min-width: 48px; text-align: center; }
.tky-shop #output-cart img { min-width: 60px; }
.tky-shop #checkout-checkout #content > .row { --bs-gutter-x: 32px; }
.tky-shop #checkout-checkout [id^="checkout-"] { padding: 18px; margin-bottom: 20px; border: 1px solid var(--tky-border); border-radius: 12px; background: var(--tky-paper); }
.tky-shop #checkout-checkout #checkout-confirm { border-top: 7px solid var(--tky-lime); background: #fff; }
.tky-shop #checkout-checkout #checkout-confirm .table-responsive { border: 0; }
.tky-shop #checkout-checkout fieldset { margin-bottom: 20px; }
.tky-shop .accordion-item { border-color: var(--tky-border); }
.tky-shop .accordion-button { color: var(--tky-ink); background: var(--tky-paper); font-weight: 800; min-height: 54px; }
.tky-shop .accordion-button:not(.collapsed) { color: #fff; background: var(--tky-purple); }
.tky-shop .modal-content { border: 2px solid var(--tky-ink); border-radius: 14px; }
.tky-shop .modal-header { background: var(--tky-lime); }
.tky-shop #cart .dropdown-menu { width: min(460px, calc(100vw - 32px)); min-width: 0; max-height: 75vh; overflow-y: auto; right: 0; left: auto; }
.tky-shop #cart .dropdown-menu li { padding: 8px; }
.tky-shop #cart .table { font-size: .83rem; }
.tky-shop #cart .table td { padding: 7px; white-space: normal; }
.tky-shop #cart .table img { min-width: 42px; }
.tky-shop #cart .btn-danger { min-width: 36px; min-height: 36px; padding: 6px; }
.tky-shop .tky-footer-heading { color: #fff; margin: 0 0 28px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tky-shop .tky-footer-heading span { color: var(--tky-ink); background: var(--tky-lime); padding: 5px 12px; display: inline-block; border-radius: 5px 12px 4px 10px; }
.tky-shop footer h5 { color: #fff; font-family: inherit; font-size: 1rem; font-weight: 800; line-height: 1.4; margin-bottom: 12px; }
.tky-shop footer li { margin-bottom: 6px; }
.tky-shop footer a { display: inline-block; padding: 4px 0; }
.tky-shop footer .tky-footer-heading + .row { row-gap: 24px; }

@media (min-width: 768px) {
  .tky-shop #product-list.row-cols-1:not(.row-cols-sm-2) .product-thumb { flex-direction: row; }
  .tky-shop #product-list.row-cols-1:not(.row-cols-sm-2) .product-thumb .image { flex: 0 0 220px; }
}
@media (max-width: 1199px) {
  .tky-list-controls { grid-template-columns: 1fr 1fr; }
  .tky-shop #menu .nav-link { padding: 12px 7px; font-size: .86rem; }
}
@media (max-width: 991px) {
  .tky-shop #menu .navbar-nav { width: 100%; }
  .tky-shop #menu .dropdown-menu { box-shadow: none; border: 0; padding: 4px 8px; background: #fff; }
  .tky-shop #menu .nav-link { padding: 13px; font-size: 1rem; }
  .tky-shop #menu .dropdown-inner ul { min-width: 0; }
  .tky-shop .tky-nav { align-items: start; }
  .tky-shop .tky-gift-link { margin-top: 2px; }
}
@media (max-width: 767px) {
  .tky-shop main { padding-bottom: 32px; }
  .tky-shop header { padding-bottom: 0; }
  .tky-shop #search { margin-bottom: 14px; }
  .tky-shop #cart > .dropdown > .btn { width: 100%; }
  .tky-shop #content > h1, .tky-shop #shopping-cart > h1 { padding: 12px 18px; margin-bottom: 24px; }
  .tky-shop .tky-list-controls { gap: 12px; padding: 12px; }
  .tky-shop .tky-list-controls .input-group { display: block; }
  .tky-shop .tky-list-controls .input-group-text { display: block; border: 0; padding: 0 0 6px; background: transparent; }
  .tky-shop .tky-list-controls .form-select { width: 100%; border-radius: 8px !important; }
  .tky-shop #product-info .image { padding: 16px; }
  .tky-shop #product-info #content > .row.mb-3 { --bs-gutter-x: 24px; }
  .tky-shop #product-info .image > a > img { max-height: 380px; }
  .tky-shop .nav-tabs { gap: 4px; }
  .tky-shop .nav-tabs .nav-link { padding: 10px; font-size: .9rem; }
  .tky-shop #checkout-checkout #content { padding: 16px; }
  .tky-shop #checkout-checkout [id^="checkout-"] { padding: 14px; }
  .tky-shop .table-responsive { overscroll-behavior-x: contain; }
  .tky-shop #output-cart { overflow: visible; border: 0; }
  .tky-shop .tky-cart-table { display: block; border: 0; }
  .tky-shop .tky-cart-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tky-shop .tky-cart-table tbody, .tky-shop .tky-cart-table tfoot { display: block; }
  .tky-shop .tky-cart-table tbody tr { display: grid; grid-template-columns: 70px minmax(0, 1fr); margin-bottom: 16px; padding: 12px; border: 1px solid var(--tky-border); border-radius: 12px; }
  .tky-shop .tky-cart-table tbody td { display: block; min-width: 0; border: 0; padding: 8px !important; }
  .tky-shop .tky-cart-table tbody td:nth-child(3) { grid-column: 1 / -1; }
  .tky-shop .tky-cart-table tbody td[data-label] { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; }
  .tky-shop .tky-cart-table tbody td[data-label]::before { content: attr(data-label); font-weight: 700; text-align: left; }
  .tky-shop .tky-cart-table tfoot tr { display: flex; justify-content: space-between; background: var(--tky-paper); }
  .tky-shop .tky-cart-table tfoot td { border: 0; }
  .tky-shop footer .col-sm-3 { flex: 0 0 50%; max-width: 50%; }
}
@media (prefers-reduced-motion: no-preference) {
  .tky-shop .product-thumb { transition: border-color .15s, box-shadow .15s; }
}
