/* Page layouts — Cotton editorial style */

.bsp-page--cotton {
  --bsp-page-pad-x: clamp(20px, 4vw, 48px);
  background: var(--bsp-page-bg, #ffffff);
  color: var(--bsp-page-title, #111111);
}

/* Hero banner */
.bsp-page--cotton .bsp-page__hero {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 32vw, 420px);
  overflow: hidden;
  background: #111111;
}

.bsp-page--cotton .bsp-page__hero-media {
  position: absolute;
  inset: 0;
  background-color: #2a2a2a;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.bsp-page--cotton .bsp-page__hero--fallback .bsp-page__hero-media {
  background-image: linear-gradient(135deg, #3a3a3a 0%, #111111 100%);
}

.bsp-page--cotton .bsp-page__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.28) 50%, rgba(0, 0, 0, 0.48) 100%);
  pointer-events: none;
}

.bsp-page--cotton .bsp-page__hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: 40px var(--bsp-page-pad-x);
  box-sizing: border-box;
  text-align: right;
}

.bsp-page--cotton .bsp-page__hero-title {
  margin: 0;
  max-width: min(640px, 58vw);
  color: #ffffff;
  font-family: var(--bsp-font-heading, Georgia, "Times New Roman", serif);
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.bsp-page--cotton .bsp-page__hero-description {
  margin: 14px 0 0;
  max-width: min(520px, 52vw);
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.6;
}

/* Shell & grid */
.bsp-page--cotton .bsp-page__shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(32px, 5vw, 56px) var(--bsp-page-pad-x) clamp(48px, 6vw, 80px);
  box-sizing: border-box;
}

