/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

.products-article {
    max-width: 100%;
    margin: 0 auto;
}
.product-section {
    margin-bottom: 4rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--secondary-color);
    position: relative;
}
.product-section:last-child {
    border-bottom: none;
}
.product-title {
    font-size: 32px;
    margin-bottom: 4rem;
    color: black;
    line-height: 1.2;
}
/* Media Box Styling */
.product-media {
    position: relative;
    margin-bottom: 2rem;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1),
                -5px -5px 15px rgba(255,255,255,0.8);
    padding: 3rem;
}
.product-number {
    position: absolute;
    left: -15px;
    top: -15px;
    font-size: 24px;
    color: var(--secondary-color);
    background-color: #fff;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: bold;
}
.product-media-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
}
.product-exact-name {
    grid-column: 1 / -1;
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
.product-image-container {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.product-image-container img {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: contain;
}
/* CTA Styling */
.product-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-self: center;
    width: 100%;
    max-width: 300px;
}
.product-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 6px;
    width: 100%;
}
.product-link-button:hover {
    opacity: 0.9;
    color: white;
    transform: translateY(-1px);
}
/* Font Awesome Icon Styling */
.product-link-button .button-icon {
    margin-right: 12px;
    font-size: 18px;
}
.affiliate-link-disclosure {
    color: #666;
    font-size: 12px;
    font-style: italic;
    text-align: center;
    margin-top: 8px;
}
/* Prime Badge */
.product-cta .aawp-prime-logo {
    margin-bottom: 1rem;
    text-align: center;
}
.product-description {
    margin-top: 2rem;
    line-height: 1.6;
    color: black;
}
/* Mobile Design */
@media screen and (max-width: 768px) {
    .product-media {
        padding: 2rem;
        margin-top: 2rem;
    }
    .product-media-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .product-image-container {
        width: 250px;
        margin: 0 auto;
    }
    .product-image-container img {
        height: 250px;
    }
    .product-cta {
        width: 100%;
    }
    .product-number {
        left: 50%;
        transform: translateX(-50%);
        top: -22px;
    }
    .product-title {
        font-size: 26px;
        text-align: center;
    }
    .product-exact-name {
        text-align: center;
        font-size: 18px;
    }
    .product-section {
        padding: 1rem 0;
        margin-bottom: 3rem;
    }
}
/* Tablet Design */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .product-media {
        padding: 2.5rem;
    }
    .product-media-content {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
    .product-image-container {
        width: 250px;
    }
    .product-image-container img {
        height: 250px;
    }
    .product-exact-name {
        font-size: 18px;
    }
}


/* Product List Container */
.product-list-container {
    margin: 2rem 0;
    width: 100%;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Product Item */
.product-list .product-item {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1),
                -5px -5px 15px rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Product Number */
.product-list .product-number {
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 18px;
    color: var(--secondary-color);
    background-color: #fff;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: bold;
}

/* Product Image */
.product-list .product-image-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.product-list .product-image-container img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Title */
.product-list .product-title {
    font-size: 16px;
    color: var(--primary-color);
    text-align: center;
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
    min-height: 44px;
}

/* Buttons Container */
.product-list .product-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

/* Common Button Styles */
.product-list .details-link,
.product-list .product-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 130px;
    height: 40px;
}

/* Detail Link */
.product-list .details-link {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

.product-list .details-link:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

.product-list .details-link i {
    margin-right: 6px;
}

/* Amazon Button */
.product-list .product-link-button {
    background-color: var(--secondary-color);
    color: white;
}

.product-list .product-link-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.product-list .product-link-button .button-icon {
    margin-right: 8px;
}

/* Prime Badge */
.product-list .prime-badge {
    margin-top: 0.5rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .product-list .product-item {
        padding: 1.5rem;
        margin-top: 15px; /* Extra space for the number */
    }
    
    .product-list .product-number {
        left: 50%;
        transform: translateX(-50%);
        top: -17px;
    }
    
    .product-list .product-image-container {
        height: 150px;
    }
    
    .product-list .product-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .product-list .product-buttons {
        flex-direction: column;
    }
    
    .product-list .details-link,
    .product-list .product-link-button {
        width: 100%;
        min-width: 100%;
    }
}

/* Tablet Design */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}