/**
 * Caracal Added to Cart Modal - Styles
 * Extracted from design HTML
 */

/* =========================
   ADDED TO CART MODAL
========================= */
@font-face {
  font-family: 'AktivGrotesk-BlackItalic';
  src: url('./AktivGrotesk_Trial_BlkIt.woff2') format('woff2'),
       url('./AktivGrotesk_Trial_BlkIt.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'AktivGrotesk-Light';
  src: url('./AktivGrotesk_Trial_Lt.woff2') format('woff2'),
       url('./AktivGrotesk_Trial_Lt.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

    :root {
      --primary-black: #000;
      --white: #fff;
      --muted: #9c9c9c;
      --stroke-40: rgba(0, 0, 0, .4);
      --stroke-20: rgba(0, 0, 0, .2);
      --bg-tile: #f2f2f2;
      --skew-angle: -15deg;
      --font-bold: "AktivGrotesk-BlackItalic";
      --font-main: "AktivGrotesk-Light", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    }
.atc-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}
.atc-modal.is-open { 
  display: block; 
}

/* Empty cart state: hide product grid, show only message and buttons */
.atc-modal.atc-empty .atc-grid {
  display: none;
}

.atc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.atc-card {
  position: absolute;
  right: 30px;
  top: 30px;
  width: min(580px, calc(100% - 60px));
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .10);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .18);
  padding: 26px 30px 28px;
}

.atc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}

.atc-title {
  font-family: var(--font-bold, "AktivGrotesk-BlackItalic", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 33px;
  letter-spacing: -0.4px;
}

.atc-x {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #111;
  padding: 6px 6px;
  opacity: .9;
  transition: opacity 0.2s;
}
.atc-x:hover {
  opacity: 1;
}

.atc-body { 
  padding-top: 4px; 
}

.atc-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: stretch;
}

.atc-info {
  display: flex;
  flex-direction: column;
  min-height: 210px;
}

.atc-info-top {
  flex: 0 0 auto;
}

.atc-remove-text {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  align-self: flex-start;
  padding-top: 8px;
}
.atc-remove-text:hover {
  opacity: 0.8;
}

.atc-img{
  width: 170px;
  height: 210px;
  background: #FFFFFF; /* change this to your card bg if needed */
  overflow: hidden;
  /*border: 1px solid rgba(0, 0, 0, .06);*/
}

.atc-img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent !important;
  mix-blend-mode: multiply;
}

