/*
Theme Name: Pizza De Leon
Theme URI: https://pizzadeleon.com
Author: Pizza De Leon
Description: Custom online ordering theme for Pizza De Leon
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: pizzadeleon
*/

/* ========= CSS VARIABLES ========= */
:root {
  --red: #C62828;
  --red-dark: #8B1A1A;
  --red-light: #EF5350;
  --gold: #F9A825;
  --bg: #111111;
  --bg2: #1E1E1E;
  --bg3: #2A2A2A;
  --card: #242424;
  --border: #333333;
  --text: #F0F0F0;
  --text-muted: #999999;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --transition: all 0.2s ease;
}

/* ========= RESET & BASE ========= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red-light); }

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

button, input, select, textarea { font-family: inherit; }

/* ========= HEADER ========= */
#site-header {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(198,40,40,0.3);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 50px;
  width: auto;
  border-radius: 6px;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.site-logo-text .brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-logo-text .brand-tagline {
  font-size: 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.header-phone svg { color: var(--gold); }

.header-phone a { color: var(--text); font-weight: 600; }
.header-phone a:hover { color: var(--gold); }

.header-cart-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.cart-btn:hover { background: var(--red-light); color: var(--white); transform: translateY(-1px); }

.cart-count {
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ========= HERO BANNER ========= */
.shop-hero {
  background: linear-gradient(135deg, #1a0000 0%, #2d0a0a 40%, #1a1a1a 100%);
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(198,40,40,0.15) 0%, transparent 70%);
}

.shop-hero-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

.shop-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
}

.shop-hero h1 span { color: var(--red); }

.shop-hero p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.shop-hero .hero-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-badge svg { color: var(--gold); }

/* ========= CATEGORY TABS ========= */
.category-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 70px;
  z-index: 900;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.category-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
  align-items: center;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-tab:hover { color: var(--text); border-bottom-color: var(--border); }

.cat-tab.active {
  color: var(--red-light);
  border-bottom-color: var(--red);
}

.cat-tab .cat-emoji { font-size: 1rem; }

/* ========= SHOP MAIN ========= */
.shop-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.category-section { margin-bottom: 50px; }

.category-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.category-section-title h2 {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-section-title .section-icon {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.category-section-title .item-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg3);
  padding: 3px 10px;
  border-radius: 50px;
}

/* ========= PRODUCT GRID ========= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ========= PRODUCT CARD ========= */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg3);
}

.product-card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.product-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
}

.product-price .from-label {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  line-height: 1;
}

.add-to-cart-btn, .select-options-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.add-to-cart-btn:hover, .select-options-btn:hover {
  background: var(--red-light);
  color: var(--white);
  transform: scale(1.03);
}

.add-to-cart-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.added-to-cart {
  background: #2e7d32 !important;
}

/* ========= Cart / Checkout page wrapper ========= */
.pdl-page-wrap { background: var(--bg); min-height: 60vh; }

/* ========= WooCommerce Overrides ========= */

/* Cart icon */
.woocommerce-cart-form,
.woocommerce-checkout,
#order_review { max-width: 100%; }

.woocommerce-notices-wrapper .woocommerce-message {
  background: #1a3a1a;
  border-left: 4px solid #4caf50;
  color: #c8e6c9;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.woocommerce-notices-wrapper .woocommerce-error {
  background: #3a1a1a;
  border-left: 4px solid var(--red);
  color: #ffcdd2;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
  list-style: none;
}

