/* ============================================
   SALEHOO — Homepage Styles
   ============================================ */

/* ---- Hero Slider ---- */
.hero-slider {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 88vh;
    max-height: 800px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    background: #0a0a1a;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1s cubic-bezier(0.7, 0, 0.3, 1);
    display: flex;
    align-items: center;
    transform: scale(1.05);
}

.hero-slide.prev {
    transform: translateX(-30%) scale(0.9);
    opacity: 0;
    visibility: visible;
    z-index: 1;
}

.hero-slide.next {
    transform: translateX(30%) scale(0.9);
    opacity: 0;
    visibility: visible;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    z-index: 2;
}

/* Hero Image */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 30, 0.85) 0%,
        rgba(10, 10, 30, 0.6) 40%,
        rgba(10, 10, 30, 0.3) 70%,
        rgba(10, 10, 30, 0.5) 100%
    );
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    transition: transform 6s cubic-bezier(0.25, 0.1, 0.25, 1);
    filter: brightness(0.9);
}

.hero-slide.active .hero-image img {
    transform: scale(1);
}

/* Hero Content */
.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 3;
    padding: 0 8%;
    max-width: 1500px;
    margin: 0 auto;
}

.hero-content-inner {
    max-width: 650px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.hero-slide.active .hero-content-inner {
    transform: translateY(0);
    opacity: 1;
}

.hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    background: rgba(228, 30, 49, 0.85);
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-content h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -1px;
    font-family: 'Inter', sans-serif;
}

.hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 500px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.6s;
}

.hero-slide.active .hero-buttons {
    transform: translateY(0);
    opacity: 1;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border: 2px solid transparent;
}

.hero-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: translateX(4px);
}

.hero-btn-primary {
    background: #fff;
    color: #1a1a2e;
    border-color: #fff;
}

.hero-btn-primary:hover {
    background: #e41e31;
    color: #fff;
    border-color: #e41e31;
    box-shadow: 0 8px 25px rgba(228, 30, 49, 0.4);
    transform: translateY(-2px);
}

.hero-btn-outline {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}

.hero-btn-outline:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.hero-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-dot {
    width: 36px;
    height: 36px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-progress {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.dot-bg {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 2;
}

.dot-fill {
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-dasharray: 100.5;
    stroke-dashoffset: 100.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.4s ease;
}

.hero-dot.active .dot-fill {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 7s linear;
}

.hero-dot::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-dot.active::after {
    background: #fff;
    transform: scale(1.2);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.08);
}

/* ---- Trust Bar ---- */
.trust-bar {
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
}

.trust-bar-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-right: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.trust-item:last-child {
    border-right: none;
    }

.trust-item:hover {
    background: #fafbfc;
    }

.trust-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(228,30,49,0.08), rgba(255,71,87,0.08));
    border-radius: 12px;
    color: #e41e31;
    font-size: 18px;
    flex-shrink: 0;
    }
    
.trust-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
    }
    
.trust-text span {
    font-size: 12px;
    color: #888;
    font-weight: 400;
    }

/* ---- Home Section (shared) ---- */
.home-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 24px;
    }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    gap: 20px;
    }
    
.section-header-left {
    flex: 1;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e41e31;
    margin-bottom: 6px;
    }
    
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
    line-height: 1.2;
    }

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e41e31;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-link:hover {
    border-bottom-color: #e41e31;
    color: #c41526;
}

.section-link i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.section-link:hover i {
    transform: translateX(4px);
    }

/* ---- Category Cards ---- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    }
    
.category-card-img {
    flex: 1;
    overflow: hidden;
    position: relative;
    }

.category-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.4) 100%);
    transition: opacity 0.4s ease;
    opacity: 0.6;
    }

.category-card:hover .category-card-img::after {
    opacity: 0.8;
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
.category-card:hover .category-card-img img {
    transform: scale(1.08);
    }

.category-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    z-index: 2;
    }
    
.category-card-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    }
    
.category-card:hover .category-card-icon {
    background: #e41e31;
    }
    
.category-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
    }
    
.category-card-link {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.category-card-link i {
    font-size: 10px;
    transition: transform 0.3s ease;
    }
    
.category-card:hover .category-card-link {
    color: #fff;
    }
    
.category-card:hover .category-card-link i {
    transform: translateX(3px);
}

/* ---- Product Cards ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f8f9fb;
}

.product-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card-image .img-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.product-card:hover .img-primary {
    opacity: 0;
}

.product-card:hover .img-hover {
    opacity: 1;
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    z-index: 2;
    letter-spacing: 0.3px;
}

.badge-sale {
    background: linear-gradient(135deg, #e41e31, #ff4757);
    color: #fff;
    box-shadow: 0 2px 8px rgba(228,30,49,0.3);
}

/* Product Quick Actions */
.product-card-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
    transform: translateX(60px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-actions {
    transform: translateX(0);
    opacity: 1;
}

.pca-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    border-radius: 10px;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    transition: all 0.25s ease;
    text-decoration: none;
}

