/* ==========================================================================
   PackCraft OpenCart 3.0.5.0 Theme — Master Stylesheet
   Theme Name: PackCraft (Packaging & Eco Materials)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette (Craft Cardboard & Eco Aesthetics) */
  --pk-primary: #c89666;
  --pk-primary-hover: #b58253;
  --pk-primary-light: #f6eee5;
  --pk-accent: #2d6a4f;
  --pk-accent-hover: #1b4332;
  --pk-accent-light: #e8f5e9;
  --pk-dark: #1e293b;
  --pk-dark-hover: #0f172a;
  --pk-body-bg: #f8fafc;
  --pk-surface: #ffffff;
  --pk-border: #e2e8f0;
  --pk-border-light: #f1f5f9;
  
  /* Text Colors */
  --pk-text: #334155;
  --pk-text-muted: #64748b;
  --pk-text-light: #94a3b8;
  --pk-text-dark: #0f172a;
  
  /* System Badges & Alerts */
  --pk-badge-sale: #ef4444;
  --pk-badge-new: #3b82f6;
  --pk-badge-eco: #2d6a4f;
  --pk-badge-wholesale: #d97706;
  --pk-badge-hit: #f59e0b;
  
  /* Shadows & Radius */
  --pk-radius-sm: 6px;
  --pk-radius-md: 10px;
  --pk-radius-lg: 16px;
  --pk-radius-pill: 9999px;
  --pk-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --pk-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --pk-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  --pk-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --pk-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & Strict Layout Fix (Sitemap Flickering & Footer Spacing)
   -------------------------------------------------------------------------- */
html {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--pk-font-family);
  background-color: var(--pk-body-bg);
  color: var(--pk-text);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#pk-main-wrapper {
  flex: 1 0 auto;
  padding-bottom: 50px;
  margin-bottom: 20px;
}

a {
  color: var(--pk-text-dark);
  text-decoration: none;
  transition: var(--pk-transition);
}

a:hover, a:focus {
  color: var(--pk-primary);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--pk-text-dark);
  font-weight: 700;
  margin-top: 0;
}

.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* --------------------------------------------------------------------------
   3. Header Architecture & Dropdowns
   -------------------------------------------------------------------------- */
.pk-header {
  background: var(--pk-surface);
  box-shadow: var(--pk-shadow-sm);
  position: relative;
  z-index: 1000;
}

/* Top Information Strip */
.pk-top-strip {
  background: var(--pk-dark);
  color: #94a3b8;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pk-top-strip a {
  color: #cbd5e1;
}

.pk-top-strip a:hover {
  color: var(--pk-primary);
}

.pk-top-info-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pk-top-info-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pk-top-info-list i {
  color: var(--pk-primary);
}

/* Language & Currency Dropdowns */
#form-language, #form-currency {
  display: inline-block;
  margin: 0;
}

#form-language .btn-link, #form-currency .btn-link {
  color: #cbd5e1;
  font-size: 12px;
  padding: 3px 10px;
  text-decoration: none;
  border-radius: var(--pk-radius-sm);
  background: rgba(255,255,255,0.08);
}

#form-language .btn-link:hover, #form-currency .btn-link:hover {
  color: #fff;
  background: var(--pk-primary);
}

#form-language .dropdown-menu, #form-currency .dropdown-menu {
  background: var(--pk-surface);
  border-radius: var(--pk-radius-md);
  box-shadow: var(--pk-shadow-lg);
  border: 1px solid var(--pk-border);
  min-width: 140px;
  padding: 6px 0;
  z-index: 2100;
}

#form-language .dropdown-menu button, #form-currency .dropdown-menu button {
  color: var(--pk-text);
  font-size: 13px;
  padding: 6px 14px;
  text-align: left;
  width: 100%;
}

#form-language .dropdown-menu button:hover, #form-currency .dropdown-menu button:hover {
  background: var(--pk-primary-light);
  color: var(--pk-primary-hover);
}

/* Main Header Row */
.pk-main-header {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pk-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--pk-dark);
  letter-spacing: -0.5px;
}

.pk-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--pk-primary), var(--pk-primary-hover));
  color: #fff;
  border-radius: var(--pk-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(200, 150, 102, 0.35);
}

.pk-logo span.accent {
  color: var(--pk-primary);
}

.pk-search-box {
  flex: 1;
  max-width: 540px;
}

