@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/**
 * SammyGuru Deals Hub — Stylesheet
 * FTP path: /wp-content/themes/[YOUR-CHILD-THEME-FOLDER]/deals.css
 *
 * Brand colors:
 *   Primary blue:   #19289B
 *   Dark heading:   #0d1763
 *   Orange accent:  #CE5C3A
 *   Body text:      #333333
 *   Meta text:      #666666
 *   Section bg:     #F5F5F5
 *   Borders:        #E5E5E5
 *   Success green:  #27AE60
 *   Font:           Inter (Google Fonts)
 */

/* ============================================================
   BASE / RESETS FOR DEALS PAGES
   ============================================================ */

.sg-deals-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.sg-deals-page .et_pb_section {
    /* Ensure Divi sections on deals pages don't have unexpected overrides */
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.sg-deals-hero {
    background: linear-gradient(135deg, #CE5C3A 0%, #8B2A6E 35%, #19289B 70%, #0d1763 100%);
    padding: 60px 20px;
    text-align: center;
}

.sg-deals-hero__inner {
    max-width: 800px;
    margin: 0 auto;
}

.sg-deals-hero__breadcrumb {
    margin-bottom: 20px;
}

.sg-deals-hero__breadcrumb .sg-breadcrumb,
.sg-deals-hero .sg-breadcrumb {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 15px !important;
    text-align: left !important;
}

.sg-deals-hero__breadcrumb .sg-breadcrumb a,
.sg-deals-hero .sg-breadcrumb a,
.sg-deals-hero .sg-breadcrumb__item a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-size: 15px !important;
}

.sg-deals-hero__breadcrumb .sg-breadcrumb a:hover,
.sg-deals-hero .sg-breadcrumb a:hover,
.sg-deals-hero .sg-breadcrumb__item a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.sg-deals-hero__breadcrumb .sg-breadcrumb-sep,
.sg-deals-hero .sg-breadcrumb-sep {
    margin: 0 8px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 15px !important;
}

/* Left-align breadcrumb inside Divi centered text modules */
.sg-deals-hero .et_pb_text_inner {
    text-align: left !important;
}

/* Keep heading + subtitle centered */
.sg-deals-hero .et_pb_text_inner h1,
.sg-deals-hero .et_pb_text_inner p {
    text-align: center !important;
}

.sg-deals-hero h1,
.sg-deals-hero .sg-deals-hero__title {
    color: #ffffff !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
}

.sg-deals-hero__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.5;
    margin: 0;
}

/* Breadcrumb — generic (outside hero too) */

.sg-breadcrumb__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.sg-breadcrumb__item {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #666666;
}

/* Inside hero sections, breadcrumb items inherit white */
.sg-deals-hero .sg-breadcrumb__item {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 15px !important;
}

.sg-breadcrumb__item meta,
.sg-breadcrumb__list meta,
.sg-breadcrumb meta,
.sg-breadcrumb [itemprop="position"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    clip: rect(0,0,0,0) !important;
}

.sg-breadcrumb__item a {
    color: #19289B;
    text-decoration: none;
}

.sg-breadcrumb__item a:hover {
    text-decoration: underline;
}

/* ============================================================
   PRODUCT BOXES SECTION
   ============================================================ */

.sg-product-boxes-section {
    background: #ffffff;
    padding: 40px 0;
}

.sg-product-boxes-section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.sg-product-boxes-section__title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0d1763 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 !important;
}

.sg-product-boxes-section__subtitle {
    font-size: 13px;
    color: #666666;
    margin: 4px 0 0;
}

.sg-product-boxes-section__see-all {
    font-size: 14px;
    color: #19289B;
    text-decoration: none;
    white-space: nowrap;
}

.sg-product-boxes-section__see-all:hover {
    text-decoration: underline;
}

/* Grid of product box cards */

.sg-product-boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Individual product box card */

.sg-product-box {
    background: #ffffff;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sg-product-box:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sg-product-box__image-wrap {
    position: relative;
    background: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    border-bottom: 1px solid #F5F5F5;
}

.sg-product-box__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #CE5C3A;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    z-index: 1;
}