/* Cart page */
.cart-page-wrap, .checkout-page-wrap {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.cart-page-wrap h1, .checkout-page-wrap h1 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.woocommerce table.shop_table {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.woocommerce table.shop_table th {
  background: var(--bg3);
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.woocommerce table.shop_table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.woocommerce table.shop_table tr:last-child td { border-bottom: none; }

.woocommerce table.shop_table .product-name a {
  color: var(--white);
  font-weight: 600;
}

.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal { color: var(--gold); font-weight: 700; }

.woocommerce .quantity .qty {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 6px;
  width: 70px;
  text-align: center;
}

.woocommerce a.remove {
  color: var(--red-light) !important;
  font-size: 1.2rem;
  line-height: 1;
}

.woocommerce-cart-form__contents .actions {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.woocommerce button[type=submit],
.woocommerce input[type=submit],
.woocommerce a.button,
.woocommerce button.button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.woocommerce button[type=submit]:hover,
.woocommerce input[type=submit]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--red-light);
  color: var(--white);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--gold);
  color: #000;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: #ffd54f;
  color: #000;
}

/* Cart totals */
.cart_totals, .order-total {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.cart_totals h2 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.cart_totals table { width: 100%; }

.cart_totals table tr th, .cart_totals table tr td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.cart_totals table tr:last-child th,
.cart_totals table tr:last-child td { border-bottom: none; }

.cart_totals table tr th { color: var(--text-muted); }
.cart_totals table tr td { text-align: right; font-weight: 600; }

.cart_totals table .order-total td { color: var(--gold); font-size: 1.2rem; }

/* Checkout */
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

@media (max-width: 768px) {
  .woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
}

.woocommerce form .form-row label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  width: 100%;
  transition: var(--transition);
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(198,40,40,0.2);
}

.woocommerce form .form-row select option { background: var(--bg3); }

/* ========= Single product page ========= */
.single-product-wrap {
  max-width: 1060px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 700px) {
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* WooCommerce summary resets inside our dark theme */
.product-details.woocommerce .product_title {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--white);
  margin: 0 0 10px;
  line-height: 1.2;
}

.product-details.woocommerce .woocommerce-product-details__short-description {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 800;
  display: block;
  margin-bottom: 16px;
}

/* Variations table */
.woocommerce .variations {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.woocommerce .variations tr {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.woocommerce .variations td.label label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.woocommerce .variations td.value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.woocommerce .variations select {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  min-width: 220px;
  flex: 1;
  cursor: pointer;
  transition: var(--transition);
}

.woocommerce .variations select:focus {
  outline: none;
  border-color: var(--red);
}

.woocommerce .variations select option { background: #1e1e1e; }

.woocommerce .reset_variations {
  font-size: 0.75rem;
  color: var(--text-muted) !important;
}

/* Single variation price update */
.woocommerce-variation-price .price {
  color: var(--gold) !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
}

/* Add to cart row */
.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.woocommerce div.product form.cart .qty {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 10px 12px;
  border-radius: 8px;
  width: 68px;
  text-align: center;
  font-size: 1rem;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  background: var(--red);
  color: var(--white) !important;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  text-align: center;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: var(--red-light);
  transform: translateY(-1px);
}

/* Product meta */
.woocommerce div.product .product_meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.woocommerce div.product .product_meta a { color: var(--gold); }
.woocommerce div.product .product_meta a:hover { color: var(--red-light); }

/* ========= TOPPING SELECTOR ========= */
.pdl-toppings-wrap {
    display: block;
    width: 100%;
    margin: 20px 0;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.pdl-toppings-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a0000, #2a0808);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.pdl-toppings-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
}

.pdl-toppings-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pdl-toppings-section {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.pdl-toppings-section:last-of-type { border-bottom: none; }

.pdl-toppings-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdl-toppings-section-price {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.72rem;
    background: rgba(249,168,37,0.1);
    padding: 2px 8px;
    border-radius: 50px;
    border: 1px solid rgba(249,168,37,0.3);
}

.pdl-toppings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 6px;
    transition: opacity 0.2s;
}

.pdl-topping-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.pdl-topping-item:hover {
    border-color: var(--red);
    background: rgba(198,40,40,0.08);
}

.pdl-topping-item:has(input:checked) {
    border-color: var(--red);
    background: rgba(198,40,40,0.15);
}

.pdl-topping-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--red);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.pdl-topping-name {
    font-size: 0.8rem;
    color: var(--text);
    flex: 1;
    line-height: 1.2;
}

.pdl-topping-price {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.8;
}

.pdl-toppings-total {
    padding: 12px 16px;
    background: rgba(198,40,40,0.1);
    border-top: 1px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdl-toppings-total-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pdl-toppings-total-val {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
}

/* ========= SPECIAL INSTRUCTIONS ========= */
.pdl-instructions-wrap {
    display: block;
    width: 100%;
    margin: 20px 0 4px;
    padding: 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-sizing: border-box;
    clear: both;
}

.pdl-instructions-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.pdl-instructions-wrap textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 10px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    transition: var(--transition);
}

.pdl-instructions-wrap textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(249,168,37,0.15);
}

.pdl-instructions-wrap textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.pdl-instructions-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 7px;
    font-style: italic;
}

/* Cart item meta display */
.wc-item-meta { margin-top: 5px; }
.wc-item-meta li { font-size: 0.8rem; color: var(--text-muted); list-style: none; }
.wc-item-meta .wc-item-meta-label { color: var(--gold); font-weight: 600; margin-right: 4px; }

/* ========= SCHEDULE / DELIVERY DATE ========= */
.pdl-schedule-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 25px 0;
}

