/**
 * OggyShop - Custom Product Page & BD Conversion Features CSS
 */

:root {
  --oggy-pf-brand: #ffc21f;
  --oggy-pf-brand-dark: #d99b00;
  --oggy-pf-whatsapp: #25d366;
  --oggy-pf-whatsapp-dark: #1ea952;
}

/* --------------------------------------------------------------------------
   1. Single Product Actions (Buy Now + WhatsApp)
   -------------------------------------------------------------------------- */
.oggy-single-product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
}

.oggy-btn-buy-now {
  background: linear-gradient(135deg, var(--oggy-pf-brand) 0%, #f59e0b 100%) !important;
  color: #0f172a !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 18px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(255, 194, 31, 0.4) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  text-decoration: none !important;
  width: 100% !important;
}

.oggy-btn-buy-now:hover {
  transform: translateY(-2px);
}

.oggy-btn-buy-now.is-loading {
  opacity: 0.85 !important;
  cursor: wait !important;
  pointer-events: none !important;
}

.oggy-btn-buy-now.is-loading .oggy-btn-icon {
  animation: oggySpin 1s linear infinite;
  display: inline-block;
}

@keyframes oggySpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.oggy-btn-buy-now .oggy-btn-icon {
  font-size: 20px;
}

.oggy-btn-buy-now .oggy-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.oggy-btn-buy-now .oggy-bn-main {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.oggy-btn-buy-now .oggy-bn-sub {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.oggy-btn-whatsapp {
  background: var(--oggy-pf-whatsapp) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3) !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
}

.oggy-btn-whatsapp:hover {
  background: var(--oggy-pf-whatsapp-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   2. Bangladesh Delivery & Trust Guarantee Box
   -------------------------------------------------------------------------- */
.oggy-bd-trust-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.oggy-bd-trust-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.oggy-bd-trust-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #0f172a;
}

.oggy-badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.oggy-cod-badge {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid #bbf7d0;
}

.oggy-bd-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

@media (max-width: 480px) {
  .oggy-bd-trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.oggy-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.oggy-trust-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.oggy-trust-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.oggy-trust-info strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.oggy-trust-info span {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   3. Floating WhatsApp Support Widget
   -------------------------------------------------------------------------- */
.oggy-floating-chat-wrap {
  position: fixed !important;
  bottom: 25px;
  right: 25px;
  z-index: 99990 !important;
  display: block !important;
}

.oggy-floating-wa-btn {
  position: relative;
  background: #25d366 !important;
  color: #ffffff !important;
  width: 56px;
  height: 56px;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
  text-decoration: none !important;
}

.oggy-floating-wa-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65) !important;
  color: #ffffff !important;
}

.oggy-floating-wa-btn svg {
  width: 30px !important;
  height: 30px !important;
  fill: #ffffff !important;
  display: block !important;
}

.oggy-wa-pulse {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: oggyPulse 2s infinite ease-out;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes oggyPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.oggy-floating-label {
  display: none !important;
}

/* --------------------------------------------------------------------------
   4. Mobile Sticky Bottom Bar (Product Page Only)
   -------------------------------------------------------------------------- */
.oggy-mobile-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .oggy-mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 8px 12px;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .oggy-sticky-prod-thumb {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    max-width: 55%;
  }

  .oggy-sticky-prod-thumb img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .oggy-sticky-prod-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .oggy-sticky-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .oggy-sticky-price {
    font-size: 13px;
    font-weight: 800;
    color: #e11d48;
  }

  .oggy-sticky-prod-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .oggy-sticky-call-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
  }

  .oggy-sticky-buy-btn {
    background: var(--oggy-pf-brand);
    color: #0f172a;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
  }

  .oggy-sticky-buy-btn.is-loading {
    opacity: 0.85 !important;
    cursor: wait !important;
    pointer-events: none !important;
  }
}

/* --------------------------------------------------------------------------
   5. Instant 1-Click Buy Now Checkout Popup Modal
   -------------------------------------------------------------------------- */
body.oggy-modal-open {
  overflow: hidden !important;
}

.oggy-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.oggy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.oggy-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: oggyModalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes oggyModalPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

button.oggy-modal-close,
.oggy-modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #334155 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 20 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  outline: none !important;
}

button.oggy-modal-close:hover,
.oggy-modal-close:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  transform: rotate(90deg) !important;
}

button.oggy-modal-close svg,
.oggy-modal-close svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  stroke: #334155 !important;
  stroke-width: 2.5px !important;
  fill: none !important;
}