.sg-product-box__image {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.sg-product-box__image-placeholder {
    width: 100%;
    height: 160px;
    background: #F5F5F5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.sg-product-box__image-placeholder span {
    color: #999999;
    font-size: 13px;
    font-style: italic;
}

.sg-product-box__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.sg-product-box__name {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sg-product-box__pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sg-product-box__original-price {
    font-size: 13px;
    color: #999999;
    text-decoration: line-through;
}

.sg-product-box__sale-price {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
}

.sg-product-box__savings {
    display: inline-block;
    background: #27AE60;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 100px;
    letter-spacing: 0.3px;
    align-self: flex-start;
}

.sg-product-box__cta {
    display: block;
    background: #19289B;
    color: #ffffff !important;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease;
    margin-top: auto;
}

.sg-product-box__cta:hover {
    background: #0f1a6e;
    color: #ffffff !important;
}

.sg-product-box__retailer {
    font-size: 12px;
    color: #999999;
    margin: 0;
    text-align: center;
}

/* ============================================================
   CATEGORY NAVIGATION BAR
   ============================================================ */

.sg-deals-cat-nav {
    background: #ffffff;
    border-bottom: 1px solid #E5E5E5;
    position: sticky;
    top: 0;
    z-index: 999;
    /* Divi header is typically z-index 999999 — adjust if overlapping */
}

/* Override if Divi's header uses a lower z-index */
.sg-deals-page .et-fixed-header ~ * .sg-deals-cat-nav {
    top: 80px; /* adjust to match your header height */
}

.sg-deals-cat-nav__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sg-deals-cat-nav__inner::-webkit-scrollbar {
    display: none;
}

.sg-deals-cat-nav__item {
    display: inline-block;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    text-decoration: none !important;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.sg-deals-cat-nav__item:hover {
    color: #19289B;
    border-bottom-color: #19289B;
}

.sg-deals-cat-nav__item--active {
    color: #19289B !important;
    font-weight: 700;
    border-bottom-color: #19289B;
}

/* ============================================================
   POSTS SECTION HEADER
   ============================================================ */

.sg-deals-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.sg-deals-posts-header__title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0d1763 !important;
    margin: 0 !important;
}

/* ============================================================
   DIVI BLOG MODULE OVERRIDES (DEALS GRID)
   Targets the Blog Module on .sg-deals-page
   ============================================================ */

.sg-deals-page .et_pb_blog_grid .et_pb_post {
    border: 1px solid #E5E5E5!important;
    border-radius: 6px !important;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background: #ffffff;
}

.sg-deals-page .et_pb_blog_grid .et_pb_post:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

/* Category label on post cards */
.sg-deals-page .et_pb_blog_grid .et_pb_post .post-meta .categories a {
    display: inline-block;
    background: #19289B;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    margin-right: 4px;
}

.sg-deals-page .et_pb_blog_grid .et_pb_post .post-meta .categories a:hover {
    background: #0f1a6e;
}

/* Post title */
.sg-deals-page .et_pb_blog_grid .et_pb_post h2 a {
    color: #333333 !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.sg-deals-page .et_pb_blog_grid .et_pb_post h2 a:hover {
    color: #19289B !important;
}

/* Post excerpt */
.sg-deals-page .et_pb_blog_grid .et_pb_post .post-content p {
    font-size: 14px !important;
    color: #666666 !important;
    line-height: 1.6 !important;
}

/* Post meta (author, date) */
.sg-deals-page .et_pb_blog_grid .et_pb_post .post-meta span,
.sg-deals-page .et_pb_blog_grid .et_pb_post .post-meta a {
    font-size: 12px !important;
    color: #999999 !important;
}

/* ============================================================
   DEAL EXPIRY BADGE
   ============================================================ */

.sg-deal-expiry {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sg-deal-expiry--active {
    background: rgba(39, 174, 96, 0.12);
    color: #27AE60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.sg-deal-expiry--expired {
    background: rgba(153, 153, 153, 0.12);
    color: #999999;
    border: 1px solid rgba(153, 153, 153, 0.3);
    text-decoration: line-through;
}

/* ============================================================
   CATEGORY SHORTCUT CARDS (Zone 4)
   ============================================================ */

.sg-cat-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sg-cat-card {
    background: #ffffff;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    padding: 24px 20px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sg-cat-card:hover {
    border-color: #19289B;
    box-shadow: 0 4px 16px rgba(46, 163, 242, 0.1);
}

.sg-cat-card__icon {
    font-size: 32px;
    line-height: 1;
}

.sg-cat-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #333333;
    margin: 0;
}

.sg-cat-card:hover .sg-cat-card__name {
    color: #19289B;
}

.sg-cat-card__desc {
    font-size: 13px;
    color: #666666;
    margin: 0;
    line-height: 1.4;
}

.sg-cat-card__cta {
    font-size: 13px;
    color: #19289B;
    font-weight: 600;
    margin-top: auto;
}

/* ============================================================
   DYNAMIC FEATURED PRODUCTS GRID
   ============================================================ */

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

@media (max-width: 980px) {
    .sg-featured-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sg-featured-products {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */

.sg-sidebar-widget {
    background: #ffffff;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
}

.sg-sidebar-widget__title {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #0d1763 !important;
    border-bottom: 2px solid #19289B;
    padding-bottom: 10px;
    margin-bottom: 16px !important;
}

/* Popular deals mini list */
.sg-popular-deals-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sg-popular-deals-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #F5F5F5;
}

.sg-popular-deals-list li:last-child {
    border-bottom: none;
}

.sg-popular-deals-list li img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.sg-popular-deals-list li a {
    font-size: 14px;
    color: #333333 !important;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none !important;
}

.sg-popular-deals-list li a:hover {
    color: #19289B !important;
}

/* Category list widget */
.sg-deals-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sg-deals-cat-list li {
    border-bottom: 1px solid #F5F5F5;
}

.sg-deals-cat-list li:last-child {
    border-bottom: none;
}

.sg-deals-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #333333 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.sg-deals-cat-list li a:hover {
    color: #19289B !important;
}

.sg-deals-cat-list .count {
    font-size: 12px;
    color: #999999;
    background: #F5F5F5;
    padding: 2px 8px;
    border-radius: 100px;
}

/* Affiliate disclosure */
.sg-affiliate-disclosure {
    font-size: 12px;
    color: #999999;
    line-height: 1.5;
    padding: 12px;
    background: #F5F5F5;
    border-radius: 4px;
    border-left: 3px solid #E5E5E5;
}

/* ============================================================
   CONVERTKIT DEALS FORM
   ============================================================ */

.sg-deals-ck-form {
    background: linear-gradient(135deg, #0d1763 0%, #19289B 55%, #1e30c0 100%);
    border-radius: 8px;
    padding: 36px 28px;
    text-align: center;
    margin: 40px 0;
}

.sg-deals-ck-form__heading {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.sg-deals-ck-form__subtext {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 15px !important;
    margin-bottom: 20px !important;
}

/* Override ConvertKit default form styles to fit our design */
.sg-deals-ck-form .formkit-form {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.sg-deals-ck-form .formkit-form [data-style="clean"],
.sg-deals-ck-form .formkit-form [data-style="minimal"] {
    padding: 0 !important;
}

.sg-deals-ck-form .formkit-header,
.sg-deals-ck-form .formkit-subheader {
    display: none !important;
}

.sg-deals-ck-form .formkit-fields {
    margin: 0 !important;
    padding: 0 !important;
}

.sg-deals-ck-form .formkit-field {
    margin-bottom: 10px !important;
}

.sg-deals-ck-form .formkit-input {
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    width: 100% !important;
}

.sg-deals-ck-form .formkit-submit {
    background: #CE5C3A !important;
    border-radius: 6px !important;
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.sg-deals-ck-form .formkit-submit:hover {
    opacity: 0.9 !important;
}

.sg-deals-ck-form .formkit-guarantee,
.sg-deals-ck-form .formkit-powered-by-convertkit {
    display: none !important;
}

/* ============================================================
   RELATED DEALS MODULE (bottom of deal posts)
   ============================================================ */

.sg-related-deals {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 2px solid #E5E5E5;
}

.sg-related-deals__heading {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0d1763 !important;
    margin-bottom: 20px !important;
}

.sg-related-deals__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sg-related-deals__item {
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.sg-related-deals__item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sg-related-deals__image-link img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.sg-related-deals__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 14px 4px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.sg-related-deals__title a {
    color: #333333 !important;
    text-decoration: none !important;
}

.sg-related-deals__title a:hover {
    color: #19289B !important;
}

.sg-related-deals__date {
    display: block;
    font-size: 12px;
    color: #999999;
    padding: 0 14px 14px;
}

/* ============================================================
   SINGLE DEAL POST — DEAL INFO BOX
   ============================================================ */

.sg-deal-single-box {
    background: #f8f9fc;
    border: 2px solid #19289B;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 32px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.sg-deal-single-box--expired {
    border-color: #ccc;
    opacity: 0.8;
}

.sg-deal-single-box__top {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.sg-deal-single-box__image {
    position: relative;
    flex: 0 0 200px;
}

.sg-deal-single-box__image img {
    width: 200px;
    height: auto;
    border-radius: 8px;
    display: block;
}

.sg-deal-single-box__image .sg-product-box__badge {
    position: absolute;
    top: 8px;
    left: 8px;
}

.sg-deal-single-box__pricing {
    flex: 1;
}

.sg-deal-single-box__prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.sg-deal-single-box__original {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.sg-deal-single-box__sale {
    font-size: 32px;
    font-weight: 800;
    color: #0d1763;
}

.sg-deal-single-box__savings {
    display: inline-block;
    background: #27AE60;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Retailer links */
.sg-deal-single-box__retailers {
    border-top: 1px solid #E5E5E5;
    padding-top: 20px;
}

.sg-deal-single-box__retailers-heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0d1763 !important;
    margin-bottom: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sg-deal-single-box__retailer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sg-deal-single-box__retailer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 14px 18px;
    transition: box-shadow 0.2s ease;
}

.sg-deal-single-box__retailer-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sg-deal-single-box__retailer-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.sg-deal-single-box__retailer-price {
    font-size: 18px;
    font-weight: 700;
    color: #0d1763;
    margin: 0 20px;
}

.sg-deal-single-box__buy-btn {
    display: inline-block;
    background: #CE5C3A;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: opacity 0.2s ease;
}

.sg-deal-single-box__buy-btn:hover {
    opacity: 0.9;
    color: #fff !important;
}

/* Expired state */
.sg-deal-single-box--expired .sg-deal-single-box__buy-btn {
    background: #999;
}

.sg-deal-single-box--expired .sg-deal-single-box__sale {
    color: #999;
}

@media (max-width: 767px) {
    .sg-deal-single-box__top {
        flex-direction: column;
    }

    .sg-deal-single-box__image {
        flex: none;
        width: 100%;
    }

    .sg-deal-single-box__image img {
        width: 100%;
        max-width: 300px;
    }

    .sg-deal-single-box__retailer-row {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .sg-deal-single-box__retailer-price {
        margin: 0;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media ( max-width: 980px ) {

    .sg-deals-hero h1,
    .sg-deals-hero .sg-deals-hero__title {
        font-size: 32px !important;
    }

    .sg-deals-hero__subtitle {
        font-size: 15px;
    }

    .sg-product-boxes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sg-cat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sg-related-deals__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media ( max-width: 767px ) {

    .sg-deals-hero {
        padding: 40px 16px;
    }

    .sg-deals-hero h1,
    .sg-deals-hero .sg-deals-hero__title {
        font-size: 28px !important;
    }

    .sg-deals-hero__subtitle {
        font-size: 14px;
    }

    .sg-product-boxes-grid {
        grid-template-columns: 1fr;
    }

    .sg-cat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sg-related-deals__grid {
        grid-template-columns: 1fr;
    }

    .sg-deals-cat-nav__item {
        padding: 12px 14px;
        font-size: 13px;
    }

    .sg-product-boxes-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sg-deals-ck-form {
        padding: 28px 20px;
    }

}

@media ( max-width: 480px ) {
    .sg-cat-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   HIDE SITE-WIDE NEWSLETTER ON DEALS HUB PAGE
   (page already has its own deals-specific ConvertKit form)
   ============================================================ */

.page-id-45459 .et_pb_code_0_tb_footer.custom-form,
.page-id-45459 .et_pb_column_1_tb_footer {
    display: none !important;
}
