*{
    margin: 0;
     font-family: "Poppins", sans-serif;
}

body{
    background-color: rgb(237, 216, 216);
}

header{
    width: 90%;
    margin: 50px auto;
    display: flex;
    justify-content: space-between;
}

.btn{
    background-color: rgb(48, 83, 222);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
}

.btn:hover{
    background-color: rgb(21, 11, 131);
    cursor: pointer;
    transition: 0.8s;
}

#highlight-section{
    width: 70%;
    margin: 50px auto;
}

#highlight-section > h2{
    font-size: 50px;
    font-weight: 800;
    text-align: center;
    text-shadow: 2px 2px 8px #DF4141;
    margin-bottom: 25px;
}

#highlight-section > p{
    margin: 0 auto;
    width: 50%;
    color: rgb(89, 85, 85);
    text-align: center;
    margin-bottom: 25px;
}

#buy-now-button{
    display: flex;
    justify-content: center;
}

.buy-btn{
    background-color: rgb(255, 87, 51);
    color: white;
    border: none;
    padding: 20px 30px;
    border-radius: 50px;
}

.buy-btn:hover{
    background-color: rgb(180, 50, 20);
    cursor: pointer;
    transition: 0.6s;
    transform: scale(1.05);
}

#cover-image-section{
    width: 70%;
    margin: 50px auto;
    display: flex;
    justify-content: center;
}

#cover-image-section img{
    width: 1000px; 
    max-height: 600px; 
    object-fit: contain;
}

#search-section{
    width: 70%;
    margin: 50px auto;
}

#search-section > h2{
    text-align: center;
    margin-bottom: 25px;  
}

#search-container{
    width: 50%;
    margin: 0 auto;
    border-radius: 8px;
    border: 2px solid black;
    padding: 10px;
    background-color: rgb(237, 232, 192);
    display: flex;
}

#search-bar{
    width: 70%;
}

#search-bar > input[type="text"]{
    padding: 15px;
    border: none;
    outline: none;
    width: 60%;
    background-color: rgb(237, 232, 192);

}

#search-button{
    width : 30%;  
    display: flex;
    justify-content: end;
}

#card-section{
    width: 80%;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card{
    border: 1px solid gray;
    border-radius: 10px;
    padding: 20px;
    
}

.card-image{
    background-color: white;
    display: flex;
    justify-content: center;
    border-radius: 8px; 
    margin-bottom: 20px;
}

.card-image:hover{
    background-color: #d7c2c2;
    transition: 0.8s;
    cursor: pointer;
}

.card-image img{
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.card-title{
    text-align: center;
    font-size: 30px;
    margin-bottom: 20px;
}

.card-description{
    text-align: center;
    margin-bottom: 20px;
    color: rgb(117, 108, 108);
}

.card-price{
    text-align: center;
    font-weight: 600;
    font-size: 25px;
    margin-bottom: 20px;
}

.card-button{
    width: 50%;
    margin: 0 auto;
    display: flex;
    justify-content: right;
}

#loading-section{
   width: 70%;
   margin: 0 auto;
    display: flex;
    justify-content: center;
}

.hidden{
    display: none;
}


/* HTML: <div class="loader"></div> */
.loader {
  width: 50px;
  --b: 8px; 
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(#0000 10%,#f03355) content-box;
  -webkit-mask:
    repeating-conic-gradient(#0000 0deg,#000 1deg 20deg,#0000 21deg 36deg),
    radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b)));
  mask: 
    repeating-conic-gradient(#0000 0deg,#000 1deg 20deg,#0000 21deg 36deg),
    radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b)));
  -webkit-mask-composite: destination-in;
  mask-composite: intersect; 
  animation:l4 1s infinite steps(10);
}
@keyframes l4 {to{transform: rotate(1turn)}}


footer {
  background-color: #0d6dfd15;
  
  padding: 60px 10%;
}

#upper-footer-section {
  margin-bottom: 50px;
  display: flex;
  justify-content: space-between;
}

.footer-heading {
  font-size: 35px;
  margin-bottom: 10px;
}
.footer-tagline {
  color: #706f6f;
  font-size: 18px;
  font-weight: 600;
}

#footer-social-icons {
  display: flex;
  align-items: center;
}

#footer-social-icons img {
  width: 22px;
  height: 22px;
  margin-right: 20px;
}

#horizontal-line {
  border-top: 1px solid #cfcfcf;
}

#footer-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

#footer-nav div {
  width: 20%;
  display: flex;
  flex-direction: column;
  row-gap: 15px;
}

#footer-nav div a {
  text-decoration: none;
  color: black;
}

/* Footer Bottom Styles */
.footer-bottom {
    text-align: center;
    padding: 40px 0 20px;
    color: rgba(0, 0, 0, 0.6); 
    font-size: 14px;
}

