* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-padding-top: 4rem;
    scroll-behavior: smooth;
    list-style: none;
    text-decoration: none;
}
:root{
    --main-color: #bc9667;
    --secondary-color:#edeae3;
    --text-color:#1b1b1b;
    --bg-color:#fff;

    --box-shadow:2px 2px 10px 14px rgb(14 55 54 / 15%);

}

section{
    padding: 50px 100px;
}

img{
    width: 100%;

}
body{
color: var(--text-color);
}
header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid black;
    padding: 18px 100px;
    background-color: var(--text-color);
    transition: 0.5s linear;

}

.main-logo{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 100%;


}
.Navbar{
    display: flex;
}
.Navbar a{
    padding: 8px 50px;
    color: var(--bg-color);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}
.Navbar a:hover{
    background-color: var(--main-color);
    border-radius: 0.2rem;
    transition: 0.5s all linear;    
}

.header-icon{
    font-size: 22px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    column-gap: 0.8rem;
    position: relative;
    z-index: 10000;

}
.header-icon .bx{
    color: var(--bg-color);

}
#menu-icon{
    color: var(--bg-color);
    font-size: 24px;
    z-index: 10001;
    cursor: pointer;
    display: none;
}

.search-box{
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translate(-50%);
    background: var(--bg-color);
    width: 100%;
}
.search-box.active{
    top: 110%;
    box-shadow: var(--box-shadow);
}
.search-box input{
    padding: 10px;
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--text-color);
}

.search-box input::placeholder{
    font-size: 1rem;
    font-weight: 500;
}
.home{
    width: 100%;
    min-height:100vh;
    background: url(web/back.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(17rem,auto));
    align-items: center;
    gap: 15rem;
}



.home-img {
    width: 300px;
    height: 400px;
    margin-top: 100px;
    /* Animation එක එකතු කිරීම */
    animation: floatImage 4s ease-in-out infinite;
}

/* Image එක උඩ-පහළ යන විදිය define කිරීම */
@keyframes floatImage {
    0% {
        transform: translateY(0px); /* මුල් පිහිටීම */
    }
    50% {
        transform: translateY(-20px); /* තත්පර 2කින් 20px උඩට යයි */
    }
    100% {
        transform: translateY(0px); /* නැවත මුල් පිහිටීමට යයි */
    }
}



.home-text h1{
    font-size: 3.4rem;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-text p{
    font-size: 0.938rem;
    color: var(--text-color);
    margin: 0.5rem 0 1.4rem;
}

.btn{
    padding: 10px 40px;
    border-radius: 0.3rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 500;
}

.btn:hover{
    background: #8a6f4d;
}
.about{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(17rem,auto));
    gap: 1.5rem;

}
.about-img img{
    border-radius: 1.8rem;
}
.about-text h2{
    font-size: 1.8rem;
    text-transform: uppercase;
}
.about-text p{
    font-size: 0.938rem;
    margin: 0.5rem 0 1.1rem;
}

.heading{
    text-align: center;   
}
.heading{
    font-size: 1rem;
    text-transform: uppercase;
}

.box{
    width: 400px;
    height: 500px;
}




.product-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}
.product-container .box{
    position: relative;
    border: 1px solid black;
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-radius: 0.8rem;
    box-shadow: var(--box-shadow);

}
.product-container img{
    width: 100%;
    height: 300px;
    object-fit:contain;
    object-position: center;
    padding: 0.5px;
    background: #f1f1f1;
    border-radius: 0.5rem;

}
.product-container .box h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;

/*iojdjqewdnoeidwddn*/
}
.product-container .box .content {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* center වෙනුවට flex-start යෙදීමෙන් උඩටම Align වේ */
    
}

.product-container .box .content span{
    padding: 0rem 1rem;
    color: var(--bg-color);
    background-color: var(--main-color);
    border-radius: 0.4rem;
    font-weight: 400;


}
.product-container .box .content .cart-btn {
    border: 2px solid var(--main-color);
    padding: 0.2rem 0.6rem;
    color: var(--text-color);
    border-radius: 0.3rem;
    text-transform: capitalize;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: 0.3s all ease;
    
   
}

.product-container .box .content .cart-btn:hover {
    background-color: var(--main-color);
    color: var(--bg-color);
}

.qty-input {
    width: 50px;
    padding: 2px 5px;
    border: 1px solid var(--main-color);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 20px;
}

.qty-input:focus {
    outline: none;
}

/* Size Selector හි ප්‍රධාන කොටස (Size: ලේබලය සහ Options පෙළගැස්වීම) */
.size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-color);
    margin-top: 20px;
    margin-left: -3px;
}

/* S, M, L තෝරන Options පේළියට තැබීම */
.size-options {
    display: flex;
    gap: 8px;
}

