/* modify the product category */
.category-dropdown > a {
    min-width: 0rem !important;
    margin-right: 1rem;
    margin-left: 1rem;
    font-weight: 600;
    font-size: 1.4rem;
}
.category-dropdown.has-border .category-toggle {
    border-right: 0 !important;
    border-left: 0 !important;
}

/* Modify category button hover */
.category-dropdown > a:not(.btn):hover {
    color: #ff9b00 !important;
  }
  .category-dropdown:hover > a, .category-dropdown.show > a {
    color: #ff9b00 !important;
    background-color: #ffffff !important;
  }

.header-right {
    display: contents !important;
}

 

/* spaces  */


.mt-20 {margin-top: 10rem !important;}
.margin-0 {margin: 0px !important;}

.add-compare-list {
  cursor: pointer !important;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 7px 10px;
  padding-bottom: 0;
}

/* colors */

.red {color: #ff9b00 !important;}
.black {color: black !important;}
.light-gradient{ background-color: #f3f3f3; /* For browsers that do not support gradients */ background-image: linear-gradient(#f3f3f3, #dadada);}

/* fonts */

.f-18{
  font-size: 1.8rem;
}
.f-17{
  font-size: 1.7rem;
}
.f-16{
  font-size: 1.6rem;
}


/* footer */
.footer-bottom .footer-right {

  justify-content: center !important;

}

.padd0{
  padding:0 !important;
}

.widest {
  width: 100% !important;
}

.br-10{
  border-radius: 10px;
}

.p-10{
  padding: 10px;
}



@media (max-width: 991px) {
  .no-desktop{
    display: none;
  }
}




/* Header */

/* Switcher button */

body.dark {
  background-color: #27173a; /* Night mode background color */
}

body.light {
  background-color: #f3f3f3; /* Day mode background color */
}

.daylight-btn {
width: 70px;
height: 29px;
padding: 5px;
background-color: #27173a;
border-radius: 50px;
cursor: pointer;
overflow: hidden;
}

.daylight-btn .daylight-in {
position: relative;
width: 20px;
height: 20px;
background-color: #ffc207;
border-radius: 50%;
transition: all 0.6s;
}

.daylight-btn .daylight-in::before {
content: "";
position: absolute;
top: 0;
left: -25px;
width: 100%;
height: 100%;
background-color: #27173a;
border-radius: 50%;
transform: scale(0);
transition: all 0.6s;
}

.daylight-btn .daylight-in {
transform: translate(calc(40px - 80px));
}

.daylight-btn .daylight-in.active {
transform: translate(calc(80px - 80px));
}

.daylight-btn .daylight-in.active::before {
left: -7px;
top: -3px;
transform: scale(1);
}

/* footer section */
.social-icons-container {
  display: flex;
  justify-content: center; /* Center aligns the icons horizontally */
  align-items: center;     /* Center aligns the icons vertically */
  gap: 10px;               /* Adds space between the icons */
}

.social-icons-container a {
  display: block;
}

.social-icons-container figure {
  margin: 0; /* Remove default margin from figure */
  width: 4rem;
  height: 4rem;
}

/* <!-- contact-us page --> */
.break-line {
  white-space: normal !important;
}

/* <!-- compare page --> */
.text-black {
  color: black !important;
}
.custom-text-success {
  color: #489748 !important;
}
.custom-text-danger {
  color: red !important;
}

/* <!-- comparison section drop-up --> */
.comparison-container {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: #fff;
  transition: bottom 0.3s ease;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.comparison-container.show {
  bottom: 0;
}

.comparison-header {
  /* display: flex;  */
  justify-content: center;
  padding: 1rem;
    margin-top: 40px;
}

.comparison-items {
  display: flex;
  justify-content: space-evenly;
  padding: 1rem;
}

.comparison-item {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f0f0f0;
  border: 1px solid #ddd;
  position: relative;
}

.comparison-item img {
  max-width: 100%;
  max-height: 100%;
}

.comparison-item button {
  position: absolute;
  top: 0;
  right: 0;
  background: #f00;
  border: none;
  color: #fff;
  cursor: pointer;
}

.comparison-item.empty {
  background: #fff;
  border: 1px dashed #ddd;
  color: #ddd;
  font-size: 2rem;
}

.comparison-count {
  padding: 0.5rem;
  text-align: center;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

.overlay.show {
  display: block;
}

.compare-btn{
    background: #373737;
    border: 0;
    border-radius: 4px;
    padding: 15px;
    color: white;margin-left: 15px;
    cursor: pointer;
}
.compare-btn:hover{
  background: #ff9b00;
  border: 0;
  border-radius: 4px;
  padding: 15px;
  color: black;
  cursor: pointer;
}
.close-compare-btn{
  background: #f7f7f7;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  padding: 15px;
  color: rgb(26, 26, 26);
  cursor: pointer;
}
.close-compare-btn:hover{
  background: #dd6363;
  border: 1px solid #dd6363;
  border-radius: 4px;
  padding: 15px;
  color: white;margin-left: 15px;
  cursor: pointer;
}



/*  آواتار یا پریویو عکس در مدیریت مدیا (داشبورد) */

.media-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 300px;
}

.image-wrapper {
    width: 100%;
    height: 150px; /* fixed visible height */
    overflow: hidden;
    background: #f8f8f8;
}

.media-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crops but keeps ratio */
    display: block;
}


/* Rest of card fills remaining space */
.media-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
}


/* دکمه کپی لینک در مدیریت مدیا (داشبورد) */

/* Wrapper styling */
.copy-link-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.copy-link-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Copy button */
.copy-btn {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.copy-btn.copied {
    background-color: #198754 !important; /* Bootstrap green */
    border-color: #198754 !important;
    color: #fff !important;
}

/* Small link text */
.copy-link-wrapper small {
    font-family: monospace;
    background: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid #e2e6ea;
    word-break: break-word;
    font-size: 12px;
    color: #555;
}