*,
*:before, *:after { /* Universal selector to apply styles to all elements */
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* The content shrinks automatically
                            to fit within the set width  */
}

body {
    background-color: #fdfbf9; /* Soft off-white */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

main {


    margin-bottom: 20%;
    padding-top: calc(50px + 30px);
}

*:is(h1, h2, h3, h4, h5, h6){ /* pseudoclass ":is" to select all headings */
    font-family: 'Garamond', 'Times New Roman', serif; /* Elegant serif for headings */
    line-height: 1.25; /* Line height for better readability */
    margin: 1%;
}

h1 {
    font-size: 3rem;
    color: #5c4831; /* Dark brown for headings */
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: #5c4831; /* Dark brown for headings */
    margin-bottom: 1rem;

}

h3 {
    font-size: 1.5rem;
    color: #54422d; /* Dark brown for headings */
    margin-bottom: 1rem;
}



p {
    margin: 1%;
    font-size: 1.2rem;
}

/* Logo styling */

.logo {
    max-width: 100%;
    height: auto;
    margin: 0 auto; /* Center the logo */
    display: block; /* Make it a block element for centering */
    font-size: 1.5rem;
    font-family: 'Garamond', serif; /* Elegant serif for logo */
    color: #5c4831; /* Dark brown for logo */

}

.logo:hover, .logo:focus {
    color: #473827; /* Darker brown on hover */
    text-decoration: none; /* Remove underline on hover */
    transition: color 0.3s ease; /* Smooth transition for color change */
    outline: none;
}

/* Home Page: Hero Section */

.hero {
    background-color: #e0d8ce; /* Muted background color (Fallback) */
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 3rem;
    color: #5c4831;



}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: #5c4831;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background-color: #8a6d4e; /* Darker brown for button */
    color:#fff;
    padding: 1rem 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;; /* Inherit font from body */
    font-weight: 700;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none; /* Remove underline from link */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover, .cta-button:focus {
    background-color: #725b41;
    color: #fff;
    transform: translateY(-2px);
    outline-offset: 0.25rem; /* Adjust focus outline offset */

    outline: 2px solid #d4bfa9;

    border-color: #8a6d4e;

}

/* Home Page: featured products section */
#featured {
    margin: 1%;
}

.featured-products {
    padding-bottom: 2rem;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 2rem;
}

.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 80%;
    height: 200px;
    object-fit: cover; /* Cover the entire area of the card */
    background-color: #f0f0f0; /* Placeholder bg */

}

.product-card figcaption {
    padding: 1rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: #8a6d4e;
    font-weight: bold;
}

/* Products page styling */



.highlight-word {
    color: #e74c3c; /* Or any color you want, e.g., red, blue, #ff00ff */
    /* You can add other styles too, like font-weight */
    font-weight: bold;
}

.flex-container{
    display:flex;
    justify-content: space-evenly;
    flex-flow: row wrap;

}

.flex-container img {
    max-width: 32%;
    margin-bottom: 1%;
    border-radius: 10px; /* Round the corners of the image */

}

.flex-container img:hover {
    transform: scale(1.05); /* Scale the image slightly on hover */
    transition: transform 0.3s ease; /* Smooth transition for the scaling effect */
}

.site-header {

    position: fixed; /* The header will be fixed at the top of the page (*/
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* The header will have a subtle shadow for visual depth */


    background-color: bisque;




    z-index: 1000; /* The header will be on top of the other elements */
    height: 50px;


}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Center the container */
    padding: 0 1rem; /* Add some padding to the sides */

}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;

    text-decoration: none;
    color: #5c4831;
    font-size: 1.5rem;
    font-weight: bold;
}

.header-icon {
    font-size: 1.5rem;
    width: 50px;
    text-align: right;
    color: #5c4831;
}

.header-spacer {
    width: 50px;
    flex-shrink: 0;
}

.logo img {
    height: 30px;
    width: auto; /* Maintain aspect ratio */
    display: block;
}

.site-header .container a, i {
    text-align: center;

}