/* එක එක Size label එක (S, M, L) සඳහා Styling */
.size-options label {
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Radio Button එකේ පාට වෙනස් කිරීම */
.size-options input[type="radio"] {
    accent-color: var(--main-color);
    cursor: pointer;
}

.fooer{
    display:grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 1.5rem;
}

.fooer-box h3{
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.fooer-box p{
    font-size: 0.938rem;
    margin-bottom: 10px;
}

.social{
    display: flex;
    align-items: center;
    column-gap: 2rem;
}

.social a .bx{
    font-size: 24px;
    color: var(--text-color);
    padding: 10px;
    background: var(--secondary-color);
    border-radius: 0.2rem;
}
.social a .bx:hover{
    background-color: var(--main-color);
    color:var(--bg-color)
}

.fooer-box li a{
    color: var(--text-color);

}

.fooer-box li a:hover{
    color: var(--main-color);
}
.contatc{
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}


.contact span {
    display: flex;
    align-items: center;
}
.contact i{
    margin-right: 10px;
    padding: 5px;
}


/* Feedback Form Box එකේ Design එක */
.feedback-box {
    background-color: #ffffff; /* සුදු පසුබිම (White background) */
    border: 2px solid #000000; /* කළු මායිම (Black outline) */
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feedback-box h3 {
    margin: 0;
    color: #000;
}

/* Text Input සහ Textarea එක සකස් කිරීම */
.feedback-box input, 
.feedback-box textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Submit Button එක සකස් කිරීම */
.feedback-box button {
    background-color: #000000; /* කළු බොත්තම */
    color: #ffffff;            /* සුදු අකුරු */
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.feedback-box button:hover {
    background-color: #333333;
}

/* Display වන Feedback Cards සකස් කිරීම */
.feedback-list {
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feedback-card {
    background-color: #ffffff;
    border: 1px solid #000000;
    padding: 15px;
    border-radius: 6px;
}

.feedback-card h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 14px;
}

.feedback-card p {
    margin: 0;
    color: #555;
}


/* --- Please Wait සහ Success බොක්ස් එක සඳහා CSS --- */

/* මෝඩල් එක මුළු ස්ක්‍රීන් එකම ආවරණය කර මැදට ගැනීම */
#feedbackModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

/* ඇතුළේ ඇති සුදු පාට බොක්ස් එක */
#feedbackModal > div {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-family: sans-serif;
}

/* හැඩ සහ අකුරු සැකසුම් */
#feedbackModal h3 {
    margin: 0 0 10px 0;
    color: #333333;
    font-size: 18px;
}

#feedbackModal p {
    margin: 0;
    color: #666666;
    font-size: 14px;
}

/* Loading Spinner (භ්‍රමණය වන රවුම) සඳහා */
#feedbackLoadingState div:first-child {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: feedbackSpin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes feedbackSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success State එකේ ටික් සලකුණ (✅) සඳහා */
#feedbackSuccessState div:first-child {
    font-size: 50px;
    color: #2ecc71;
    margin-bottom: 10px;
}

/* Success එකේ පෙන්වන OK බටන් එක සඳහා */
#feedbackSuccessState button {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 15px;
}

#feedbackSuccessState button:hover {
    background: #27ae60;
}



.see-more-btn-container {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 20px;
    margin-left: 100px;
}

/* Cart icon එක සහ count එක එකට පෙළගැස්වීම */
.cart-container {
    display: flex;
    align-items: center;
    position: relative;
}

/* Cart Icon එකට වම් පැත්තෙන් ඉඩක් තබා Count එක ලස්සනට පෙන්වීමට */
#cart-count {
    color: #ffffff !important; /* අකුරු සුදු පාට කිරීමට */
    margin-right: 8px;        /* Cart Icon එකට වම් පැත්තෙන් Gap එක */
    font-weight: bold;
    font-size: 1rem;
    display: inline-block;
}


