/*
Theme Name: Plastic Injection COD Theme
Theme URI: https://plastic-design-injection.com
Author: faycal bk
Author URI: https://plastic-design-injection.com
Description: ثيم مبيعات مخصص لنظام الدفع عند الاستلام مع تكامل Google Sheets للسوق الجزائري - دعم كامل لـ Elementor
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: cod-theme
Tags: rtl-language, woocommerce, cod, arabic, mobile-first, elementor
*/

/* ===========================
   0. GOOGLE FONTS & ROOT
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
  --color-primary:    #FFDD44;
  --color-primary-dk: #FBC02D;
  --color-primary-lt: #FFF59D;
  --color-accent:     #D32F2F;
  --color-white:      #FFFFFF;
  --color-bg:         #FFFFFF;
  --color-card:       #FFFFFF;
  --color-text:       #000000;
  --color-text-muted: #4B5563;
  --color-border:     #E5E7EB;
  --color-danger:     #D32F2F;
  --color-success:    #2E7D32;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.15);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 999px;

  --font-main: 'Tajawal', 'Cairo', Arial, sans-serif;
  --transition: all 0.25s ease;

  --header-h: 64px;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===========================
   2. UTILITY CLASSES
=========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Page content wrapper (page.php) */
.page-content-wrap {
  padding: 32px 16px 80px;
  max-width: 860px;
  margin: 0 auto;
}

/* Product page wrapper */
.product-page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 100px;
}

/* Elementor front-page wrapper */
.elementor-front-page {
  width: 100%;
}

/* ===========================
   3. HEADER – RESPONSIVE
=========================== */
.site-header {
  background: var(--color-white);
  border-bottom: 3px solid var(--color-primary);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header .logo-wrap {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 8px 0;
  flex-shrink: 0;
}

.site-header .logo-wrap img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.site-header .logo-wrap a {
  display: flex;
  align-items: center;
}

.site-header .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.site-header .logo-text span {
  color: var(--color-primary);
}

/* Desktop Navigation */
.main-nav {
  display: none;
}

.main-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-menu li {
  position: relative;
}

.main-nav .nav-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav .nav-menu li a:hover,
.main-nav .nav-menu li.current-menu-item a {
  background: var(--color-primary-lt);
  color: var(--color-text);
}

/* Sub-menu */
.main-nav .nav-menu li .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.main-nav .nav-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .nav-menu li .sub-menu li a {
  padding: 8px 20px;
  font-size: 0.9rem;
  border-radius: 0;
}

.main-nav .nav-menu li .sub-menu li a:hover {
  background: #f9fafb;
}

@media (min-width: 769px) {
  .main-nav {
    display: block;
  }
  .hamburger-btn {
    display: none !important;
  }
}

/* ===========================
   3b. HAMBURGER BUTTON
=========================== */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  z-index: 1001;
}

.hamburger-btn:hover {
  background: #f3f4f6;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===========================
   3c. MOBILE NAV DRAWER
=========================== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--color-white);
  z-index: 1060;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 2px solid var(--color-primary);
}

.mobile-nav-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f3f4f6;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--color-text);
}

.mobile-nav-close:hover {
  background: #e5e7eb;
}

.mobile-nav-menu {
  list-style: none;
  padding: 12px 0;
  margin: 0;
}

.mobile-nav-menu li {
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-menu li a {
  display: block;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  transition: var(--transition);
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li.current-menu-item a {
  background: var(--color-primary-lt);
  color: var(--color-text);
  padding-right: 28px;
}

.mobile-nav-menu li .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fafafa;
}

.mobile-nav-menu li .sub-menu li a {
  padding-right: 40px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

@media (min-width: 769px) {
  .mobile-nav-drawer,
  .mobile-nav-overlay {
    display: none !important;
  }
}

/* ===========================
   4. FOOTER
=========================== */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 0.88rem;
  margin-top: 60px;
}

.site-footer a {
  color: var(--color-primary);
}

/* ===========================
   5. HOME PAGE – PRODUCT GRID
=========================== */
.home-hero {
  background: var(--color-primary);
  padding: 32px 16px;
  text-align: center;
  color: var(--color-text);
}

.home-hero h1 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.home-hero p {
  font-size: 1rem;
  opacity: 0.9;
}

.products-section {
  padding: 32px 16px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.products-section .section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-text);
  text-align: center;
  position: relative;
}

