/**
 * RajaSkin Homepage Styling
 */

/* ==========================================================================
   1. Hero Section
   ========================================================================== */
.rs-hero-section {
    padding: 1.5rem 0 2rem;
}

.rs-hero-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.rs-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rs-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.rs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.32) 100%);
}

.rs-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 100%;
    padding: 2.5rem 1.5rem;
    color: #ffffff;
}

.rs-hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 0.85rem 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.25);
}

.rs-hero-subtitle {
    font-size: 1.08rem;
    font-weight: 400;
    color: rgba(255,255,255,0.92);
    margin: 0 0 2.2rem 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.rs-hero-btn {
    display: inline-block;
    background: #ffffff;
    color: #111111;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 14px 36px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.rs-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
    background: #fbfbfb;
    color: #000000;
}

/* ==========================================================================
   2. Brand Philosophy & Features
   ========================================================================== */
.rs-philosophy-section {
    padding: 6.5rem 0 4.5rem;
}

.rs-philosophy-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4.5rem;
}

.rs-section-tag {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.rs-philosophy-text {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 400;
    line-height: 1.45;
    color: #1a1a1a;
    margin: 0;
}

.rs-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.rs-feature-card {
    display: flex;
    gap: 1.15rem;
    padding: 1.75rem;
    background: #faf9f6;
    border-radius: 18px;
    border: 1px solid #f0eee8;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rs-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.rs-feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e8e5dc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222222;
    flex-shrink: 0;
    overflow: hidden;
}

.rs-feature-icon-box img,
.rs-feature-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.rs-feature-icon-box svg {
    width: 22px;
    height: 22px;
    max-width: 24px;
    max-height: 24px;
    display: block;
}

.rs-feature-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rs-feature-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111111;
    margin: 0;
}

.rs-feature-desc {
    font-size: 0.86rem;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   3. Shop by Category
   ========================================================================== */
.rs-category-section {
    padding: 3.5rem 0 5.5rem;
}

.rs-section-title-wrap {
    text-align: center;
    margin-bottom: 2.75rem;
}

.rs-section-heading {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
}

.rs-slider-container {
    position: relative;
}

.rs-category-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.rs-category-grid::-webkit-scrollbar {
    display: none;
}

.rs-category-card {
    flex: 0 0 calc((100% - 3 * 1.5rem) / 4);
    min-width: 260px;
    max-width: calc((100% - 3 * 1.5rem) / 4);
    box-sizing: border-box;
    background: #f4f3ee;
    border-radius: 20px;
    padding: 1.15rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rs-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.rs-cat-img-box {
    aspect-ratio: 1/1;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rs-category-card:hover .rs-cat-img-box img {
    transform: scale(1.05);
}

.rs-cat-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem;
}

.rs-cat-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}

.rs-cat-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444444;
    transition: transform 0.2s ease;
}

.rs-category-card:hover .rs-cat-arrow {
    transform: translateX(4px);
    color: #111111;
}

/* Slider Nav Buttons */
.rs-slider-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

.rs-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #dfdcd4;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333333;
}

.rs-nav-btn:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* ==========================================================================
   4. Our Best Seller Products
   ========================================================================== */
.rs-products-section {
    padding: 2.5rem 0 5.5rem;
}

.rs-products-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.rs-products-grid::-webkit-scrollbar {
    display: none;
}

.rs-product-card {
    flex: 0 0 calc((100% - 3 * 1.5rem) / 4);
    min-width: 260px;
    max-width: calc((100% - 3 * 1.5rem) / 4);
    box-sizing: border-box;
    background: #f4f3ee;
    border-radius: 20px;
    padding: 1.15rem;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

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

.rs-prod-img-box {
    aspect-ratio: 1/1;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    margin-bottom: 1.15rem;
}

.rs-prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rs-product-card:hover .rs-prod-img-box img {
    transform: scale(1.05);
}

.rs-prod-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.rs-prod-wishlist:hover {
    background: #ffffff;
    color: #e74c3c;
}

.rs-prod-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.5rem;
}

.rs-prod-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rs-prod-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rs-prod-title:hover {
    color: #666666;
}

.rs-prod-price {
    font-size: 0.9rem;
    color: #555555;
    font-weight: 500;
}

.rs-prod-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #dfdcd4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222222;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rs-prod-action-btn:hover {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* ==========================================================================
   5. Alternating Editorial Feature Banners
   ========================================================================== */
.rs-editorial-section {
    padding: 2.5rem 0 6rem;
}

.rs-editorial-row {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 5.5rem;
}

.rs-editorial-row:last-child {
    margin-bottom: 0;
}

.rs-editorial-row.rs-row-reversed {
    grid-template-columns: 1fr 1.05fr;
}

.rs-editorial-media {
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}

.rs-editorial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-editorial-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 500px;
}

.rs-editorial-title {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 1.25rem 0;
}

.rs-editorial-desc {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.65;
    margin: 0 0 2.25rem 0;
}

