/* ==========================================================================
   Oggy Custom Floating Mini Cart & Slide-Out Drawer Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Floating Cart Tab (Docked on Right Edge)
   -------------------------------------------------------------------------- */
/* Hide floating cart on checkout and cart pages */
body.woocommerce-checkout #oggyFloatingCartTab,
body.woocommerce-checkout .oggy-floating-cart-tab,
body.woocommerce-cart #oggyFloatingCartTab,
body.woocommerce-cart .oggy-floating-cart-tab {
  display: none !important;
}

.oggy-floating-cart-tab {
  position: fixed;
  right: 0;
  top: 55%;
  transform: translateY(-50%);
  z-index: 99998;
  cursor: pointer;
  box-shadow: -3px 4px 18px rgba(0, 0, 0, 0.12);
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 88px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  user-select: none;
}

.oggy-floating-cart-tab:hover {
  transform: translateY(-50%) translateX(-4px);
  box-shadow: -5px 6px 24px rgba(255, 194, 31, 0.4);
}

.oggy-fct-top {
  background-color: #ffc21f !important;
  color: #0f172a !important;
  padding: 10px 12px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.oggy-fct-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
}

.oggy-fct-bag-icon {
  width: 22px;
  height: 22px;
  stroke: #0f172a !important;
}

.oggy-fct-count {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a !important;
  white-space: nowrap;
  line-height: 1.2;
}

.oggy-fct-bottom {
  background-color: #ffffff !important;
  padding: 7px 10px;
  text-align: center;
  border-left: 1px solid #f0f0f0;
}

.oggy-fct-total {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a !important;
  white-space: nowrap;
}

.oggy-fct-total .woocommerce-Price-amount {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* --------------------------------------------------------------------------
   2. Slide-Out Side Cart Drawer Container
   -------------------------------------------------------------------------- */
.oggy-side-cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  z-index: 999999;
  visibility: hidden;
  overflow: hidden !important;
  pointer-events: none;
  transition: visibility 0.3s ease;
}

.oggy-side-cart-drawer:not(.oggy-cart-open) {
  display: none !important;
}

.oggy-side-cart-drawer.oggy-cart-open {
  display: block !important;
  visibility: visible;
  pointer-events: auto;
}

/* Overlay Backdrop */
.oggy-sc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.oggy-side-cart-drawer.oggy-cart-open .oggy-sc-overlay {
  opacity: 1;
}

/* Sliding Panel */
.oggy-sc-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 410px;
  max-width: 92vw;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.16);
  font-family: inherit;
}

.oggy-side-cart-drawer.oggy-cart-open .oggy-sc-panel {
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
.oggy-sc-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
}

.oggy-sc-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.oggy-sc-close-btn {
  background: none !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px !important;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
  box-shadow: none !important;
}

.oggy-sc-close-btn:hover {
  color: #b45309 !important;
  background-color: #fefce8 !important;
}

.oggy-sc-close-arrow {
  transition: transform 0.2s ease;
}

.oggy-sc-close-btn:hover .oggy-sc-close-arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   4. Scrollable Body
   -------------------------------------------------------------------------- */
.oggy-sc-body {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.oggy-sc-body::-webkit-scrollbar {
  width: 5px;
}

.oggy-sc-body::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 10px;
}

.oggy-sc-content-inner {
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   5. Free Shipping Progress Card
   -------------------------------------------------------------------------- */
.oggy-sc-reward-card {
  margin: 16px 16px 8px;
  padding: 14px 16px;
  background: #fffdf5;
  border: 1px solid #fde68a;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(255, 194, 31, 0.08);
}

.oggy-sc-rc-left {
  flex-shrink: 0;
}

.oggy-sc-rc-gift-icon {
  width: 38px;
  height: 38px;
  background: #fef9c3;
  color: #b45309;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oggy-sc-rc-gift-icon svg {
  stroke: #b45309 !important;
  stroke-width: 2 !important;
}

.oggy-sc-rc-info {
  flex-grow: 1;
  min-width: 0;
}

.oggy-sc-rc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oggy-sc-rc-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
}

.oggy-sc-rc-close {
  background: none !important;
  border: none !important;
  font-size: 20px !important;
  line-height: 1 !important;
  color: #9ca3af !important;
  cursor: pointer;
  padding: 0 4px !important;
  box-shadow: none !important;
}

.oggy-sc-rc-close:hover {
  color: #ef4444 !important;
}

.oggy-sc-rc-desc {
  font-size: 12px;
  color: #4b5563;
  margin: 3px 0 8px;
}

.oggy-sc-rem-price {
  color: #b45309;
  font-weight: 800;
}

.oggy-sc-rem-price .woocommerce-Price-amount {
  color: #b45309 !important;
  font-weight: 800 !important;
}

.oggy-sc-unlocked-msg {
  color: #10b981;
  font-weight: 700;
}

.oggy-sc-progress-bar-wrap {
  height: 6px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}

.oggy-sc-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffc21f, #f59e0b);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* --------------------------------------------------------------------------
   6. Cart Items List
   -------------------------------------------------------------------------- */
