/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* === Container Section === */
.designer-section {
    overflow: hidden;
    padding: 0px;
    position: relative;
    width: 80%;
    margin: auto;
    border-radius: 20px;
}

/* === Track Container with Shadow Sides === */
.designer-track {
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0px;
    position: relative;
}

/* === Shadow Lighty Effect Left/Right === */
.designer-track::before,
.designer-track::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.designer-track::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.designer-track::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* === Marquee Animation === */
.designer-marquee {
    display: inline-flex;
    gap: 30px;
    animation: marquee-left 40s linear infinite;
    will-change: transform;
}

.designer-marquee.reverse {
    animation: marquee-right 40s linear infinite;
}

.designer-track:hover .designer-marquee {
    animation-play-state: paused;
}

/* === Card Box with Smooth Appearance === */
.wds-product-designer-box-home {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.4s ease-in-out;
    min-width: 300px;
    white-space: normal;
    opacity: 0;
    animation: fadeInBox 1s ease-in-out forwards;
}

.designer-marquee .wds-product-designer-box-home {
    animation-delay: calc(var(--i) * 0.2s);
}

.wds-product-designer-box-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* === Avatar and Content === */
.wds-designer-avatar-info-home img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wds-designer-content {
    font-size: 14px;
    color: #333;
}

.wds-designer-label {
    font-weight: bold;
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.wds-designer-name-info a {
    font-weight: 600;
    color: #111;
    text-decoration: none;
    font-size: 16px;
}

.wds-designer-name-info a:hover {
    text-decoration: none;
    color: #275c52;
}

.wds-designer-location {
    font-size: 13px;
    color: #666;
    margin: 3px 0;
}

.wds-designer-stats-info {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin-top: 5px;
}

.wds-stat-item {
    font-weight: 500;
}

.wds-stat-separator {
    margin: 0 5px;
}

/* === Keyframes === */
@keyframes marquee-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes marquee-right {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeInBox {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tombol ganti Canvas / Poster */
.switch-art-btn {
  display: inline-block;
  padding: 10px 17px;
  background-color: #f8f9fc;
  color: #344054;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-left:65px;
}

.switch-art-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 6px rgba(16, 24, 40, 0.15);
}

@media (max-width:480px) {
    .switch-art-btn {
      margin-left:0px;
    }
}