.pdl-schedule-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    padding: 14px 18px;
    background: linear-gradient(135deg, #1a0000, #2a0808);
    border-bottom: 1px solid var(--border);
    margin: 0;
}

.pdl-schedule-type-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.pdl-schedule-type-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: var(--transition);
    border-right: 1px solid var(--border);
    position: relative;
}

.pdl-schedule-type-btn:last-child { border-right: none; }

.pdl-schedule-type-btn input[type="radio"] { display: none; }

.pdl-schedule-type-btn.active,
.pdl-schedule-type-btn:hover {
    background: rgba(198,40,40,0.1);
}

.pdl-schedule-type-btn.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    width: 18px;
    height: 18px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #fff;
    line-height: 18px;
    text-align: center;
}

.stype-icon { font-size: 1.4rem; flex-shrink: 0; }

.stype-text { display: flex; flex-direction: column; gap: 2px; }
.stype-text strong { font-size: 0.88rem; color: var(--white); }
.stype-text small { font-size: 0.75rem; color: var(--text-muted); }

.pdl-schedule-fields { padding: 18px; }

.pdl-schedule-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .pdl-schedule-row { grid-template-columns: 1fr; }
    .pdl-schedule-type-row { grid-template-columns: 1fr; }
}

.pdl-schedule-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.pdl-schedule-field label .required { color: var(--red); }

.pdl-date-input,
.pdl-time-select {
    width: 100%;
    background: var(--bg3) !important;
    border: 1px solid var(--border) !important;
    color: var(--white) !important;
    padding: 11px 14px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    transition: var(--transition);
    box-sizing: border-box;
    -webkit-appearance: none;
}

.pdl-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.pdl-date-input:focus,
.pdl-time-select:focus {
    outline: none !important;
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(198,40,40,0.2) !important;
}

.pdl-time-select option { background: var(--bg3); }

.pdl-schedule-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 14px 0 0;
    padding: 10px 14px;
    background: var(--bg3);
    border-radius: 8px;
    border-left: 3px solid var(--border);
    line-height: 1.7;
}

/* Shipping method styling on checkout */
.woocommerce-shipping-methods { list-style: none; padding: 0; margin: 0; }
.woocommerce-shipping-methods li {
    margin-bottom: 10px;
    padding: 14px 16px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.woocommerce-shipping-methods li:has(input:checked) {
    border-color: var(--red);
    background: rgba(198,40,40,0.08);
}

.woocommerce-shipping-methods label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
}

.woocommerce-shipping-methods input[type="radio"] {
    accent-color: var(--red);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Order received schedule box */
.pdl-thankyou-schedule {
    background: var(--card);
    border: 1px solid var(--red);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}

.pdl-thankyou-schedule h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--white);
}

.pdl-thankyou-schedule p {
    margin: 5px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========= FOOTER ========= */
#site-footer {
  background: #0a0a0a;
  border-top: 2px solid var(--border);
  padding: 40px 20px 20px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
}

