/* ===== PRODUCT PAGE - PREMIUM REDESIGN ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --orange: #ff5a00;
  --orange-dark: #e04e00;
  --orange-light: #fff4ed;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --green: #16a34a;
  --red: #dc2626;
  --star: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.pd-navbar {
  background: linear-gradient(135deg, #ff5a00 0%, #e04e00 100%);
  padding: 0 24px;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 10px rgba(255,90,0,0.3);
}
.pd-navbar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.pd-logo { display: flex; align-items: center; text-decoration: none; }
.pd-logo img { height: 70px; }
.pd-nav-links { display: flex; gap: 28px; }
.pd-nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 500; font-size: 14px; transition: color .2s; display: flex; align-items: center; gap: 6px; }
.pd-nav-links a:hover { color: #fff; }
.pd-nav-right { display: flex; align-items: center; gap: 16px; }
#account-icon {
  color: #fff !important;
  font-size: 22px !important;
  cursor: pointer;
  margin-right: 0 !important;
  order: unset !important;
  transition: opacity .2s;
}
#account-icon:hover { opacity: 0.8; }
.pd-cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(6px);
  padding: 8px 18px; border-radius: 30px; color: #fff;
  text-decoration: none; font-weight: 600; font-size: 14px;
  transition: background .2s;
}
.pd-cart-btn:hover { background: rgba(255,255,255,0.25); }
.pd-cart-btn i { font-size: 18px; }

/* ===== ANNOUNCEMENT BAR ===== */
.pd-announcement {
  background: var(--orange);
  color: white;
  text-align: right;
  padding: 6px 40px;
  font-size: 13px;
  font-weight: 500;
}
.pd-announcement a { color: white; text-decoration: none; }

/* ===== BREADCRUMBS ===== */
.pd-breadcrumbs {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 40px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.pd-breadcrumbs a {
  color: var(--gray-500); text-decoration: none; transition: color .2s;
}
.pd-breadcrumbs a:hover { color: var(--orange); }
.pd-breadcrumbs span { color: var(--gray-300); }
.pd-breadcrumbs .active { color: var(--orange); font-weight: 600; }

/* ===== PRODUCT LAYOUT ===== */
.pd-product-section {
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ===== GALLERY ===== */
.pd-gallery { position: relative; }
.pd-main-image {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-200);
}
.pd-main-image img {
  max-width: 90%; max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s;
  cursor: zoom-in;
}
.pd-main-image:hover img { transform: scale(1.05); }
.pd-zoom-btn {
  position: absolute; top: 16px; right: 16px;
  background: white; border: 1px solid var(--gray-200);
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: var(--gray-600);
  transition: all .2s; z-index: 5;
}
.pd-zoom-btn:hover { background: var(--orange); color: white; border-color: var(--orange); }
.pd-discount-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--red); color: white;
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 700; z-index: 5;
}
.pd-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: white; border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; color: var(--gray-600);
  transition: all .2s; z-index: 5;
}
.pd-gallery-nav:hover { background: var(--orange); color: white; border-color: var(--orange); }
.pd-gallery-nav.prev { left: 12px; }
.pd-gallery-nav.next { right: 12px; }
.pd-thumbnails {
  display: flex; gap: 10px; margin-top: 12px;
}
.pd-thumbnails .thumb {
  width: 72px; height: 72px;
  border-radius: 10px; overflow: hidden;
  border: 2px solid var(--gray-200);
  cursor: pointer; transition: all .2s;
  background: white;
}
.pd-thumbnails .thumb:hover,
.pd-thumbnails .thumb.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255,90,0,0.2);
}
.pd-thumbnails .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== ADDITIONAL PRODUCT CSS ===== */
.pd-desc-text {
  position: relative;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.pd-desc-text.collapsed {
  max-height: 120px;
}
.pd-desc-text.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}
.pd-read-more {
  background: none;
  border: none;
  color: #ff5a00;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  transition: color 0.2s;
}
.pd-read-more:hover {
  color: #e04e00;
}