.site-header a {
    text-decoration: none; /* Remove underline from links */
    font-weight: bold;

}

/* Contact us page styling */


.page-header {



    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border: 1px solid #eee;
    margin-bottom: 3rem;
    margin-top: 0;
    background-color: #f8f5f1; /* Subtle background */

    background-image: url("../images/coverImagePink.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

#getInTouch {
    margin-top: 110px;
    padding: 0;
    color: rgb(65, 61, 61);
    font-size: 2rem;
    font-weight: bold;
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 3rem;
    align-items: start; /* Align items to the top */
}

.contact-info h2, .contact-form-section h2 {
    margin-bottom: 1.5rem;
}

.contact-form-section span {
    color: red; /* Highlighted text color */
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info address {
    font-style: normal; /* Normal style for address */
}

.contact-form {
    font-family: 'Garamond', serif; /* Elegant serif for form */
    font-weight: 900;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #5c4831;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #5c4831;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: 2px solid #d4bfa9;
    outline-offset: 0;

}


.contact-form textarea {
    min-height: 150px; /* Set a fixed height for the textarea */
    resize: vertical; /* Disable resizing */
}

.contact-form fieldset {
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.contact-form button {
    background-color: #8a6d4e; /* Darker brown for button #8a6d4e */
    display: inline-block;
    cursor: pointer;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1rem;


    color:#fff; /* Dark brown for logo */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;; /* Inherit font from body */
    font-weight: 700;
}

.contact-form button:hover,
.contact-form button:focus {
    background-color: #5c4831;
    transform: translateY(-2px);
    outline: 2px solid #d4bfa9;
    outline-offset: 2px;
}

.columns {
    display: flex;
    gap: 20px; /* Space between columns */
    border: 2px solid #ccc; /* Outer border around all columns */
    padding: 0;
    margin: 1%;
    border-radius: 10px; /* Rounded corners */
    background-color: #f9f9f9; /* Light background */
}

.column {
    flex: 1;
    padding: 15px;
    border-right: 2px solid #aaa; /* Border between columns */
    /* Align text for better readability */
}

/* Remove right border from the last column */
.column:last-child {
    border-right: none;
}



/* navigation bar styling (will be fixed at the top of the page */



nav {
    margin: 0;
    padding: 0;
    position: fixed;

    top: 50px;
    left: 0;
    width: 100%;
    z-index: 999;

    font-family: 'Franklin Gothic', Arial, Helvetica, serif, sans-serif;
    font-weight: normal;




}

nav ul {
    list-style-type: none;

    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 0.4rem;
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 0.2rem;
    margin: 0;
}

nav ul li a:hover, a:focus {

    transition: 0.2s ease;

    outline: 1px solid #d4bfa9;

}


nav ul li a.active {
    font-weight: 800;

    color: grey;
}


#mainImage {

    max-width: 50%;
    width: auto;

}





section ol {
    list-style-type: decimal !important;
    padding-left: 2rem;
    margin-bottom: 3rem;
}

section ol li {
    display: list-item !important;
}

ol li::marker {
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    color: black;
}



footer {

    width: 100%;
    margin: 0;

    padding: 1rem;

    background-color: #f0ebe5;
    color: black;
    text-align: center;

    display: flex;
    justify-content: space-between;
    align-items: center;


}

footer p {
    margin: 0;
}

footer p a i {
    color: #5c4831; /* Dark brown for icons */
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.map {
    border-radius: 10px;
    position: absolute;
    width: 80%;
    height: 80%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto; /* Center the map within its container */

}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    position: relative;
    height: 0;
    max-width: 100%;
    margin: 0 auto; /* Center the container on the page */


}

.bead-stats-table {
    margin: 1%;
    width: 98%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: #f8f8f8;
    font-family: Arial, sans-serif;
}

.bead-stats-table caption {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.bead-stats-table th, .bead-stats-table td {
    border: 2px solid #ddd;
    padding: 1%;
    text-align: left;
}

.bead-stats-table th {
    background-color: #6c757d;
    color: white;
    font-weight: bold;
}

.bead-stats-table tbody tr:nth-child(even) {
    background-color: #e9ecef;
}

.bead-stats-table tbody tr:hover {
    background-color: #d6d8db;
    transition: background 0.3s ease;
}




.instagram-embed-container {
  width: 100%;
  max-width: 540px; /* Same as Instagram's default width */
  margin: 0 auto;
  text-align: center;
}

/* Add responsiveness */
@media (max-width: 540px) {
  .instagram-embed-container {
    padding: 0 10px;
  }
}


#scroll-top {
    display: none;
    opacity: 0;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: rgba(0,0,0,.4);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border-radius: 2px;
    text-align: center;
    z-index: 100;
    box-sizing: content-box;
}

/* Video styling */

.video-section-container {
    margin: 1%;
    display: flex;
    justify-content: left; /* Horizontally center flex items */
    align-items: center
  }

  .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    background: #000;
    flex-shrink: 0;
  }

  .video-wrapper video,
  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }


