/* =============================================
   WOOCOMMERCE OFFER COUNTDOWN WIDGET
   ============================================= */

/* Hide WooCommerce native variation price since we are managing it */
.woocommerce-variation-price {
  display: none !important;
}

#variation-price-top {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  padding: 16px 0;
  display: none;
}

.odc-widget {
  --odc-primary: #124C2F; 
  --odc-primary-light: #1A6941;
  --odc-accent: #DCE3D1;
  --odc-bg: #F4EFE6;
  --odc-bg-card: #FFFFFF;
  --odc-text: #124C2F;
  --odc-text-muted: #3D6A53;
  --odc-text-light: #6A8E7C;
  --odc-border: rgba(18, 76, 47, 0.15);
  --odc-gradient-start: #F8F6F1;
  --odc-gradient-end: #EBE5DB;
  --odc-shadow: 0 4px 24px rgba(18, 76, 47, 0.08);
  --odc-radius: 12px;
  --odc-font-serif: 'Cormorant Garamond', Georgia, serif;
  --odc-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  width: 100%;
  font-family: var(--odc-font-sans);
  animation: odc-fadeIn 0.6s ease-out;
  margin-bottom: 20px;
}

@keyframes odc-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.odc-widget .odc-container {
  background: linear-gradient(135deg, var(--odc-gradient-start) 0%, var(--odc-gradient-end) 100%);
  border: 1px solid var(--odc-border);
  border-radius: var(--odc-radius);
  padding: 24px 28px;
  box-shadow: var(--odc-shadow);
  position: relative;
  overflow: hidden;
}

.odc-widget .odc-container::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--odc-primary), var(--odc-accent));
  opacity: 0.8;
}

.odc-widget .odc-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.odc-widget .odc-details { flex: 1; }
.odc-widget .odc-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--odc-primary); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
}
.odc-widget .odc-badge svg { width: 10px; height: 10px; fill: currentColor; }

.odc-widget .odc-price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.odc-widget .odc-price-sale { font-size: 32px; font-weight: 600; color: var(--odc-primary); letter-spacing: -0.02em; line-height: 1.1; }
.odc-widget .odc-price-regular { font-size: 19px; color: var(--odc-text-light); text-decoration: line-through; font-weight: 400; line-height: 1.1; }
.odc-widget .odc-subtitle { font-size: 13.5px; color: var(--odc-text-muted); line-height: 1.4; }

.odc-widget .odc-separator { width: 1px; height: 60px; background: linear-gradient(to bottom, transparent, var(--odc-border), transparent); }

.odc-widget .odc-countdown-wrap { flex-shrink: 0; }
.odc-widget .odc-countdown-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--odc-text-light); text-align: center; margin-bottom: 8px;
}
.odc-widget .odc-countdown { display: flex; gap: 8px; align-items: center; }
.odc-widget .odc-time-unit { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.odc-widget .odc-time-value {
  font-family: var(--odc-font-serif); font-size: 28px; font-weight: 600; color: var(--odc-text);
  background: var(--odc-bg-card); border: 1px solid var(--odc-border); border-radius: 8px;
  padding: 6px 4px; min-width: 48px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.odc-widget .odc-time-label { font-size: 9px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--odc-text-light); margin-top: 6px; }
.odc-widget .odc-time-colon { font-family: var(--odc-font-serif); font-size: 22px; color: var(--odc-primary-light); margin-bottom: 16px; animation: odc-blink 1s step-end infinite; }

@keyframes odc-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes odc-tick { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.odc-widget .odc-time-value.odc-tick { animation: odc-tick 0.3s ease; }

@media (max-width: 768px) {
  .odc-widget .odc-inner { flex-direction: column; gap: 16px; text-align: center; }
  .odc-widget .odc-separator { width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--odc-border), transparent); }
  .odc-widget .odc-price-block { justify-content: center; }
  .odc-widget .odc-countdown { justify-content: center; }
}
