.casl-products-shortcode {
  --casl-bg: #ffffff;
  --casl-text: #23374a;
  --casl-muted: #5e748a;
  --casl-border: #d7e7f4;
  --casl-blue: #7ebeff;
  --casl-blue-soft: #d8eeff;
  --casl-blue-deep: #65abf2;

  font-size: 16px;
  line-height: 1.62;
  color: var(--casl-text);
}

.cortex-cart-shortcode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cortex-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(126, 190, 255, 0.42);
  background: linear-gradient(135deg, rgba(216, 238, 255, 0.92), rgba(255, 182, 193, 0.32));
  color: #18364f;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(31, 79, 121, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.cortex-cart-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(31, 79, 121, 0.2);
  filter: brightness(1.02);
}

.cortex-cart-icon {
  width: 26px;
  height: 26px;
  inline-size: 26px;
  block-size: 26px;
  display: block;
  flex: 0 0 26px;
}

#cortex-cart-count,
.cortex-cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff7ca8, #ff4d7e);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 20px rgba(255, 77, 126, 0.34);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.cortex-hero-slider {
  position: relative;
  width: 100%;
  min-height: clamp(440px, var(--cortex-hero-height-max, 760px), 1800px);
  overflow: hidden;
  margin: 0;
  background: #ffffff;
  border-radius: 0;
  isolation: isolate;
}

.cortex-hero-slider__viewport {
  position: relative;
  min-height: inherit;
  margin: 0;
  background: #ffffff;
}

.cortex-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.85s ease, visibility 0.85s ease;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cortex-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.cortex-hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11, 23, 34, 0.72) 8%, rgba(11, 23, 34, 0.46) 46%, rgba(11, 23, 34, 0.6) 100%),
    linear-gradient(135deg, rgba(126, 190, 255, 0.1), rgba(255, 182, 193, 0.14));
}

.cortex-hero-slide__content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 92px) clamp(24px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.cortex-hero-slide__content > * {
  opacity: 0;
  transform: translateY(28px);
}

.cortex-hero-slide.is-active .cortex-hero-slide__eyebrow {
  animation: cortexFadeUp 0.78s ease forwards 0.12s;
}

.cortex-hero-slide.is-active .cortex-hero-slide__title {
  animation: cortexFadeUp 0.84s ease forwards 0.24s;
}

.cortex-hero-slide.is-active .cortex-hero-slide__description {
  animation: cortexFadeUp 0.9s ease forwards 0.36s;
}

.cortex-hero-slide.is-active .cortex-hero-slide__button {
  animation: cortexFadeUp 0.96s ease forwards 0.48s;
}

.cortex-hero-slide__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #eff8ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cortex-hero-slide__title {
  max-width: 9ch;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.cortex-hero-slide__description {
  max-width: 540px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.8;
}

.cortex-hero-slide__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dff3ff, #ffccdc);
  color: #17334a;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(17, 42, 63, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.cortex-hero-slide__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(17, 42, 63, 0.28);
  filter: brightness(1.03);
}

.cortex-hero-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.cortex-hero-slider__arrow:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(216, 238, 255, 0.72);
}

.cortex-hero-slider__arrow:focus-visible,
.cortex-hero-slider__dot:focus-visible,
.cortex-hero-slide__button:focus-visible {
  outline: 2px solid #dff3ff;
  outline-offset: 3px;
}

.cortex-hero-slider__arrow span {
  display: block;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
}

.cortex-hero-slider__arrow.is-prev {
  left: clamp(16px, 3vw, 30px);
}

.cortex-hero-slider__arrow.is-next {
  right: clamp(16px, 3vw, 30px);
}

.cortex-hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateX(-50%);
}

.cortex-hero-slider__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.cortex-hero-slider__dot.is-active {
  background: linear-gradient(135deg, #dff3ff, #ffb8cf);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
  transform: scale(1.12);
}

@keyframes cortexFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cortex-hero-slide,
  .cortex-hero-slide__content > *,
  .cortex-hero-slider__arrow,
  .cortex-hero-slider__dot,
  .cortex-category-card__image,
  .casl-product-card,
  .casl-add-to-cart {
    animation: none !important;
    transition: none !important;
  }

  .cortex-hero-slide__content > * {
    opacity: 1;
    transform: none;
  }
}