.rs-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 34px;
    border-radius: 999px;
    border: 1.5px solid #111111;
    background: #ffffff;
    color: #111111;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.rs-pill-btn:hover {
    background: #111111;
    color: #ffffff;
}

/* ==========================================================================
   6. Join to Our Community
   ========================================================================== */
.rs-community-section {
    padding: 3.5rem 0 5rem;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.rs-community-header {
    margin-bottom: 3rem;
}

.rs-community-subtitle {
    font-size: 1.02rem;
    color: #666666;
    margin: 0.65rem 0 0;
}

.rs-community-gallery {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.rs-community-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, opacity 0.35s ease;
    background: #f0ede8;
    position: relative;
}

.rs-community-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.rs-community-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stepped Arch / Bell Curve Heights & Proportions (Compact, Full-Width, Transparent Edges) */
.rs-community-item:nth-child(1),
.rs-community-item:nth-child(7) {
    flex: 0.9 1 0;
    height: 110px;
    border-radius: 14px;
    opacity: 0.35;
}

.rs-community-item:nth-child(1):hover,
.rs-community-item:nth-child(7):hover {
    opacity: 0.8;
}

.rs-community-item:nth-child(2),
.rs-community-item:nth-child(6) {
    flex: 1.05 1 0;
    height: 170px;
    border-radius: 18px;
    opacity: 0.95;
}

.rs-community-item:nth-child(3),
.rs-community-item:nth-child(5) {
    flex: 1.2 1 0;
    height: 235px;
    border-radius: 22px;
}

.rs-community-item:nth-child(4) {
    flex: 1.35 1 0;
    height: 295px;
    border-radius: 24px;
}



/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .rs-hero-title {
        font-size: 3.2rem;
    }
    
    .rs-philosophy-text {
        font-size: 1.75rem;
    }

    .rs-features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .rs-category-card,
    .rs-product-card {
        flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
        min-width: 220px;
        max-width: calc((100% - 2 * 1.25rem) / 3);
    }

    .rs-editorial-row {
        gap: 3rem;
    }

    .rs-editorial-title {
        font-size: 2.25rem;
    }

    .rs-community-gallery {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    .rs-community-item:nth-child(1),
    .rs-community-item:nth-child(7) {
        height: 95px;
        border-radius: 12px;
    }

    .rs-community-item:nth-child(2),
    .rs-community-item:nth-child(6) {
        height: 145px;
        border-radius: 16px;
    }

    .rs-community-item:nth-child(3),
    .rs-community-item:nth-child(5) {
        height: 195px;
        border-radius: 18px;
    }

    .rs-community-item:nth-child(4) {
        height: 245px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .rs-hero-card {
        min-height: 440px;
        border-radius: 20px;
    }

    .rs-hero-title {
        font-size: 2.4rem;
    }

    .rs-hero-subtitle {
        font-size: 0.95rem;
    }

    .rs-philosophy-section {
        padding: 4.5rem 0 3.5rem;
    }

    .rs-philosophy-text {
        font-size: 1.4rem;
    }

    .rs-section-heading {
        font-size: 2rem;
    }

    .rs-category-card,
    .rs-product-card {
        flex: 0 0 calc((100% - 1rem) / 2);
        min-width: 180px;
        max-width: calc((100% - 1rem) / 2);
    }

    .rs-editorial-row,
    .rs-editorial-row.rs-row-reversed {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .rs-editorial-row.rs-row-reversed .rs-editorial-content {
        order: 2;
    }

    .rs-editorial-row.rs-row-reversed .rs-editorial-media {
        order: 1;
    }

    .rs-editorial-title {
        font-size: 1.9rem;
    }

    .rs-community-gallery {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .rs-community-item:nth-child(1),
    .rs-community-item:nth-child(7) {
        height: 75px;
        border-radius: 10px;
    }

    .rs-community-item:nth-child(2),
    .rs-community-item:nth-child(6) {
        height: 115px;
        border-radius: 14px;
    }

    .rs-community-item:nth-child(3),
    .rs-community-item:nth-child(5) {
        height: 155px;
        border-radius: 16px;
    }

    .rs-community-item:nth-child(4) {
        height: 195px;
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .rs-hero-title {
        font-size: 2rem;
    }

    .rs-category-card,
    .rs-product-card {
        flex: 0 0 80%;
        min-width: 240px;
        max-width: 80%;
    }

    .rs-community-gallery {
        gap: 0.35rem;
        padding: 0 0.35rem;
    }

    .rs-community-item:nth-child(1),
    .rs-community-item:nth-child(7) {
        height: 55px;
        border-radius: 8px;
    }

    .rs-community-item:nth-child(2),
    .rs-community-item:nth-child(6) {
        height: 90px;
        border-radius: 10px;
    }

    .rs-community-item:nth-child(3),
    .rs-community-item:nth-child(5) {
        height: 125px;
        border-radius: 12px;
    }

    .rs-community-item:nth-child(4) {
        height: 160px;
        border-radius: 14px;
    }
}