.pk-search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.pk-search-box input,
.pk-search-input {
  width: 100% !important;
  height: 46px !important;
  padding: 0 54px 0 20px !important;
  border: 2px solid var(--pk-border) !important;
  border-radius: var(--pk-radius-pill) !important;
  background: var(--pk-body-bg) !important;
  font-size: 14px !important;
  transition: var(--pk-transition) !important;
  outline: none !important;
  box-shadow: none !important;
}

.pk-search-box input:focus,
.pk-search-input:focus {
  border-color: var(--pk-primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(200, 150, 102, 0.15) !important;
}

.pk-search-box button,
.pk-search-btn,
.pk-search-box .btn {
  position: absolute !important;
  right: 5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  border: none !important;
  background: var(--pk-primary) !important;
  color: #fff !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 16px !important;
  transition: var(--pk-transition) !important;
  z-index: 5 !important;
}

.pk-search-box button:hover,
.pk-search-btn:hover {
  background: var(--pk-primary-hover) !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.pk-search-box .input-group-btn {
  position: static !important;
  display: block !important;
  width: auto !important;
}

.pk-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pk-contact-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 16px;
  border-right: 1px solid var(--pk-border);
}

.pk-contact-icon {
  width: 40px;
  height: 40px;
  background: var(--pk-accent-light);
  color: var(--pk-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pk-contact-info strong {
  display: block;
  font-size: 15px;
  color: var(--pk-dark);
  line-height: 1.2;
}

.pk-contact-info span {
  font-size: 12px;
  color: var(--pk-text-muted);
}

.pk-cart-wrapper #cart {
  position: relative;
}

.pk-cart-wrapper #cart .dropdown-menu {
  min-width: 380px !important;
  max-width: 440px;
  padding: 16px;
  border-radius: var(--pk-radius-lg);
  box-shadow: var(--pk-shadow-lg);
  border: 1px solid var(--pk-border);
  z-index: 2200;
}

.pk-cart-wrapper #cart .dropdown-menu table {
  width: 100%;
  margin-bottom: 12px;
}

.pk-cart-wrapper #cart .dropdown-menu table td {
  padding: 8px 6px;
  vertical-align: middle;
  white-space: nowrap;
}

.pk-cart-wrapper #cart .dropdown-menu table td.text-left.name, 
.pk-cart-wrapper #cart .dropdown-menu table td.name {
  white-space: normal;
  font-weight: 600;
  font-size: 13px;
}

.pk-cart-wrapper #cart .dropdown-menu table td.text-right {
  font-weight: 700;
  color: var(--pk-dark);
}

.pk-cart-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--pk-dark);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--pk-radius-pill);
  font-weight: 600;
  transition: var(--pk-transition);
  position: relative;
  border: none;
}

.pk-cart-btn:hover {
  background: var(--pk-dark-hover);
  box-shadow: var(--pk-shadow-md);
}

.pk-cart-icon {
  position: relative;
  font-size: 18px;
}

.pk-cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--pk-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pk-dark);
}

.pk-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: slideDown 0.3s ease;
  box-shadow: var(--pk-shadow-md);
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   4. Navigation Menu
   -------------------------------------------------------------------------- */
.pk-nav-bar {
  background: var(--pk-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pk-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pk-nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pk-nav-item {
  position: relative;
}

.pk-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 14px;
  transition: var(--pk-transition);
}

.pk-nav-link:hover, .pk-nav-item.active .pk-nav-link {
  color: var(--pk-primary);
  background: rgba(255, 255, 255, 0.05);
}

.pk-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--pk-surface);
  border-radius: 0 0 var(--pk-radius-md) var(--pk-radius-md);
  box-shadow: var(--pk-shadow-lg);
  padding: 10px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--pk-transition);
  z-index: 100;
}

.pk-nav-item:hover .pk-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pk-dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  color: var(--pk-text);
  font-size: 13px;
  font-weight: 500;
}

.pk-dropdown-menu li a:hover {
  background: var(--pk-primary-light);
  color: var(--pk-primary-hover);
  padding-left: 24px;
}

/* --------------------------------------------------------------------------
   5. Hero & Calculator Modal Header Contrast
   -------------------------------------------------------------------------- */
.pk-hero-section {
  padding: 24px 0;
  margin-bottom: 30px;
}

