/* site palette */
html:root {
    --bg: #F9F4EF;
    --surface: #FFFFFF;
    --surface-alt: #F7F0E9;
    --text: #241C14;
    --text-muted: #72675A;
    --border: #E4DED8;
    --primary: #5E15A1;
    --primary-hover: #4C1181;
    --on-primary: #FFFFFF;
    --primary-text: #5E15A1;
    --accent: #241E29;
    --on-accent: #FFFFFF;
    --accent-text: #241E29;
    --dark-band: #18130F;
    --on-dark: #FFFFFF;
    --on-dark-muted: #C3BDB6;
    --brand-btn-bg: #FFFFFF;
    --brand-btn-text: #18130F;
    --section-alt-bg: #F7F0E9;
    --dark-band-bg: #18130F;
    --brand-band-bg: #5E15A1;
    --hero-bg: #18130F;
}

/* /site palette */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rethink Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

.text-muted {
    color: var(--text-muted) !important;
}

.tgs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--on-primary);
    border-radius: 9999px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
    box-shadow: none !important;
}

.tgs-btn:hover {
    background-color: var(--primary-hover);
    color: var(--on-primary);
}

.tgs-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: var(--primary-text);
    border-radius: 9999px;
    padding: 12px 26px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.25s ease-in-out, border-color 0.25s ease-in-out, color 0.25s ease-in-out;
    box-shadow: none !important;
}

.tgs-btn-alt:hover {
    background-color: var(--surface);
    border-color: var(--text);
    color: var(--text);
}

.tgs-card {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 24px;
    box-shadow: none !important;
    transition: border-color 0.25s ease-in-out;
}

.tgs-card:hover {
    border-color: var(--primary);
}

.tgs-media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: none !important;
}

.tgs-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tgs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary);
    color: var(--on-primary);
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.tgs-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-top: 12px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .tgs-title {
        font-size: 38px;
    }
}

.tgs-title span {
    color: var(--primary);
}

.tgs-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    background-color: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.tgs-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--on-primary);
    flex-shrink: 0;
    font-size: 20px;
}

.tgs-section {
    padding-top: 56px;
    padding-bottom: 56px;
    background-color: var(--bg);
}

.tgs-section-alt {
    padding-top: 56px;
    padding-bottom: 56px;
    background-color: var(--section-alt-bg, var(--surface-alt));
}

.tgs-section-dark {
    padding-top: 56px;
    padding-bottom: 56px;
    background-color: var(--dark-band-bg, var(--dark-band));
    color: var(--on-dark);
}

.tgs-section-brand {
    padding-top: 56px;
    padding-bottom: 56px;
    background-color: var(--brand-band-bg, var(--primary));
    color: var(--on-primary);
}

@media (min-width: 768px) {

    .tgs-section,
    .tgs-section-alt,
    .tgs-section-dark,
    .tgs-section-brand {
        padding-top: 88px;
        padding-bottom: 88px;
    }
}