/* ===== PRODUCT INFO ===== */
.pd-info { display: flex; flex-direction: column; gap: 16px; }
.pd-badges {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.pd-badge {
  display: flex; align-items: center; gap: 6px;
  background: var(--orange-light);
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; color: var(--orange);
}
.pd-badge i { font-size: 14px; }
.pd-title {
  font-size: 28px; font-weight: 800; color: var(--gray-900);
  line-height: 1.2;
}
.pd-title pre {
  font-family: 'Inter', sans-serif;
  font-size: inherit; font-weight: inherit;
  white-space: pre-wrap; margin: 0;
}
.pd-rating {
  display: flex; align-items: center; gap: 8px;
}
.pd-rating .stars { color: var(--star); font-size: 18px; display: flex; gap: 2px; }
.pd-rating .count { color: var(--gray-500); font-size: 14px; }
.pd-price-row {
  display: flex; align-items: baseline; gap: 12px;
}
.pd-price {
  font-size: 32px; font-weight: 800; color: var(--orange);
}
.pd-old-price {
  font-size: 18px; color: var(--gray-400);
  text-decoration: line-through;
}
.pd-discount-tag {
  background: #fee2e2; color: var(--red);
  padding: 3px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
}
.pd-stock {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
}
.pd-stock.in-stock { color: var(--green); }
.pd-stock.out-of-stock { color: var(--red); }
.pd-stock i { font-size: 16px; }
.pd-likes {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--gray-600);
}

/* Quantity & Actions */
.pd-quantity-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.pd-quantity-row label {
  font-size: 14px; font-weight: 600; color: var(--gray-700);
  margin-right: 8px;
}
.pd-qty-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--gray-200); background: white;
  font-size: 18px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all .2s; color: var(--gray-600);
}
.pd-qty-btn:hover { background: var(--gray-100); }
.pd-qty-input {
  width: 48px; height: 36px; text-align: center;
  border: 1px solid var(--gray-200); border-radius: 8px;
  font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif;
}
.pd-actions {
  display: flex; gap: 12px; align-items: center;
}
.pd-add-cart {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--orange), #ff7a1a);
  color: white; border: none; padding: 14px 24px;
  border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .3s;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 15px rgba(255,90,0,0.3);
}
.pd-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,90,0,0.4);
}
.pd-save-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: white; border: 1px solid var(--gray-200);
  padding: 14px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; color: var(--gray-600);
  font-family: 'Inter', sans-serif;
}
.pd-save-btn:hover { border-color: var(--orange); color: var(--orange); }

/* USP Box */
.pd-usp-box {
  background: var(--orange-light);
  border: 1px solid #ffe0cc;
  border-radius: 12px; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
}
.pd-usp-box i {
  font-size: 28px; color: var(--orange); flex-shrink: 0;
}
.pd-usp-box h4 { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.pd-usp-box p { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* Trust Strip */
.pd-trust-strip {
  display: flex; gap: 20px; padding: 16px 0;
  border-top: 1px solid var(--gray-200);
}
.pd-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--gray-600);
}
.pd-trust-item i { font-size: 18px; color: var(--orange); }

/* ===== TABS ===== */
.pd-tabs-section {
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px 40px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px;
}
.pd-tabs-nav {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 20px;
}
.pd-tabs-nav button {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 12px 20px; margin-bottom: -2px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--gray-500); cursor: pointer; transition: all .2s;
}
.pd-tabs-nav button.active,
.pd-tabs-nav button:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.pd-tab-content { display: none; }
.pd-tab-content.active { display: block; }
.pd-tab-content p, .pd-tab-content pre {
  font-size: 14px; line-height: 1.8; color: var(--gray-600);
  font-family: 'Inter', sans-serif; white-space: pre-wrap;
}
.pd-details-card {
  background: white; border-radius: 16px;
  border: 1px solid var(--gray-200);
  padding: 24px;
}
.pd-details-card h3 {
  font-size: 18px !important; font-weight: 700 !important; color: var(--gray-800) !important;
  margin-bottom: 16px !important;
  background: none !important; border: none !important;
  padding: 0 !important; border-radius: 0 !important;
  box-shadow: none !important;
}
.pd-details-card pre {
  font-family: 'Inter', sans-serif;
  font-size: 14px; line-height: 2; color: var(--gray-600);
  white-space: pre-wrap;
}
.pd-details-card .detail-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0;
}
.pd-details-card .detail-row i {
  color: var(--orange); font-size: 16px; margin-top: 2px;
}