.pk-hero-banner {
  background: linear-gradient(135deg, #1b4332 0%, #0d2818 100%);
  border-radius: var(--pk-radius-lg);
  color: #fff;
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--pk-shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.pk-hero-content {
  flex: 1 1 50%;
  max-width: 550px;
  position: relative;
  z-index: 2;
}

.pk-hero-graphic {
  position: relative;
  z-index: 2;
  flex: 1 1 50%;
  max-width: 460px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pk-hero-graphic img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  border-radius: var(--pk-radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transform: perspective(1000px) rotateY(-4deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pk-hero-graphic img:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.pk-hero-badge {
  display: inline-block;
  background: var(--pk-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--pk-radius-pill);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.pk-hero-title {
  font-size: 38px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.pk-hero-desc {
  font-size: 16px;
  color: #d1fae5;
  margin-bottom: 28px;
}

.pk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--pk-radius-pill);
  border: none;
  cursor: pointer;
  transition: var(--pk-transition);
}

.pk-btn-primary {
  background: var(--pk-primary);
  color: #fff;
}

.pk-btn-primary:hover {
  background: var(--pk-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 150, 102, 0.4);
}

.pk-btn-accent {
  background: var(--pk-accent);
  color: #fff;
}

.pk-btn-accent:hover {
  background: var(--pk-accent-hover);
  color: #fff;
}

.pk-btn-outline {
  background: transparent;
  border: 2px solid var(--pk-border);
  color: var(--pk-dark);
}

.pk-btn-outline:hover {
  border-color: var(--pk-primary);
  color: var(--pk-primary);
}

/* Modal Headers Contrast Fix */
.modal-content .modal-header {
  background: var(--pk-dark) !important;
  color: #ffffff !important;
  padding: 18px 24px !important;
  border: none !important;
}

.modal-content .modal-header .modal-title {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.modal-content .modal-header .close {
  color: #ffffff !important;
  opacity: 0.9 !important;
  text-shadow: none !important;
}

/* --------------------------------------------------------------------------
   6. Product Cards & Pricing
   -------------------------------------------------------------------------- */
#content .row {
  display: flex;
  flex-wrap: wrap;
}

#content .row::before, #content .row::after {
  display: none;
}

.product-layout {
  display: flex;
  margin-bottom: 30px;
}

.product-thumb {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius-md);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  transition: var(--pk-transition);
}

.product-thumb:hover {
  border-color: var(--pk-primary);
  box-shadow: var(--pk-shadow-md);
  transform: translateY(-3px);
}

.product-thumb .image {
  text-align: center;
  margin-bottom: 12px;
  overflow: hidden;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb .image img {
  max-height: 170px;
  object-fit: contain;
  margin: 0 auto;
  transition: var(--pk-transition);
}

.product-thumb .caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-thumb h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
}

.pk-price-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.pk-price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pk-price-new {
  font-size: 20px;
  font-weight: 800;
  color: var(--pk-dark);
}

.pk-price-old {
  font-size: 14px;
  color: var(--pk-text-light);
  text-decoration: line-through;
}

.pk-price-tax {
  font-size: 12px;
  color: var(--pk-text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.pk-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Category List View Layout */
.pk-product-grid.is-list-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pk-product-grid.is-list-view .pk-product-card {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 20px;
}

.pk-product-grid.is-list-view .pk-product-thumb {
  width: 200px;
  height: 160px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.pk-product-card {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius-md);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--pk-transition);
}

.pk-product-card:hover {
  border-color: var(--pk-primary);
  box-shadow: var(--pk-shadow-md);
  transform: translateY(-3px);
}

.pk-product-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--pk-radius-sm);
  margin-bottom: 14px;
  background: #fff;
}

.pk-product-thumb img {
  max-height: 180px;
  object-fit: contain;
  transition: var(--pk-transition);
}

.pk-product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.pk-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: var(--pk-radius-sm);
  text-transform: uppercase;
}

.pk-badge-sale { background: var(--pk-badge-sale); }
.pk-badge-new { background: var(--pk-badge-new); }
.pk-badge-eco { background: var(--pk-badge-eco); }
.pk-badge-wholesale { background: var(--pk-badge-wholesale); }
.pk-badge-hit { background: var(--pk-badge-hit); }

.pk-product-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pk-product-title a {
  color: var(--pk-dark);
}

.pk-product-title a:hover {
  color: var(--pk-primary);
}

.pk-product-meta {
  font-size: 12px;
  color: var(--pk-text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pk-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pk-qty-picker {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius-pill);
  background: var(--pk-body-bg);
  padding: 2px;
}

.pk-qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--pk-dark);
  transition: var(--pk-transition);
  box-shadow: var(--pk-shadow-sm);
}

