/* 
 * Mason Genius Theme Styles
 * Apple-inspired design with WooCommerce support
 * 
 * @package Mason
 * @since 1.0.0
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
.mason-genius * {
    box-sizing: border-box;
}

body.mason-genius,
.mason-genius,
body {
    font-family: "SF Pro Text", "SF Pro Icons", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #1d1d1f;
    background-color: #ffffff;
    line-height: 1.4705882353;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   HEADER & NAVIGATION (Apple Style)
   ============================================ */

/* Apply to PHP header.php and Block Editor headers */
.mason-header,
.has-apple-header header,
.wp-block-template-part header,
header.mason-header,
.site-header,
.mason-header.ac-gn-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

/* Block Editor Template Part Compatibility */
.wp-block-template-part[class*="header"],
[data-type="core/template-part"][class*="header"] {
    position: sticky;
    top: 0;
    z-index: 9999;
}

.mason-nav,
.ac-gn {
    height: 44px;
    position: relative;
}

.mason-nav-container,
.ac-gn-content {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    position: relative;
}

/* Hide WooCommerce blocks that might appear in header (if added via filters) */
.mason-nav-container .wp-block-woocommerce-customer-account,
.mason-nav-container .wp-block-woocommerce-mini-cart {
    display: none !important;
}

.mason-logo,
.ac-gn-item-apple {
    display: flex;
    align-items: center;
}

.mason-logo img,
.mason-logo .custom-logo,
.mason-logo .wp-block-site-logo img,
.ac-gn-item-apple img,
.mason-site-title img,
.mason-site-title .custom-logo,
.mason-site-title.wp-block-site-logo img,
.mason-site-title.wp-block-site-logo a img,
.wp-block-site-logo.mason-site-title img,
.wp-block-site-logo.mason-site-title a img {
    height: 24px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.mason-site-title.wp-block-site-logo,
.mason-site-title.wp-block-site-logo a,
.wp-block-site-logo.mason-site-title,
.wp-block-site-logo.mason-site-title a {
    display: flex;
    align-items: center;
    height: 44px;
    text-decoration: none;
}

.mason-logo svg,
.ac-gn-item-apple svg {
    height: 44px;
    width: auto;
    fill: #1d1d1f;
}

.mason-site-title,
.ac-gn-link {
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1f;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 44px;
    gap: 8px;
}

.ac-gn-link-text {
    font-size: 12px;
}

/* Desktop header layout: everything in one line */
.ac-gn-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

/* Keep logo, menu, actions aligned horizontally */
.mason-logo {
    flex: 0 0 auto;
}

/* Nav menu should sit in the middle and remain one line */
#mason-nav-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;          /* allows it to take remaining space */
    white-space: nowrap;      /* prevents wrapping to second line */
    overflow: hidden;         /* optional: prevents overflow mess */
}

/* Actions stay on the right */
.mason-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.mason-nav-menu,
.ac-gn-list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hamburger Menu Button */
.mason-hamburger {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #1d1d1f;
    height: 44px;
    width: 44px;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
}

.mason-hamburger svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.mason-hamburger:hover {
    opacity: 0.7;
}

.mason-nav-menu li,
.ac-gn-item {
    margin: 0;
    padding: 0;
}

.mason-nav-menu a,
.ac-gn-item a,
.ac-gn-nav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    padding: 0 12px;
    height: 44px;
    display: flex;
    align-items: center;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.mason-nav-menu a:hover,
.ac-gn-item a:hover,
.ac-gn-nav-link:hover {
    opacity: 0.7;
}

.mason-nav-actions,
.ac-gn-bag-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    /* margin-left: auto; */
    /* margin: inherit; */
}

.mason-search-button,
.ac-gn-link-search {
    position: relative;
    color: #1d1d1f;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 8px;
    opacity: 0.8;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    background: none;
    border: none;
    cursor: pointer;
}

.mason-search-button:hover,
.ac-gn-link-search:hover {
    opacity: 1;
}

.mason-search-button svg,
.ac-gn-link-search svg {
    fill: #1d1d1f;
    width: 15px;
    height: 44px;
}

