/* NYC Kings Custom Styles */

/* Custom scrollbar - NYC Kings theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #dc2626;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b91c1c;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #dc2626 #f1f1f1;
}

/* Pizza Restaurant Template Styles (scoped) */
.nyc-pizza-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Remove white space under header for this template */
.nyc-pizza-page .site-content,
.nyc-pizza-page #content,
.nyc-pizza-page .container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.nyc-pizza-page .row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.nyc-pizza-page .pizza-menu-sidebar {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  padding: 1.5rem 1rem;
  min-width: 180px;
  max-width: 220px;
  position: sticky;
  top: 2rem;
  height: fit-content;
  overflow: hidden;
}

.nyc-pizza-page .menu-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #e53e3e;
}

.nyc-pizza-page .menu-categories {
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.nyc-pizza-page .menu-categories::-webkit-scrollbar {
  width: 0 !important;
  background: transparent;
}

.nyc-pizza-page .menu-categories {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nyc-pizza-page .menu-categories::-webkit-scrollbar {
  display: none;
}

.nyc-pizza-page .menu-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nyc-pizza-page .menu-categories li {
  margin-bottom: 0.5rem;
}

.nyc-pizza-page .menu-categories a {
  color: #e53e3e;
  text-decoration: none;
  font-weight: 500;
  padding-left: 0.5rem;
  border-left: 2px solid transparent;
  transition: border 0.2s, color 0.2s;
}

.nyc-pizza-page .menu-categories a:hover, .nyc-pizza-page .menu-categories a:focus {
  color: #b91c1c;
  border-left: 2px solid #e53e3e;
}

.nyc-pizza-page .no-categories {
  color: #6b7280;
  text-align: center;
  padding: 1rem;
}

.nyc-pizza-page .pizza-main-content {
  flex: 1 1 0%;
  min-width: 0;
}

.nyc-pizza-page .pizza-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #222;
}

.nyc-pizza-page .category-section {
  margin-bottom: 3rem;
  scroll-margin-top: 2rem;
}

.nyc-pizza-page .category-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #e53e3e;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e53e3e;
}

.nyc-pizza-page .pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.nyc-pizza-page .pizza-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.nyc-pizza-page .pizza-card:hover {
  box-shadow: 0 4px 16px 0 rgba(229, 62, 62, 0.08);
}

.nyc-pizza-page .pizza-card-image {
  margin-bottom: 1rem;
}

.nyc-pizza-page .pizza-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.nyc-pizza-page .pizza-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.nyc-pizza-page .pizza-desc {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.nyc-pizza-page .pizza-desc-spacer {
  margin-bottom: 1rem;
}

.nyc-pizza-page .pizza-prices {
  margin-top: auto;
  font-weight: 700;
  color: #e53e3e;
  font-size: 1.1rem;
}

/* Cart Sidebar */
.nyc-pizza-page .pizza-cart-sidebar {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  padding: 1.5rem;
  min-width: 280px;
  max-width: 320px;
  position: sticky;
  top: 2rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nyc-pizza-page .cart-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e53e3e;
  margin-bottom: 1.5rem;
  text-align: center;
}

.nyc-pizza-page .cart-items {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-bottom: 1rem;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #dc2626 #f1f1f1;
}

.nyc-pizza-page .cart-items::-webkit-scrollbar {
  width: 6px;
}

.nyc-pizza-page .cart-items::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.nyc-pizza-page .cart-items::-webkit-scrollbar-thumb {
  background: #dc2626;
  border-radius: 3px;
}

.nyc-pizza-page .cart-items::-webkit-scrollbar-thumb:hover {
  background: #b91c1c;
}

.nyc-pizza-page .cart-empty {
  text-align: center;
  color: #6b7280;
  padding: 2rem 0;
}

.nyc-pizza-page .cart-item {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.nyc-pizza-page .cart-item-content {
  flex: 1;
}

.nyc-pizza-page .cart-item-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #111827;
}

.nyc-pizza-page .cart-item-details {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.nyc-pizza-page .cart-item-qty, .nyc-pizza-page .cart-item-price {
  display: block;
  margin-bottom: 0.25rem;
}

.nyc-pizza-page .cart-item-addons {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: #6b7280;
}

.nyc-pizza-page .cart-item-remove {
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.nyc-pizza-page .remove-btn {
  background: #fee2e2;
  border: none;
  color: #dc2626;
  font-size: 1.2rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.nyc-pizza-page .remove-btn:hover {
  background: #fecaca;
  color: #b91c1c;
}

.nyc-pizza-page .cart-summary {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  flex-shrink: 0;
}

.nyc-pizza-page .cart-line {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #374151;
}

.nyc-pizza-page .cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  color: #111827;
}

.nyc-pizza-page .cart-total span:last-child {
  color: #e53e3e;
}

.nyc-pizza-page .cart-checkout-btn {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.875rem;
  background: linear-gradient(135deg, #e53e3e, #dc2626);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(229,62,62,0.2);
}

.nyc-pizza-page .cart-checkout-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(229,62,62,0.3);
  color: #fff;
}

/* Product Modal */
.nyc-pizza-page .product-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.nyc-pizza-page #product-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.nyc-pizza-page #product-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border: 2px solid #e53e3e;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  color: #e53e3e;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
}

.nyc-pizza-page #product-modal-close:hover {
  background: #e53e3e;
  color: #fff;
}

.nyc-pizza-page #product-modal-content {
  padding: 0;
}