.cortex-categories-shortcode {
  margin-top: 6px;
  width: 100%;
  max-width: 100%;
}

.cortex-categories-shortcode p,
.cortex-categories-grid p {
  margin: 0;
}

.cortex-categories-shortcode > p,
.cortex-categories-grid > p {
  display: contents;
}

.cortex-categories-shortcode br,
.cortex-categories-grid br {
  display: none !important;
}

.cortex-categories-grid {
  display: grid !important;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px;
}

.cortex-category-card {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(18, 44, 68, 0.14);
  isolation: isolate;
}

.cortex-category-card__image {
  position: absolute;
  inset: 0;
  background-color: #dce9f5;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1);
  transition: transform 0.45s ease;
}

.cortex-category-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 23, 34, 0.18) 0%, rgba(11, 23, 34, 0.56) 100%),
    linear-gradient(135deg, rgba(126, 190, 255, 0.12), rgba(255, 182, 193, 0.18));
}

.cortex-category-card__label {
  position: relative;
  z-index: 2;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #ffffff;
  text-align: center;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 10px 24px rgba(10, 19, 31, 0.28);
}

.cortex-category-card:hover .cortex-category-card__image {
  transform: scale(1.08);
}

@media (max-width: 980px) {
  .cortex-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .cortex-categories-grid {
    grid-template-columns: 1fr !important;
  }
}

.casl-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.casl-product-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  overflow: clip;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  transform-origin: center;
}

.casl-product-card:hover {
  transform: translateY(-3px);
  border-color: #e6edf4;
  box-shadow: 0 18px 34px rgba(16, 24, 40, 0.08);
}

.casl-product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f5f6f8;
  border-radius: 12px 12px 0 0;
}

.casl-product-image,
.casl-product-image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.casl-product-image {
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.casl-product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fb;
  color: var(--casl-muted);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.casl-product-card:hover .casl-product-image,
.casl-product-card:focus-within .casl-product-image {
  transform: scale(1.05);
}

.casl-product-image-overlay {
  position: absolute;
  inset: auto 12px 12px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  z-index: 2;
}

.casl-product-card:hover .casl-product-image-overlay,
.casl-product-card:focus-within .casl-product-image-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.casl-product-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.casl-product-title {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: 0.01em;
  color: #1f2630;
}

.casl-product-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.casl-product-title-link {
  color: inherit;
  text-decoration: none;
}

.casl-product-title-link:hover {
  color: #10161d;
}

.casl-product-price {
  color: #697685;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.casl-product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.casl-product-size-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3f9ff, #fff1f6);
  border: 1px solid #dde9f4;
  color: #506173;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.casl-add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 1px solid #9cccf3;
  border-radius: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #dff1ff 0%, #9fd4ff 52%, #ffbfd0 100%);
  color: #17324a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(126, 190, 255, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.casl-add-to-cart:hover {
  background: linear-gradient(135deg, #cfe9ff 0%, #88c6fa 52%, #ffacc6 100%);
  border-color: #8fc4ef;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(126, 190, 255, 0.28);
}

.casl-add-to-cart:disabled {
  background: #e5edf5;
  color: #75889b;
  border-color: #d6e3ee;
  box-shadow: none;
  cursor: not-allowed;
}

.casl-add-to-cart.is-added {
  background: linear-gradient(135deg, #d9efff 0%, #97ccf8 55%, #ffc3d2 100%);
  color: #14314a;
  border-color: #92c6ef;
  box-shadow: 0 8px 16px rgba(126, 190, 255, 0.22);
}

.casl-products-empty {
  border: 1px dashed var(--casl-border);
  border-radius: 14px;
  padding: 22px;
  color: var(--casl-muted);
  text-align: center;
  background: #fdfefe;
  line-height: 1.6;
}

.cortex-cart-wrap {
  color: var(--casl-text);
}

.cortex-cart-contents {
  display: grid;
  gap: 18px;
}

.cortex-cart-payment-message {
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #f7c2d1;
  background: #fff5f8;
  color: #9f264e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.cortex-cart-empty {
  border: 1px dashed #d8e4ef;
  border-radius: 18px;
  padding: 32px 24px;
  background: #ffffff;
  color: #657788;
  text-align: center;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.04);
}

.cortex-cart-table-wrap {
  overflow-x: auto;
  border: 1px solid #edf1f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.05);
}

.cortex-cart-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.cortex-cart-table th,
.cortex-cart-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: middle;
}

.cortex-cart-table th {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #728191;
  background: #fbfcfd;
}

.cortex-cart-table tbody tr:last-child td {
  border-bottom: 0;
}

.cortex-cart-product {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.cortex-cart-product-image {
  width: 88px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #f6f7f9;
  border: 1px solid #edf1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b8896;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cortex-cart-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cortex-cart-product-meta strong {
  display: block;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.3;
  color: #1f2630;
}

.cortex-cart-product-size {
  display: inline-block;
  margin-top: 6px;
  color: #647587;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cortex-cart-price,
.cortex-cart-subtotal {
  font-size: 0.95rem;
  color: #4f5f70;
  white-space: nowrap;
}

.cortex-cart-subtotal {
  font-weight: 600;
  color: #1f2630;
}

.cortex-cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border: 1px solid #e3ebf3;
  border-radius: 999px;
  background: #ffffff;
}

.cortex-cart-qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef7ff, #ffe5ee);
  color: #21384d;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cortex-cart-qty-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.cortex-cart-qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  color: #23374a;
}

.cortex-cart-actions {
  text-align: right;
}

.cortex-cart-remove {
  border: 0;
  background: transparent;
  color: #9a335d;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.cortex-cart-remove:hover {
  color: #7c2449;
}

.cortex-cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid #edf1f5;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(248, 252, 255, 0.96), rgba(255, 248, 251, 0.96));
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.05);
}

