/* ============================================================
   MAKTRONICS E-COMMERCE, ADMIN & BLOG ADD-ON STYLESHEET
   Extends global design tokens and layout utility classes
   ============================================================ */

/* ============================================================
   1. SHOPPING CART NAVIGATION & DRAWER
   ============================================================ */
.nav-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  margin-right: 12px;
}

.nav-cart-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.2);
}

.nav-cart-btn i {
  font-size: 1.1rem;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gradient-accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.72rem;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(79, 195, 247, 0.4);
}

/* Slide-out Cart Sidebar */
.cart-drawer-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1005;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(25px);
  border-left: 1px solid var(--glass-border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1006;
  display: flex;
  flex-direction: column;
  transition: var(--transition-slow);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.cart-close-btn:hover {
  color: var(--accent);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  background: rgba(25, 118, 210, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 12px;
  position: relative;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-card);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.qty-selector {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--accent);
}

.qty-num {
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.item-remove-btn {
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.item-remove-btn:hover {
  color: #ff5f56;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  gap: 16px;
}

.cart-empty-state i {
  font-size: 3rem;
  color: var(--bg-elevated);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--glass-border);
  background: rgba(6, 14, 26, 0.7);
}

.cart-totals {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-totals-price {
  color: var(--accent);
}

/* ============================================================
   2. CHECKOUT MODAL & ORDER FORM
   ============================================================ */
.checkout-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1010;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 20px;
}

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

.checkout-modal {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow-y: auto;
  position: relative;
  animation: fadeInUp 0.4s var(--ease) forwards;
}

.checkout-header {
  padding: 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-body {
  padding: 24px;
}

.checkout-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.checkout-summary-row.total {
  border-top: 1px solid rgba(25, 118, 210, 0.10);
  padding-top: 12px;
  margin-bottom: 0;
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
}

.checkout-summary-row.total span:last-child {
  color: var(--accent);
}

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

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

/* Success Overlay */
.order-success-screen {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.1);
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 2.5rem;
  margin-bottom: 10px;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.3);
  animation: scaleUp 0.5s var(--ease) forwards;
}

@keyframes scaleUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.order-id-badge {
  background: var(--accent-subtle);
  border: 1px dashed var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ============================================================
   3. BLOG LAYOUT & STYLES (blog.html)
   ============================================================ */
.blog-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
}

.blog-search-box {
  position: relative;
  min-width: 250px;
}

.blog-search-box input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--white);
  font-size: 0.88rem;
  transition: var(--transition);
}

.blog-search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.2);
}

.blog-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
}

.blog-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg-card);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 1px;
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-meta span i {
  margin-right: 6px;
}

.blog-card-content h3 {
  font-size: 1.18rem;
  font-family: var(--font-body);
  line-height: 1.4;
  margin-bottom: 12px;
  transition: var(--transition);
}

.blog-card:hover .blog-card-content h3 {
  color: var(--accent);
}

.blog-card-content p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* Single Blog Post View */
.blog-post-view {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-post-header .blog-category-badge {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}

.blog-post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 20px;
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.blog-post-cover {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .blog-post-cover {
    height: 250px;
  }
}

.blog-post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.blog-post-body p {
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.blog-post-body h3 {
  margin: 40px 0 16px;
  font-family: var(--font-body);
  font-size: 1.4rem;
}

.blog-post-body ul, .blog-post-body ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.blog-post-body li {
  margin-bottom: 8px;
  position: relative;
  list-style-type: disc;
}

.blog-post-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 24px;
  background: var(--accent-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  margin: 32px 0;
  font-size: 1.1rem;
}

.blog-post-body blockquote p {
  margin-bottom: 0;
  color: var(--white);
}

.blog-post-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ============================================================
   4. ADMIN PANEL (admin.html)
   ============================================================ */
/* Login Overlay */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--gradient-hero);
  position: relative;
}

.admin-login-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.admin-login-card .logo-img {
  height: 50px;
  margin: 0 auto 16px;
}

/* Admin Dashboard Structure */
.admin-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--bg-primary);
}

.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.admin-brand img {
  height: 32px;
}

.admin-brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.admin-nav {
  padding: 24px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
  background: var(--accent-subtle);
  color: var(--accent);
}

.admin-nav-btn.logout {
  margin-top: auto;
  border-top: 1px solid rgba(25, 118, 210, 0.06);
  border-radius: 0;
  padding-top: 20px;
}

.admin-nav-btn.logout:hover {
  background: none;
  color: #ff5f56;
}

.admin-main {
  padding: 40px;
  overflow-y: auto;
  height: 100vh;
  box-sizing: border-box;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 20px;
}

/* Overview Panels */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  padding: 24px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.metric-header i {
  color: var(--accent);
  font-size: 1.1rem;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-heading);
}

/* Content Screens */
.admin-panel-screen {
  display: none;
}

.admin-panel-screen.active {
  display: block;
}

