/* Horizontal swipe container */

.product-title {
  color: #fff; /* normal color */
  transition: color 0.3s ease;
}

.product-title:hover {
  color: #f16a02 
}



/*////////////////*/



.add-to-cart {
  display: inline-block;
  background: #132707;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.add-to-cart:hover {
  background: #444;
}



/*////////////////*/

.text-boxc1 {
  position: relative;
  margin-left: 55px;
  width: auto;
  height: auto;

  display: flex;
  flex-direction: row;        /* side-by-side layout */
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;

  overflow-x: auto;           /* horizontal scroll */
  overflow-y: hidden;         /* prevent vertical scroll */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;        /* ONLY horizontal swipe */
}





.card-scroll {
    display: flex;
    flex-direction: row;
    gap: 10px;
             
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;           /* ONLY horizontal movement */
    padding: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}


.card-scroll::-webkit-scrollbar {
    display: none; /* optional: hides scrollbar */
}

/* Each card wrapper */
.card-list-scroll {
    width: 280px;                  /* REQUIRED for image to show */
    flex: 0 0 auto;                /* prevents shrinking */
    scroll-snap-align: start;      /* snap position */
}

/* Card content */
.card-list-scroll .card-item {
    background: #fff;
    /*padding: 16px;*/
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.05);
    list-style: none;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: border 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-list-scroll .card-item:hover {
    border: 2px solid #000;
}

/* Image fix */
.card-list-scroll .card-item img {
    width: 100%;
    flex-shrink: 0;                /* prevents disappearing */
    aspect-ratio: 1 / 1;
    border-radius: 155px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px;
    object-position: 50% 13%;
}

/* Tag styles */
.card-list-scroll span {
    display: inline-block;
    background: #132707;
    margin-top: 16px;
    padding: 6px 12px;
    font-size: 1.00rem;
    font-weight: 600;
}

/* Role-specific tags */
.card-list-scroll .developer {
    background-color: #e8eae0;
    color: #000;
}

.card-list-scroll .designer {
    background-color: #d1e8ff;
    color: #2968a8;
}

.card-list-scroll .editor {
    background-color: #d6f8d6;
    color: #205c20;
}

/* Text styles */
.card-item h3 {
    color: #000;
    /*font-size: 1.5rem;*/
    margin-top: 16px;
}

.card-item h4 {
    color: #000;
    font-size: 1rem;
    margin-top: 10px;
    font-weight: 600;
}

.card-item h6 {
    color: #000;
    font-size: 0.875rem;
    margin-top: 8px;
}

/* Arrow icon */
.card-item .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    color: #000;
    border: 1px solid #000;
    border-radius: 50%;
    margin-top: auto;
    transition: 0.2s ease;
}

.card-list-scroll .card-item:hover .arrow {
    background: #000;
    color: #fff;
}



/*////////*/

.scroll-left {
  margin-right: 222px;   /* move left arrow further left */
}

.scroll-right {
  margin-left: 50px;   /* move right arrow further right */
}


.scroll-wrapper {
  /*display: flex;*/
  align-items: center;
  gap: 10px;
}

.scroll-left,
.scroll-right {
  background: #000;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.scroll-left:hover,
.scroll-right:hover {
  background: #444;
}

/*////////*/



/* Responsive tweaks */
@media (max-width: 1200px) {
    .card-scroll {
        padding: 15px;
    }
}

@media screen and (max-width: 768px) {
    .card-item h3 {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 768px) {

   Make the left box shrink properly 
  .text-boxc1 {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

   Make the card row fit mobile screens 
  .card-scroll {
    padding: 10px;
    gap: 10px;
    touch-action: pan-x;
    overflow-x: auto;
    overflow-y: hidden;
  }

   Make each card slightly smaller on mobile 
  .card-list-scroll {
    width: 240px;
    min-width: 240px;
    flex: 0 0 auto;
  }

   Adjust text sizes 
  .card-item h3 {
    font-size: 1.1rem;
  }
}

