/* BMB Global Styles - Typography & Fonts */

/* CSS Reset */
* {
    font-family: "Barlow", sans-serif;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Remove default margins from common elements */
h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
figure, blockquote {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: "Barlow", sans-serif;
    font-size: 30px;
    font-weight: 300;
    text-transform: uppercase;
    font-style: normal;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #333;
}

/* Specific heading sizes for hierarchy */
h1 {
    font-size: 42px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}

/* Paragraphs */
p {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* Links */
a {
    font-family: "Barlow", sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Buttons */
button:not(.bmb-color-button),
.button:not(.bmb-color-button),
.btn:not(.bmb-color-button),
input[type="submit"]:not(.bmb-color-button),
input[type="button"]:not(.bmb-color-button),
.wp-block-button__link:not(.bmb-color-button) {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #472ca8 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

button:not(.bmb-color-button):hover,
.button:not(.bmb-color-button):hover,
.btn:not(.bmb-color-button):hover,
input[type="submit"]:not(.bmb-color-button):hover,
input[type="button"]:not(.bmb-color-button):hover,
.wp-block-button__link:not(.bmb-color-button):hover {
    background: #3a2186 !important;
    color: #ffffff !important;
}

/* Color variation buttons - structural styles only */
button.bmb-color-button,
.bmb-variation-button.bmb-color-button,
button.bmb-variation-button.bmb-color-button {
    /* Only structural styles - no background override */
    color: #ffffff !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
    padding: 0 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    display: inline-block !important;
    position: relative !important;
    overflow: hidden !important;
}

.bmb-color-button:hover,
.bmb-variation-button.bmb-color-button:hover,
button.bmb-color-button:hover {
    border-color: #472ca8 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.bmb-color-button.selected,
.bmb-variation-button.bmb-color-button.selected {
    border-color: #472ca8 !important;
    border-width: 3px !important;
    box-shadow: 0 0 0 2px rgba(71, 44, 168, 0.2) !important;
}

/* Form Elements */
input,
textarea,
select {
    font-family: "Barlow", sans-serif;
}

/* Images - No margin/padding */
img {
    margin: 0;
    padding: 0;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Global Container - Consistent with front page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.main-menu li a,
.footer-nav-list li a,
.mobile-menu-list li a {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Titles */
.product-card h3,
.carousel-product h4,
.news-product h4 {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    text-transform: none; /* Keep product names as they are */
    letter-spacing: 0.3px;
}

/* Responsive heading sizes */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 20px;
    }

    h5 {
        font-size: 18px;
    }

    h6 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }
}