:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --background-color: #FFF8DC;
    --text-color: #333;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-image: url('./resources/soft.jpeg');
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


header {
    background-color: rgba(139, 69, 19, 0.7);
    color: white;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.header-title {
    font-size: 2.5em; 
}

.header-title  p{
    font-size: 1.2em;
    color: #FFF8DC;
}
main {
    flex-grow: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.fabric-category {
    margin-bottom: 40px;
}

.fabric-category h2 {
    text-align: center;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.fabric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background-color: rgba(255, 248, 220, 0.9);
    padding: 20px;
    border-radius: 10px;
}

.fabric-item {
    text-align: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 15px;
    transition: transform 0.3s ease;
}
.fabric-item:hover {
    transform: scale(1.05);
}

.fabric-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}
.fabric-item p {
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--primary-color);
}

.buy-now-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-now-btn:hover {
    background-color: var(--primary-color);
}

footer {
    background-color: rgba(139, 69, 19, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
}

.footer-content ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style-type: none;
    margin-bottom: 10px;
}

.footer-content a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #FFD700;
}


/*responsive design*/
@media screen and (max-width: 1024px) {
    .fabric-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .fabric-row {
        grid-template-columns: 1fr;
    }

    .header-title {
        font-size: 2em;
    }

    .header-title p {
        font-size: 1em;
    }

    .footer-content ul {
        flex-direction: column;
        align-items: center;
    }
}





















/* Styling text

html, body{
    height: 100%;
    margin:0 ;
}

p {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

h1 {
    color: brown;
    text-align: center;
    text-decoration: underline double;
    letter-spacing: 2.5px;
}


h2{
    padding: 10px 0px 10px;

}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: rgb(255, 252, 249);
    
}

header{
    background-image: url("./resources/soft.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: black;
    display: flex;
    text-align: center;
    width: 100%;


}

ul{
    background-color: rgba(71, 35, 9, 0.571);
    color: white;
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    height: 0px;
    padding: 20px;
}


footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f0f0f038;
    padding: 10px;
    text-align: center;
}
  
  

/* styling images

.sect-item img {
    width: 200px;
    height: auto;
    border: 2px solid rgb(35, 1, 1);
    border-radius: 3px;

}

a {
    color: inherit;
    text-decoration: none;
}

ul li {
    list-style-type: none;
}



nav ul li {
    display: inline;
    margin-right: 20px;
}

.section {
    padding: 12px;
}

.sect-item {
    padding-top: 12px;
    background-color: rgb(207, 201, 195);

}
nav {
    position: sticky;
    top: 0;
}



.flex-container{
    display: flex;
    justify-content: space-around;
    background-color: rgb(207, 201, 195);
}
*/