/* ===== REVIEWS ===== */
.pd-reviews-section {
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px 40px;
}
.pd-reviews-section h2 {
  font-size: 22px; font-weight: 700; color: var(--gray-800);
  margin-bottom: 20px;
}
.pd-review-form {
  background: white; border-radius: 16px;
  border: 1px solid var(--gray-200);
  padding: 24px; margin-bottom: 24px;
}
.pd-review-form textarea {
  width: 100%; border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 12px; font-family: 'Inter', sans-serif;
  font-size: 14px; resize: vertical; min-height: 80px;
  transition: border-color .2s;
}
.pd-review-form textarea:focus {
  outline: none; border-color: var(--orange);
}
.pd-review-form button[type="submit"] {
  background: var(--orange); color: white; border: none;
  padding: 10px 24px; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 14px; cursor: pointer; transition: all .2s;
  margin-top: 12px;
}
.pd-review-form button[type="submit"]:hover {
  background: var(--orange-dark);
}
#star-rating label, #star-rating-edit label, #star-rating-reply label {
  font-size: 28px; color: var(--gray-300); cursor: pointer;
  transition: color .2s;
}
#star-rating label:hover, #star-rating label:hover ~ label,
#star-rating-edit label:hover, #star-rating-reply label:hover {
  color: var(--star);
}
#comments-container {
  background: white; border-radius: 16px;
  border: 1px solid var(--gray-200);
  padding: 24px;
}
#comments-container hr { border: none; border-top: 1px solid var(--gray-100); margin: 16px 0; }

/* ===== CAROUSEL SECTION ===== */
.pd-carousel-section {
  max-width: 1280px; margin: 0 auto;
  padding: 20px 40px 60px;
  background: transparent;
}
.pd-carousel-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 24px;
}
.pd-carousel-header h2 {
  font-size: 22px; font-weight: 700; color: var(--gray-900);
  display: flex; align-items: center; gap: 8px;
}
.pd-carousel-header .sparkle { color: var(--orange); }
.pd-carousel-header p { color: var(--gray-500); font-size: 14px; margin-top: 4px; }
.pd-carousel-header .btn-outline {
  border: 1px solid var(--orange); color: var(--orange);
  padding: 8px 20px; border-radius: 20px;
  text-decoration: none; font-weight: 600; font-size: 14px;
  transition: all .3s;
}
.pd-carousel-header .btn-outline:hover {
  background: var(--orange); color: white;
}

/* --- FNAF carousel outer flex row inside product page --- */
.pd-carousel-section .fnaf-carousel-outer {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

/* Clip container */
.pd-carousel-section .products-container.fnaf-clip {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  flex: 1 !important;
  position: relative !important;
}

/* Product wrapper */
.pd-carousel-section .products-wrapper {
  display: flex !important;
  gap: 18px !important;
  transition: transform 0.4s ease !important;
  padding: 5px 0 !important;
}

/* Product cards */
.pd-carousel-section .product {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  background: white !important;
  border-radius: 14px !important;
  border: 1px solid #f0f0f0 !important;
  padding: 12px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
}

.pd-carousel-section .product:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
  border-color: #ff5000 !important;
}

.pd-carousel-section .product h3 {
  color: #000 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
  text-align: left !important;
  background: none !important;
}