/* Full Screen Image Modal Styles */
.img-modal {
    display: none; /* මුලින් මෙය පෙනෙන්නේ නැත */
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* පසුබිම කළු පැහැයට සහ මඳක් අඳුරු වේ */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* නිෂ්පාදන පින්තූර මත මූසිකය ගෙනගිය විට ක්ලික් කළ හැකි බව පෙන්වීමට */
.product-container img {
    cursor: pointer;
    transition: 0.3s;
}

.product-container img:hover {
    opacity: 0.8;
}




/* =====================================
   MOBILE RESPONSIVE DESIGN
   ===================================== */

@media screen and (max-width: 768px) {

    /* General settings */

    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    section {
        padding: 40px 20px;
    }


    /* HEADER */

    header {
        padding: 10px 15px;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .main-logo {
        width: 65px;
        height: 65px;
    }


    /* NAVIGATION BAR */

    .Navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 5px;
        order: 3;
    }

    .Navbar a {
        padding: 8px 10px;
        font-size: 0.75rem;
    }


    /* HEADER ICONS */

    .header-icon {
        font-size: 20px;
        column-gap: 10px;
    }


    /* HOME SECTION */

    .home {
        width: 100%;
        min-height: auto;
        padding: 150px 20px 40px;

        display: grid;
        grid-template-columns: 1fr;

        gap: 2rem;
        align-items: center;
        justify-items: center;
    }

    .home-text {
        width: 100%;
        text-align: left;
    }

    .home-text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        letter-spacing: 0.5px;
    }

    .home-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .home-img {
        width: min(100%, 300px);
        height: auto;
        max-height: 400px;
        object-fit: contain;
        margin-top: 0;
        justify-self: center;
    }


    /* ABOUT SECTION */

    .about {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-img img {
        width: 100%;
        height: auto;
    }


    /* PRODUCT SECTION */

    .product-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .product-container .box {
        width: 100%;
        height: auto;
        min-width: 0;
    }

    .product-container img {
        width: 100%;
        height: 250px;
        object-fit: contain;
    }


    /* PRODUCT BUTTONS */

    .product-container .box .content {
        flex-wrap: wrap;
        gap: 10px;
    }


    /* FOOTER */

    .fooer {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .social {
        flex-wrap: wrap;
        gap: 10px;
    }


    /* SEE MORE BUTTON */

    .see-more-btn-container {
        margin-left: 0;
        text-align: center;
    }


    /* FEEDBACK FORM */

    .feedback-box,
    .feedback-list {
        width: 100%;
        max-width: 100%;
    }

}


/* SMALL MOBILE PHONES */

@media screen and (max-width: 480px) {

    header {
        padding: 8px 10px;
    }

    .main-logo {
        width: 55px;
        height: 55px;
    }

    .Navbar {
        gap: 0;
    }

    .Navbar a {
        padding: 8px 7px;
        font-size: 0.7rem;
    }

    .home {
        padding: 135px 15px 30px;
    }

    .home-text h1 {
        font-size: 1.8rem;
    }

    .home-text p {
        font-size: 0.85rem;
    }

    .home-img {
        max-width: 260px;
    }

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

}



/* meka danne menu icon ekata */

/* =========================================
   MOBILE GLASS MENU
   ========================================= */

@media screen and (max-width: 768px) {

    /* Menu Icon */
    #menu-icon {
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: #ffffff;
        z-index: 1002;
        transition: 0.3s ease;
    }

    #menu-icon:hover {
        transform: scale(1.08);
    }

    /* Mobile Navbar */
    .Navbar {
        position: fixed;
        top: 0;
        left: -290px;

        width: 270px;
        height: 100vh;

        padding: 100px 25px 30px;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;

        background: rgba(20, 20, 20, 0.82);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);

        border-right: 1px solid rgba(255, 255, 255, 0.15);

        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.25);

        z-index: 1001;

        transition: left 0.35s ease;
    }

    /* Open Menu */
    .Navbar.active {
        left: 0;
    }

    /* Menu Items */
    .Navbar li {
        list-style: none;
        width: 100%;
    }

    .Navbar li a {
        display: block;
        width: 100%;

        padding: 14px 16px;

        color: #ffffff;
        font-size: 17px;
        font-weight: 500;

        text-decoration: none;

        border-radius: 10px;

        transition:
            background 0.25s ease,
            padding-left 0.25s ease,
            color 0.25s ease;
    }

    .Navbar li a:hover {
        background: rgba(255, 255, 255, 0.12);
        padding-left: 23px;
    }

    /* Dark transparent background behind menu */
    .menu-overlay {
        position: fixed;
        inset: 0;

        background: rgba(0, 0, 0, 0.35);

        opacity: 0;
        visibility: hidden;

        z-index: 1000;

        transition: 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}


/* =========================================
   SMALL MOBILE PHONES
   ========================================= */

@media screen and (max-width: 480px) {

    .Navbar {
        width: 250px;
        left: -270px;

        padding: 90px 18px 25px;
    }

    .Navbar li a {
        font-size: 16px;
        padding: 13px 14px;
    }

    #menu-icon {
        font-size: 28px;
    }
}


@media screen and (max-width: 768px) {

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

    h1 {
        font-size: 30px;
        line-height: 1.25;
    }

    h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
        line-height: 1.7;
    }

    .Navbar li a {
        font-family: 'Poppins', sans-serif;
        font-size: 16px;
        font-weight: 500;
    }

    .btn {
        font-family: 'Poppins', sans-serif;
    }
}

@media screen and (max-width: 768px) {
    body,
    header,
    .Navbar,
    .Navbar a,
    .header-icon,
    .search-box,
    button,
    input,
    textarea {
        font-family: 'Poppins', sans-serif;
    }
}

/* =========================================
   SMALL MOBILE PHONES - 480px
   ========================================= */

@media screen and (max-width: 480px) {

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

    h1 {
        font-size: 25px;
        line-height: 1.25;
    }

    h2 {
        font-size: 21px;
        line-height: 1.3;
    }

    h3 {
        font-size: 17px;
    }

    p {
        font-size: 13px;
        line-height: 1.65;
    }

    .Navbar li a {
        font-family: 'Poppins', sans-serif;
        font-size: 15px;
        font-weight: 500;
    }

    .btn {
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
    }

    #menu-icon {
        font-size: 27px;
    }

    #search-icon {
        font-size: 22px;
    }

    .cart-icon {
        font-size: 22px;
    }

    #cart-count {
        font-size: 14px;
    }
}