.oggy-sc-items-list {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oggy-sc-item {
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.oggy-sc-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.oggy-sc-item.oggy-loading {
  opacity: 0.5;
  pointer-events: none;
}

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

.oggy-sc-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.oggy-sc-item-info {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.oggy-sc-item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.oggy-sc-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.oggy-sc-item-title a {
  color: inherit;
  text-decoration: none;
}

.oggy-sc-item-title a:hover {
  color: #f37021;
}

.oggy-sc-item-remove {
  background: none !important;
  border: none !important;
  color: #9ca3af !important;
  cursor: pointer;
  padding: 3px !important;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: none !important;
  transition: color 0.2s, background-color 0.2s;
}

.oggy-sc-item-remove:hover {
  color: #ef4444 !important;
  background-color: #fee2e2 !important;
}

/* Quantity Controls & Math */
.oggy-sc-item-calc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.oggy-sc-qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.oggy-sc-qty-btn {
  background: #f8fafc !important;
  border: none !important;
  width: 26px !important;
  height: 26px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s, color 0.2s;
  padding: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.oggy-sc-qty-btn:hover {
  background: #e2e8f0 !important;
  color: #f37021 !important;
}

.oggy-sc-qty-input {
  width: 32px !important;
  height: 26px !important;
  text-align: center !important;
  border: none !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  padding: 0 !important;
  -moz-appearance: textfield;
  box-shadow: none !important;
}

.oggy-sc-qty-input::-webkit-outer-spin-button,
.oggy-sc-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.oggy-sc-calc-price {
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
}

.oggy-sc-calc-sep,
.oggy-sc-calc-eq {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}

.oggy-sc-unit-price {
  color: #334155;
  font-weight: 600;
}

.oggy-sc-line-total {
  font-weight: 800;
  color: #0f172a;
}

.oggy-sc-line-total .woocommerce-Price-amount {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* --------------------------------------------------------------------------
   7. "You May Also Like" Slider
   -------------------------------------------------------------------------- */
.oggy-sc-rec-section {
  margin: 14px 16px 20px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.oggy-sc-rec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.oggy-sc-rec-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.oggy-sc-rec-arrows {
  display: flex;
  gap: 6px;
}

.oggy-sc-arrow-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #ffc21f !important;
  color: #0f172a !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(255, 194, 31, 0.3) !important;
  transition: background-color 0.2s, transform 0.15s !important;
  padding: 0 !important;
  flex-shrink: 0;
}

.oggy-sc-arrow-btn svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #0f172a !important;
  fill: none !important;
}

.oggy-sc-arrow-btn:hover {
  background: #f5b300 !important;
  transform: scale(1.06);
}

.oggy-sc-rec-slider-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
}

.oggy-sc-rec-slider-container::-webkit-scrollbar {
  display: none;
}

.oggy-sc-rec-slider {
  display: flex;
  gap: 12px;
  width: max-content;
}

.oggy-sc-rec-card {
  width: 195px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.oggy-sc-rec-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.oggy-sc-rec-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1f5f9;
}

.oggy-sc-rec-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.oggy-sc-rec-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex-grow: 1;
}

.oggy-sc-rec-name {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.oggy-sc-rec-price {
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
}

.oggy-sc-rec-price .woocommerce-Price-amount {
  color: #b45309 !important;
  font-weight: 800 !important;
}

.oggy-sc-rec-price ins {
  text-decoration: none;
  color: #b45309 !important;
  font-weight: 800 !important;
}

.oggy-sc-rec-price del {
  color: #94a3b8;
  font-size: 11px;
  margin-right: 4px;
}

.oggy-sc-rec-add-btn {
  background: #ffc21f !important;
  color: #0f172a !important;
  border: none !important;
  border-radius: 99px !important;
  padding: 4px 14px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  width: fit-content !important;
  margin-top: 3px;
  box-shadow: 0 2px 5px rgba(255, 194, 31, 0.3) !important;
  transition: background-color 0.2s, transform 0.1s !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.oggy-sc-rec-add-btn:hover {
  background: #f5b300 !important;
  transform: translateY(-1px);
}

.oggy-sc-rec-add-btn.oggy-btn-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. Empty Cart State
   -------------------------------------------------------------------------- */
.oggy-sc-empty {
  padding: 45px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.oggy-sc-empty-icon {
  margin-bottom: 14px;
}

.oggy-sc-empty-text {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 18px;
}

.oggy-sc-shop-btn {
  background: #ffc21f !important;
  color: #0f172a !important;
  text-decoration: none !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(255, 194, 31, 0.3) !important;
  transition: background 0.2s, transform 0.15s !important;
}

.oggy-sc-shop-btn:hover {
  background: #f5b300 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.oggy-sc-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid #f0f0f0;
  background: #ffffff;
  flex-shrink: 0;
}

.oggy-sc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.oggy-sc-total-label {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
}

.oggy-sc-total-amount {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.oggy-sc-total-amount .woocommerce-Price-amount {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.oggy-sc-checkout-btn {
  display: block;
  width: 100%;
  background: #ffc21f !important;
  color: #0f172a !important;
  text-align: center;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(255, 194, 31, 0.35) !important;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-sizing: border-box;
}

.oggy-sc-checkout-btn:hover {
  background: #f5b300 !important;
  box-shadow: 0 5px 16px rgba(255, 194, 31, 0.45) !important;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   10. Responsive Tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .oggy-sc-panel {
    width: 100vw;
    max-width: 100vw;
  }
  
  .oggy-floating-cart-tab {
    min-width: 62px;
    border-radius: 8px 0 0 8px;
  }

  .oggy-fct-top {
    padding: 6px 6px 4px;
  }

  .oggy-fct-bottom {
    padding: 4px 6px;
  }

  .oggy-fct-bag-icon {
    width: 18px;
    height: 18px;
  }
  
  .oggy-fct-count {
    font-size: 10px;
  }
  
  .oggy-fct-total {
    font-size: 11px;
  }
}