.pk-qty-btn:hover {
  background: var(--pk-primary);
  color: #fff;
}

.pk-qty-input {
  width: 34px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--pk-dark);
  outline: none;
}

.pk-add-cart-btn {
  flex: 1;
  height: 38px;
  border-radius: var(--pk-radius-pill);
  background: var(--pk-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--pk-transition);
}

.pk-add-cart-btn:hover {
  background: var(--pk-primary-hover);
  box-shadow: 0 4px 12px rgba(200, 150, 102, 0.35);
}

.pk-quick-order-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--pk-accent);
  font-weight: 600;
  margin-top: 8px;
  cursor: pointer;
}

.pk-quick-order-link:hover {
  text-decoration: underline;
  color: var(--pk-accent-hover);
}

/* --------------------------------------------------------------------------
   7. Footer & Mobile Navbar
   -------------------------------------------------------------------------- */
.pk-footer {
  background: var(--pk-dark);
  color: #cbd5e1;
  padding-top: 60px;
  padding-bottom: 30px;
  font-size: 13px;
  margin-top: auto;
  flex-shrink: 0;
}

.pk-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.pk-footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.pk-footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--pk-primary);
}

.pk-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pk-footer-links li {
  margin-bottom: 10px;
}

.pk-footer-links a {
  color: #94a3b8;
}

.pk-footer-links a:hover {
  color: var(--pk-primary);
  padding-left: 4px;
}

.pk-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.pk-payment-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  color: #64748b;
}

.pk-mobile-navbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--pk-surface);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  border-top: 1px solid var(--pk-border);
}

.pk-mobile-nav-items {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

.pk-mobile-nav-item {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--pk-text-muted);
  text-decoration: none !important;
  text-align: center;
  padding: 4px 2px;
  height: 100%;
  transition: var(--pk-transition);
}

.pk-mobile-nav-item i {
  font-size: 19px;
  line-height: 1;
  margin-bottom: 2px;
  display: block;
}

.pk-mobile-nav-item span {
  display: block;
  width: 100%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  letter-spacing: -0.3px;
}

.pk-mobile-nav-item.active, .pk-mobile-nav-item:hover {
  color: var(--pk-primary);
}

/* OpenCart Alerts Z-Index & Clickable Link Fix */
.alert {
  position: relative;
  z-index: 1050;
  border-radius: var(--pk-radius-md);
  margin-top: 15px;
  margin-bottom: 20px;
  box-shadow: var(--pk-shadow-sm);
}

.alert a {
  color: var(--pk-dark) !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  display: inline !important;
  position: relative !important;
  z-index: 1060 !important;
}

.alert a:hover {
  color: var(--pk-primary-hover) !important;
}

/* Offcanvas Drawer Overlay & Container */
#pk-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#pk-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

#pk-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--pk-surface);
  z-index: 2200;
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.25);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#pk-mobile-drawer.is-open {
  transform: translateX(0);
}

.pk-drawer-header {
  padding: 16px 20px;
  background: var(--pk-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pk-drawer-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.pk-drawer-body {
  padding: 20px;
  flex: 1;
}

.pk-drawer-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pk-border);
}

.pk-drawer-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pk-text-muted);
  margin-bottom: 10px;
}

/* Mobile Offcanvas Drawer Category Menu Overrides for .pk-nav-menu & .navbar */
.pk-mobile-categories #menu,
.pk-mobile-categories .navbar {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: auto !important;
  box-shadow: none !important;
}

.pk-mobile-categories .navbar-collapse {
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  max-height: none !important;
  display: block !important;
  visibility: visible !important;
}

.pk-mobile-categories .pk-nav-menu,
.pk-mobile-categories .nav.navbar-nav,
.pk-mobile-categories .nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  list-style: none !important;
}

.pk-mobile-categories .pk-nav-item,
.pk-mobile-categories .nav.navbar-nav > li,
.pk-mobile-categories .nav > li {
  float: none !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  border-bottom: 1px dashed var(--pk-border) !important;
}

.pk-mobile-categories .pk-nav-link,
.pk-mobile-categories .nav.navbar-nav > li > a,
.pk-mobile-categories .nav > li > a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 6px !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  background: transparent !important;
  text-decoration: none !important;
  width: 100% !important;
}