.pca-btn:hover {
    background: #e41e31;
    color: #fff;
    transform: scale(1.08);
}

/* Product Card Body */
.product-card-body {
    padding: 18px 18px 20px;
}

.product-card-cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 6px;
    display: block;
}

.product-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.product-card-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card-title a:hover {
    color: #e41e31;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.price-old {
    font-size: 14px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 500;
}

/* ---- CTA Banner ---- */
.cta-banner {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cta-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.cta-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 600px;
    padding: 0 24px;
}

.cta-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.cta-banner-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.cta-banner-content p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1200px) {
    .hero-slider {
        height: 80vh;
    }

    .trust-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item:nth-child(2) {
        border-right: none;
    }

    .trust-item:nth-child(3),
    .trust-item:nth-child(4) {
        border-top: 1px solid #f0f0f0;
    }

    .trust-item:nth-child(4) {
        border-right: none;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 70vh;
    }

    .hero-content {
        padding: 0 5%;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .home-section {
        padding: 48px 20px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 65vh;
        max-height: 550px;
    }

    .hero-content {
        padding: 0 24px;
        align-items: flex-end;
        padding-bottom: 100px;
    }

    .hero-content-inner {
        max-width: 100%;
    }

    .hero-tag {
        font-size: 11px;
        padding: 5px 14px;
        margin-bottom: 16px;
    }

    .hero-content p {
        display: none;
    }

    .hero-buttons .hero-btn {
        padding: 12px 24px;
        font-size: 13px;
        border-radius: 10px;
    }

    .hero-controls {
        bottom: 24px;
        gap: 14px;
    }

    .hero-arrow {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .hero-dot {
        width: 28px;
        height: 28px;
    }

    .trust-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-item {
        padding: 16px;
        gap: 10px;
    }

    .trust-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .trust-text strong {
        font-size: 12px;
    }

    .trust-text span {
        font-size: 11px;
    }

    .home-section {
        padding: 40px 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 24px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        aspect-ratio: 3/4;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card-body {
        padding: 14px;
    }

    .product-card-title {
        font-size: 13px;
        height: 36px;
    }

    .price-current {
        font-size: 16px;
    }

    .price-old {
        font-size: 12px;
    }

    .product-card-actions {
        transform: translateX(0);
        opacity: 1;
        bottom: 8px;
        right: 8px;
    }

    .pca-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .cta-banner {
        height: 320px;
    }

    .cta-banner-content h2 {
        font-size: 1.8rem;
    }

    .cta-banner-content p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 55vh;
        max-height: 450px;
    }

    .hero-content {
        padding-bottom: 80px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .hero-btn-outline {
        display: none;
    }

    .trust-bar-inner {
        grid-template-columns: 1fr 1fr;
    }

    .trust-item {
        padding: 12px;
    }

    .trust-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
        border-radius: 8px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card {
        border-radius: 12px;
    }

    .category-card-body {
        padding: 14px;
    }

    .category-card-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
        border-radius: 8px;
        margin-bottom: 6px;
    }

    .category-card-body h3 {
        font-size: 14px;
    }

    .products-grid {
        gap: 10px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-card-cat {
        font-size: 10px;
    }

    .product-card-title {
        font-size: 12px;
        height: 34px;
        margin-bottom: 6px;
    }

    .product-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .cta-banner {
        height: 280px;
    }
}

@media (max-width: 380px) {
    .hero-slider {
        height: 50vh;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .trust-text strong {
        font-size: 11px;
    }

    .trust-text span {
        display: none;
    }
}

/* Touch device adjustments */
@media (hover: none) {
    .product-card-actions {
        transform: translateX(0);
        opacity: 1;
}

    .category-card:hover {
        transform: none;
}

    .product-card:hover {
        transform: none;
}

    .category-card:active {
        transform: scale(0.98);
}

    .product-card:active {
        transform: scale(0.98);
    }
}