.atc-row1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.atc-name {
  font-family: var(--font-boldit, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  font-style: italic;
  text-transform: uppercase;
  font-size: 14px;

}

.atc-price {
  font-family: var(--font-medium, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.atc-now { 
  color: #d11; 
}
.atc-base-price {
  color: #111;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.atc-price-breakdown {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: normal;
  min-width: 140px;
}
.atc-breakdown-line {
  width: 100%;
  justify-content: space-between;
  gap: 10px;
}
.atc-total-line {
  padding-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 2px;
  font-weight: 600;
}
.atc-old { 
  color: #888; 
  text-decoration: line-through; 
}

.atc-lines {
  margin-top: 8px;
  font-size: 12px;
  color: #111;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.atc-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.atc-line .muted { 
  color: #8c8c8c;
  white-space: nowrap;
  font-weight: 400;
}
.atc-line strong {
  color: #111;
  font-weight: 600;
}

.atc-centerline {
  text-align: center;
  font-size: 12px;
  margin: 22px 0 18px;
  color: #111;
  opacity: .95;
}

.atc-actions {
  margin-left: 11px !important;
  margin-right: 11px !important;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}




.atc-btn span {
  transform: skewX(calc(var(--skew, -20deg) * -1));
  font-family: var(--font-medium, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  font-size: 13px;.atc-row1
}
.atc-btn.outline {
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, .55);
  color: #111;
}
.atc-btn.black {
  background: #000;
  border: 1.5px solid #000;
  color: #fff;
}
.atc-actions{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
  margin-left:20px;
  margin-right:20px;
}
@media (max-width: 900px) {
    .atc-actions{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
  margin-left:10px;
  margin-right:10px;
}
  .atc-card {
    right: 14px;
    top: 14px;
    /*width: calc(100% - 28px);*/
    padding: 18px 16px 18px;
  }
  .atc-title { 
    font-size: 20px; 
  }
  .atc-grid { 
    grid-template-columns: 120px 1fr; 
    gap: 14px; 
  }
  .atc-img { 
    width: 120px; 
    height: 150px; 
  }
  .atc-info {
    min-height: 150px;
  }
  .atc-actions { 
    flex-direction: column-reverse; 
    

  }
  .atc-btn { 
    width: 100%; 
    height: 40px;
  }
}

/* =========================
   ATC BUTTONS (match skew design)
========================= */



/* Base button – border-box so hover/focus don’t change size */
.atc-btn{
  box-sizing: border-box;
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;      /* remove underline */
  cursor: pointer;

  transform: skewX(var(--skew-angle));
  letter-spacing: .6px;

  border-radius: 0;
  padding: 0 18px;
  border: 1.5px solid transparent; /* reserve space so hover border doesn’t shrink */
}

/* Text inside skewed button should be un-skewed */
.atc-btn span{
  transform: skewX(calc(var(--skew-angle) * -1));
  display: inline-block;

  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
}

/* Outline button */
.atc-btn.outline{
  background: #fff;
  border: 1.5px solid rgba(0,0,0,.55);
  color: #111;
}

/* Black button */
.atc-btn.black{
  background: #000;
  border: 1.5px solid #000;
  color: #fff;
}

/* Hover – same border width so button doesn’t shrink */
.atc-btn.outline:hover{
  background:#f3f3f3;
  border-color: rgba(0,0,0,.55);
}
.atc-btn.black:hover{
  background:#222;
  border-color:#222;
  border-width: 1.5px;
  color: #fff;
}

/* Mobile */
@media (max-width: 900px){
  .atc-actions{
    flex-direction: column-reverse;
  }
  .atc-btn{
    width: 100%;
    height: 45px
    ;
  }
  .atc-btn span{
      margin-top: 11px;
      margin-bottom: 11px;
  }
  .atc-row1{
      flex-direction: column;
  }
}


/* Base: hidden but mounted (so it can animate) */
#caracal-atc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  /* IMPORTANT: keep it in DOM flow for transitions */
  display: flex;            /* or block, depending your layout */
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 260ms ease, visibility 260ms ease;
}

/* Optional: dim overlay if you have a separate overlay element */
#caracal-atc-modal .caracal-atc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 260ms ease;
}

/* Modal card animation */
#caracal-atc-modal .caracal-atc-card {
  position: relative;
  z-index: 1;

  transform: translateY(10px);
  opacity: 0;
  transition: transform 260ms ease, opacity 260ms ease;
}

/* OPEN state */
#caracal-atc-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#caracal-atc-modal.is-open .caracal-atc-overlay {
  opacity: 1;
}

#caracal-atc-modal.is-open .caracal-atc-card {
  transform: translateY(0);
  opacity: 1;
}




/* Modal wrapper */
#atcModal{
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;              /* keep it mounted */
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 260ms ease, visibility 260ms ease;
}

/* Backdrop fade */
#atcModal .atc-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity 260ms ease;
}

/* Modal card fade + slight slide */
#atcModal .atc-panel{          /* <-- change .atc-panel to your actual modal card class */
  position: relative;
  z-index: 1;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 460ms ease, transform 460ms ease;
}

/* OPEN state */
#atcModal.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#atcModal.is-open .atc-backdrop{
  opacity: 1;
}
#atcModal.is-open .atc-panel{
  opacity: 1;
  transform: translateY(0);
}




#atcModal .atc-lines .atc-line_muted:last-child {
  text-transform: uppercase !important;
}



/* 1) give the wrapper an actual color (test with a loud one first) */
.atc-img{
  background: #f2f2f2 !important;   /* change to your real bg */
  isolation: isolate;               /* makes blend behave reliably */
}

/* 2) blend the image */
.atc-img img{
  mix-blend-mode: multiply;
  background: transparent !important;
  display: block;
}






.atc-card{ max-height: 86vh; display:flex; flex-direction:column; }
.atc-body{ flex:1; display:flex; flex-direction:column; overflow:hidden; }

.atc-list{
  max-height: 48vh;      /* adjust */
  overflow: auto;
  padding-right: 6px;
}

.atc-grid{
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.atc-qty-row{
  margin-top: 6px;
  font-size: 13px;
  opacity: .75;
}

.atc-price .atc-mult{
  display:block;
  font-size: 12px;
  opacity: .65;
  margin-top: 4px;
}