/**
 * Homepage Categories Section Styles
 *
 * Mobile-first styles for the "Three Great Series" category cards.
 * Each card has a content side and a products side with thumbnails.
 */

/* ==========================================================================
   SECTION WRAPPER
   ========================================================================== */

.categories-showcase {
    background: linear-gradient(180deg, var(--sky-pale) 0%, var(--white) 30%, var(--white) 70%, var(--sky-pale) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle water texture */
.categories-showcase::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 40% at 0% 20%, rgba(88, 185, 224, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 60% 30% at 100% 80%, rgba(46, 151, 203, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .categories-showcase {
        padding: 90px 0;
    }
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.categories-showcase__header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .categories-showcase__header {
        margin-bottom: 70px;
    }
}

.categories-showcase__title {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .categories-showcase__title {
        font-size: 38px;
        margin-bottom: 16px;
    }
}

@media (min-width: 1024px) {
    .categories-showcase__title {
        font-size: 44px;
    }
}

.categories-showcase__subtitle {
    font-family: var(--font-accent);
    font-size: 17px;
    font-style: italic;
    color: var(--text-medium);
}

@media (min-width: 768px) {
    .categories-showcase__subtitle {
        font-size: 20px;
    }
}

/* ==========================================================================
   CATEGORY CARD
   ========================================================================== */

.category-card {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(27, 107, 147, 0.08);
    border: 1px solid var(--sky-light);
    margin-bottom: 40px;
}

.category-card:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .category-card {
        margin-bottom: 50px;
    }
}

/* Color stripe at top of card */
.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    z-index: 2;
}

.category-card--dryrun::before {
    background: linear-gradient(90deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
}

.category-card--sunbrella::before {
    background: linear-gradient(90deg, #1E3A5F 0%, #3A5A7A 100%);
}

.category-card--sunwashed::before {
    background: linear-gradient(90deg, #6A8AAA 0%, #8AAACA 100%);
}

/* ==========================================================================
   CARD INNER — 2-column grid on desktop
   ========================================================================== */

.category-card__inner {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .category-card__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-height: 480px;
    }
}

/* Reversed card: swap column order */
@media (min-width: 768px) {
    .category-card--reverse .category-card__inner {
        direction: rtl;
    }

    .category-card--reverse .category-card__inner > * {
        direction: ltr;
    }
}

/* ==========================================================================
   CONTENT SIDE
   ========================================================================== */

.category-card__content {
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .category-card__content {
        padding: 40px;
    }
}

@media (min-width: 1024px) {
    .category-card__content {
        padding: 50px;
    }
}

.category-card__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
}

.category-card__name {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .category-card__name {
        font-size: 30px;
        margin-bottom: 24px;
    }
}

@media (min-width: 1024px) {
    .category-card__name {
        font-size: 32px;
    }
}

.category-card__features-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ocean-pale);
    display: inline-block;
}

.category-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.category-card__features li {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.7;
    padding: 5px 0;
    padding-left: 22px;
    position: relative;
}

@media (min-width: 768px) {
    .category-card__features li {
        font-size: 14px;
        padding: 6px 0 6px 22px;
    }
}

.category-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 7px;
    height: 7px;
    background: linear-gradient(135deg, var(--ocean-light) 0%, var(--ocean-mid) 100%);
    border-radius: 50%;
}

@media (min-width: 768px) {
    .category-card__features li::before {
        top: 13px;
    }
}

.category-card__cta {
    margin-top: auto;
}

/* ==========================================================================
   PRODUCTS SIDE
   ========================================================================== */

.category-card__products {
    background: linear-gradient(180deg, var(--sky-pale) 0%, var(--sky-light) 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .category-card__products {
        padding: 40px;
    }
}

/* 2-product grid (DryRun) */
.product-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .product-grid-2 {
        gap: 20px;
    }
}

/* 4-product grid (Sunbrella, Sunwashed) */
.product-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .product-grid-4 {
        gap: 20px;
    }
}

/* ==========================================================================
   PRODUCT THUMBNAIL CARD
   ========================================================================== */

.product-thumb {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(27, 107, 147, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.product-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(27, 107, 147, 0.14);
}

.product-thumb__image {
    width: 100%;
    background: linear-gradient(180deg, var(--sky-pale) 0%, #EEF5F8 100%);
    position: relative;
}

.product-thumb__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-thumb__placeholder {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-medium);
    text-align: center;
    padding: 0 8px;
}

/* DryRun 2-grid: no special sizing needed, natural aspect ratio */

.product-thumb__info {
    padding: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .product-thumb__info {
        padding: 14px;
    }
}

/* DryRun 2-grid: larger text */
.product-grid-2 .product-thumb__info {
    padding: 14px;
}

.product-thumb__style {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.product-grid-2 .product-thumb__style {
    font-size: 14px;
}

.product-thumb__gender {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-medium);
}

.product-grid-2 .product-thumb__gender {
    font-size: 12px;
}
