/* 
 * Mason Theme - Apple-Inspired Complete Site CSS
 * Apple-inspired design with WooCommerce support
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1d1d1f;
    background-color: #ffffff;
    line-height: 1.47059;
    font-size: 17px;
    letter-spacing: -0.022em;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.mason-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);
}

.mason-nav {
    height: 44px;
}

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

.mason-logo img,
.mason-logo .custom-logo {
    height: 20px;
    width: auto;
}

.mason-site-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
}

.mason-nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.mason-nav-menu li {
    margin: 0;
}

.mason-nav-menu a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 12px;
    padding: 0 9.6px;
    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 {
    opacity: 0.8;
}

.mason-nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.mason-cart-link {
    position: relative;
    color: #1d1d1f;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.mason-cart-icon {
    font-size: 18px;
}

.mason-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #8da3d4;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 22px;
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 50%;
    padding-right: 40px;
}

.hero-headline {
    font-size: 80px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.hero-tagline {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.14286;
    letter-spacing: 0.007em;
    color: #1d1d1f;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 21px;
    line-height: 1.381;
    color: #86868b;
    margin-bottom: 40px;
}

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

.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 {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-stage {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

.marketing-copy h2 {
    font-size: 64px;
    font-weight: 600;
    line-height: 1.0625;
    letter-spacing: -0.009em;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.marketing-copy p {
    font-size: 28px;
    line-height: 1.14286;
    letter-spacing: 0.007em;
    color: #86868b;
}

/* ============================================
   FEATURED IN SECTION
   ============================================ */
.featured-in-section {
    background-color: #fbfbfd;
    padding: 80px 22px;
    text-align: center;
}

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

.featured-in-section h3 {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.381;
    color: #86868b;
    margin-bottom: 40px;
    letter-spacing: 0.011em;
}

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

.featured-in-links a {
    font-size: 17px;
    color: #1d1d1f;
    text-decoration: none;
    transition: opacity 0.3s;
}

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

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

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

.technologically-unrivaled-section h2 {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.07143;
    letter-spacing: -0.005em;
    margin-bottom: 40px;
    color: #1d1d1f;
}

.technologically-unrivaled-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 60px 0;
}

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

.tech-item img {
    width: 200px;
    height: 200px;
    border-radius: 18px;
    margin-bottom: 20px;
    object-fit: cover;
}

.tech-item p {
    font-size: 17px;
    color: #1d1d1f;
    text-transform: lowercase;
}

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

.tech-badges span {
    font-size: 14px;
    color: #86868b;
    padding: 8px 16px;
    background-color: #f5f5f7;
    border-radius: 980px;
}

/* ============================================
   PRODUCT CATEGORIES SECTION
   ============================================ */
.product-categories-section {
    padding: 100px 22px;
    background-color: #fbfbfd;
}

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

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

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

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

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

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

.category-card h3 {
    font-size: 24px;
    font-weight: 600;
    padding: 30px;
    margin: 0;
    color: #1d1d1f;
}

.category-link {
    display: block;
    padding: 0 30px 30px;
    color: #0071e3;
    text-decoration: none;
    font-size: 17px;
}

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

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 100px 22px;
}

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

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

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

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #0071e3;
}

.feature-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.feature-item p {
    font-size: 17px;
    color: #86868b;
    line-height: 1.47059;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 100px 22px;
    background-color: #fbfbfd;
}

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

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

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

.testimonial-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    font-size: 20px;
    color: #ffd700;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 21px;
    line-height: 1.381;
    color: #1d1d1f;
    margin-bottom: 20px;
}

.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: 14px;
    color: #86868b;
}

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

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

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

.newsletter-section > .newsletter-container > p {
    font-size: 21px;
    line-height: 1.381;
    color: #86868b;
    margin-bottom: 40px;
}

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

.newsletter-form input[type="email"] {
    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"]:focus {
    outline: none;
    border-color: #0071e3;
}

.newsletter-disclaimer {
    font-size: 12px;
    color: #86868b;
    line-height: 1.5;
    margin-top: 20px;
}

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

.mason-footer-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 0.5px solid #d2d2d7;
    margin-bottom: 20px;
}

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

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

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

.mason-footer-column ul li {
    margin-bottom: 0.8em;
}

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

.mason-footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-newsletter {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.footer-newsletter input[type="email"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 980px;
    font-size: 12px;
    font-family: inherit;
}

.footer-newsletter button {
    padding: 8px 16px;
    background-color: #1d1d1f;
    color: #ffffff;
    border: none;
    border-radius: 980px;
    font-size: 12px;
    cursor: pointer;
}

.mason-footer-legal {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
    padding-top: 20px;
    font-size: 12px;
    color: #86868b;
    line-height: 1.5;
    text-align: center;
}

.mason-footer-legal p {
    margin: 0;
}

.mason-footer-legal a {
    color: #0071e3;
    text-decoration: none;
}

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

.mason-footer-legal img {
    height: 20px;
    vertical-align: middle;
    margin: 0 4px;
}

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

.content-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    padding: 80px 22px;
}

.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,
.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

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

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

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

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

.mason-product-image-wrapper img,
.woocommerce-loop-product__link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.mason-product-card:hover .mason-product-image-wrapper img,
.product:hover .woocommerce-loop-product__link img {
    transform: scale(1.05) !important;
}

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

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

/* 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);
}

/* Add to Cart Button */
.add_to_cart_button,
.button.product_type_simple,
.button.product_type_variable {
    background-color: #1d1d1f !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 980px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background-color 0.3s !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 10px !important;
}

.add_to_cart_button:hover,
.button.product_type_simple:hover,
.button.product_type_variable:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

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

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

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

.pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current {
    font-weight: 600 !important;
}

/* Single Product Page */
.single-product .product {
    max-width: 1024px;
    margin: 0 auto;
    padding: 80px 22px;
}

.single-product .product .summary {
    padding-left: 40px;
}

.single-product .product_title {
    font-size: 48px !important;
    font-weight: 600 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 20px !important;
    color: #1d1d1f !important;
}

.single-product .price {
    font-size: 28px !important;
    color: #1d1d1f !important;
    margin-bottom: 30px !important;
}

.single-product .woocommerce-product-details__short-description {
    font-size: 17px;
    line-height: 1.47059;
    color: #86868b;
    margin-bottom: 30px;
}

.single-product .cart button {
    background-color: #1d1d1f !important;
    color: #ffffff !important;
    padding: 12px 22px !important;
    border-radius: 980px !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
}

.single-product .cart button:hover {
    background-color: #000000 !important;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1068px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-visual {
        max-width: 100%;
    }

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

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

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

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

@media (max-width: 734px) {
    .hero-headline {
        font-size: 48px;
    }

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

    .mason-nav-menu {
        display: none;
    }

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

    .products-grid,
    .products,
    ul.products {
        grid-template-columns: 1fr !important;
    }

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

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

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

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

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