.mason-cart-link,
.ac-gn-link-bag {
    position: relative;
    color: #1d1d1f;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 8px;
    opacity: 0.8;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mason-cart-link:hover,
.ac-gn-link-bag:hover {
    opacity: 1;
}

.mason-cart-link svg,
.ac-gn-link-bag svg {
    fill: #1d1d1f;
    width: 14px;
    height: 44px;
}

/* Buy Button */
.ac-gn-buy {
    background-color: #1d1d1f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    height: auto;
}

.ac-gn-buy:hover {
    background-color: #8da3d4;
    color: #ffffff;
}

/* Promo Ribbon / Notification Banner */
.mason-promo-ribbon {
    background: #1d1d1f;
    color: #ffffff;
    padding: 12px 22px;
    text-align: center;
    font-size: 12px;
    line-height: 1.33337;
    letter-spacing: -0.01em;
}

.mason-promo-ribbon a {
    color: #8da3d4;
    text-decoration: underline;
}

.mason-promo-ribbon a:hover {
    opacity: 0.8;
}

/* ============================================
   SEARCH FLYOUT (Apple-Inspired)
   ============================================ */

.mason-search-item {
    position: relative;
    display: flex;
    align-items: center;
}

.mason-search-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    height: 44px;
    padding: 0 8px;
    opacity: 0.8;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mason-search-button:hover {
    opacity: 1;
}

.mason-search-icon svg {
    fill: #1d1d1f;
    width: 15px;
    height: 44px;
}

.mason-search-flyout {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 420px;
    max-height: 388px;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    overflow: hidden;
    pointer-events: none;
}

.mason-search-flyout.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mason-search-flyout-content {
    padding: 0;
}

.mason-search-form {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mason-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mason-search-input {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    width: 100%;
    height: 3.2941176471rem;
    padding: 1.0588235294rem 0.9411764706rem 0;
    padding-inline-end: 2.8823529412rem;
    margin: 0;
    margin-bottom: 0;
    font-family: "SF Pro Text", "SF Pro Icons", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    font-synthesis: none;
    font-feature-settings: "kern";
    -moz-font-feature-settings: "kern";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.022em;
    line-height: 1.2353641176;
    text-align: start;
    text-overflow: ellipsis;
    border: 1px solid;
    border-color: #86868b;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    outline: none;
    cursor: auto;
    word-spacing: normal;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    display: inline-block;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.mason-search-input:focus {
    border-color: #8da3d4;
    background-color: rgba(255, 255, 255, 0.95);
    outline: none;
}

.mason-search-input::placeholder {
    color: #86868b;
    opacity: 1;
}

.mason-search-input::-webkit-search-decoration,
.mason-search-input::-webkit-search-cancel-button,
.mason-search-input::-webkit-search-results-button,
.mason-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.mason-search-input::-ms-clear,
.mason-search-input::-ms-reveal {
    display: none;
}

.mason-search-submit {
    position: absolute;
    right: 0.9411764706rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    z-index: 1;
}

.mason-search-clear {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    z-index: 1;
}

.mason-search-clear:hover,
.mason-search-submit:hover {
    opacity: 0.7;
}

.mason-search-clear svg,
.mason-search-submit svg {
    fill: currentColor;
    width: 14px;
    height: 14px;
}

.mason-search-quicklinks {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.mason-search-quicklinks-header {
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0 0 12px 0;
    padding: 0;
}

.mason-search-quicklinks-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mason-search-quicklinks-item {
    margin: 0;
    padding: 0;
}

.mason-search-quicklinks-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 17px;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mason-search-quicklinks-link:last-child {
    border-bottom: none;
}

.mason-search-quicklinks-link:hover {
    color: #8da3d4;
}

.mason-search-quicklinks-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mason-search-quicklinks-icon svg {
    fill: currentColor;
    width: 9px;
    height: 16px;
}

.mason-search-quicklinks-text {
    flex: 1;
}

/* ============================================
   HEADER RESPONSIVE STYLES
   (Hamburger only on mobile ≤ 768px)
   ============================================ */

/* Mobile - Adjust header elements */
@media (max-width: 734px) {
    .mason-logo img,
    .mason-logo .custom-logo,
    .ac-gn-item-apple img,
    .mason-site-title img,
    .mason-site-title .custom-logo {
        height: 20px;
        max-width: 120px;
    }
    
    .mason-hamburger {
        width: 40px;
        height: 40px;
    }
    
    .mason-nav-actions,
    .ac-gn-bag-wrapper {
        gap: 14px;
    }
    
    .mason-search-flyout {
        width: calc(100vw - 44px);
        right: 22px;
        left: 22px;
        max-height: 60vh;
    }
    
    .mason-search-input {
        height: 3.2941176471rem;
        font-size: 17px;
        padding: 1.0588235294rem 0.9411764706rem 0;
        padding-inline-end: 2.8823529412rem;
    }
    
    .mason-search-quicklinks {
        max-height: calc(60vh - 100px);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 120px 22px;
    max-width: 1024px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-headline {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.07143;
    letter-spacing: -0.005em;
    color: #1d1d1f;
}

.hero-tagline {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.14286;
    letter-spacing: 0.007em;
    color: #86868b;
}

.hero-description {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.381;
    letter-spacing: 0.011em;
    color: #1d1d1f;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-top: 12px;
}

.btn-primary {
    background-color: #1d1d1f;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #000000;
}

.btn-secondary {
    background-color: transparent;
    color: #1d1d1f;
    padding: 12px 22px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #1d1d1f;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #f5f5f7;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-stage {
    width: 100%;
    max-width: 500px;
}

.product-stage img {
    width: 100%;
    height: auto;
    border-radius: 18px;
}

/* ============================================
   MARKETING COPY SECTION
   ============================================ */
.marketing-copy {
    text-align: center;
    padding: 80px 22px;
    max-width: 1024px;
    margin: 0 auto;
}

.marketing-copy h2 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -0.003em;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.marketing-copy p {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.381;
    letter-spacing: 0.011em;
    color: #86868b;
}

/* ============================================
   FEATURED IN SECTION
   ============================================ */
.featured-in-section {
    padding: 60px 22px;
    background: #f5f5f7;
    text-align: center;
    min-width: 100%;
}

.featured-in-container {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
}

.featured-in-container h3,
.featured-in-section h3 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.21053;
    letter-spacing: 0.012em;
    color: #86868b;
    margin-bottom: 20px;
}

.featured-in-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.featured-in-links a {
    font-size: 17px;
    font-weight: 400;
    color: #1d1d1f;
    text-decoration: underline;
}

.featured-in-links a:hover {
    opacity: 0.7;
}

/* ============================================
   TECHNOLOGICALLY UNRIVALED SECTION
   ============================================ */
.technologically-unrivaled-section {
    padding: 100px 22px;
    text-align: center;
    background-color: none;
}

.technologically-unrivaled-container {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
    padding-left: 10em !important;
    padding-right: 10em !important;
}

.technologically-unrivaled-container h2,
.technologically-unrivaled-section h2 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -0.003em;
    color: #1d1d1f;
    margin-bottom: 40px;
}

.technologically-unrivaled-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.tech-item {
    text-align: center;
}

.tech-item img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 12px;
    border-radius: 12px;
}

.tech-item p {
    font-size: 14px;
    font-weight: 400;
    color: #1d1d1f;
}

.tech-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.tech-badges span {
    font-size: 12px;
    font-weight: 400;
    color: #86868b;
    padding: 8px 16px;
    background: #f5f5f7;
    border-radius: 20px;
}

/* ============================================
   PRODUCT CATEGORIES SECTION
   ============================================ */
.product-categories-section,
.categories-section {
    padding: 100px 22px;
    background: #fbfbfd;
    min-width: 100%;
    padding-left: 10em !important;
    padding-right: 10em !important;
}

.product-categories-container,
.categories-container {
    max-width: 1024px;
    margin: 0 auto;
}

.product-categories-container h2,
.product-categories-section h2,
.categories-container h2,
.categories-section h2 {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.07143;
    letter-spacing: -0.005em;
    color: #1d1d1f;
    margin-bottom: 60px;
    text-align: center;
}

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

.category-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #f5f7fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
}

.category-icon svg {
    width: 40px;
    height: 40px;
}

.category-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.category-card h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.16667;
    letter-spacing: 0.009em;
    color: #1d1d1f;
    margin: 0 0 10px 0;
}

.category-card p {
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: #86868b;
    margin: 0;
}

.category-link {
    display: inline-block;
    font-size: 17px;
    font-weight: 400;
    color: #8da3d4;
    padding: 0 24px 24px;
    text-decoration: none;
}

.category-link:hover {
    text-decoration: underline;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 100px 22px;
    max-width: 1024px;
    margin: 0 auto;
}

.features-container {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
}

.features-container h2,
.features-section h2 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -0.003em;
    color: #1d1d1f;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #8da3d4;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    margin: 0 auto 20px;
}