.products-section .section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  margin: 8px auto 0;
  border-radius: var(--radius-full);
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* Product Card */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-lt);
}

.product-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #f0f0f0;
}

.product-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.badge-new {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

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

.product-card .card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.product-card .card-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--color-primary);
}

.product-card .card-price del {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-right: 6px;
}

.card-btn {
  display: block;
  width: 100%;
  padding: 11px 12px;
  background: var(--color-primary);
  color: var(--color-text);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-main);
  border: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
  margin-top: auto;
}

.card-btn:hover {
  background: var(--color-primary-dk);
  color: var(--color-text);
}

/* ===========================
   6. PRODUCT PAGE – GALLERY (shortcode)
=========================== */
.product-gallery {
  position: relative;
  background: #fff;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.gallery-main img.active {
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  background: none;
  padding: 0;
}

.gallery-thumb.active {
  border-color: var(--color-primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info Strip (shortcode) */
.product-info-strip {
  background: var(--color-white);
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
}

.product-info-strip .product-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-price-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-price-wrap .price-current {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-primary);
}

.product-price-wrap .price-old {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.save-badge {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

/* COD and Delivery badges */
.trust-badges {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #FFFBEB;
  border-bottom: 1px solid #FDE68A;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #78350F;
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===========================
   7. ORDER FORM (shortcode)
=========================== */
.order-form-section {
  background: var(--color-white);
  padding: 20px 16px;
  border-bottom: 6px solid var(--color-primary-lt);
}

.order-form-section .form-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 16px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--color-border);
}

.order-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (min-width: 480px) {
  .order-form .form-row.two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group .required-star {
  color: var(--color-danger);
  margin-right: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  background: white;
  transition: border-color 0.2s ease;
  direction: rtl;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 160, 0, 0.15);
}

.form-group input::placeholder {
  color: #adb5bd;
}

/* Quantity stepper */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-stepper input[type="number"] {
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  width: 100%;
  padding: 10px 6px;
  -moz-appearance: textfield;
}

.qty-stepper input[type="number"]::-webkit-outer-spin-button,
.qty-stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

.qty-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: none;
  background: #F3F4F6;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
}

.qty-btn:hover { background: var(--color-primary); color: white; }

/* Total summary box */
.total-summary {
  background: #FFFBEB;
  border: 2px solid var(--color-primary-lt);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-summary .summary-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.total-summary .summary-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-primary);
}

/* Delivery Type Toggle */
.delivery-type-toggle {
  display: flex;
  gap: 10px;
}

.delivery-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  background: var(--color-white);
  text-align: center;
}

.delivery-option input[type="radio"] {
  display: none;
}

.delivery-option-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.delivery-option-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.delivery-option:hover {
  border-color: var(--color-primary-lt);
  background: #FFFDF5;
}

.delivery-option.active {
  border-color: var(--color-primary);
  background: #FFFBEB;
  box-shadow: 0 0 0 3px rgba(255, 221, 68, 0.2);
}

.delivery-option.active .delivery-option-label {
  color: var(--color-text);
  font-weight: 700;
}

/* Price Breakdown (3-row) */
.price-breakdown {
  background: #FFFBEB;
  border: 2px solid var(--color-primary-lt);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.price-row-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.price-row-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.price-row-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 2px dashed var(--color-primary-lt);
}

.price-row-total .price-row-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.price-row-total .price-row-amount {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-primary);
}

/* Submit Button */
.submit-order-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: var(--color-primary);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  animation: pulse-btn 2s infinite;
  box-shadow: 0 4px 15px rgba(245,160,0,0.4);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, transform 0.15s ease;
}

.submit-order-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

.submit-order-btn:active::after {
  transform: translate(-50%, -50%) scale(100);
  opacity: 0;
  transition: 0s;
}