/* Tables and grids in Admin */
.admin-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 16px;
  border-bottom: 2px solid var(--glass-border);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(25, 118, 210, 0.06);
  font-size: 0.88rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(25, 118, 210, 0.03);
  color: var(--text-primary);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pending {
  background: rgba(255, 171, 64, 0.1);
  color: var(--orange);
  border: 1px solid rgba(255, 171, 64, 0.2);
}

.status-badge.shipped {
  background: rgba(79, 195, 247, 0.1);
  color: var(--accent);
  border: 1px solid rgba(79, 195, 247, 0.2);
}

.status-badge.delivered {
  background: rgba(0, 230, 118, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

/* Detail list in order details */
.order-detail-items {
  margin-top: 12px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  background: rgba(25, 118, 210, 0.02);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(25, 118, 210, 0.06);
}

.action-row-btns {
  display: flex;
  gap: 8px;
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}

.action-icon-btn:hover {
  background: var(--glass-bg-hover);
  color: var(--accent);
}

.action-icon-btn.delete:hover {
  border-color: rgba(255, 95, 86, 0.4);
  color: #ff5f56;
}

.admin-grid-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 30px;
}

@media (max-width: 992px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Mobile responsive admin drawer toggle */
.admin-mobile-header {
  display: none;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 24px;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .admin-container {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    top: 0; left: -260px;
    width: 250px;
    z-index: 1020;
    box-shadow: 10px 0 30px rgba(25, 118, 210, 0.10);
    transition: var(--transition-slow);
  }

  .admin-sidebar.active {
    left: 0;
  }

  .admin-mobile-header {
    display: flex;
  }

  .admin-main {
    padding: 24px 16px;
  }
}

/* ============================================================
   5. PRODUCT GALLERY THUMBNAILS & UPLOADER STYLES
   ============================================================ */
.product-thumbnails {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.product-thumbnail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(25, 118, 210, 0.08);
  border: 1px solid rgba(25, 118, 210, 0.15);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.product-thumbnail-dot:hover,
.product-thumbnail-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform: scale(1.25);
}

/* Dynamic main image preview transitions */
.product-img img {
  transition: opacity 0.3s ease-in-out;
}

.product-img img.fade-out {
  opacity: 0.1;
}

/* Base64 Preview elements hover and styling */
#ap-image-preview-container img,
#ap-subimages-preview-grid img {
  display: block;
  transition: transform 0.3s ease;
}

#ap-image-preview-container:hover img,
#ap-subimages-preview-grid > div:hover img {
  transform: scale(1.05);
}

#ap-image-preview-remove:hover,
#ap-subimages-preview-grid .remove-btn:hover {
  background: #ff1744 !important;
  color: #ffffff !important;
  transform: scale(1.1);
}

/* ============================================================
   6. AMAZON-STYLE PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-section {
  padding: 40px 0;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

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

/* Left Column: Gallery */
.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-main-img-wrap {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(25, 118, 210, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.detail-main-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease-in-out;
}

.detail-main-img-wrap img.fade-out {
  opacity: 0.15;
}

.detail-thumbnails-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-thumb {
  width: 70px;
  height: 55px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(25, 118, 210, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.6;
}

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

.detail-thumb:hover {
  opacity: 1;
  border-color: rgba(25, 118, 210, 0.3);
}

.detail-thumb.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(25, 118, 210, 0.2);
}

/* Right Column: Info */
.product-detail-info {
  display: flex;
  flex-direction: column;
}

.detail-badge-rating {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.detail-rating i {
  color: #ffca28;
}

.detail-rating span {
  margin-left: 4px;
  color: var(--text-muted);
}

.detail-title {
  font-size: 2.0rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 12px;
}

.detail-price-wrap {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(25, 118, 210, 0.08);
}

.detail-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-heading);
}

.detail-shipping-label {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-description-wrap h4 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-description-wrap p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Purchase Control Panel */
.detail-purchase-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(25, 118, 210, 0.02);
  border: 1px solid var(--glass-border);
  padding: 24px;
  border-radius: var(--radius-md);
}

.detail-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-qty-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.detail-buy-btns {
  display: flex;
  gap: 12px;
}

@media (max-width: 480px) {
  .detail-buy-btns {
    flex-direction: column;
  }
}

.back-to-catalog-wrap {
  margin-bottom: 24px;
}

.back-to-catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.back-to-catalog-btn:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

/* Sync indicator pulsing animation */
@keyframes syncPulse {
  0% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4); }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 8px 3px rgba(0, 200, 83, 0.4); }
  100% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

@keyframes syncPulseOrange {
  0% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(255, 145, 0, 0.4); }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 8px 3px rgba(255, 145, 0, 0.4); }
  100% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(255, 145, 0, 0); }
}

.sync-pulse-green {
  animation: syncPulse 2s infinite ease-in-out;
}

.sync-pulse-orange {
  animation: syncPulseOrange 2s infinite ease-in-out;
}