.footer-bottom a {
    color: #3b82f6; 
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* MODAL STYLES */
.modal {
  display: none; 
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 60%;
  border-radius: 15px;
  text-align: center;
}

#modalCloseBtn {
  float: right;
  font-size: 30px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

#modalCloseBtn:hover {
  color: red;
}

.modal-content img {
  width: 200px;
  margin: 20px auto;
  display: block;
}

/* show-all button center */
#show-all-btn {
  display: block;
  margin: 30px auto;
  text-align: center;
}


/* Responsive Design */
@media screen and (max-width: 576px) {
    * {
        box-sizing: border-box;
    }

    /* Header Section */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 95%;
        margin: 20px auto;
        padding: 0 10px;
    }

    header h1 {
        font-size: 20px;
    }

    header .btn {
        padding: 7px 13px;
        font-size: 11px;
        width: auto;
    }

    /* Highlight Section */
    #highlight-section {
        width: 100%;
        padding: 0 15px;
        margin: 30px auto;
    }

    #highlight-section h2 {
        font-size: 26px;
        line-height: 1.3;
        text-align: center;
    }

    #highlight-section p {
        width: 100%;
        font-size: 14px;
        text-align: center;
    }

    /* Buy Button */
    .buy-btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .buy-btn:active {
        background-color: rgb(180, 50, 20);
        transform: scale(0.95);
    }

 /* Cover Image Section */
#cover-image-section {
    width: 100%;
    margin: 20px auto;
}

#cover-image-section img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Search Section */
#search-container {
    width: 100%;
    margin: 15px 0;
    display: flex;
    align-items: center;
    background-color: #EAE3B5;
    padding: 4px 4px 4px 12px;
    border-radius: 12px;
    border: 1.5px solid #000;
}

#search-bar {
    display: flex;
    align-items: center;
    flex: 3;
}

#search-bar input[type="text"] {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    padding-left: 2px;
}

#search-button .btn {
    background-color: #3B59ED;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
   
/* Start of Card Section */
#card-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 95%;
    margin: 20px auto;
}

#card-section .card {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#card-section .card-image img {
    height: 120px;
    object-fit: contain;
}

#card-section .card-title {
    font-size: 14px;
    margin-bottom: 5px;
}

#card-section .card-description {
    font-size: 10px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

#card-section .card-price {
    font-size: 15px;
    margin-bottom: 10px;
}

#card-section .card-button {
    width: 100%;
    display: flex;
    justify-content: center;
}

#card-section .card-button .btn {
    width: auto;
    padding: 8px 16px;
    font-size: 12px;
    display: inline-block;
}

/* Start of Footer Section */
#upper-footer-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 4px; 
}

/* Left side group */
#upper-footer-section .footer-heading {
    font-size: 10px; 
    margin: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

#upper-footer-section .footer-tagline {
    font-size: 7px;
    margin: 0;
    white-space: nowrap;
}

/* Right side group */
#footer-social-icons {
    display: flex;
    align-items: center;
    gap: 4px; 
}

#footer-social-icons img {
    width: 9px; 
    height: 9px;
    margin: 0;
}

footer .btn {
    padding: 3px 6px;
    font-size: 6px;
    border-radius: 3px;
    white-space: nowrap;
}

/* Footer Navigation */
#footer-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 4px;
    gap: 10px;
}

#footer-nav div {
    width: 32%;
    display: flex;
    flex-direction: column;
    row-gap: 5px; 
}

#footer-nav h4 {
    font-size: 8px;
    margin-bottom: 2px;
    font-weight: 700;
}

#footer-nav div a {
    font-size: 7px;
    text-decoration: none;
    color: #444;
    white-space: nowrap;
}

/*  Footer Spacing */
footer {
    padding: 20px 10%; 
}

#upper-footer-section {
    margin-bottom: 15px; 
}

#horizontal-line {
    border-top: 1px solid #cfcfcf;
    margin-bottom: 0;
}

/* Footer Bottom Section */
.footer-bottom {
    margin-top: 15px;
    padding: 10px 0;
    font-size: 6px;
    border-top: 0.5px solid #cfcfcf;
    text-align: center;
}

/* Start of Loading,Modal and Show All Button */
.loader {
    width: 25px; 
    border-width: 4px; 
}

.btn-sm {
        padding: 5px 10px !important; 
        font-size: 10px !important;    
        display: block;
        margin: 10px auto;
    }


    .modal-content {
        width: 85% !important; 
        max-height: 80vh;     
        overflow-y: auto;      
        padding: 10px;
        margin: 50% auto;
        border-radius: 8px;
    }

    #modal-phone-image {
        width: 100px ; 
        display: block;
        margin: 0 auto 10px;
    }

    .modal-content h2 {
        font-size: 14px ;
        text-align: center;
    }

    .modal-content p {
        font-size: 11px ; 
        margin-bottom: 5px;
        line-height: 1.3;
    }

    #modalCloseBtn {
        font-size: 20px;
        top: 5px;
        right: 10px;
    }
}