/* Width: full (default) vs theme container */
.bsp-page--cotton.bsp-page--width-container .bsp-page__shell {
  width: min(100% - 32px, var(--bsp-container, 1320px));
  max-width: var(--bsp-container, 1320px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.bsp-page--has-hero .bsp-page__shell {
  padding-top: clamp(24px, 3vw, 36px);
}

.bsp-page--cotton .bsp-page__layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.bsp-page--cotton.bsp-page--right-sidebar .bsp-page__layout {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
}

.bsp-page--cotton.bsp-page--no-sidebar .bsp-page__layout,
.bsp-page--cotton.bsp-page--no-sidebar.bsp-page--right-sidebar .bsp-page__layout {
  grid-template-columns: minmax(0, 1fr);
}

.bsp-page--cotton.bsp-page--default .bsp-page__main,
.bsp-page--cotton.bsp-page--fullwidth .bsp-page__main {
  max-width: 860px;
  margin: 0 auto;
}

.bsp-page--cotton.bsp-page--fullwidth .bsp-page__main {
  max-width: 100%;
}

/* Breadcrumbs */
.bsp-page--cotton .bsp-page__breadcrumbs {
  margin: 0 0 clamp(20px, 3vw, 28px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bsp-page-border, #e5e5e5);
  color: var(--bsp-page-muted, #6b6b6b);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.bsp-page--cotton .bsp-page__breadcrumbs a {
  color: var(--bsp-page-muted, #6b6b6b);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bsp-page--cotton .bsp-page__breadcrumbs a:hover {
  color: var(--bsp-page-accent, #111111);
}

.bsp-page--cotton .bsp-page__breadcrumb-sep {
  margin: 0 8px;
  color: #c4c4c4;
}

.bsp-page--has-hero .bsp-page__breadcrumbs {
  display: none;
}

/* Header (no hero) */
.bsp-page--cotton .bsp-page__header {
  margin-bottom: clamp(20px, 3vw, 28px);
  padding-bottom: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--bsp-page-border, #e5e5e5);
}

.bsp-page--cotton .bsp-page__title {
  margin: 0;
  color: var(--bsp-page-title, #111111);
  font-family: var(--bsp-font-heading, Georgia, "Times New Roman", serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.bsp-page--cotton .bsp-page__featured-image {
  margin: 0 0 clamp(24px, 3vw, 36px);
  overflow: hidden;
}

.bsp-page--cotton .bsp-page__featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Content */
.bsp-page--cotton .bsp-page__content {
  color: var(--bsp-page-text, #6b6b6b);
  font-size: 16px;
  line-height: 1.75;
}

.bsp-page--cotton .bsp-page__content > :first-child {
  margin-top: 0;
}

.bsp-page--cotton .bsp-page__content > :last-child {
  margin-bottom: 0;
}

.bsp-page--cotton .bsp-page__content h2,
.bsp-page--cotton .bsp-page__content h3,
.bsp-page--cotton .bsp-page__content h4 {
  color: var(--bsp-page-title, #111111);
  font-family: var(--bsp-font-heading, Georgia, "Times New Roman", serif);
  line-height: 1.3;
  margin: 1.6em 0 0.7em;
}

.bsp-page--cotton .bsp-page__content h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.bsp-page--cotton .bsp-page__content h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

.bsp-page--cotton .bsp-page__content a {
  color: var(--bsp-page-accent, #111111);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bsp-page--cotton .bsp-page__content a:hover {
  opacity: 0.7;
}

.bsp-page--cotton .bsp-page__content ul,
.bsp-page--cotton .bsp-page__content ol {
  padding-left: 1.25rem;
}

.bsp-page--cotton .bsp-page__content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--bsp-page-accent, #111111);
  background: #f7f7f7;
  color: var(--bsp-page-title, #111111);
}

.bsp-page--cotton .bsp-page__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}

.bsp-page--cotton .bsp-page__content th,
.bsp-page--cotton .bsp-page__content td {
  padding: 10px 12px;
  border: 1px solid var(--bsp-page-border, #e5e5e5);
  text-align: left;
}

.bsp-page--cotton .bsp-page__content th {
  background: #f7f7f7;
  color: var(--bsp-page-title, #111111);
  font-weight: 600;
}

.bsp-page--cotton .bsp-page__pagination {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--bsp-page-border, #e5e5e5);
  color: var(--bsp-page-muted, #6b6b6b);
  font-size: 14px;
}

.bsp-page--cotton .bsp-page__pagination-label {
  margin-right: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}

.bsp-page--cotton .bsp-page__pagination a,
.bsp-page--cotton .bsp-page__pagination > span {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  border: 1px solid var(--bsp-page-border, #e5e5e5);
  border-radius: 0;
}

.bsp-page--cotton .bsp-page__pagination a {
  color: var(--bsp-page-accent, #111111);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bsp-page--cotton .bsp-page__pagination a:hover {
  background: var(--bsp-page-accent, #111111);
  border-color: var(--bsp-page-accent, #111111);
  color: #ffffff;
}

/* Sidebar */
.bsp-page--cotton .bsp-page__sidebar {
  position: sticky;
  top: 110px;
  padding: 0 0 0 clamp(16px, 2vw, 24px);
  border-left: 1px solid var(--bsp-page-border, #e5e5e5);
  background: var(--bsp-page-sidebar, #ffffff);
}

.bsp-page--cotton.bsp-page--left-sidebar .bsp-page__sidebar {
  padding: 0 clamp(16px, 2vw, 24px) 0 0;
  border-left: 0;
  border-right: 1px solid var(--bsp-page-border, #e5e5e5);
}

.bsp-page--cotton .bsp-page__widgets .widget {
  margin: 0 0 28px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--bsp-page-border, #e5e5e5);
}

.bsp-page--cotton .bsp-page__widgets .widget:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.bsp-page--cotton .bsp-page__widgets .widget-title {
  margin: 0 0 16px;
  color: var(--bsp-page-title, #111111);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bsp-page--cotton .bsp-page__widgets .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bsp-page--cotton .bsp-page__widgets .widget li {
  margin: 0 0 10px;
}

.bsp-page--cotton .bsp-page__widgets .widget a {
  color: var(--bsp-page-text, #6b6b6b);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.bsp-page--cotton .bsp-page__widgets .widget a:hover {
  color: var(--bsp-page-accent, #111111);
}

.bsp-page--cotton .bsp-page__widgets .widget input[type="search"],
.bsp-page--cotton .bsp-page__widgets .widget input[type="text"],
.bsp-page--cotton .bsp-page__widgets .widget select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--bsp-page-border, #e5e5e5);
  border-radius: 0;
  background: #ffffff;
  color: var(--bsp-page-title, #111111);
  font-size: 14px;
}

.bsp-page--cotton .bsp-page__widgets .widget button,
.bsp-page--cotton .bsp-page__widgets .widget input[type="submit"] {
  margin-top: 10px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--bsp-page-accent, #111111);
  border-radius: 0;
  background: var(--bsp-page-accent, #111111);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bsp-page--cotton .bsp-page__widgets .widget button:hover,
.bsp-page--cotton .bsp-page__widgets .widget input[type="submit"]:hover {
  background: transparent;
  color: var(--bsp-page-accent, #111111);
}

/* Comments */
.bsp-page--cotton .bsp-page__main .comment-respond,
.bsp-page--cotton .bsp-page__main .comments-area {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--bsp-page-border, #e5e5e5);
}

.bsp-page--cotton .bsp-page__main .comments-title,
.bsp-page--cotton .bsp-page__main .comment-reply-title {
  color: var(--bsp-page-title, #111111);
  font-family: var(--bsp-font-heading, Georgia, "Times New Roman", serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
}

.bsp-page--cotton .bsp-page__main .comment-form input[type="text"],
.bsp-page--cotton .bsp-page__main .comment-form input[type="email"],
.bsp-page--cotton .bsp-page__main .comment-form input[type="url"],
.bsp-page--cotton .bsp-page__main .comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bsp-page-border, #e5e5e5);
  border-radius: 0;
}

.bsp-page--cotton .bsp-page__main .form-submit input[type="submit"] {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--bsp-page-accent, #111111);
  border-radius: 0;
  background: var(--bsp-page-accent, #111111);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.bsp-page--cotton .bsp-page__main .form-submit input[type="submit"]:hover {
  background: transparent;
  color: var(--bsp-page-accent, #111111);
}

/* Legacy card shell (cart/checkout still uses bsp-page__card) */
.bsp-page:not(.bsp-page--cotton) {
  background: var(--bsp-page-bg, #ffffff);
  padding: 32px 20px 64px;
}

.bsp-page:not(.bsp-page--cotton) .bsp-page__card {
  background: var(--bsp-page-card, #fff);
  border: 1px solid var(--bsp-page-border, #e5e5e5);
  border-radius: 0;
  padding: 32px 28px;
}

@media (max-width: 991px) {
  .bsp-page--cotton .bsp-page__layout,
  .bsp-page--cotton.bsp-page--right-sidebar .bsp-page__layout {
    grid-template-columns: 1fr;
  }

  .bsp-page--cotton .bsp-page__sidebar {
    position: static;
    order: 2;
    padding: clamp(24px, 4vw, 32px) 0 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--bsp-page-border, #e5e5e5);
  }

  .bsp-page--cotton.bsp-page--left-sidebar .bsp-page__sidebar {
    padding: clamp(24px, 4vw, 32px) 0 0;
    border-right: 0;
  }

  .bsp-page--cotton .bsp-page__main {
    order: 1;
  }

  .bsp-page--cotton .bsp-page__hero-content {
    align-items: center;
    text-align: center;
  }

  .bsp-page--cotton .bsp-page__hero-title,
  .bsp-page--cotton .bsp-page__hero-description {
    max-width: 100%;
  }
}
