/* apparel-styles.css - Dedicated styles for tshirts.php */

/* === Page Specific Defaults & Resets === */
body.apparel-listing-page {
    background-color: #FCFAF5;
    color: #343a40;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

.alp-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.apparel-listing-page section {
    background: none;
    padding: 5em 1em;
    margin-bottom: 0;
    text-align: center;
}
.apparel-listing-page section:not(.alp-hero-section):not(.alp-cross-promo-section) {
    border-bottom: 1px solid #EAE6DA;
}
.apparel-listing-page section:last-of-type {
    border-bottom: none;
}

/* Headings */
.apparel-listing-page h1,
.apparel-listing-page h2,
.apparel-listing-page h3,
.apparel-listing-page h4 {
    font-family: 'Carter One', cursive;
    color: #1b3b2f;
    margin-top: 0;
    line-height: 1.3;
    margin-bottom: 0.5em;
}
.apparel-listing-page h1 { font-size: clamp(2.5em, 5vw, 3.5em); }
.apparel-listing-page h2 { font-size: clamp(2em, 4vw, 2.8em); margin-bottom: 0.75em;}
.apparel-listing-page h3 { font-size: clamp(1.5em, 3vw, 2em); }
.apparel-listing-page h4 { font-size: clamp(1.2em, 2.5vw, 1.5em); }

.apparel-listing-page p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: #343a40;
}
.apparel-listing-page .section-intro {
    max-width: 750px;
    margin: -0.25em auto 2.5em auto;
    font-size: 1.1em;
    color: #5a6a70;
}

/* Buttons */
.alp-btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1em;
    text-align: center;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s, color 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}
.alp-btn-primary {
    background-color: #ffaf87;
    color: #1b3b2f;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.alp-btn-primary:hover {
    background-color: #1b3b2f;
    color: #f5f0e1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(27, 59, 47, 0.3);
}
.alp-btn-secondary {
    background-color: transparent;
    color: #1b3b2f;
    border-color: #1b3b2f;
}
.alp-btn-secondary:hover {
    background-color: #1b3b2f;
    color: #f5f0e1;
    transform: translateY(-3px);
}
.alp-btn-large {
    font-size: 1.15em;
    padding: 15px 40px;
}

/* Hero Section */
.alp-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background-color: #1a2823;
    padding: 4em 1em;
}
.alp-hero-background-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('/images/apparel-hero-banner.webp') no-repeat center center/cover;
    filter: brightness(0.5) contrast(1.1);
    z-index: 1;
}
.alp-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 20, 15, 0.5);
    z-index: 2;
}
.alp-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}
.alp-hero-content h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.alp-hero-subtitle {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0.75em auto 2em auto;
    color: #f0f8ff;
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Promise Section */
.alp-promise-section {
    background-color: #ffffff;
}
.alp-promise-content-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 2em;
}
.alp-promise-text {
    flex: 1 1 55%;
    min-width: 300px;
    text-align: left;
}
.alp-promise-text h2 { text-align: left; }
.alp-promise-text ul { padding-left: 0; list-style: none; margin-top: 1.5em;}
.alp-promise-text ul li {
    margin-bottom: 1em;
    display: flex;
    align-items: flex-start;
}
.alp-promise-text ul li .fas {
    color: #28a745;
    margin-right: 12px;
    font-size: 1.2em;
    margin-top: 0.15em;
}
.alp-promise-image {
    flex: 1 1 35%;
    min-width: 280px;
    text-align: center;
}
.alp-promise-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Product Showcase Section */
.alp-product-showcase-section {
    background-color: #F8F9FA;
}
.alp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 2em;
}
.alp-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.alp-product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.alp-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.alp-product-image-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
}
.alp-product-image-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.alp-product-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.alp-product-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    color: #1b3b2f;
    margin-bottom: 0.5em;
    line-height: 1.4;
}
.alp-product-price {
    font-size: 1em;
    font-weight: 700;
    color: #28a745;
    margin-top: auto;
}