.pk-mobile-categories .pk-nav-link:hover,
.pk-mobile-categories .nav.navbar-nav > li > a:hover,
.pk-mobile-categories .pk-nav-item.open > .pk-nav-link,
.pk-mobile-categories .pk-nav-item.dropdown.open > .pk-nav-link {
  color: var(--pk-primary) !important;
  background: rgba(200, 150, 102, 0.1) !important;
  border-radius: var(--pk-radius-sm) !important;
}

.pk-mobile-categories .pk-dropdown-menu,
.pk-mobile-categories .dropdown-menu {
  position: static !important;
  float: none !important;
  width: 100% !important;
  box-shadow: none !important;
  border: none !important;
  background: var(--pk-body-bg) !important;
  border-radius: var(--pk-radius-sm) !important;
  padding: 4px 12px !important;
  margin: 0 !important;
  display: none !important; /* Hidden by default - zero empty spacing! */
  list-style: none !important;
}

/* Show subcategories ONLY when parent category is expanded (.open) */
.pk-mobile-categories .pk-nav-item.open > .pk-dropdown-menu,
.pk-mobile-categories .pk-nav-item.dropdown.open > .pk-dropdown-menu,
.pk-mobile-categories .dropdown.open > .dropdown-menu,
.pk-mobile-categories .dropdown.open > .pk-dropdown-menu {
  display: block !important;
  margin: 4px 0 10px 0 !important;
}

.pk-mobile-categories .pk-dropdown-menu li a,
.pk-mobile-categories .dropdown-menu a {
  padding: 8px 10px !important;
  font-size: 13px !important;
  color: #334155 !important;
  font-weight: 600 !important;
  display: block !important;
  text-decoration: none !important;
}

.pk-mobile-categories .nav.navbar-nav > li > a:hover,
.pk-mobile-categories .nav > li > a:hover,
.pk-mobile-categories .nav > li.open > a {
  color: var(--pk-primary) !important;
  background: rgba(200, 150, 102, 0.08) !important;
  border-radius: var(--pk-radius-sm) !important;
}

.pk-mobile-categories .dropdown-menu {
  position: static !important;
  float: none !important;
  width: 100% !important;
  box-shadow: none !important;
  border: none !important;
  background: var(--pk-body-bg) !important;
  border-radius: var(--pk-radius-sm) !important;
  padding: 6px 12px !important;
  margin: 4px 0 8px 0 !important;
  display: block !important;
}

.pk-mobile-categories .dropdown-menu a {
  padding: 6px 8px !important;
  font-size: 13px !important;
  color: var(--pk-text) !important;
  font-weight: 500 !important;
  display: block !important;
}

/* Modals Z-Index Overrides */
.modal {
  z-index: 2500 !important;
}

.modal-backdrop {
  z-index: 2400 !important;
}

@media (max-width: 1199px) {
  .pk-nav-link {
    padding: 12px 10px;
    font-size: 13px;
  }
}

@media (max-width: 991px) {
  .pk-main-header {
    flex-wrap: wrap;
  }
  .pk-search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .pk-contact-widget {
    display: none;
  }
  .pk-nav-bar {
    display: none !important;
  }
  .pk-mobile-navbar {
    display: flex !important;
  }
  [data-pk-toggle="offcanvas"] {
    display: inline-block !important;
  }
  
  /* Tablet & Mobile Hero Banner Layout: Centered & Large Graphic Image */
  .pk-hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
    gap: 24px;
  }

  .pk-hero-content {
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
  }

  .pk-hero-graphic {
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .pk-hero-graphic img {
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    transform: none;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 60px;
  }
  .pk-top-strip {
    display: none;
  }
  .pk-mobile-navbar {
    display: flex;
  }
  .pk-hero-title {
    font-size: 26px;
  }

  /* Mobile Header Right-Aligned Cart Widget under Logo */
  .pk-main-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 14px 0;
  }

  .pk-header-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
    order: 2;
  }

  .pk-cart-wrapper {
    margin-left: auto;
    margin-right: 0;
    display: flex;
    justify-content: flex-end;
  }

  .pk-cart-wrapper .pk-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
  
  /* Mobile list view adjustments to prevent horizontal overflow */
  .pk-product-grid.is-list-view .pk-product-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  
  .pk-product-grid.is-list-view .pk-product-thumb {
    width: 100%;
    height: 180px;
  }
}