/* Modal Header */
.oggy-modal-header {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.oggy-modal-header-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--oggy-pf-brand) 0%, #f59e0b 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(255, 194, 31, 0.4) !important;
  flex-shrink: 0 !important;
}

.oggy-modal-header-icon svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  fill: #ffffff !important;
}

.oggy-modal-header-text {
  flex: 1;
  padding-right: 28px;
}

.oggy-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.oggy-modal-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
}

/* Modal Body */
.oggy-modal-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Product Mini Card */
.oggy-modal-product-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.oggy-mpc-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.oggy-mpc-details {
  flex: 1;
  min-width: 0;
}

.oggy-mpc-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oggy-mpc-meta {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.oggy-mpc-meta span {
  display: inline-block;
  background: #e2e8f0;
  padding: 1px 6px;
  border-radius: 4px;
}

.oggy-mpc-price-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.oggy-mpc-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.oggy-qty-btn {
  background: #f8fafc;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
}

.oggy-qty-btn:hover {
  background: #e2e8f0;
}

#oggyModalQtyInput {
  width: 32px;
  height: 28px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  padding: 0;
}

.oggy-mpc-price {
  font-size: 16px;
  font-weight: 800;
  color: #059669;
}

/* Alert Box */
.oggy-modal-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.oggy-modal-alert.is-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.oggy-modal-alert.is-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Form Fields */
#oggyQuickCheckoutForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oggy-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oggy-form-field label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

.oggy-req {
  color: #ef4444;
}