/* Pagination */
.alp-pagination {
    text-align: center;
    margin: 2.5em 0 1em 0;
}
.alp-pagination-btn {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #1b3b2f;
    border: 1px solid #d0d0d0;
    padding: 10px 15px;
    margin: 0 4px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-weight: 600;
}
.alp-pagination-btn:hover {
    background-color: #f0f0f0;
    border-color: #1b3b2f;
}
.alp-pagination-btn.active {
    background-color: #1b3b2f;
    color: #fff;
    border-color: #1b3b2f;
    font-weight: 700;
}

/* USP Section */
.alp-usp-section {
    background-color: #ffffff;
}
.alp-usp-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 30px !important;
    width: 100%;
}
.alp-usp-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
}
.alp-usp-icon {
    display: block;
    margin: 0 auto 1em auto;
    max-width: 55px;
    height: auto;
    position: static;
}
.alp-usp-card h3 {
    font-size: 1.3em;
    margin-bottom: 0.5em;
}
.alp-usp-card p {
    font-size: 0.95em;
    color: #5a6a70;
    line-height: 1.6;
}

/* Lookbook Teaser Section */
.alp-lookbook-section {
    background-color: #ECECEC;
}
.alp-lookbook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2em;
}
.alp-lookbook-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.alp-lookbook-item img:hover {
    transform: scale(1.03);
}

/* Cross-Promo Section */
.alp-cross-promo-section {
    background-color: #FCFAF5;
    padding: 4em 1em;
}
.alp-cross-promo-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    background: #fff;
    padding: 3em;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}
.alp-cross-promo-text {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}
.alp-cross-promo-text h3 {
    font-size: 1.8em;
    margin-bottom: 0.75em;
}
.alp-cross-promo-image {
    flex: 1 1 40%;
    min-width: 280px;
    text-align: center;
}
.alp-cross-promo-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .alp-promise-content-wrapper,
    .alp-cross-promo-content {
        flex-direction: column;
        text-align: center;
    }
    .alp-promise-text,
    .alp-cross-promo-text {
        text-align: center;
    }
    .alp-promise-text ul {
        display: inline-block;
        text-align: left;
    }
    .alp-promise-image,
    .alp-cross-promo-image {
        margin-top: 2em;
        order: -1;
    }
    .alp-cross-promo-image {
        margin-top: 0; order: 0;
    }
}

@media (max-width: 768px) {
    .apparel-listing-page section {
        padding: 3.5em 15px;
    }
    .apparel-listing-page h1 { font-size: clamp(2em, 7vw, 2.6em); }
    .apparel-listing-page h2 { font-size: clamp(1.8em, 6vw, 2.3em); }
    .alp-hero-subtitle { font-size: 1.1em; }
    .alp-btn-large { font-size: 1.05em; padding: 12px 30px; }
    .alp-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    .alp-usp-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    .alp-lookbook-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .alp-container,
    .apparel-listing-page .alp-container {
        padding-left: 3vw !important;
        padding-right: 3vw !important;
        max-width: 100vw !important;
    }
    .apparel-listing-page section {
        padding: 1.5em 0.5em !important;
        margin-bottom: 0.7em !important;
    }
    .alp-products-grid,
    #products.alp-products-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 1em !important;
    }
    .alp-usp-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .alp-usp-card {
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        align-items: center;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
    }
    .alp-usp-icon {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1em;
        margin-top: 0;
        max-width: 55px;
        height: auto;
        position: static;
    }
    .alp-product-card,
    .alp-products-grid .alp-product-card {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    .apparel-listing-page .section-intro {
        margin-bottom: 0.5em !important;
        margin-top: 0 !important;
        font-size: 1em !important;
    }
    .alp-pagination-btn {
        padding: 6px 8px !important;
        font-size: 0.95em !important;
        min-width: 32px !important;
    }
    .alp-lookbook-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .alp-product-image-wrapper img,
    .alp-lookbook-item img {
        border-radius: 6px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    body, html {
        overflow-x: hidden !important;
        width: 100vw !important;
    }
}