/* Cart Drawer for OpenCart 2.3. Prefix: cd- */
#cart-drawer-root { --cd-blue:#c5eaf3; --cd-text:#242424; --cd-muted:#888; --cd-line:#ececec; --cd-red:#ff5b56; font-family:inherit; color:var(--cd-text); }
#cart-drawer-root * { box-sizing:border-box; }
.cd-overlay { position:fixed; inset:0; background:rgba(0,0,0,.32); z-index:999999999; opacity:0; visibility:hidden; transition:opacity .22s,visibility .22s; }
.cd-drawer { position:fixed; z-index:999999999; top:0; right:0; height:100vh; height:100dvh; width:min(480px,100vw); background:#fff; display:flex; flex-direction:column; transform:translateX(102%); transition:transform .25s ease; box-shadow:-8px 0 28px rgba(0,0,0,.08); }
#cart-drawer-root.cd-open .cd-overlay { opacity:1; visibility:visible; }
#cart-drawer-root.cd-open .cd-drawer { transform:translateX(0); }
body.cd-lock { overflow:hidden; }
.cd-header { min-height:64px; padding:16px 24px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--cd-line); flex-shrink:0; }
.cd-header h2 { font-size:22px; line-height:1.2; margin:0; font-weight:600; }
.cd-count { color:#777; font-weight:400; }
.cd-icon-btn { border:0; background:transparent; padding:0; font-size:28px; line-height:1; width:30px; height:30px; cursor:pointer; color:#333; }
.cd-scroll { overflow-y:auto; overscroll-behavior:contain; flex:1; min-height:0; padding:0 24px 20px; }
.cd-product { display:grid; grid-template-columns:80px minmax(0,1fr) auto; gap:12px; padding:18px 0; border-bottom:1px solid var(--cd-line); align-items:start; }
.cd-thumb { width:80px; height:80px; background:#f0f0f0; border-radius:8px; overflow:hidden; display:block; }
.cd-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.cd-product-main { min-width:0; }
.cd-product-name { display:block; color:inherit; text-decoration:none; font-size:14px; line-height:1.35; margin:0 0 7px; }
.cd-option-line { color:var(--cd-muted); font-size:12px; margin-bottom:9px; display: flex;
    align-items: center;
    gap: 8px;}
.cd-edit { color:#2784bb; text-decoration:underline; cursor:pointer; margin-left:5px; white-space:nowrap;     display: flex;
    align-items: center;
    gap: 4px;}
.cd-qty { display:inline-flex; height:30px; border:1px solid #ddd; border-radius:9px; overflow:hidden; align-items:center; }
.cd-qty button { width:28px; height:28px; border:0; background:#fff; font-size:20px; line-height:1; cursor:pointer;     display: flex;
    align-items: center;}
.cd-qty button:disabled { color:#ccc; cursor:default; }
.cd-qty span { min-width:22px; text-align:center; font-size:14px; }
.cd-product-actions { display:flex; gap:9px; align-items:center; justify-content:flex-end; margin-bottom:38px; }
.cd-product-actions button { cursor:pointer; border:0; background:transparent; padding:0; color:#888; font-size:20px; line-height:1; }
.cd-heart { font-size:24px!important; color:#777!important; }
.cd-price { white-space:nowrap; font-weight:700; font-size:15px; text-align:right; }
.cd-price-old { display:block; color:#aaa; text-decoration:line-through; font-size:12px; font-weight:400; margin-bottom:3px; }
.cd-price-out { color:var(--cd-red); }
.cd-out-label { color:var(--cd-red); font-size:11px; margin-bottom:5px; }
.cd-removed { background:#f5f5f5; border-radius:9px; padding:14px; margin:16px 0 0; display:grid; grid-template-columns:48px minmax(0,1fr) 24px; gap:12px; align-items:center; }
.cd-removed img { width:48px; height:48px; object-fit:cover; border-radius:6px; }
.cd-removed-name { font-size:13px; margin:3px 0 10px; line-height:1.35; }
.cd-removed-caption { color:#888; font-size:12px; }
.cd-restore { border:1px solid #333; background:transparent; padding:9px 16px; border-radius:8px; cursor:pointer; }
.cd-removed-dismiss { border:0; background:transparent; color:#888; font-size:18px; cursor:pointer; align-self:start; }
.cd-section-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:22px 0 14px; }
.cd-section-title strong { font-size:15px; }
.cd-arrows { display:flex; gap:8px; }
.cd-arrows button { width:36px; height:36px; border:1px solid #e7e7e7; border-radius:9px; background:white; font-size:25px; cursor:pointer; }
.cd-recommendations { display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px; scrollbar-width:none; }
.cd-recommendations::-webkit-scrollbar { display:none; }
.cd-rec-card { flex:0 0 48%; min-width:0; scroll-snap-align:start; }
.cd-rec-image { display:block; width:100%; aspect-ratio:1/1; border-radius:8px; background:#f1f1f1; overflow:hidden; }
.cd-rec-image img { width:100%; height:100%; object-fit:cover; }
.cd-rec-name { display:block; font-size:12px; color:inherit; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding:7px 2px; }
.cd-rec-bottom { display:flex; align-items:center; justify-content:space-between; background:#f4f4f4; padding:7px 6px 7px 9px; border-radius:8px; gap:5px; font-size:13px; }
.cd-add-rec { width:38px; height:38px; border:0; border-radius:8px; background:var(--cd-blue); cursor:pointer; font-size:19px; flex-shrink:0; display: flex;
    align-items: center;
    justify-content: center;}
.cd-footer { flex-shrink:0; padding:8px 24px 12px; background:#fff; box-shadow:0 -8px 22px rgba(0,0,0,.035); }
.cd-summary { background:#f5f5f5; padding:14px 16px; border-radius:9px; font-size:13px; margin-top: 35px;}
.cd-summary div { display:flex; justify-content:space-between; gap:12px; margin:0 0 6px; }
.cd-summary div span { color:#888; }
.cd-summary div b { font-weight:500; text-align:right; }
.cd-summary .cd-total-row { margin:12px 0 0; align-items:center; font-size:15px; }
.cd-summary .cd-total-row span { color:#333; }
.cd-summary .cd-total-row b { font-size:21px; font-weight:700; }
.cd-shipping { margin:12px 0 9px; background:#f0f0f0; border-radius:20px; min-height:30px; overflow:hidden; position:relative; }
.cd-shipping-track { height:30px; position:absolute; inset:0; }
.cd-shipping-track span { display:block; height:100%; width:0; background:#d8efda; border-radius:20px; transition:width .2s; }
.cd-shipping-message { position:relative; z-index:1; margin:0; padding:9px 8px; text-align:center; font-size:11px; line-height:1.3; }
.cd-primary { display:flex; align-items:center; justify-content:center; text-align:center; width:100%; min-height:44px; padding:12px 16px; border:0; border-radius:8px; background:var(--cd-blue); color:#222; text-decoration:none; font:inherit; font-size:14px; cursor:pointer; }
.cd-primary:disabled { opacity:.55; cursor:default; }
.cd-empty { text-align:center; padding:45px 0 24px; }
.cd-empty-icon { display:flex; align-items:center; justify-content:center; margin:0 auto 20px; width:96px; height:96px; border-radius:50%; background:var(--cd-blue); font-size:42px; }
.cd-empty h3 { font-size:17px; margin:0 0 8px; }
.cd-empty p { color:#888; font-size:13px; line-height:1.45; margin:0 0 20px; }
.cd-empty-popular h3 { font-size:15px; margin:22px 0 12px; }
.cd-empty-popular .cd-rec-card { flex-basis:48%; }
.cd-modal { position:fixed; inset:0; z-index:999999999; display:none; align-items:center; justify-content:center; padding:24px; }
.cd-modal.is-open { display:flex; }
.cd-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.42); }
.cd-modal-card { position:relative; z-index:1; background:#fff; width:min(900px,100%); max-height:min(90vh,900px); overflow-y:auto; border-radius:12px; padding:24px; }
.cd-modal-close { position:absolute; top:16px; right:16px; }
.cd-modal-title { font-size:24px; margin:0 38px 8px 0; }
.cd-modal-subtitle { color:#888; margin:0 0 18px; }
.cd-replacement-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.cd-replace-card { min-width:0; }
.cd-replace-card img { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:8px; background:#eee; }
.cd-replace-card h4 { font-size:14px; line-height:1.3; margin:8px 0; }
.cd-replace-card .cd-replace-price { margin:0 0 9px; font-weight:600; }
.cd-replace-card button { width:100%; border:0; border-radius:8px; padding:11px; background:var(--cd-blue); cursor:pointer; background: none;}
.cd-option-picker { margin-top:18px; padding:16px; background:#f6f6f6; border-radius:8px; }
.cd-option-picker label { display:block; font-size:13px; margin:10px 0 6px; }
.cd-option-picker select { width:100%; padding:11px; border:1px solid #ddd; border-radius:7px; background:white; margin-bottom: 15px;}
.cd-option-picker button {
    border: 0;
    padding: 12px;
    border-radius: 8px;
    background: var(--cd-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cd-heart.active {
    background-size: 15px;
    background-image: url(https://sezon.ua/catalog/view/theme/default/image/wish_f.svg);
    background-repeat: no-repeat;
    background-position: center;
}
.cd-size-choice {
    background: #ffffff !important;
    border: 1px solid #EBEDEF !important;
}
.cd-modal-error { color:#c33; font-size:13px; margin-top:10px; }
.cd-toast { position:fixed; z-index:100020; bottom:20px; left:50%; transform:translateX(-50%); padding:12px 18px; background:#222; color:#fff; border-radius:8px; font-size:13px; }
@media (min-width: 768px) {
  .cd-drawer { width:min(480px,48vw); }
  .cd-scroll { padding-left:24px; padding-right:24px; }
}
@media (max-width: 767px) {
  .cd-drawer { width:100vw; }
  .cd-header { min-height:58px; padding:14px 16px; }
  .cd-header h2 { font-size:20px; }
  .cd-scroll { padding:0 16px 16px; }
  .cd-product { grid-template-columns:80px minmax(0,1fr); gap:12px; padding:16px 0; }
  .cd-product-side { grid-column:2; display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .cd-product-actions { margin:0; order:2; }
  .cd-price { order:1; }
  .cd-footer { padding:12px 16px max(14px, env(safe-area-inset-bottom)); }
  .cd-summary { padding:12px 14px; }
  .cd-modal { padding:10px; }
  .cd-modal-card { padding:18px; max-height:94vh; border-radius:12px; }
  .cd-modal-title { font-size:19px; }
  .cd-replacement-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .cd-rec-card { flex-basis:44%; }
}

/* Out-of-stock cart row and replacement flow */
.cd-product-out { background:#f5f5f5; border:0; border-radius:9px; padding:14px 12px; margin:16px 0; grid-template-columns:48px minmax(0,1fr) 24px; gap:12px; }
.cd-product-out .cd-thumb { width:48px; height:48px; }
.cd-product-out .cd-out-thumb { object-fit:cover; border-radius:6px; opacity:.65; }
.cd-product-out .cd-product-name { margin:0 0 6px; }
.cd-product-out .cd-option-line { margin-bottom:9px; }
.cd-product-out .cd-product-side { grid-column:auto; }
.cd-product-out .cd-product-actions { margin:0; }
.cd-replace-trigger { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:9px 16px; border:1px solid #222; border-radius:8px; background:transparent; color:#222; font:inherit; font-size:13px; cursor:pointer; }
.cd-picker-title { font-weight:600; font-size:15px; margin-bottom:8px; }
.cd-modal-card .cd-option-picker[hidden] { display:none; }
.cd-modal-card .cd-replacement-grid:empty { display:none; }
@media (max-width:767px) {
  .cd-product-out { grid-template-columns:48px minmax(0,1fr) 20px; padding:14px 12px; }
  .cd-replacement-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Size-only editor: compact sheet matching the supplied reference. */
.cd-modal.cd-size-edit .cd-modal-card { width:min(480px,100%); padding:24px 24px 0; border-radius:16px; }
.cd-modal.cd-size-edit .cd-modal-subtitle { display:none; }
.cd-modal.cd-size-edit .cd-replacement-grid { display:block; margin:16px 0 22px; }
.cd-edit-product { display:flex; align-items:center; gap:16px; min-height:80px; color:#333; font-size:14px; line-height:1.35; }
.cd-edit-product img { width:80px; height:80px; flex:0 0 80px; object-fit:cover; border-radius:8px; background:#f1f1f1; }
.cd-edit-product strong { display:block; margin-top:4px; font-size:16px; }
.cd-modal.cd-size-edit .cd-option-picker { margin:0 -24px; padding:0 24px 12px; background:#fff; border-radius:0; }
.cd-size-label { font-size:13px; margin:0 0 14px; }
.cd-size-options { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.cd-size-choice { min-width:48px; height:42px; padding:0 12px; border:1px solid #e2e5e9; border-radius:8px; background:#fff; color:#333; cursor:pointer; }
.cd-size-choice.is-selected { background:var(--cd-blue) !important; border-color:var(--cd-blue) !important;}
.cd-modal.cd-size-edit .cd-option-picker [data-cd-confirm-option] {
	position: sticky;
    bottom: 0;
    border-radius: 8px;
    padding: 14px 16px;
    width: 100%;
	margin: auto;}
.cd-modal.cd-size-edit .cd-modal-error { padding-bottom:10px; }
@media (max-width:600px) {
  .cd-modal.cd-size-edit { align-items:flex-end; padding:0; }
  .cd-modal.cd-size-edit .cd-modal-card { width:100%; max-height:88vh; padding:20px 16px 0; border-radius:16px 16px 0 0; }
  .cd-modal.cd-size-edit .cd-option-picker { margin:0 -16px; padding:0 16px 10px; }
  .cd-modal.cd-size-edit .cd-option-picker [data-cd-confirm-option] { margin:0 -16px; width:calc(100% + 32px); }
}

/* When the size editor is open, dim the entire cart panel only.
   #0000004D = black at 30%; the size sheet itself sits above this layer. */
.cd-drawer { position: fixed; }
#cart-drawer-root.cd-size-edit-open .cd-drawer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #0000004D;
  pointer-events: auto;
}
#cart-drawer-root.cd-size-edit-open .cd-modal.cd-size-edit { z-index: 999999999; }

/* Size editor must behave as a bottom sheet INSIDE the right cart drawer,
   not as a centered page-level modal. The page dimmer remains the cart overlay. */
.cd-modal.cd-size-edit {
  position: fixed;
  inset: auto 0 0 auto;
  z-index: 100005;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  width: min(480px, 48vw);
  height: auto;
  max-height: 100dvh;
  padding: 0;
  background: transparent;
  overflow: visible;
}
.cd-modal.cd-size-edit.is-open { display: flex; }
.cd-modal.cd-size-edit .cd-modal-backdrop { display: none; }
.cd-modal.cd-size-edit .cd-modal-card {
  width: 100%;
  max-width: none;
  max-height: min(430px, 75dvh);
  overflow-y: auto;
  padding: 16px 24px 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -6px 24px rgba(0,0,0,.08);
}
.cd-modal.cd-size-edit .cd-modal-title { font-size: 19px; margin: 0 38px 18px 0; }
.cd-modal.cd-size-edit .cd-modal-close { top: 12px; right: 16px; }
.cd-modal.cd-size-edit .cd-edit-product { margin-bottom: 24px; }
.cd-modal.cd-size-edit .cd-option-picker { margin: 0 -24px; padding: 0 24px 0; }
.cd-modal.cd-size-edit .cd-size-label { margin: 0 0 14px; }
.cd-modal.cd-size-edit .cd-size-options { margin-bottom: 32px; }
.cd-modal.cd-size-edit .cd-option-picker [data-cd-confirm-option] {
	position: sticky;
    bottom: 0;
    border-radius: 8px;
    padding: 14px 16px;
    width: 100%;
	margin: auto;
}

.cd-shipping-message span {
    color: #048008;
}

.cd-shipping-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

@media (max-width: 767px) {
  .cd-modal.cd-size-edit {
    inset: auto 0 0 0;
    width: 100vw;
    max-width: 100vw;
  }
  .cd-modal.cd-size-edit .cd-modal-card {
    width: 100%;
    max-height: min(430px, 78dvh);
    padding: 16px 24px 0;
    border-radius: 16px 16px 0 0;
  }
}


/* Replacement modal product cards (merged into the customized theme stylesheet). */
.cd-modal:not(.cd-size-edit) .cd-modal-card { width:min(900px,calc(100vw - 32px)); padding:24px; }
.cd-modal-close { position:absolute; top:16px; right:16px; }
.cd-modal-title { font-size:22px; margin:0 38px 8px 0; }
.cd-modal-subtitle { color:#888; margin:0 0 18px; }
.cd-replacement-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.cd-replace-card { min-width:0; overflow:hidden; }
.cd-replace-image-wrap { position:relative; }
.cd-replace-image-wrap > a { display:block; }
.cd-replace-card img { display:block; width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:8px; background:#eee; }
.cd-replace-heart { position:absolute; top:10px; right:10px; width:32px!important; height:32px; padding:0!important; border:0!important; border-radius:50%; color:#111; font-size:25px; line-height:1; cursor:pointer; }
.cd-replace-name {
    display: block;
    margin: 12px 0 8px;
    color: #000000;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'ProximaNova-Semibold';
}
.cd-replace-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 18px;
    color: #888;
    font-size: 12px;
    margin-bottom: 12px;
}
.cd-replace-stars {
    display: flex;
    gap: 6px;
}
.cd-replace-stars span.is-filled { color:#222; }
.cd-replace-reviews {
    white-space: nowrap;
    font-size: 14px;
    padding-top: 5px;
    align-items: center;
    display: flex;
}
.cd-replace-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 20px;
    margin-bottom: 12px;
	align-items: center;
}
.cd-replace-sizes span { font-size:14px; line-height:1.2; }
.cd-replace-buy { display:flex; align-items:center; justify-content:space-between; gap:5px; min-height:44px; padding:3px 3px 3px 12px; border-radius:8px; background:#f4f4f4; }
.cd-replace-buy .cd-replace-price { margin:0; font-size:18px; font-weight:500; white-space:nowrap; }
.cd-replace-buy button { display:flex; align-items:center; justify-content:center; gap:7px; min-height:40px; width:auto; flex:0 0 auto; border:0; border-radius:8px; padding:10px 24px; background:var(--cd-blue); cursor:pointer; font:inherit; font-size:16px; white-space:nowrap; }
.cd-replace-empty { grid-column:1/-1; color:#777; font-size:14px; line-height:1.5; }

@media (max-width: 767px) {
  .cd-modal:not(.cd-size-edit) { padding: 0; align-items: flex-start; }
  .cd-modal:not(.cd-size-edit) .cd-modal-card { width: 100%; max-height: 100dvh; border-radius: 0; padding: 20px 16px; }
  .cd-modal:not(.cd-size-edit) .cd-replacement-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .cd-replace-buy { padding-left: 7px; }
  .cd-replace-buy button { padding: 13.5px; font-size: 12px; }
	.cd-replace-buy button span {
		display: none;
	}
	.cd-replace-buy .cd-replace-price {
		font-size: 14px;
	}
}

/* Recommendation slider arrows reflect the actual scroll position. */
.cd-arrows button.is-disabled, .cd-arrows button:disabled { color:#bdbebe; border-color:#e7e7e7; background:#f8f8f8; cursor:default; opacity:.55; }
.cd-arrows button:not(:disabled):not(.is-disabled) { opacity:1; cursor:pointer; }

/* Product option picker used when adding recommended/popular products */
.cd-option-fields > label { display:block; margin:12px 0 6px; font-size:13px; }
.cd-option-fields select,
.cd-option-fields input[type="text"],
.cd-option-fields input[type="date"],
.cd-option-fields input[type="time"],
.cd-option-fields input[type="datetime-local"],
.cd-option-fields textarea {
  display:block; width:100%; box-sizing:border-box; min-height:42px; margin:0 0 12px;
  padding:10px 12px; border:1px solid #e2e5e9; border-radius:8px; background:#fff; color:#222;
}
.cd-option-checkboxes { margin:0 0 12px; }
.cd-option-check { display:flex !important; align-items:center; gap:8px; margin:7px 0 !important; font-size:14px !important; }
.cd-option-check input { width:16px; height:16px; margin:0; }
.cd-option-file-note { margin:0 0 12px; color:#b42318; font-size:13px; }

.cart-button-total {
    margin-left: 4px;
}

.cd-replace-image-wrap .cd-replace-heart.active {
    background-size: 18px;
    background-image: url(https://sezon.ua/catalog/view/theme/default/image/wish_f.svg);
    background-repeat: no-repeat;
    background-position: center;
}