/* Mobile Bottom Bar */
.nyc-pizza-page #mobile-bottom-bar {
  position: fixed;
  left: 0; 
  right: 0; 
  bottom: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 56px;
  box-shadow: 0 -2px 12px 0 rgba(229,62,62,0.07);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 641px) {
  .nyc-pizza-page #mobile-bottom-bar { 
    display: none !important; 
  }
}

@media (max-width: 640px) {
  .nyc-pizza-page #mobile-bottom-bar {
    display: flex !important;
  }
}

.nyc-pizza-page #mobile-bottom-bar button {
  background: none;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e53e3e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
  position: relative;
}

.nyc-pizza-page #mobile-bottom-bar button:hover { 
  color: #b91c1c; 
}

.nyc-pizza-page #mobile-bottom-bar .cart-count {
  position: absolute;
  top: 2px; 
  right: 10px;
  background: #e53e3e;
  color: #fff;
  font-size: 11px;
  border-radius: 999px;
  padding: 0 6px;
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

/* Drawer styles */
.nyc-pizza-page #mobile-drawer-overlay {
  display: none;
  position: fixed;
  z-index: 10020;
  left: 0; 
  top: 0; 
  right: 0; 
  bottom: 0;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}

.nyc-pizza-page #mobile-drawer {
  position: fixed;
  left: 0; 
  right: 0; 
  bottom: -100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px 0 rgba(0,0,0,0.10);
  z-index: 10030;
  max-height: 85vh;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: bottom 0.25s cubic-bezier(.4,0,.2,1);
}
.nyc-pizza-page #mobile-drawer .drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem .5rem 1.25rem; }
.nyc-pizza-page #mobile-drawer .drawer-title { font-weight: 800; color: #111827; font-size: 1.1rem; }
/* Ensure the drawer content targets the actual ID in markup */
.nyc-pizza-page #mobile-drawer .drawer-content { padding: .5rem 1.25rem 1.25rem; box-sizing: border-box; }
.nyc-pizza-page #mobile-drawer #mobile-drawer-cart { overflow: visible; }
.nyc-pizza-page #mobile-drawer #mobile-drawer-cart .pizza-cart-sidebar { height: auto; display: block; }
.nyc-pizza-page #mobile-drawer #mobile-drawer-cart .cart-items { max-height: none; overflow: visible; }
.nyc-pizza-page #mobile-drawer #mobile-drawer-cart .cart-summary { background: #fff; }
/* Show cart content inside drawer even on mobile and fit width */
.nyc-pizza-page #mobile-drawer .pizza-cart-sidebar { display: block; width: 100%; max-width: 100%; min-width: auto; border: 0; padding: 0 1.25rem; box-shadow: none; box-sizing: border-box; }
/* Hide cart title within the drawer */
.nyc-pizza-page #mobile-drawer .cart-title { display: none; }

.nyc-pizza-page #mobile-drawer.open { 
  bottom: 0; 
}

.nyc-pizza-page #mobile-drawer .drawer-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem 0.5rem 1.25rem;
}

.nyc-pizza-page #mobile-drawer .drawer-close {
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 36px; 
  height: 36px;
  font-size: 1.5rem;
  color: #e53e3e;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(229,62,62,0.07);
  transition: background 0.15s;
}

.nyc-pizza-page #mobile-drawer .drawer-close:hover { 
  background: #f9fafb; 
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nyc-pizza-page .row {
    flex-direction: column;
    gap: 1rem;
  }
  .nyc-pizza-page .pizza-menu-sidebar,
  .nyc-pizza-page .pizza-cart-sidebar {
    position: static;
    margin-bottom: 1rem;
    height: auto;
    max-height: none;
    min-width: auto;
    max-width: none;
  }
  .nyc-pizza-page .pizza-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nyc-pizza-page .pizza-menu-sidebar,
  .nyc-pizza-page .pizza-cart-sidebar {
    display: none;
  }
  .nyc-pizza-page .pizza-card {
    flex-direction: row;
    text-align: left;
    padding: 1rem;
  }
  .nyc-pizza-page .pizza-card-image {
    min-width: 80px;
    max-width: 80px;
    margin-bottom: 0;
    margin-right: 1rem;
  }
  .nyc-pizza-page .pizza-image {
    width: 80px;
    height: 80px;
  }
  .nyc-pizza-page .pizza-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .nyc-pizza-page .pizza-desc {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  .nyc-pizza-page .pizza-prices {
    font-size: 1rem;
  }
}