/* Rimish Collections - Custom Store Engine Styles */

:root {
  --sc-gold: #c5a880;
  --sc-gold-dark: #a88a5e;
  --sc-dark: #1a1a1a;
  --sc-light-bg: #faf8f5;
  --sc-border: #e8e3dc;
  --sc-font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Cart Drawer */
.sc-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.sc-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.sc-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}
.sc-cart-drawer.is-open {
  transform: translateX(0);
}

.sc-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--sc-border);
}
.sc-drawer-header h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #111;
}
.sc-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.sc-drawer-close:hover {
  color: #000;
}

/* Shipping Progress Bar */
.sc-drawer-shipping {
  background: #fbf9f6;
  padding: 14px 24px;
  border-bottom: 1px solid var(--sc-border);
  font-size: 13.5px;
  color: #444;
}
.sc-shipping-text {
  margin-bottom: 8px;
  line-height: 1.4;
}
.sc-shipping-progress {
  width: 100%;
  height: 6px;
  background: #e5ded6;
  border-radius: 999px;
  overflow: hidden;
}
.sc-shipping-bar-fill {
  height: 100%;
  background: #111;
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 999px;
}

/* Drawer Body & Items */
.sc-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.sc-drawer-empty {
  text-align: center;
  padding: 60px 20px;
  color: #777;
}
.sc-drawer-empty p {
  font-size: 16px;
  margin: 15px 0 20px;
}

.sc-drawer-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0ebe4;
}
.sc-drawer-item-img {
  width: 75px;
  height: 95px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}
.sc-drawer-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sc-drawer-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sc-drawer-item-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 4px;
}
.sc-drawer-item-title:hover {
  text-decoration: underline;
}
.sc-drawer-item-variant {
  font-size: 13px;
  color: #777;
  margin-bottom: 6px;
}
.sc-drawer-item-price {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
}
.sc-drawer-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* Stepper */
.sc-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dcd7ce;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.sc-qty-stepper button {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  color: #333;
}
.sc-qty-stepper button:hover {
  background: #f5f0e9;
}
.sc-qty-stepper span {
  width: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.sc-remove-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
}
.sc-remove-btn:hover {
  color: #d32f2f;
}

/* Drawer Footer */
.sc-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--sc-border);
  background: #fff;
}
.sc-drawer-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  margin-bottom: 6px;
}
.sc-drawer-subtotal-row span {
  color: #555;
}
.sc-drawer-subtotal-row strong {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}
.sc-drawer-tax-note {
  font-size: 12px;
  color: #888;
  margin: 0 0 16px 0;
}
.sc-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Buttons */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.sc-btn-primary, .sc-btn-checkout {
  background: #000000;
  color: #ffffff;
}
.sc-btn-primary:hover, .sc-btn-checkout:hover {
  background: #2b2b2b;
}
.sc-btn-outline {
  background: #ffffff;
  color: #111111;
  border-color: #111111;
}
.sc-btn-outline:hover {
  background: #f7f7f7;
}
.sc-btn-secondary {
  background: #c5a880;
  color: #fff;
}
.sc-btn-secondary:hover {
  background: #b3946a;
}

/* Badges */
.sc-cart-count, .m-cart-count {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Modal */
.sc-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}
.sc-modal-dialog {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  animation: scFadeUp 0.25s ease-out;
}
@keyframes scFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* WhatsApp Floating Support Button */
.sc-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.2s;
  text-decoration: none;
}
.sc-whatsapp-float:hover {
  transform: scale(1.08);
}

/* Responsive Mobile Header & Logo Alignment */
@media (max-width: 767px) {
  .m-header__mobile {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 12px !important;
  }
  .m-menu-button {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  .m-logo--mobile {
    flex: 1 1 auto !important;
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
  }
  .m-logo-mobile {
    max-width: 115px !important;
    margin: 0 auto !important;
  }
  .m-logo-mobile img {
    max-height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
  }
  .m-header__mobile-right {
    flex: 0 0 auto !important;
    width: auto !important;
    gap: 10px !important;
    justify-content: flex-end !important;
  }
}