.cortex-cart-total {
  display: grid;
  gap: 4px;
}

.cortex-cart-total span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #708092;
}

.cortex-cart-total strong {
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 500;
  color: #18222d;
}

.cortex-cart-checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid #9cccf3;
  background: linear-gradient(135deg, #dff1ff 0%, #9fd4ff 52%, #ffbfd0 100%);
  color: #17324a;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(126, 190, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cortex-cart-checkout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(126, 190, 255, 0.24);
  filter: brightness(1.02);
}

@media (max-width: 1100px) {
  .casl-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .casl-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cortex-cart-table th,
  .cortex-cart-table td {
    padding: 14px 16px;
  }

  .cortex-cart-product {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
  }

  .cortex-cart-product-image {
    width: 70px;
  }

  .cortex-cart-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .cortex-cart-checkout-btn {
    width: 100%;
  }
}

@media (hover: none) {
  .casl-product-image-overlay {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.cortex-single-wrap {
  max-width: 1100px;
  margin: 12px auto 8px;
}

.cortex-single-card {
  border: 1px solid var(--casl-border);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(25, 56, 86, 0.08);
}

.cortex-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.cortex-single-details-row {
  width: 100%;
  padding: 0 24px 24px;
}

.cortex-single-image-shell {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(173, 216, 230, 0.3), rgba(255, 182, 193, 0.2));
  padding: 12px;
  box-shadow: 0 10px 24px rgba(24, 53, 80, 0.12);
  overflow: hidden;
}

.cortex-single-image,
.cortex-single-image-placeholder {
  width: 100%;
  height: 460px;
  border-radius: 12px;
}

.cortex-single-image {
  display: block;
  object-fit: cover;
  background: #f7fbff;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.55s ease, filter 0.3s ease;
}

.cortex-single-image-shell:hover .cortex-single-image {
  transform: scale(1.06);
  filter: saturate(1.04);
}

.cortex-single-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f9fd;
  color: var(--casl-muted);
  font-weight: 600;
}