.footer-brand .brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-col p, .footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: block;
  margin-bottom: 5px;
}

.footer-col a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 700px) { .footer-social { justify-content: center; } }

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover { background: var(--red); border-color: var(--red); color: var(--white); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ========= CART DRAWER / TOAST ========= */
.pdl-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1a3a1a;
  border: 1px solid #4caf50;
  color: #c8e6c9;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdl-toast.show { transform: translateY(0); opacity: 1; }
.pdl-toast.error { background: #3a1a1a; border-color: var(--red); color: #ffcdd2; }

/* ========= STICKY CART BAR ========= */
.sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--red-dark);
  padding: 0;
  z-index: 800;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 2px solid var(--red);
}

.sticky-cart-bar.visible { transform: translateY(0); }

.sticky-cart-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.sticky-cart-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-cart-info .count {
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.sticky-cart-info .label { color: var(--white); font-weight: 600; }

.sticky-cart-total { color: var(--gold); font-size: 1.2rem; font-weight: 800; }

.sticky-cart-checkout {
  background: var(--white);
  color: var(--red-dark);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.sticky-cart-checkout:hover { background: var(--gold); color: #000; }

/* ========= BREADCRUMB ========= */
.breadcrumb-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}

.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.woocommerce-breadcrumb {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.woocommerce-breadcrumb a { color: var(--text-muted); }
.woocommerce-breadcrumb a:hover { color: var(--gold); }

/* ========= ORDER RECEIVED ========= */
.woocommerce-order { max-width: 700px; margin: 40px auto; padding: 0 20px; }

.woocommerce-order .woocommerce-thankyou-order-received {
  background: var(--card);
  border: 1px solid #4caf50;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin-bottom: 25px;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .header-phone { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .shop-hero { padding: 25px 15px; }
  .shop-wrap { padding: 20px 15px 100px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card-body { padding: 10px; }
  .product-card-name { font-size: 0.88rem; }
  .product-price { font-size: 0.95rem; }
  .add-to-cart-btn, .select-options-btn { padding: 7px 10px; font-size: 0.75rem; }
}

/* ========= WC specific fixes ========= */
.woocommerce-page .woocommerce { max-width: 100%; }

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.woocommerce-cart h1, .woocommerce-checkout h1 {
  font-size: 1.8rem;
  margin-bottom: 25px;
}

/* Form fields dark style */
.woocommerce-checkout #billing_country,
.woocommerce-checkout #shipping_country {
  background: var(--bg3);
  color: var(--white);
  border-color: var(--border);
}

.select2-container--default .select2-selection--single {
  background: var(--bg3);
  border-color: var(--border);
  color: var(--white);
  height: 42px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--white);
  line-height: 42px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

.select2-dropdown {
  background: var(--bg3);
  border-color: var(--border);
}

.select2-container--default .select2-results__option {
  color: var(--text);
}

.select2-container--default .select2-results__option--highlighted {
  background: var(--red);
}

/* Payment section */
#payment { background: var(--card); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
#payment ul.payment_methods li { border-bottom: 1px solid var(--border); padding: 15px 0; }
#payment ul.payment_methods li:last-child { border-bottom: none; }
#payment ul.payment_methods label { color: var(--text); }
#payment .payment_box { background: var(--bg3); border-radius: 8px; padding: 15px; margin-top: 10px; color: var(--text-muted); }

/* Order review */
#order_review_heading { font-size: 1.1rem; margin-bottom: 15px; }
#order_review table { width: 100%; border-collapse: collapse; }
#order_review table tr td, #order_review table tr th { padding: 10px; border-bottom: 1px solid var(--border); }
#order_review table tfoot tr { }
#order_review table tfoot .order-total td { color: var(--gold); font-weight: 800; font-size: 1.1rem; }

/* Messages */
.woocommerce-message::before { display: none; }
.woocommerce-error::before { display: none; }