/* --- Responsiveness --- */

@media (max-width: 768px) {    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2.5rem; } /* Hero heading size adjustment */

    nav {
        top: 45px;
    }
    main {
        /* Adjust padding for tablet header (45px) + nav height (approx 30px) */
       padding-top: calc(45px + 30px);
   }

    .contact-content {
        grid-template-columns: 1fr; /* Stack contact columns */
        gap: 2rem;
    }
    .contact-form-section {
        order: -1; /* Move form above contact info */
    }

    .product-grid {
        /* Adjust product grid for slightly smaller items */
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    /* --- NEW Header Adjustments (Replacing Old Tablet Header Rules) --- */
    .site-header {
        height: 45px; /* Slightly smaller header */
    }

    .site-header .container {
        padding: 0 0.8rem; /* Slightly reduce horizontal padding */
        /* Ensure flex-direction stays row (default) - OVERRIDING old rule */
        flex-direction: row;
        gap: 0; /* Remove gap intended for stacked items */
    }

    .logo {
        font-size: 1.3rem; /* Slightly smaller logo text */
        gap: 0.4em;
    }

    .logo img {
        height: 25px; /* Slightly smaller logo image */
    }

    .header-icon {
        font-size: 1.3rem; /* Smaller icon */
        width: 25px; /* Smaller width - MATCH SPACER */
    }

    .header-spacer {
        width: 25px; /* Smaller width - MATCH ICON */
    }
}

@media (max-width: 480px) {
    html { font-size: 15px; } /* Slightly smaller base font */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }

    nav {
        top: 40px; /* Match the mobile header height */
    }

    /* Add/Modify this rule for main content */
    main {
        /* Adjust padding for mobile header (40px) + nav height (approx 30px) */
        padding-top: calc(40px + 30px);
    }

    /* Adjust general container width/padding for mobile */
    .container {
        width: 95%;
        /* Keep vertical padding for general content */
        padding-top: 1rem;
        padding-bottom: 1rem;
        /* Horizontal padding is handled within header/sections */
        padding-left: 0;
        padding-right: 0;
     }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    .contact-form button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Single column product grid */
        gap: 1.5rem;
    }
     .product-card img {
         height: 180px; /* Adjust product image height */
     }

    /* --- NEW Header Adjustments (Replacing/Integrating Old Mobile Header Rules) --- */
    .site-header {
        height: 40px; /* Even smaller header */
    }

    .site-header .container {
        /* Apply specific mobile padding for header container */
        padding: 0 0.5rem;
        width: 95%; /* Match general mobile container width */
         /* Ensure flex-direction stays row (default) */
        flex-direction: row;
    }

    .logo {
        font-size: 1.1rem; /* Smaller logo text */
        gap: 0.3em;
    }

    .logo img {
        height: 20px; /* Smaller logo image */
    }

    .header-icon {
        font-size: 1.2rem; /* Adjust icon size */
        width: 22px; /* Smaller width - MATCH SPACER */
    }

    .header-spacer {
        width: 22px; /* Smaller width - MATCH ICON */
    }
}
