body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3 {
    font-family: 'Merriweather', serif;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

* {
    box-sizing: border-box;
}

/* Global styles for headings to ensure responsiveness */
h1 {
    font-size: 2.5rem; /* Desktop */
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 2.2rem; /* Tablet */
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.8rem; /* Mobile */
    }
}

h2 {
    font-size: 2rem; /* Desktop */
}

@media (min-width: 768px) and (max-width: 1023px) {
    h2 {
        font-size: 1.8rem; /* Tablet */
    }
}

@media (max-width: 767px) {
    h2 {
        font-size: 1.5rem; /* Mobile */
    }
}

h3 {
    font-size: 1.75rem; /* Desktop */
}

@media (min-width: 768px) and (max-width: 1023px) {
    h3 {
        font-size: 1.5rem; /* Tablet */
    }
}

@media (max-width: 767px) {
    h3 {
        font-size: 1.25rem; /* Mobile */
    }
}

/* Ensure images in product sections have consistent height */
.product-image-container img {
    height: 450px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .product-image-container img {
        height: 300px;
    }
}

/* Custom styles for form elements for better focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4); /* green-500 with opacity */
    border-color: transparent;
}

/* Override default button text-decoration */
button {
    text-decoration: none !important;
}

/* Ensure mobile menu doesn't break on many links */
#mobile-menu ul {
    display: flex;
    flex-direction: column;
    white-space: normal;
    overflow-x: hidden;
}

#mobile-menu ul li a {
    padding: 0.5rem 0;
}

/* Z-index for modals and cookie banner */
#cookie-banner {
    z-index: 999;
}

#cookie-settings-modal,
#cart-modal,
#checkout-modal {
    z-index: 1000;
}

#item-added-modal,
#order-confirmation-modal {
    z-index: 1010;
}
/* Parent container styling for overall spacing */
.dataClauseFrame {
    /* Optional: You might want to add a max-width and margin: 0 auto; for centering content */
    /* max-width: 960px; */
    /* margin-left: auto; */
    /* margin-right: auto; */
}

/* Heading styles - ensuring they are not excessively large */
.dataClauseFrame h1 {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;       /* Bold font weight for emphasis */
    line-height: 1.2;       /* Line height for better readability */
    margin-top: 2rem;       /* Space above the H1 heading */
    margin-bottom: 1rem;    /* Space below the H1 heading */
    color: #333;            /* Dark gray color for headings */
}

.dataClauseFrame h2 {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.dataClauseFrame h3 {
    font-size: clamp(20px, 4vw, 24px);     /* H3 font size */
    font-weight: 700;
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    color: #333;
}

.dataClauseFrame h4 {
    font-size: clamp(20px, 4vw, 22px);
        font-weight: 700;
    line-height: 1.5;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    color: #333;
}

.dataClauseFrame h5 {
    font-size: 1rem;        /* H5 font size, similar to body text but bold */
    font-weight: 700;
    line-height: 1.5;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Paragraph styling */
.dataClauseFrame p {
    font-size: 1rem;        /* Base font size for paragraphs */
    line-height: 1.6;       /* Good line height for readability */
    margin-bottom: 1em;     /* Space below paragraphs to separate them */
    color: #333;            /* Dark gray color for paragraph text */
}

/* Unordered list styling */
.dataClauseFrame ul {
    list-style-type: disc;  /* Default disc bullets for unordered lists */
    margin-top: 1em;        /* Space above the list */
    margin-bottom: 1em;     /* Space below the list */
    padding-left: 1.5em;    /* Indentation for bullet points to be visible */
    color: #333;            /* Inherit text color for the list */
}

/* List item styling */
.dataClauseFrame li {
    font-size: 1rem;        /* Font size for individual list items */
    line-height: 1.6;       /* Line height for list items */
    margin-bottom: 0.5em;   /* Small space between list items */
    color: #333;            /* Inherit text color for list items */
}

@media (max-width:767px){

    .product-details{
        .flex.items-center.justify-between.mb-8{
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }
    }

    .contact-info{
        padding: 10px !important;
    }


    #cart-items-container{
        .flex.items-center.space-x-4.border-b.py-3{
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 10px;
            flex-direction: column;
            text-align: center;
        }
    }
}

.text-3xl{
    font-size: clamp(18px, 4vw, 32px) !important;
}

.text-2xl{
    font-size: clamp(18px, 4vw, 28px) !important;
}


.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
}

/* Чтобы таблица не сжималась */
.cost-table {
    min-width: 600px; /* подбери под контент */
    width: 100%;
    border-collapse: collapse;
}

/* Необязательно, но удобно */
@media (max-width: 768px) {
    .table-scroll {
        margin: 0 -16px;      /* если нужно растянуть до краёв */
        padding: 0 16px;
    }

    #cookie-banner{
        left: 15px;
    }
}