.submit-order-btn:hover {
  background: var(--color-primary-dk);
  transform: translateY(-1px);
}

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 4px 15px rgba(245,160,0,0.4); }
  50%        { box-shadow: 0 6px 28px rgba(245,160,0,0.7); }
}

.submit-order-btn .btn-icon {
  margin-left: 8px;
  font-size: 1.1rem;
}

/* ===========================
   8. LANDING PAGE MEDIA AREA
=========================== */
.landing-page-media {
  background: var(--color-white);
  padding: 0; /* Full width edge-to-edge */
  margin-top: 10px;
}

.landing-page-media .entry-content {
  width: 100%;
}

/* Remove gaps between images for a seamless look */
.landing-page-media .entry-content img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0; /* Keep it edge-to-edge */
  box-shadow: none;
}

/* Video handling (Full Width) */
.landing-page-media .entry-content video,
.landing-page-media .entry-content iframe,
.landing-page-media .entry-content .wp-block-video,
.landing-page-media .entry-content .wp-block-embed {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: none;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 16 / 9;
}

/* Fix responsive embeds */
.landing-page-media .entry-content .wp-embed-responsive .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.landing-page-media .entry-content .wp-embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Bottom CTA Wrap */
.bottom-cta-wrap {
  padding: 40px 16px 60px;
  background: #fdfdfd;
  text-align: center;
}

.bottom-order-btn {
  display: inline-block;
  width: 100%;
  max-width: 400px;
  padding: 18px 24px;
  background: var(--color-primary);
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: pulse-btn 2s infinite;
  transition: transform 0.2s ease;
}

.bottom-order-btn:hover {
  transform: scale(1.02);
  background: var(--color-primary-dk);
}

@media (max-width: 480px) {
  .bottom-order-btn {
    font-size: 1.1rem;
    padding: 16px 20px;
  }
}

/* ===========================
   9. STICKY MOBILE BUTTON
=========================== */
.sticky-order-bar {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  background: var(--color-white);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  z-index: 999;
  display: none;
}

.sticky-order-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  background: var(--color-primary);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(245,160,0,0.35);
  animation: pulse-btn 2s infinite;
}

@media (max-width: 768px) {
  .sticky-order-bar {
    display: block;
  }
}

/* ===========================
   10. THANK YOU PAGE
=========================== */
.thankyou-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.thankyou-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.thankyou-card .checkmark {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.2rem;
  box-shadow: 0 6px 20px rgba(255, 221, 68, 0.4);
}

.thankyou-card h1 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 12px;
}

.thankyou-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.thankyou-card strong {
  color: var(--color-primary);
  font-weight: 800;
}

.thankyou-card .back-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-primary);
  color: var(--color-text);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  transition: var(--transition);
}

.thankyou-card .back-btn:hover {
  background: var(--color-primary-dk);
  transform: translateY(-2px);
}

/* ===========================
   11. LOADING OVERLAY
=========================== */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--color-primary-lt);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   12. ALERTS / MESSAGES
=========================== */
.form-success-msg,
.form-error-msg {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: none;
}

.form-success-msg {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-error-msg {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ===========================
   13. WP / ELEMENTOR OVERRIDES
=========================== */
.woocommerce-page .entry-title,
.entry-title { display: none; }

/* Hide WooCommerce breadcrumbs */
.woocommerce-breadcrumb { display: none !important; }

/* Elementor full-width support */
.elementor-page .page-content-wrap,
.elementor-page .product-page-wrap {
  max-width: 100%;
  padding: 0;
}

/* Fix Elementor shortcode widget spacing */
.elementor-shortcode .product-gallery,
.elementor-shortcode .order-form-section,
.elementor-shortcode .product-info-strip,
.elementor-shortcode .trust-badges {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.elementor-shortcode .products-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.elementor-shortcode .sticky-order-bar {
  max-width: 100%;
}

/* ===========================
   14. SCROLL ANIMATIONS
=========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeInUp 0.5s ease forwards; }

/* ===========================
   15. BODY SCROLL LOCK (when mobile nav open)
=========================== */
body.nav-open {
  overflow: hidden;
}