/* Image wrapper */
.pd-carousel-section .fnaf-img-wrapper {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f5f5f5;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-carousel-section .fnaf-img-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

/* Stars */
.pd-carousel-section .stars {
  color: #ffc107 !important;
  font-size: 12px !important;
  margin-bottom: 5px !important;
  display: flex !important;
  gap: 1px !important;
  align-items: center !important;
}

.pd-carousel-section .stars i {
  color: #ffc107 !important;
}

.pd-carousel-section .rating-count {
  color: #000 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin-left: 4px !important;
}

/* Price */
.pd-carousel-section .product .price {
  color: #ff5000 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* Price + cart row */
.pd-carousel-section .fnaf-price-cart {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.pd-carousel-section .fnaf-price-cart .cart-btn-round {
  width: 34px;
  height: 34px;
  background: #ff5000;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 80, 0, 0.25);
  flex-shrink: 0;
}

/* Arrows */
.pd-carousel-section .fnaf-carousel-outer .arrow {
  position: relative !important;
  z-index: 10 !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 50% !important;
  background: white !important;
  color: #666 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border: 1px solid #e0e0e0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  font-size: 22px !important;
  flex-shrink: 0 !important;
}

.pd-carousel-section .fnaf-carousel-outer .arrow:hover {
  background: #ff5000 !important;
  color: white !important;
  border-color: #ff5000 !important;
  box-shadow: 0 4px 12px rgba(255, 80, 0, 0.3) !important;
  transform: scale(1.05) !important;
}

/* Carousel dots inside product page */
.pd-carousel-section ~ .carousel-dots,
.pd-carousel-section + .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.pd-carousel-section ~ .carousel-dots .carousel-dot,
.pd-carousel-section + .carousel-dots .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pd-carousel-section ~ .carousel-dots .carousel-dot.active,
.pd-carousel-section + .carousel-dots .carousel-dot.active {
  background: #ff5000;
  transform: scale(1.2);
}

.pd-carousel-section ~ .carousel-dots .carousel-dot:hover,
.pd-carousel-section + .carousel-dots .carousel-dot:hover {
  background: #ff8040;
}

/* ===== FOOTER ===== */
.pd-footer {
  background: white; border-top: 1px solid var(--gray-200);
  padding: 40px;
}
.pd-footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.pd-footer p { font-size: 13px; color: var(--gray-500); }
.pd-footer a { color: var(--gray-600); text-decoration: none; font-size: 13px; }
.pd-footer a:hover { color: var(--orange); }
.pd-footer h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

/* ===== TRUST BADGES BOTTOM ===== */
.pd-trust-bottom {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1280px; margin: 0 auto 30px;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.pd-trust-bottom .badge-item {
  display: flex; align-items: center; gap: 15px;
}
.pd-trust-bottom .badge-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff0e6;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pd-trust-bottom .badge-icon i { color: var(--orange); font-size: 24px; }
.pd-trust-bottom h4 { font-size: 15px; font-weight: 700; color: #000; margin: 0 0 5px; }
.pd-trust-bottom p { font-size: 13px; color: #666; margin: 0; line-height: 1.4; }

/* Options buttons */
.pd-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-options button {
  padding: 8px 20px; border-radius: 8px;
  border: 1px solid var(--gray-200); background: white;
  font-family: 'Inter', sans-serif; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: all .2s;
}
.pd-options button:hover, .pd-options button.active {
  border-color: var(--orange); color: var(--orange);
  background: var(--orange-light);
}

/* Modals */
.image-modal {
  display: none; position: fixed; z-index: 9999;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center; justify-content: center;
}
.image-modal.active { display: flex; }
.modal-content-image { max-width: 80%; max-height: 80%; object-fit: contain; }
.modal-close {
  position: absolute; top: 20px; right: 30px;
  color: white; font-size: 36px; cursor: pointer;
}
.modal-prev, .modal-next {
  position: absolute; top: 50%; color: white;
  font-size: 36px; cursor: pointer;
}
.modal-prev { left: 20px; }
.modal-next { right: 20px; }

/* ===== PREMIUM REVIEW MODALS ===== */
.pd-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  z-index: 10000; display: none; align-items: center; justify-content: center;
  animation: pdFadeIn .2s ease;
}
.pd-modal-overlay.active { display: flex; }
@keyframes pdFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pdSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pd-modal {
  background: #fff; border-radius: 16px;
  padding: 32px; max-width: 480px; width: 90%;
  text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  animation: pdSlideUp .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}
.pd-modal-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 16px;
}
.pd-modal-icon--edit { background: #fff7ed; color: var(--orange); }
.pd-modal-icon--reply { background: #eff6ff; color: #3b82f6; }
.pd-modal-icon--delete { background: #fef2f2; color: #ef4444; }
.pd-modal-icon--success { background: #f0fdf4; color: #22c55e; }
.pd-modal-icon--error { background: #fef2f2; color: #ef4444; }

.pd-modal h3 {
  font-size: 18px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 6px;
}
.pd-modal p {
  font-size: 14px; color: var(--gray-500); margin-bottom: 20px;
  line-height: 1.5;
}
.pd-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--gray-500); font-size: 22px; padding: 4px;
  transition: color .2s; line-height: 1;
}
.pd-modal-close:hover { color: var(--gray-700); }

/* Modal form styles */
.pd-modal-form { text-align: left; }
.pd-modal-form .pd-modal-star-row {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 14px; justify-content: center;
}
.pd-modal-form .pd-modal-star-row label {
  font-size: 28px !important; color: var(--gray-300);
  cursor: pointer; transition: color .2s;
}
.pd-modal-form .pd-modal-star-row label.pd-star-active {
  color: #f1c40f !important;
}
.pd-modal-form .pd-modal-star-row label.pd-star-inactive {
  color: var(--gray-300) !important;
}
.pd-modal-form textarea {
  width: 100%; border: 1.5px solid var(--gray-200);
  border-radius: 10px; padding: 12px 14px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  resize: vertical; min-height: 90px; color: var(--gray-800);
  transition: border-color .2s, box-shadow .2s; outline: none;
  background: #fff;
}
.pd-modal-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,90,0,0.1);
}
.pd-modal-form textarea::placeholder { color: var(--gray-500); }

.pd-modal-actions {
  display: flex; gap: 12px; justify-content: center; margin-top: 20px;
}
.pd-modal-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 24px; border: none; border-radius: 30px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all .2s;
}
.pd-modal-btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,90,0,0.3);
}
.pd-modal-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,90,0,0.4);
}
.pd-modal-btn--danger {
  background: #ef4444; color: #fff;
}
.pd-modal-btn--danger:hover { background: #dc2626; }
.pd-modal-btn--cancel {
  background: #fff; border: 2px solid var(--gray-300);
  color: var(--gray-700);
}
.pd-modal-btn--cancel:hover { border-color: var(--gray-400); }
.pd-modal-btn i { font-size: 18px; }

/* ===== TOAST NOTIFICATIONS ===== */
.pd-toast-container {
  position: fixed; top: 24px; right: 24px;
  z-index: 10001; display: flex; flex-direction: column;
  gap: 10px; pointer-events: none;
}
.pd-toast {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 12px;
  padding: 14px 20px; min-width: 300px; max-width: 420px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-left: 4px solid var(--orange);
  pointer-events: auto;
  animation: pdToastIn .35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all .3s ease;
}
.pd-toast.pd-toast--out {
  animation: pdToastOut .3s ease forwards;
}
@keyframes pdToastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes pdToastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
.pd-toast--success { border-left-color: #22c55e; }
.pd-toast--error { border-left-color: #ef4444; }
.pd-toast--warning { border-left-color: #f59e0b; }
.pd-toast-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.pd-toast--success .pd-toast-icon { background: #f0fdf4; color: #22c55e; }
.pd-toast--error .pd-toast-icon { background: #fef2f2; color: #ef4444; }
.pd-toast--warning .pd-toast-icon { background: #fffbeb; color: #f59e0b; }
.pd-toast-body { flex: 1; }
.pd-toast-title { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.pd-toast-msg { font-size: 13px; color: var(--gray-500); line-height: 1.4; }
.pd-toast-close {
  background: none; border: none; color: var(--gray-400);
  font-size: 18px; cursor: pointer; padding: 4px;
  transition: color .2s; flex-shrink: 0;
}
.pd-toast-close:hover { color: var(--gray-700); }

/* ===== OLD MODAL COMPAT (hidden) ===== */
.modal {
  display: none !important;
}
.modal-content .close { display: none; }

/* Hide old elements that conflict */
.loading-screen { display: none !important; }
.sidebar { display: none !important; }
#overlay { display: none !important; }
header { display: none !important; }
.grid-second-nav { display: none !important; }
.grid.product { display: none !important; }
.custom-product-description-box { display: none !important; }
.custom-product-description-box1 { display: none !important; }
#reviews { display: none !important; }
.highlighted-collection { display: none !important; }
footer:not(.site-footer) { display: none !important; }
.mobile-title { display: none !important; }

/* ===== MOBILE MENU ===== */
.pd-mobile-menu,
.pd-overlay,
.pd-sidebar {
  display: none;
}

.pd-logo-wordmark { display: none; }
.pd-cart-mobile { display: none; }

/* ===== RESPONSIVE TABLET ===== */
@media (max-width: 900px) {
  .pd-product-section { grid-template-columns: 1fr; gap: 24px; }
  .pd-tabs-section { grid-template-columns: 1fr; }
  .pd-nav-links { display: none; }
  .pd-breadcrumbs { padding: 12px 20px; }
  .pd-product-section { padding: 0 20px 24px; }
  .pd-tabs-section { padding: 0 20px 24px; }
  .pd-reviews-section { padding: 0 20px 24px; }
  .pd-carousel-section { padding: 20px 20px 40px; }
  .pd-trust-bottom { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 24px 20px; margin: 0 20px 20px; }
  .pd-footer-inner { grid-template-columns: 1fr; }
  .pd-carousel-section .fnaf-carousel-outer .arrow { width: 32px !important; height: 32px !important; min-width: 32px !important; font-size: 18px !important; }
}

/* ===== MOBILE PRODUCT PAGE (mockup) ===== */
@media (max-width: 768px) {
  .pd-carousel-section .fnaf-carousel-outer .arrow { display: none !important; }
  body {
    background: #fff;
    padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .pd-navbar {
    padding: 0 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 6px rgba(255, 90, 0, 0.25);
  }

  .pd-navbar-inner {
    height: 44px;
    position: relative;
  }

  .pd-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 2px;
    cursor: pointer;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
  }

  .pd-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    max-width: 52%;
  }

  .pd-logo-desktop { display: none !important; }

  .pd-logo-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    line-height: 1;
  }

  .pd-logo-mark {
    display: block;
    width: 80px !important;
    height: 80px !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
  }

  .pd-logo-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .pd-logo img {
    height: auto !important;
    max-height: none !important;
  }

  .pd-nav-links,
  .pd-cart-btn-desktop {
    display: none !important;
  }

  .pd-nav-right {
    gap: 8px;
    margin-left: auto;
    min-width: 72px;
    justify-content: flex-end;
  }

  #account-icon {
    font-size: 20px !important;
  }

  .pd-cart-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    width: 32px;
    height: 32px;
  }

  .pd-cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #e53935;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff5000;
  }

  .pd-cart-badge:empty,
  .pd-cart-badge[data-count="0"] {
    display: none;
  }

  .pd-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

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

  .pd-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: min(88%, 300px);
    height: 100vh;
    background: #fff;
    z-index: 10002;
    padding: 16px 18px 24px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }

  .pd-sidebar.active {
    transform: translateX(0);
  }

  /* Commented out conflicting mobile sidebar elements to match premium.css styles
  .pd-sidebar-close {
    align-self: flex-end;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 4px;
  }

  .pd-sidebar-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin: 8px 0 14px;
  }

  .pd-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
  }

  .pd-sidebar a i {
    color: #ff5000;
    font-size: 18px;
  }
  */

  /* Breadcrumbs */
  .pd-breadcrumbs {
    padding: 6px 12px;
    font-size: 10px;
    gap: 3px;
    line-height: 1.3;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
  }

  .pd-breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  .pd-breadcrumbs a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .pd-breadcrumbs .active {
    white-space: nowrap;
    flex-shrink: 0;
    color: #ff5000;
    font-weight: 600;
  }

  /* Gallery */
  .pd-product-section {
    padding: 6px 12px 10px;
    gap: 6px;
  }

  .pd-gallery {
    order: 0;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    align-items: flex-start;
  }

  .pd-main-image {
    flex: 1;
    border-radius: 12px;
    border: 1px solid #eee;
    aspect-ratio: 1 / 1;
    max-height: none;
    width: auto;
  }

  .pd-main-image img {
    max-width: 90%;
    max-height: 90%;
  }

  .pd-main-image:hover img {
    transform: none;
  }

  .pd-zoom-btn {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .pd-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    width: 52px;
    flex-shrink: 0;
  }

  .pd-thumbnails::-webkit-scrollbar {
    display: none;
  }

  .pd-thumbnails .thumb {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 8px;
  }

  .pd-thumbnails .thumb.active {
    border-color: #ff5000;
    box-shadow: 0 0 0 2px rgba(255, 80, 0, 0.25);
  }

  /* Product info order */
  .pd-info {
    gap: 4px;
    margin: 0;
  }

  .pd-info > * {
    margin: 0 !important;
  }

  .pd-info small {
    font-size: 11px !important;
    line-height: 1.35;
    margin-top: 0 !important;
  }

  .pd-info .pd-title { order: 1; }
  .pd-info .pd-rating { order: 2; }
  .pd-info .pd-price-row { order: 3; }
  .pd-info .pd-stock { order: 4; }
  .pd-info .pd-likes { order: 5; }
  .pd-info .pd-badges { order: 6; }
  .pd-info .pd-actions { order: 7; }
  .pd-info #textoptiuni,
  .pd-info .pd-options { order: 8; }
  .pd-info .pd-usp-box { order: 9; }
  .pd-info .pd-trust-strip { order: 10; }

  .pd-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
  }

  .pd-rating {
    margin: 0 !important;
    gap: 4px;
  }

  .pd-rating .stars i {
    font-size: 13px !important;
  }

  .pd-rating .rating-count {
    font-size: 12px !important;
    color: #666 !important;
    margin-left: 4px !important;
  }

  .pd-price-row {
    margin: 0 !important;
    gap: 6px;
  }

  .pd-price {
    font-size: 22px;
    font-weight: 800;
    color: #ff5000;
    line-height: 1.1;
  }

  .pd-stock {
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
  }

  .pd-stock i {
    font-size: 14px !important;
  }

  .pd-likes {
    font-size: 11px;
    color: #888;
    margin: 0 !important;
  }

  .pd-badges {
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .pd-badges::-webkit-scrollbar {
    display: none;
  }

  .pd-badge {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #fff5f0;
    color: #ff5000;
  }

  .pd-badge i {
    font-size: 12px !important;
  }

  .pd-actions {
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 2px !important;
  }

  .pd-add-cart,
  .pd-save-btn {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    padding: 11px 14px;
  }

  .pd-add-cart {
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(255, 80, 0, 0.3);
  }

  .pd-save-btn {
    font-size: 13px;
    padding: 10px 14px;
  }

  .pd-save-btn {
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #555;
  }

  .pd-usp-box {
    border-radius: 10px;
    padding: 10px 12px;
    gap: 10px;
    background: #fff8f3;
    border-color: #ffe8d6;
    margin-top: 2px !important;
  }

  .pd-usp-box i {
    font-size: 22px !important;
  }

  .pd-usp-box h4 {
    font-size: 12px !important;
    margin: 0;
  }

  .pd-usp-box p {
    font-size: 11px !important;
    margin-top: 1px !important;
    line-height: 1.35;
  }

  .pd-trust-strip {
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 8px 0 0;
    border-top: 1px solid #f0f0f0;
    justify-content: space-between;
    margin-top: 2px !important;
  }

  .pd-trust-item {
    flex: 1 1 30%;
    min-width: 72px;
    font-size: 9px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
  }

  .pd-trust-item i {
    font-size: 16px;
  }

  /* Tabs */
  .pd-tabs-section {
    padding: 0 12px 16px;
    display: block;
    margin-top: 4px;
  }

  .pd-tabs-section > div:first-child {
    width: 100%;
  }

  .pd-details-card {
    display: none;
  }

  .pd-tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    margin-bottom: 8px;
  }

  .pd-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .pd-tabs-nav button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12px;
  }

  .pd-tab-content p,
  .pd-tab-content pre {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
  }

  /* Reviews */
  .pd-reviews-section {
    padding: 0 12px 16px;
  }

  .pd-reviews-section h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .pd-review-form,
  #comments-container {
    border-radius: 12px;
    padding: 16px;
  }

  /* Carousel + extras */
  .pd-carousel-section {
    padding: 4px 12px 12px;
  }

  .pd-carousel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .pd-carousel-header h2 {
    font-size: 16px;
  }

  .pd-carousel-header .btn-outline {
    font-size: 12px;
    padding: 6px 14px;
  }

  .pd-trust-bottom {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 16px !important;
    margin: 0 12px 20px !important;
  }
  .pd-trust-bottom .badge-item {
    gap: 8px !important;
    flex-direction: row !important;
    align-items: flex-start !important;
  }
  .pd-trust-bottom .badge-icon {
    width: 32px !important;
    height: 32px !important;
    margin-top: 2px !important;
  }
  .pd-trust-bottom .badge-icon i {
    font-size: 16px !important;
  }
  .pd-trust-bottom h4 {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }
  .pd-trust-bottom p {
    font-size: 10px !important;
  }

  .pd-footer {
    display: block !important;
    padding: 24px 16px !important;
  }
  .pd-footer-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    text-align: center !important;
  }
  .pd-footer-inner > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .pd-footer-inner p {
    font-size: 11px !important;
  }
  .pd-footer-inner h4 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }
  .pd-footer-inner a {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  .pd-footer-inner .social-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    justify-content: center !important;
  }


  .pd-carousel-section .product {
    /* Width calculated dynamically by JS */
  }
}

/* Review comment buttons */
#comments-container button.reply,
#comments-container button.edit,
#comments-container button.delete {
  background: var(--orange) !important;
  color: white !important;
  border: none !important;
  padding: 6px 16px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .2s !important;
}
#comments-container button.delete {
  background: #ef4444 !important;
}
#comments-container button.delete:hover {
  background: #dc2626 !important;
}
#comments-container button.reply:hover,
#comments-container button.edit:hover {
  background: var(--orange-dark) !important;
}
#comments-container .separator { color: var(--gray-300); }

/* ===== MODAL + TOAST RESPONSIVE ===== */
@media (max-width: 600px) {
  .pd-modal { padding: 24px 20px; max-width: 95%; }
  .pd-modal-actions { flex-direction: column; }
  .pd-modal-btn { width: 100%; justify-content: center; }
  .pd-toast-container { top: 12px; right: 12px; left: 12px; }
  .pd-toast { min-width: unset; width: 100%; }
}
