/**
 * Homepage Styles - High Mimic Toys"R"Us Singapore
 *
 * @package ToyParadis
 * @since 1.0.2
 */

/* Global Section Spacing */
section {
    padding: 50px 0;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Section Titles */
.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin-bottom: 30px;
    text-transform: lowercase;
    font-family: Arial, sans-serif;
}

/* Trending Keywords Section */
.trending-keywords-section {
    padding: 30px 0;
    background: #fff;
}

.trending-keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.trending-keyword-card {
    display: block;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
}

.trending-keyword-card:hover {
    background: #0057A0;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,87,160,0.3);
}

.trending-keyword-card .placeholder-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #e5e5e5 0%, #f5f5f5 100%);
    border-radius: 8px;
    margin-bottom: 15px;
}

.trending-keyword-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.products-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f9f9f9;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e5e5 25%, #f5f5f5 50%, #e5e5e5 75%);
    background-size: 200% 200%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #FFD700;
    color: #333;
    z-index: 10;
}

.product-badge.new {
    background: #00A651;
    color: #fff;
}

.product-badge.sale {
    background: #E31E24;
    color: #fff;
}

.product-badge.unavailable {
    background: #999;
    color: #fff;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: #0057A0;
}

.product-promo {
    font-size: 12px;
    color: #E31E24;
    font-weight: 700;
    margin-top: 5px;
}

.product-card.unavailable {
    opacity: 0.6;
}

/* Two Column Block Section (PlayPop + LEGO) */
.two-column-block-section {
    padding: 20px 0;
    background: #fff;
}

.two-column-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Left Column - Full Height Banner */
.left-column {
    display: flex;
}

.full-height-banner {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
}