.cortex-single-gallery {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.cortex-single-gallery-thumb {
  border: 1px solid #d8e6f2;
  border-radius: 14px;
  padding: 0;
  margin: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  width: 88px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 10px 18px rgba(24, 53, 80, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cortex-single-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cortex-single-gallery-thumb:hover {
  border-color: #9ec7e8;
  transform: translateY(-2px);
  box-shadow: 0 14px 22px rgba(24, 53, 80, 0.14);
}

.cortex-single-gallery-thumb:hover img {
  transform: scale(1.05);
}

.cortex-single-gallery-thumb.is-active {
  border-color: #8fc1e9;
  box-shadow: 0 0 0 2px rgba(173, 216, 230, 0.44), 0 12px 22px rgba(24, 53, 80, 0.12);
}

.cortex-single-content-col {
  display: flex;
  flex-direction: column;
}

.cortex-single-title {
  margin: 2px 0 10px;
  font-size: clamp(1.7rem, 3.1vw, 2.3rem);
  line-height: 1.25;
  color: #1f3247;
}

.cortex-single-price {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #17496f;
}

.cortex-single-stock {
  width: fit-content;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 11px;
  margin-bottom: 14px;
}

.cortex-single-stock.is-in {
  background: #e8f7ee;
  border: 1px solid #abdcbf;
  color: #195f3f;
}

.cortex-single-stock.is-out {
  background: #fff1f5;
  border: 1px solid #f4bfd0;
  color: #9f2b52;
}

.cortex-single-description {
  color: #314a61;
  line-height: 1.72;
  margin: 0 0 18px;
  font-size: 0.99rem;
}

.cortex-single-details {
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid #e7eef5;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.96), rgba(255, 249, 251, 0.96));
}

.cortex-single-details-full {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.cortex-single-size-guide-row {
  padding-top: 0;
}

.cortex-single-size-guide {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid rgba(31, 50, 71, 0.14);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(25, 56, 86, 0.04);
}

.cortex-single-size-guide-title {
  margin: 0 0 16px;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: #1f3247;
}

.cortex-single-size-guide-media {
  width: 100%;
}

.cortex-single-size-guide-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(31, 50, 71, 0.08);
  background: #fbfdff;
}

.cortex-single-details-title {
  margin: 0 0 10px;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f3247;
}

.cortex-single-long-description {
  color: #3a5065;
  line-height: 1.82;
  font-size: 0.98rem;
}

.cortex-single-long-description p {
  margin: 0 0 12px;
}

.cortex-single-long-description p:last-child {
  margin-bottom: 0;
}

.cortex-single-size-picker {
  margin: 0 0 22px;
}

.cortex-single-size-label {
  display: inline-block;
  margin: 0 0 10px;
  color: #1f3449;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cortex-single-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cortex-single-size-option {
  border: 1px solid #d7e3ef;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(248, 252, 255, 0.95), rgba(255, 247, 250, 0.96));
  color: #23384d;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cortex-single-size-option:hover {
  transform: translateY(-1px);
  border-color: #9ecdf3;
}

.cortex-single-size-option.is-active {
  border-color: #8cbfe8;
  background: linear-gradient(135deg, #dff2ff, #ffbfd0);
  box-shadow: 0 10px 20px rgba(126, 190, 255, 0.18);
}

.cortex-single-purchase {
  border-top: 1px solid #e6eff7;
  padding-top: 14px;
}

.cortex-single-reviews-row {
  padding-top: 0;
}

.cortex-product-reviews {
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(31, 50, 71, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(255, 249, 252, 0.98));
  box-shadow: 0 14px 28px rgba(25, 56, 86, 0.06);
}

.cortex-product-reviews__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.cortex-product-reviews__intro-block {
  max-width: 640px;
}

.cortex-product-reviews__eyebrow {
  margin: 0 0 8px;
  color: #647a8f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cortex-product-reviews__title {
  margin: 0 0 10px;
  font-family: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  font-size: 1.34rem;
  font-weight: 600;
  color: #1f3247;
}

.cortex-product-reviews__intro {
  margin: 0;
  color: #4d657b;
  line-height: 1.72;
}

.cortex-product-reviews__summary {
  flex: 0 0 250px;
  padding: 18px 20px;
  border: 1px solid #e4ebf2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.cortex-product-reviews__summary-label {
  display: block;
  margin-bottom: 8px;
  color: #637a90;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cortex-product-reviews__summary-score {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 10px;
  color: #173d61;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.cortex-product-reviews__summary-score small {
  margin-bottom: 4px;
  color: #72859a;
  font-size: 0.98rem;
}

.cortex-product-reviews__summary-stars {
  margin-bottom: 10px;
}

.cortex-product-reviews__summary-count {
  margin: 0;
  color: #5d7488;
  line-height: 1.62;
}

.cortex-product-reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 20px;
  align-items: flex-start;
}

.cortex-product-reviews__list-shell,
.cortex-product-review-form-shell {
  min-width: 0;
}

.cortex-product-reviews__list {
  display: grid;
  gap: 14px;
}

.cortex-product-reviews__empty {
  padding: 20px;
  border: 1px dashed #c8d7e5;
  border-radius: 18px;
  background: #ffffff;
  color: #5b7288;
  line-height: 1.72;
}

.cortex-product-review-card {
  padding: 18px 20px;
  border: 1px solid #e5edf4;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.cortex-product-review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.cortex-product-review-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cortex-product-review-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  flex: 0 0 44px;
  background: linear-gradient(135deg, #dff2ff, #ffd7e1);
  color: #16324a;
  font-size: 1rem;
  font-weight: 800;
}

.cortex-product-review-card__author {
  margin: 0 0 4px;
  color: #1f3247;
  font-size: 1rem;
  font-weight: 700;
}

.cortex-product-review-card__date {
  margin: 0;
  color: #73869a;
  font-size: 0.84rem;
}

.cortex-product-review-card__body {
  color: #354d62;
  font-size: 0.95rem;
  line-height: 1.74;
}

.cortex-product-review-card__body p {
  margin: 0 0 12px;
}

.cortex-product-review-card__body p:last-child {
  margin-bottom: 0;
}

.cortex-product-review-stars-display {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cortex-product-review-stars-display__star {
  color: #d5dde6;
  font-size: 1.06rem;
  line-height: 1;
}

.cortex-product-review-stars-display__star.is-active {
  color: #f59e0b;
  text-shadow: 0 2px 8px rgba(245, 158, 11, 0.24);
}

.cortex-product-review-form-shell {
  padding: 20px;
  border: 1px solid #e5edf4;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.06);
}

.cortex-product-review-form {
  display: grid;
  gap: 16px;
}

.cortex-product-review-form__field {
  display: grid;
  gap: 8px;
}

.cortex-product-review-form__label {
  color: #1f3449;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cortex-product-review-form input,
.cortex-product-review-form textarea {
  width: 100%;
  border: 1px solid #cad9e7;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fbfdff;
  color: #1f3449;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cortex-product-review-form textarea {
  min-height: 140px;
  resize: vertical;
}

.cortex-product-review-form input:focus,
.cortex-product-review-form textarea:focus {
  outline: none;
  border-color: #9ecdf3;
  box-shadow: 0 0 0 3px rgba(173, 216, 230, 0.34);
  background: #ffffff;
}

.cortex-product-review-form__stars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cortex-product-review-stars__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d5e1ed;
  border-radius: 12px;
  background: #ffffff;
  color: #c8d2dc;
  font-size: 1.42rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.cortex-product-review-stars__button:hover,
.cortex-product-review-stars__button.is-active {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.5);
  background: #fff8ea;
  color: #f59e0b;
  box-shadow: 0 10px 18px rgba(245, 158, 11, 0.16);
}

.cortex-product-review-stars__button:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.45);
  outline-offset: 2px;
}

.cortex-product-review-form__rating-text {
  margin: 0;
  color: #62798f;
  font-size: 0.92rem;
}

.cortex-product-review-form__submit {
  min-height: 48px;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #16324a 0%, #1d486b 58%, #ffb3c8 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 14px 24px rgba(22, 50, 74, 0.18);
}

.cortex-product-review-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(22, 50, 74, 0.22);
  filter: brightness(1.03);
}

.cortex-product-review-form__submit:disabled {
  cursor: progress;
  opacity: 0.88;
  transform: none;
}

.cortex-product-review-form__submit:focus-visible {
  outline: 2px solid rgba(255, 179, 200, 0.55);
  outline-offset: 2px;
}

.cortex-product-review-form__message {
  min-height: 24px;
  margin: 0;
  color: #1c6f46;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.cortex-product-review-form__message.is-error {
  color: #9f2b52;
}

.cortex-product-review-form__message.is-success {
  color: #1c6f46;
}

.cortex-product-review-form.is-loading {
  opacity: 0.98;
}

.cortex-single-qty-label {
  display: inline-block;
  margin: 0 0 8px;
  font-weight: 700;
  color: #1f3449;
}

.cortex-single-purchase-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cortex-single-qty-input {
  width: 104px;
  min-height: 45px;
  border: 1px solid #c7dbec;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 600;
  color: #1f3449;
  background: #fff;
}

.cortex-single-qty-input:focus {
  outline: none;
  border-color: #9ecdf3;
  box-shadow: 0 0 0 3px rgba(173, 216, 230, 0.35);
}

.cortex-single-add-btn {
  width: auto;
  min-width: 170px;
  min-height: 45px;
}

.cortex-single-empty {
  border: 1px dashed var(--casl-border);
  border-radius: 14px;
  padding: 18px;
  color: #4c657d;
  background: #fbfeff;
  text-align: center;
}

.casl-cart-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  padding: 10px 14px;
  border-radius: 10px;
  background: #16324a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.casl-cart-notice.is-show {
  opacity: 1;
  transform: translateY(0);
}

.casl-cart-notice.is-error {
  background: #8a1f4a;
}

.cortex-cart-toast {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(92vw, 360px);
  max-width: min(92vw, 420px);
  padding: 14px 14px 14px 16px;
  border: 1px solid #eceff4;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.16);
  color: #172b3f;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.cortex-cart-toast.is-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cortex-cart-toast.is-hide {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.cortex-cart-toast__message {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1f3247;
}

.cortex-cart-toast__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #111111;
  background: linear-gradient(135deg, #111111 0%, #2a2a2a 58%, #ffbfd0 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.22);
}

.cortex-cart-toast__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(17, 17, 17, 0.28);
  filter: brightness(1.04);
}

