/* بِسْمِ ٱللَّٰهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ */
* {
    font-family: 'Work Sans';
    color: #202529;
}
h1,h2{
    text-align: center;
}


.row {
    
    margin-right: auto;
    margin-bottom: 3vh;
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
}
.watch span {
    font-weight: bold;
}

.left-item,
.right-item {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.description {
    width: 230px;
    margin-top: 3vh;
}

.description th {
    text-align: left;
    font-weight: bold;
    width: 48%;
    font-family: initial;
}

table {
margin-bottom: 2vh;
}

.order{
    padding: 3px 10px 3px 10px;
    border-radius: 5px;
    border: 2px solid black;
}

.watch {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-container {
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 10px;
  }

.watch img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
footer{
    background-color: #f8f9fb;
    padding: 20px;
    text-align: center;
    border-top: 1px solid grey;
}

footer a:visited{
    color: inherit;  
}

.h1-about, .h2-about{
    margin-left: 5%;
    text-align: left;
}
.p-about{
    text-align: justify;
    margin-left: 5%;
    margin-right: 5%;
}

@media (max-width: 768px) {
    .left-item,
.right-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
}

.filters {
  display: flex;

}
.description {
    margin-left: 1vw;
    margin-top: 1vh;
    margin-bottom: 1vh;
}
}


.main-content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

#products-container{
    margin-top: 15%;
}

#brand-filter label {
  display: block;
  margin-bottom: 0.3em;
}
.filters {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #f7f7f7;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  gap: 0.5rem;
}
.sort-container {
  position: absolute;
  top: 110px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 0.5em;
  z-index: 10;
}

.title-div{
   position: absolute;
  top: 30px;
  right: 25%;
  display: flex;
  align-items: center;
  gap: 0.5em;
  z-index: 20; 
}


.toggle-filters-btn {
  position: absolute;
  top: 30px;
  left: 40px;
  z-index: 20;
  background: #222;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-filters-btn:hover {
  background: #444;
}

#filters-panel {
  position: absolute;
  top: 70px;
  left: 40px;
  z-index: 15;
  min-width: 220px;
  max-width: 90vw;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

@media (max-width: 600px) {
  .toggle-filters-btn, #filters-panel {
    position: static;
    width: 100%;
    left: 0;
    top: 0;
    margin-bottom: 1em;
  }
}

@media (max-width: 600px) {
.main-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.filters{
    width: 60%;
}

.sort-container{
    position: initial;
}

.title-div{
    position: initial;
    width: 100%;
    text-align: center;
}

.row{
    margin-left: auto;
}

}


.row:has(.left-item):not(:has(.right-item)) .left-item {
  flex: 1 1 100%;
  max-width: 100%;
}
.row:has(.left-item):not(:has(.right-item)) {
  justify-content: flex-start !important;
}


.main-title {
  margin-top: 32px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 2.2rem;
  font-family: 'Work Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #222;
}

@media (max-width: 600px) {
  .main-title {
    font-size: 1.4rem;
    margin-top: 18px;
    margin-bottom: 16px;
  }
}