.placeholder-banner-tall {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e5e5 0%, #f5f5f5 100%);
    position: absolute;
    top: 0;
    left: 0;
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.simple-banner {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

.placeholder-banner-wide {
    width: 100%;
    height: 190px;
    background: linear-gradient(90deg, #e5e5e5 25%, #f5f5f5 50%, #e5e5e5 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* LEGO Products Block with Yellow Gradient */
.hottest-items.four-tile-banner {
    position: relative;
    padding: 40px 30px;
    border-radius: 8px;
    overflow: hidden;
}

.hottest-items .background-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at center, #FFD700 0%, #FFC700 100%);
}

.hottest-items .block-title {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 0 30px 0;
    color: #333;
}

.hottest-items .block-title .sub-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    text-transform: lowercase;
    margin-bottom: 5px;
    color: #666;
}

.hottest-items .block-title {
    font-size: 32px;
    font-weight: 800;
    text-transform: lowercase;
    line-height: 1.2;
}

/* 2x2 Product Grid inside Yellow Block */
.products-grid-2x2 {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.hottest-items .product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
}

.hottest-items .product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.hottest-items .product-promo-badge {
    display: inline-block;
    background: #E31E24;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Browse CTA Button */
.browse-cta {
    position: relative;
    z-index: 1;
    text-align: center;
}

.btn-outline-light {
    display: inline-block;
    padding: 12px 40px;
    background: transparent;
    color: #333;
    border: 2px solid #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 50px;
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: #333;
    color: #fff;
}

.btn-shop-now {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.btn-shop-now:hover {
    background: #FFC700;
    transform: scale(1.05);
}

/* Featured Brand Section with Image Cover */
.brand-banner-section,
.featured-brand-section {
    padding: 20px 0;
    background: #fff;
}

.four-tile-banner.image-cover.featured-brand {
    position: relative;
    min-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Cover Image */
.picture-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.picture-cover img,
.placeholder-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-cover-image {
    background: linear-gradient(135deg, #e5e5e5 0%, #d5d5d5 50%, #e5e5e5 100%);
}

/* Banner Header (Logo + Title + Button) */
.four-tile-banner .banner-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    /* background: rgba(255, 255, 255, 0.95); */
    /* backdrop-filter: blur(10px); */
    border-radius: 0 0 12px 0;
    max-width: 50%;
    /* margin-bottom: auto; */
}

.featured-brand.-right .banner-header {
    margin-left: auto;
    margin-right: 0;
    border-radius: 0 0 0 12px;
}

.banner-header .placeholder-brand-logo {
    width: 150px;
    height: 80px;
    background: linear-gradient(90deg, #e5e5e5 25%, #f5f5f5 50%, #e5e5e5 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
    flex-shrink: 0;
}

.banner-header .block-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin: 0;
    flex-shrink: 0;
}


/* Products Overlay Grid (2x2 over background) */
.products-overlay-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 30px 30px 30px;
    margin-top: auto;
}

.products-overlay-grid .product-card {
    /* background: rgba(255, 255, 255, 0.98); */
    /* backdrop-filter: blur(10px); */
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.products-overlay-grid .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.products-overlay-grid .product-info .status {
    display: inline-block;
    padding: 4px 10px;
    background: #999;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-top: 5px;
    text-transform: lowercase;
}

/* Mobile Action Button */
.mobile-action {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin: 20px auto;
    padding: 12px 40px;
    background: #0057A0;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    text-align: center;
}

/* Character Series Section */
.character-series-section {
    padding: 50px 0;
}

.section-cta {
    text-align: center;
    margin-top: 30px;
}

/* What's On Section */
.whats-on-section {
    padding: 50px 0;
    background: #f9f9f9;
}

.whats-on-banner h2 {
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.placeholder-whats-on {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e5e5e5 0%, #f5f5f5 100%);
    border-radius: 15px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #E31E24 0%, #b01319 100%);
}

.newsletter-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px 0;
    text-transform: lowercase;
}

.newsletter-description {
    font-size: 16px;
    color: #fff;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.newsletter-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 15px;
    outline: none;
}

.newsletter-submit {
    padding: 15px 35px;
    background: #0057A0;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-transform: lowercase;
    transition: background 0.3s ease;
}

.newsletter-submit:hover {
    background: #003d7a;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .two-column-wrapper {
        grid-template-columns: 1fr;
    }
    
    .full-height-banner {
        min-height: 400px;
    }
    
    .hottest-items .block-title {
        font-size: 28px;
    }
    
    .four-tile-banner.image-cover.featured-brand {
        min-height: 500px;
    }
    
    .four-tile-banner .banner-header {
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    .products-overlay-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 0 15px;
    }
    
    section {
        padding: 30px 0;
    }
    
    .products-grid,
    .products-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .products-grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .hottest-items.four-tile-banner {
        padding: 25px 15px;
    }
    
    .hottest-items .block-title {
        font-size: 24px;
    }
    
    .hottest-items .block-title .sub-title {
        font-size: 14px;
    }
    
    .full-height-banner {
        min-height: 300px;
    }
    
    .placeholder-banner-wide {
        height: 150px;
    }
    
    .four-tile-banner.image-cover.featured-brand {
        min-height: 400px;
    }
    
    .four-tile-banner .banner-header {
        padding: 20px;
        gap: 15px;
    }
    
    .banner-header .placeholder-brand-logo {
        width: 100px;
        height: 60px;
    }
    
    .banner-header .block-title {
        font-size: 22px;
    }
    
    .products-overlay-grid {
        padding: 0 15px 20px 15px;
        gap: 10px;
    }
    
    /* Show/hide responsive elements */
    .d-none.d-md-block {
        display: none !important;
    }
    
    .d-md-none {
        display: block !important;
        text-align: center;
    }
    
    .newsletter-title {
        font-size: 28px;
    }
    
    .newsletter-form {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .newsletter-submit {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .products-grid,
    .products-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .products-grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .products-overlay-grid {
        grid-template-columns: 1fr;
    }
    
    .trending-keywords-grid {
        grid-template-columns: 1fr;
    }
    
    .two-column-wrapper {
        gap: 15px;
    }
    
    .four-tile-banner.image-cover.featured-brand {
        min-height: 350px;
    }
}

/* Desktop/Tablet - Show header elements */
@media (min-width: 769px) {
    .d-none.d-md-block {
        display: block !important;
    }
    
    .d-md-none {
        display: none !important;
    }
}

/* 确保页面全宽显示 */
.site-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.page-wrapper {
    width: 100%;
    background-color: #fff;
}

.page {
    width: 100%;
    max-width: 100%;
}

.container-fluid {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
}

.page-inner {
    width: 100%;
    padding: 0;
}

/* 区块容器样式 */
.section-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .section-wrapper {
        padding: 0 40px;
    }
}

@media (min-width: 1025px) {
    .section-wrapper {
        padding: 0 60px;
    }
}

/* Top Searched 区块全宽 */
.top-searched {
    width: 100%;
    max-width: 1440px;
    margin: 2rem auto;
    padding: 0 20px;
}

@media (min-width: 1025px) {
    .top-searched {
        padding: 0 60px;
    }
}

/* Featured Categories 全宽 */
.featured-categories {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* 确保产品网格正确显示 */
.row {
    margin-left: -10px;
    margin-right: -10px;
}

.product-tile-wrapper {
    padding-left: 10px;
    padding-right: 10px;
}

/* ===== 补充关键样式 ===== */

/* 产品卡片基础样式 */
.product-tile {
    position: relative;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-tile:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 图片容器 */
.card-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.card-image-container {
    display: block;
    width: 100%;
    position: relative;
    padding-top: 100%; /* 1:1 aspect ratio */
}

.tile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 产品信息 */
.card-body {
    padding: 12px;
    min-height: 60px;
}

.card-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.card-link:hover {
    color: #009ddb;
}

/* 价格显示 */
.card-footer {
    padding: 0 12px 12px;
}

.price {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.price .value {
    color: #e31837;
}

/* 促销标签 */
.promotion-item {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    margin-top: 8px;
    border-radius: 3px;
    color: #fff;
}

/* 产品角标 */
.product-overlay-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.product-overlay .inner {
    position: relative;
    padding: 6px 12px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}

.product-overlay .shev-right,
.product-overlay .shev-bottom {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.product-overlay .shev-right {
    right: -8px;
    top: 0;
    border-width: 12px 0 12px 8px;
    border-color: transparent;
}

.product-overlay .shev-bottom {
    bottom: -8px;
    right: 0;
    border-width: 8px 12px 0 0;
    border-color: transparent;
}

/* 横幅样式 */
.simple-banner img,
.full-height-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Two Column Block 特殊样式 */
.two-column-block {
    display: block;
}

@media (min-width: 1025px) {
    .two-column-block {
        display: flex;
        gap: 20px;
    }
    
    .two-column-block .left-column {
        flex: 0 0 41.5%;
    }
    
    .two-column-block .right-column {
        flex: 0 0 calc(58.5% - 20px);
    }
}

/* 热门商品背景 */
.hottest-items {
    position: relative;
    padding: 30px 20px;
}

.background-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.block-title {
    margin-bottom: 30px;
    text-align: center;
    color: #fff;
}

.sub-title {
    display: block;
    font-size: 0.6em;
    font-weight: 400;
}

/* Browse按钮 */
.browse {
    text-align: center;
    margin-top: 20px;
}

.btn-outline-light {
    display: inline-block;
    padding: 12px 40px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    text-transform: lowercase;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: #fff;
    color: #333;
}

/* Featured Brand 样式 */
.featured-brand {
    position: relative;
    padding: 40px 20px;
}

.banner-header {
    text-align: center;
    margin-bottom: 30px;
}

.banner-header .logo {
    max-width: none;
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
}

.banner-header .btn {
    display: inline-block;
    padding: 12px 30px;
    background: #009ddb;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
}

/* 响应式网格 */
@media (max-width: 767px) {
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* 行和列 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.column, [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;

/* Featured Brand Logo - 左侧垂直居中 */
.featured-brand .banner-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.featured-brand .banner-header .logo {
    max-width: none;
    width: auto;
    height: auto;
}

@media (min-width: 768px) {
    .featured-brand {
        min-height: 600px;
    }
    
    .featured-brand .html-slot-wrapper {
        display: flex;
        min-height: 600px;
    }
    
    .featured-brand .banner-header {
        flex: 0 0 41.5%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    .featured-brand .banner-header .logo {
        max-width: 80%;
        width: auto;
        height: auto;
    }
}

/* Featured Brand 背景图 */
.featured-brand {
    position: relative;
    overflow: hidden;
}

.featured-brand .picture-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.featured-brand .picture-cover .image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-brand .html-slot-wrapper {
    position: relative;
    z-index: 1;
}

/* Featured Brand 按钮响应式 */
@media (min-width: 768px) {

/* Featured Brand 按钮 - 目标站点精确样式 */
.featured-brand .btn.btn-info.action {
    background-color: #ff7000;
    border: 0.3rem solid #ff7000;
    border-radius: 1rem;
    color: #fff;
    display: inline-block;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    user-select: none;
    vertical-align: middle;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 1.5rem 0;
    width: 14.7rem;
    margin: 2.3rem 0 2.9rem;
}

.featured-brand .btn.btn-info.action:hover {
    background-color: #e66300;
    border-color: #e66300;
}

@media (min-width: 768px) {
    .featured-brand .btn.btn-info.action {
        font-size: 1.7rem;
        padding: 1.8rem 0;
        width: 15.7rem;
        margin: 0.5rem 0 0;
    }
}

@media (min-width: 1025px) {
    .featured-brand .btn.btn-info.action {
        margin: 1.2rem 0 0;
    }
}