.oggy-field-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.oggy-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.oggy-input-icon {
  position: absolute;
  left: 10px;
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.oggy-input {
  width: 100% !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 12px 10px 34px !important;
  font-size: 14px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  box-sizing: border-box !important;
}

.oggy-input:focus {
  border-color: #ffc21f !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 194, 31, 0.25) !important;
}

.oggy-textarea {
  padding: 8px 12px 8px 34px !important;
  resize: vertical;
  min-height: 54px;
}

/* Phone Input Wrap */
.oggy-phone-wrap {
  display: flex;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.oggy-phone-wrap:focus-within {
  border-color: #ffc21f;
  box-shadow: 0 0 0 3px rgba(255, 194, 31, 0.25);
}

.oggy-phone-prefix {
  background: #f1f5f9;
  padding: 0 10px;
  border-right: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.oggy-phone-wrap .oggy-input {
  border: none !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
}

/* Delivery Zone Options */
.oggy-zone-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.oggy-zone-card {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  margin: 0 !important;
}

.oggy-zone-card input[type="radio"] {
  margin: 0;
  accent-color: #f59e0b;
  width: 16px;
  height: 16px;
}

.oggy-zone-card.is-selected {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 0 0 1px #f59e0b;
}

.oggy-zc-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oggy-zc-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.oggy-zc-cost {
  font-size: 13px;
  font-weight: 800;
  color: #059669;
}

/* Payment Badge */
.oggy-payment-badge {
  background: #f0fdf4;
  border: 1.5px dashed #16a34a;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.oggy-pb-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.oggy-pb-text {
  display: flex;
  flex-direction: column;
}

.oggy-pb-text strong {
  font-size: 13px;
  color: #15803d;
}

.oggy-pb-text span {
  font-size: 11px;
  color: #166534;
}

/* Order Summary */
.oggy-modal-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
}

.oggy-ms-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  padding: 3px 0;
}

.oggy-ms-row.oggy-ms-total {
  font-size: 15px;
  color: #0f172a;
  border-top: 1px dashed #cbd5e1;
  margin-top: 6px;
  padding-top: 6px;
}

.oggy-ms-total strong:last-child {
  color: #d97706;
  font-size: 17px;
}

/* Modal Submit Button */
.oggy-modal-submit-btn {
  background: linear-gradient(135deg, var(--oggy-pf-brand) 0%, #f59e0b 100%) !important;
  color: #0f172a !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 13px 18px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(255, 194, 31, 0.45) !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
}

.oggy-modal-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 194, 31, 0.55) !important;
  background: linear-gradient(135deg, #ffd043 0%, #f59e0b 100%) !important;
}

.oggy-modal-submit-btn.is-loading {
  opacity: 0.8;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Trust Bar */
.oggy-modal-trust-bar {
  display: flex;
  justify-content: space-around;
  font-size: 11px;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  text-align: center;
}

/* Variation Shake Animation */
@keyframes oggyShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.oggy-swatch-shake {
  animation: oggyShake 0.4s ease-in-out !important;
  outline: 2px solid #ef4444 !important;
  border-radius: 8px !important;
  padding: 6px !important;
}

/* Mobile Responsive Bottom Sheet */
@media (max-width: 640px) {
  .oggy-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .oggy-modal-dialog {
    max-width: 100%;
    max-height: 88vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    animation: oggyModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes oggyModalSlideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .oggy-modal-header {
    padding: 14px 16px;
  }

  .oggy-modal-body {
    padding: 14px 16px 24px;
  }

  .oggy-zone-options {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Hide Redundant/Misplaced Theme Elements
   -------------------------------------------------------------------------- */
.orderon-whatsapp {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Visual Variation Swatches & Option Cards
   -------------------------------------------------------------------------- */
.variations_form.oggy-swatches-active table.variations {
  border: none !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.variations_form.oggy-swatches-active table.variations tbody,
.variations_form.oggy-swatches-active table.variations tr,
.variations_form.oggy-swatches-active table.variations td.value {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: none !important;
}

.variations_form.oggy-swatches-active table.variations th.label {
  display: none !important;
}

.variations_form.oggy-swatches-active table.variations td.value select,
.variations_form.oggy-swatches-active table.variations .reset_variations {
  display: none !important;
}

.oggy-variation-swatches-wrap {
  margin: 12px 0 18px 0;
  width: 100%;
}

.oggy-var-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.oggy-var-label {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
}

.oggy-var-selected-text {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.oggy-var-selected-text.is-active {
  color: #0f172a;
  background: #fffdf5;
  border-color: #fde68a;
  font-weight: 700;
}

.oggy-var-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Variation Card */
.oggy-var-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.oggy-var-card:hover:not(.oggy-out-of-stock) {
  border-color: #cbd5e1;
  background: #fcfcfc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Active Selected Card */
.oggy-var-card.oggy-selected {
  border-color: #ffc21f !important;
  background: #fffdf5 !important;
  box-shadow: 0 4px 16px rgba(255, 194, 31, 0.22) !important;
}

/* Thumbnail */
.oggy-var-card-thumb {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.oggy-var-card.oggy-selected .oggy-var-card-thumb {
  border-color: #fde68a;
}

.oggy-var-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.oggy-thumb-fallback {
  background: #f1f5f9;
}

/* Card Content / Info */
.oggy-var-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oggy-var-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.oggy-var-card.oggy-selected .oggy-var-card-title {
  color: #0f172a;
  font-weight: 700;
}

/* Highlight badge for brackets e.g. [Transparent] */
.oggy-var-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}

.oggy-var-card.oggy-selected .oggy-var-tag {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

/* Card Price */
.oggy-var-card-price {
  font-size: 15px;
  font-weight: 800;
  color: #b45309;
  letter-spacing: -0.2px;
}

.oggy-var-card.oggy-selected .oggy-var-card-price {
  color: #d97706;
}

/* Radio Indicator */
.oggy-var-card-radio {
  display: flex;
  align-items: center;
  justify-content: center;
}

.oggy-var-card-radio-circle {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
}

.oggy-var-card:hover .oggy-var-card-radio-circle {
  border-color: #94a3b8;
}

.oggy-var-card.oggy-selected .oggy-var-card-radio-circle {
  border-color: #ffc21f;
  background: #ffc21f;
  color: #0f172a;
}

/* Out of stock */
.oggy-var-card.oggy-out-of-stock {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8fafc;
}

/* Native Select fallback styling (before active) */
table.variations td.value select {
  width: 100% !important;
  height: 44px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
  cursor: pointer !important;
  outline: none !important;
}

table.variations td.value select:focus {
  border-color: #ffc21f !important;
  box-shadow: 0 0 0 3px rgba(255, 194, 31, 0.25) !important;
}

/* Single Variation Wrap Clean Spacing */
.single_variation_wrap {
  margin-top: 20px !important;
}

.single_variation_wrap .woocommerce-variation {
  margin-bottom: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.single_variation_wrap .woocommerce-variation-price {
  margin: 0 !important;
  line-height: 1.2 !important;
}

.single_variation_wrap .woocommerce-variation-price .price {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  display: block !important;
  margin: 0 !important;
  letter-spacing: -0.5px !important;
}

.single_variation_wrap .woocommerce-variation-availability {
  margin: 0 !important;
}

.single_variation_wrap .in-stock {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #dcfce7 !important;
  color: #15803d !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  width: fit-content !important;
}

/* Hide duplicate theme default buy now button */
.variations_form #buynow,
.variations_form .buy_now_button {
  display: none !important;
}

/* Quantity & Buttons Row Polish */
.woocommerce-variation-add-to-cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 12px !important;
}

.woocommerce-variation-add-to-cart .quantity {
  margin: 0 !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button {
  flex: 1 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  height: 48px !important;
  padding: 0 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