.tgs-section-brand .tgs-btn {
    background-color: var(--brand-btn-bg, #FFFFFF);
    color: var(--brand-btn-text, #18130F);
}

.tgs-section-brand .tgs-btn:hover {
    background-color: var(--surface-alt);
}

.tgs-section-brand .tgs-btn-alt {
    border-color: var(--on-primary);
    color: var(--on-primary);
}

.tgs-section-brand .tgs-btn-alt:hover {
    background-color: var(--on-primary);
    color: var(--primary);
}

.tgs-section-dark,
.tgs-on-dark {
    color: var(--on-dark);
}

.tgs-section-dark h1,
.tgs-section-dark h2,
.tgs-section-dark h3,
.tgs-section-dark h4,
.tgs-section-dark a,
.tgs-on-dark h1,
.tgs-on-dark h2,
.tgs-on-dark h3,
.tgs-on-dark h4,
.tgs-on-dark a {
    color: var(--on-dark);
}

.tgs-section-dark .text-muted,
.tgs-on-dark .text-muted {
    color: var(--on-dark-muted) !important;
}

.tgs-section-dark .tgs-btn-alt,
.tgs-on-dark .tgs-btn-alt {
    border-color: var(--on-dark);
    color: var(--on-dark);
}

.tgs-section-dark .tgs-btn-alt:hover,
.tgs-on-dark .tgs-btn-alt:hover {
    background-color: var(--on-dark);
    color: var(--dark-band);
}

.tgs-section-dark .tgs-card,
.tgs-on-dark .tgs-card {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.tgs-section-dark .tgs-card h1,
.tgs-section-dark .tgs-card h2,
.tgs-section-dark .tgs-card h3,
.tgs-section-dark .tgs-card h4,
.tgs-on-dark .tgs-card h1,
.tgs-on-dark .tgs-card h2,
.tgs-on-dark .tgs-card h3,
.tgs-on-dark .tgs-card h4 {
    color: var(--text);
}

.tgs-section-dark .tgs-card .text-muted,
.tgs-on-dark .tgs-card .text-muted {
    color: var(--text-muted) !important;
}

/* ===== header ===== */
.blooms-header .js-dropdown-menu {
    box-shadow: none;
}

.blooms-header .js-dropdown-toggle[aria-expanded="true"] .js-dropdown-icon {
    transform: rotate(180deg);
}

/* ===== hero ===== */
.blooms-hero {
    box-sizing: border-box;
}

.blooms-hero * {
    box-sizing: border-box;
}

.blooms-hero h1,
.blooms-hero p,
.blooms-hero a {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .blooms-hero__grid {
        flex-direction: column;
    }
}

/* ===== categories_grid ===== */
.categories-grid-block .categories-grid {
    display: grid;
}

.categories-grid-block .category-item {
    box-shadow: none;
}

@media (max-width: 767px) {
    .categories-grid-block .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== promotions ===== */
.promotions-block {
    background-color: var(--primary, #5E15A1);
    color: var(--on-primary, #FFFFFF);
}

.promotions-block .tgs-card {
    box-shadow: none;
    border-radius: 4px;
}

.promotions-block .tgs-card img {
    transition: transform 0.3s ease-in-out;
}

.promotions-block .tgs-card:hover img {
    transform: scale(1.04);
}

@media (max-width: 767px) {
    .promotions-block .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== financing ===== */
.blooms-financing {
    overflow: hidden;
}

.blooms-financing .tgs-card {
    box-shadow: none;
}

.blooms-financing .tgs-icon {
    box-shadow: none;
}

@media (max-width: 767px) {
    .blooms-financing .tgs-title {
        font-size: 16px;
        line-height: 1.3;
    }
}

/* ===== services ===== */
.drums-services-block {
    box-sizing: border-box;
}

.drums-services-block .tgs-card {
    box-shadow: none;
}

.drums-services-block .tgs-card:hover {
    border-color: var(--primary);
}

@media (max-width: 767px) {
    .drums-services-block .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== blog_grid ===== */
.blog-grid-section {
    background-color: var(--bg);
}

.blog-grid-section .blog-grid-card {
    transition: border-color 0.25s ease-in-out;
}

.blog-grid-section .blog-grid-card:hover {
    border-color: var(--primary);
}

.blog-grid-section .blog-grid-card:hover .blog-grid-img {
    transform: scale(1.04);
}

.blog-grid-section .blog-grid-card-title {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .blog-grid-section .blog-grid-card-title {
        font-size: 14px;
        line-height: 1.35;
    }
}

/* ===== footer ===== */
.site-footer a {
    text-decoration: none;
    word-break: break-word;
}

.site-footer a:hover {
    color: var(--on-dark);
}

@media (max-width: 767px) {
    .site-footer .grid {
        grid-template-columns: 1fr;
    }
}

.blooms-header .js-dropdown-menu {
    box-shadow: none;
}

.blooms-header .js-dropdown-toggle[aria-expanded="true"] .js-dropdown-icon {
    transform: rotate(180deg);
}

.site-footer a {
    text-decoration: none;
    word-break: break-word;
}

.site-footer a:hover {
    color: var(--on-dark);
}

@media (max-width: 767px) {
    .site-footer .grid {
        grid-template-columns: 1fr;
    }
}


/* ===== PAGE: about ===== */
.tgs-section { background-color: var(--bg); }
.tgs-section-alt { background-color: var(--surface-alt); }
.tgs-card { box-shadow: none; }
@media (max-width: 767px) {
  .tgs-card { width: 100%; }
}

/* ===== PAGE: blog ===== */
.bd-blog-section {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-family-primary, 'Rethink Sans', sans-serif);
}
.bd-blog-section .tgs-card {
  box-shadow: none;
  transition: border-color 0.25s ease-in-out, background-color 0.25s ease-in-out;
}
.bd-blog-section .tgs-card:hover {
  border-color: var(--primary);
}
.bd-blog-section .tgs-media {
  transition: transform 0.35s ease;
}
.bd-blog-section .tgs-card:hover .tgs-media {
  transform: scale(1.03);
}
.bd-blog-section input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}
@media (max-width: 767px) {
  .bd-blog-section .tgs-card {
    flex-direction: column;
  }
}

/* ===== PAGE: special-offers ===== */
.bd-promo-section {
  background-color: var(--bg);
}

.bd-promo-section .tgs-card {
  box-shadow: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bd-promo-section .tgs-card:hover {
  border-color: var(--primary);
}

.bd-promo-section .tgs-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bd-promo-section .js-filter-btn.active {
  background-color: var(--primary);
  color: var(--on-primary);
  border-color: transparent;
}

@media (max-width: 767px) {
  .bd-promo-section .js-promo-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE: payment-delivery ===== */
.blooms-shipping-payment-page { overflow-wrap: anywhere; }
.blooms-shipping-payment-page .tgs-card { transition: border-color 0.2s ease-in-out; }
.blooms-shipping-payment-page .tgs-card:hover { border-color: var(--primary); }
@media (max-width: 767px) {
  .blooms-shipping-payment-page .tgs-title { font-size: 16px; }
}

/* ===== PAGE: contact ===== */
.bd-contact-section .tgs-card {
  box-shadow: none;
}
.bd-map-section .bd-map-wrapper {
  height: 340px;
  width: 100%;
  overflow: hidden;
  box-shadow: none;
}
@media (min-width: 768px) {
  .bd-map-section .bd-map-wrapper {
    height: 480px;
  }
}
.bd-map-section .bd-map-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}

/* ===== PAGE: privacy ===== */
.privacy-page-section { box-shadow: none; } .privacy-page-section h2, .privacy-page-section h3 { overflow-wrap: anywhere; } .privacy-nav .js-toc-link.active { background-color: #5E15A1; color: #FFFFFF; } .privacy-nav .js-toc-link.active i { color: #FFFFFF; } @media (max-width: 767px) { .privacy-page-section .grid { grid-template-columns: 1fr; } }

/* ===== PAGE: terms ===== */
.bd-terms-block { background-color: var(--bg); }
.bd-terms-block a { word-break: break-word; }
.bd-terms-nav a.active { background-color: var(--surface-alt); color: var(--primary-text); font-weight: 700; }
@media (max-width: 767px) {
  .bd-terms-block { padding-top: 36px; padding-bottom: 48px; }
}

/* ===== PAGE: disclaimer ===== */
.disclaimer-page { word-break: normal; overflow-wrap: anywhere; } .disclaimer-page h2, .disclaimer-page h3, .disclaimer-page h4 { hyphens: auto; }

/* ===== PAGE: refund ===== */
.bd-refund-section { overflow-wrap: anywhere; }
.bd-refund-section input, .bd-refund-section select, .bd-refund-section textarea { font-family: inherit; }
.bd-refund-section .js-faq-item.is-active .js-faq-content { display: block; }
.bd-refund-section .js-faq-item.is-active .js-faq-icon { transform: rotate(180deg); }

.comment-card {
    background-color: #FFFFFF;
    border: 1px solid #E4DED8;
    border-radius: 4px;
    box-shadow: none;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 9999px;
    object-fit: cover;
    border: 1px solid #E4DED8;
}

.comment-badge {
    background-color: #5E15A1;
    color: #FFFFFF;
    border-radius: 9999px;
    letter-spacing: 0.06em;
}

.comment-body {
    color: #241C14;
    font-size: 15px;
    line-height: 1.55;
}

.comment-action-btn {
    transition: all 0.25s ease-in-out;
    box-shadow: none;
}

.comment-reply-btn {
    transition: all 0.25s ease-in-out;
    box-shadow: none;
}

.reply-card {
    background-color: #F7F0E9;
    border: 1px solid #E4DED8;
    border-radius: 4px;
    box-shadow: none;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 9999px;
    object-fit: cover;
    border: 1px solid #E4DED8;
}

.reply-staff-badge {
    background-color: #241E29;
    color: #FFFFFF;
    border-radius: 9999px;
    letter-spacing: 0.06em;
}

.reply-body {
    color: #241C14;
    font-size: 14px;
    line-height: 1.5;
}

.reply-action-btn {
    transition: all 0.25s ease-in-out;
    box-shadow: none;
}

.comment-action-btn.is-liked,
.reply-action-btn.is-liked {
    background-color: #5E15A1;
    border-color: #5E15A1;
    color: #FFFFFF;
}

.comment-action-btn.is-liked i,
.reply-action-btn.is-liked i {
    color: #FFFFFF;
}


/* ===== PAGE TEMPLATE: catalog, promotions ===== */
.detail-page-body {
    font-family: 'Rethink Sans', sans-serif;
}

.blooms-header .js-dropdown-menu {
    box-shadow: none;
}

.blooms-header .js-dropdown-toggle[aria-expanded="true"] .js-dropdown-icon {
    transform: rotate(180deg);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.reply-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.js-like-btn.is-active {
    background-color: #5E15A1;
    color: #FFFFFF;
    border-color: #5E15A1;
}

.js-like-btn.is-active i {
    color: #FFFFFF;
}

.site-footer a {
    text-decoration: none;
    word-break: break-word;
}

.site-footer a:hover {
    color: var(--on-dark);
}

@media (max-width: 767px) {
    .site-footer .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE TEMPLATE: blog ===== */
.blooms-header .js-dropdown-menu {
    box-shadow: none;
}

.blooms-header .js-dropdown-toggle[aria-expanded="true"] .js-dropdown-icon {
    transform: rotate(180deg);
}

.site-footer a {
    text-decoration: none;
    word-break: break-word;
}

.site-footer a:hover {
    color: var(--on-dark);
}

.article-detail-page {
    overflow-wrap: anywhere;
}

.article-detail-page .data-table td,
.article-detail-page .data-table th {
    padding: 12px 16px;
}

@media (max-width: 767px) {
    .site-footer .grid {
        grid-template-columns: 1fr;
    }

    .article-detail-page .data-table thead {
        display: none;
    }

    .article-detail-page .data-table,
    .article-detail-page .data-table tbody,
    .article-detail-page .data-table tr,
    .article-detail-page .data-table td {
        display: block;
        width: 100%;
    }

    .article-detail-page .data-table tr {
        border-bottom: 1px solid #E4DED8;
        padding: 8px 0;
    }
}

/* mobile-text-guard */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, label {
    overflow-wrap: anywhere;
  }
  a, button, .btn {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  img, video, iframe {
    max-width: 100%;
  }
}

/* footer logo: force white on dark band */
.site-footer img[src*="brand-logo"],
.site-footer img[alt="Blooms Drums"] {
  filter: brightness(0) invert(1);
}

/* ===== mobile header ===== */
html, body {
  overflow-x: clip;
}

@media (max-width: 767px) {
  .blooms-header > div:first-child {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
    min-width: 0;
  }

  .blooms-header .flex.items-center > a {
    min-width: 0;
  }

  .blooms-header a > span[class*="text-"] {
    font-size: 16px;
    white-space: nowrap;
  }

  .blooms-header [data-open-cart] {
    padding: 8px 12px;
    gap: 6px;
    flex-shrink: 0;
  }

  .blooms-header [data-open-cart] > span:first-of-type {
    display: none;
  }

  .blooms-header .js-mobile-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .blooms-header .js-mobile-menu {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .blooms-header .js-mobile-menu a {
    display: block;
    width: 100%;
    white-space: normal;
  }
}

/* Product imagery: never crop product photos */
.tgs-media img,
img.tgs-media,
.js-product-card img {
    object-fit: contain;
}