.cortex-cart-toast__button:focus-visible {
  outline: 2px solid #ffbfd0;
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .cortex-product-reviews__header {
    flex-direction: column;
  }

  .cortex-product-reviews__summary {
    width: 100%;
    flex-basis: auto;
  }

  .cortex-product-reviews__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cortex-hero-slider {
    min-height: clamp(360px, calc(var(--cortex-hero-height-max, 760px) * 0.72), 760px);
  }

  .cortex-hero-slide__content {
    padding: 42px 18px 84px;
    align-items: center;
    text-align: center;
  }

  .cortex-hero-slide__eyebrow {
    margin-bottom: 14px;
  }

  .cortex-hero-slide__title {
    max-width: 100%;
  }

  .cortex-hero-slide__description {
    max-width: 100%;
  }

  .cortex-hero-slider__arrow {
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }

  .cortex-hero-slider__arrow.is-prev {
    left: 12px;
  }

  .cortex-hero-slider__arrow.is-next {
    right: 12px;
  }

  .cortex-hero-slider__dots {
    bottom: 18px;
  }

  .cortex-single-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .cortex-single-details-row {
    padding: 0 16px 16px;
  }

  .cortex-product-reviews {
    padding: 18px;
  }

  .cortex-product-reviews__summary,
  .cortex-product-review-form-shell {
    padding: 18px;
  }

  .cortex-product-review-card {
    padding: 16px;
  }

  .cortex-product-review-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cortex-product-review-stars__button {
    width: 40px;
    height: 40px;
  }

  .cortex-product-review-form__submit {
    width: 100%;
  }

  .cortex-single-size-guide {
    padding: 18px;
  }

  .cortex-single-image,
  .cortex-single-image-placeholder {
    height: 310px;
  }

  .cortex-single-gallery {
    gap: 10px;
  }

  .cortex-single-gallery-thumb {
    width: calc(25% - 8px);
    min-width: 70px;
  }

  .cortex-single-purchase-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cortex-single-add-btn,
  .cortex-single-qty-input {
    width: 100%;
  }

  .cortex-cart-toast {
    right: 12px;
    left: 12px;
    bottom: 14px;
    min-width: 0;
    max-width: none;
    padding: 12px 12px 12px 14px;
    gap: 10px;
  }

  .cortex-cart-toast__message {
    font-size: 0.88rem;
  }

  .cortex-cart-toast__button {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.72rem;
  }
}