.feature-item h3 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.381;
    letter-spacing: 0.011em;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: #86868b;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 1em .5em 5em .5em;
    background: #f5f5f7;
    min-width: 100%;
}

.testimonials-container {
    max-width: 1024px;
    margin: 0 auto;
}

.testimonials-container h2,
.testimonials-section h2 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08349;
    letter-spacing: -0.003em;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 18px;
}

.testimonial-stars {
    font-size: 14px;
    color: #ff9500;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.381;
    letter-spacing: 0.011em;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.testimonial-author {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.testimonial-product {
    font-size: 14px;
    color: #86868b;
    margin-bottom: 8px;
}

.testimonial-rating {
    font-size: 12px;
    color: #86868b;
}

/* ============================================
   HOMEPAGE FOOTER CTA
   ============================================ */
.homepage-footer-cta {
    max-width: 1024px;
    margin: 0 auto 80px;
    padding: 32px 22px 0;
    border-top: 0.5px solid #d2d2d7;
    text-align: center;
}

.homepage-footer-cta p {
    font-size: 13px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: #6e6e73;
    margin-bottom: 16px;
}

.homepage-footer-cta small {
    font-size: 11px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: #86868b;
    display: block;
    margin-top: 20px;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    padding: 100px 22px;
    background: none;
    color: #ffffff;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-container h2,
.newsletter-section h2 {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.07143;
    letter-spacing: -0.005em;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.newsletter-container > p,
.newsletter-section > .newsletter-container > p {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.381;
    letter-spacing: 0.011em;
    color: #86868b;
    margin-bottom: 40px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.newsletter-form input[type="email"],
.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #d2d2d7;
    border-radius: 980px;
    font-size: 17px;
    font-family: inherit;
    background-color: #ffffff;
    color: #1d1d1f;
}

.newsletter-form input[type="email"]::placeholder,
.newsletter-form input::placeholder {
    color: #86868b;
}

.newsletter-form input[type="email"]:focus,
.newsletter-form input:focus {
    outline: none;
    border-color: #8da3d4;
}

.newsletter-disclaimer {
    font-size: 12px;
    line-height: 1.33337;
    letter-spacing: -0.01em;
    color: #86868b;
}

/* ============================================
   FOOTER
   ============================================ */
.mason-footer {
    background-color: #f5f5f7;
    padding-top: 40px;
    padding-bottom: 20px;
    margin-top: 60px;
    border-top: 0.5px solid #d2d2d7;
}

.mason-footer {
    background: #f5f5f7;
    padding: 60px 22px 30px;
    margin-top: 100px;
}

.mason-footer-container {
    max-width: 1024px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.mason-footer-column h4 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.33337;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.mason-footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mason-footer-column ul li {
    margin-bottom: 8px;
}

.mason-footer-column ul li a {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.33337;
    letter-spacing: -0.01em;
    color: #86868b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mason-footer-column ul li a:hover {
    color: #1d1d1f;
}

.mason-footer-column p {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 12px;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-newsletter input {
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    background: #ffffff;
    color: #1d1d1f;
    font-family: inherit;
}

.footer-newsletter button {
    height: 36px;
    padding: 0 20px;
    font-size: 14px;
    background: #8da3d4;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
}

.footer-newsletter button:hover {
    background: #6b8bc4;
}

.mason-footer-legal {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    border-top: 0.5px solid #d2d2d7;
}

.mason-footer-legal p {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.33337;
    letter-spacing: -0.01em;
    color: #86868b;
    margin: 0;
}

.mason-footer-branding {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    border-top: 0.5px solid #d2d2d7;
}

.mason-legal-disclaimers {
    font-size: 12px;
    line-height: 1.33337;
    letter-spacing: -0.01em;
    color: #86868b;
}

.mason-legal-disclaimers .legal-text {
    font-size: 12px;
    line-height: 1.33337;
    letter-spacing: -0.01em;
    color: #86868b;
    margin: 8px 0;
}

.mason-legal-disclaimers a {
    color: #8da3d4;
    text-decoration: none;
}

.mason-legal-disclaimers a:hover {
    text-decoration: underline;
}

.mason-legal-disclaimers .legal-text a {
    color: #8da3d4;
    text-decoration: none;
}

.mason-legal-disclaimers .legal-text a:hover {
    text-decoration: underline;
}

/* ============================================
   WOOCOMMERCE PRODUCT STYLES
   ============================================ */
.mason-woocommerce-inner {
    min-height: 60vh;
}

.shop-header {
    text-align: center;
    margin-bottom: 60px;
}

.shop-title {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.07143;
    letter-spacing: -0.005em;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.shop-description {
    font-size: 21px;
    line-height: 1.381;
    color: #86868b;
}

.shop-sidebar {
    background-color: #fbfbfd;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 40px;
}

.shop-sidebar h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    font-size: 14px;
    color: #86868b;
    text-decoration: none;
    transition: color 0.3s;
}

.filter-list a:hover {
    color: #0071e3;
}

.price-range {
    width: 100%;
    margin-bottom: 10px;
}

.price-display {
    font-size: 14px;
    color: #86868b;
    text-align: center;
}

.products-grid-container {
    margin-top: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mason-product-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mason-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mason-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mason-product-image-wrapper {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f7;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mason-product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mason-product-card:hover .mason-product-image-wrapper img {
    transform: scale(1.05);
}

.mason-product-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.21053;
    letter-spacing: 0.012em;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.mason-product-price {
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: #86868b;
    margin-bottom: 12px;
}

.mason-product-price .woocommerce-Price-amount {
    color: #1d1d1f;
    font-weight: 600;
}

/* Product Color Buttons - Apple Style */
.mason-product-colors {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.mason-color-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
    display: inline-block;
    position: relative;
    margin: 0 3px;
}

.mason-color-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    padding: 1px;
    background: conic-gradient(from 270deg, rgba(0, 0, 0, 0.08) 0deg, rgba(0, 0, 0, 0.48) 64.8deg, rgba(0, 0, 0, 0.48) 115.2deg, rgba(0, 0, 0, 0.08) 180deg, rgba(0, 0, 0, 0) 208.8deg, rgba(0, 0, 0, 0) 331.2deg, rgba(0, 0, 0, 0.08) 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.mason-color-button:hover {
    transform: scale(1.15);
}

/* Pagination */
.pagination {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 0.5px solid #d2d2d7;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 8px 16px;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 17px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #f5f5f7;
}

.pagination .page-numbers.current {
    font-weight: 600;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1068px) {
    /* Tablet and below layout (header already handled at 734px) */
    .hero-section {
        grid-template-columns: 1fr;
        padding: 80px 22px;
    }

    .mason-footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-categories-container h2,
    .product-categories-section h2,
    .categories-container h2,
    .categories-section h2 {
        font-size: 48px;
    }

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

@media (max-width: 768px) {
    /* Show hamburger only on mobile */
    #mason-hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Collapse desktop menu into flyout */
    #mason-nav-menu {
        display: none; /* hidden until toggled */
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #ffffff;
        padding: 12px 16px;
        flex-direction: column;
        gap: 10px;
        white-space: normal;
        overflow: visible;
        z-index: 9999;
    }

    /* When opened (JS will add .is-open) */
    #mason-nav-menu.is-open {
        display: flex;
    }

    /* Make sure the parent anchors the absolute menu */
    .ac-gn-nav {
        position: relative;
    }

    /* Header - Mobile adjustments */
    .mason-logo img,
    .mason-logo .custom-logo,
    .ac-gn-item-apple img,
    .mason-site-title img,
    .mason-site-title .custom-logo {
        height: 20px;
        max-width: 120px;
    }
    
    .mason-hamburger {
        width: 40px;
        height: 40px;
    }
    
    .mason-nav-actions,
    .ac-gn-bag-wrapper {
        gap: 14px;
    }
    
    .mason-search-flyout {
        width: calc(100vw - 44px);
        right: 22px;
        left: 22px;
        max-height: 60vh;
    }
    
    .mason-search-input {
        height: 3.2941176471rem;
        font-size: 17px;
        padding: 1.0588235294rem 0.9411764706rem 0;
        padding-inline-end: 2.8823529412rem;
    }
    
    .mason-search-quicklinks {
        max-height: calc(60vh - 100px);
    }

    .hero-headline {
        font-size: 40px;
    }

    .hero-tagline {
        font-size: 21px;
    }

    .hero-description {
        font-size: 17px;
    }

    .product-stage {
        width: 300px;
        height: 300px;
    }

    .mason-footer-container {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .product-categories-container h2,
    .product-categories-section h2,
    .categories-container h2,
    .categories-section h2 {
        font-size: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .technologically-unrivaled-grid {
        flex-direction: column;
    }

    .marketing-copy h2 {
        font-size: 48px;
    }

    .marketing-copy p {
        font-size: 21px;
    }
}

