
/* ========================================
   FOTOICON - WOOCOMMERCE SHOP BACKGROUND
======================================== */

/* Main shop page backgrounds */
body.woocommerce,
body.post-type-archive-product,
body.woocommerce-page,
#page,
.site-content,
.content-area,
.site-main,
.woocommerce,
.woocommerce-page {
    background-color: var(--color-background) !important;
}

/* WooCommerce shop content */
.woocommerce-products-header,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce ul.products {
    background: transparent !important;
}

/* Individual product cards */
.woocommerce ul.products li.product {
    background: transparent !important;
    border: none;
    box-shadow: none;
}

/* Product titles and prices */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
    color: var(--color-text);
}

/* Remove GeneratePress white article container */
body.woocommerce-page .inside-article,
body.woocommerce .inside-article,
body.post-type-archive-product .inside-article {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Keep inner shop sections transparent */
body.woocommerce-page .site-main,
body.woocommerce-page .content-area,
body.woocommerce-page .woocommerce {
    background-color: transparent !important;
}


/* ========================================
   FOTOICON - REVISED SHOP LAYOUT
======================================== */

/* Wider GeneratePress container */
body.woocommerce-page .site.grid-container {
    max-width: 1400px;
    width: 100%;
}

/* Use the available content width */
body.woocommerce-page .site-content,
body.woocommerce-page .content-area,
body.woocommerce-page #primary {
    width: 100%;
    max-width: 100%;
    float: none;
}

/* Product grid */
body.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 44px 28px;
    margin-top: 30px;
    padding: 0;
}

/* Remove WooCommerce clearing elements from the grid */
body.woocommerce ul.products::before,
body.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

/* Individual products */
body.woocommerce ul.products li.product {
    float: none;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Product images */
body.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 0 14px;
}

/* Product titles */
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.3;
    padding: 0;
    margin-bottom: 8px;
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    body.woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body.woocommerce-page .site.grid-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 14px;
        margin-top: 22px;
    }

    body.woocommerce ul.products li.product a img {
        margin-bottom: 10px;
    }

    body.woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 15px;
        line-height: 1.3;
    }
}



/* ========================================
   FOTOICON - DESKTOP WIDTH ONLY
======================================== */

@media (min-width: 769px) {

    /* Expand the main content area */
    body.home .site-content,
    body.woocommerce-page .site-content,
    body.woocommerce .site-content {
        display: block;
        width: 100% !important;
        max-width: none !important;
    }

    body.home .content-area,
    body.home #primary,
    body.woocommerce-page .content-area,
    body.woocommerce-page #primary,
    body.woocommerce .content-area,
    body.woocommerce #primary {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }

    body.home .site-main,
    body.woocommerce-page .site-main,
    body.woocommerce .site-main {
        width: 100% !important;
        max-width: none !important;
    }

    /* Desktop content spacing */
    body.home .inside-article,
    body.woocommerce-page .inside-article,
    body.woocommerce .inside-article {
        padding-left: 40px;
        padding-right: 40px;
    }
}


/* ========================================
   FOTOICON - MOBILE SINGLE COLUMN
======================================== */

@media (max-width: 768px) {

    /* One product per row */
    body.woocommerce ul.products {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 36px 0 !important;
        width: 100%;
        margin-top: 24px;
    }

    /* Full-width product cards */
    body.woocommerce ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* Larger product photography */
    body.woocommerce ul.products li.product a img {
        width: 100% !important;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        margin-bottom: 14px;
    }

    /* More readable product titles */
    body.woocommerce ul.products li.product
    .woocommerce-loop-product__title {
        font-size: 18px;
        line-height: 1.4;
    }

    /* Comfortable button sizing */
    body.woocommerce ul.products li.product .button {
        display: inline-block;
        margin-top: 12px;
    }
}


/* ========================================
   FOTOICON - PRODUCT CARD STYLING
======================================== */

/* Product images */
.woocommerce ul.products li.product a img {
    border-radius: 6px;
    margin-bottom: 16px;
}

/* Product titles */
.woocommerce ul.products li.product
.woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-text);
    margin-bottom: 10px;
}

/* Product prices */
.woocommerce ul.products li.product .price {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 12px;
}

.woocommerce ul.products li.product .price ins {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.woocommerce ul.products li.product .price del {
    opacity: 0.65;
}

/* Sale badge */
.woocommerce span.onsale {
    background: var(--color-green);
    color: var(--color-text);
    border-radius: 50px;
    min-height: auto;
    min-width: auto;
    line-height: 1;
    padding: 9px 13px;
    font-size: 11px;
    font-weight: 500;
    top: 12px;
    right: 12px;
    left: auto;
}

/* Add to Cart button */
.woocommerce ul.products li.product .button {
    background: var(--color-text);
    color: var(--color-background);
    border: 1px solid var(--color-text);
    border-radius: 50px;
    padding: 11px 21px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    transition: all 0.25s ease;
}

/* Button hover */
.woocommerce ul.products li.product .button:hover {
    background: var(--color-green);
    color: var(--color-text);
    border-color: var(--color-green);
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .woocommerce ul.products li.product
    .woocommerce-loop-product__title {
        font-size: 18px;
    }

    .woocommerce ul.products li.product .button {
        padding: 12px 22px;
    }
}


/* ========================================
   FOTOICON - IMAGE OVERLAY PRODUCT CARDS
======================================== */

/* Product card */
.woocommerce ul.products li.product {
    position: relative;
    overflow: hidden;
    border-radius: 24px !important;
    aspect-ratio: 4 / 5;
}

/* Image link */
.woocommerce ul.products li.product
a.woocommerce-LoopProduct-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Product photograph */
.woocommerce ul.products li.product
a.woocommerce-LoopProduct-link img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: unset !important;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: transform 0.5s ease;
}

/* Subtle image zoom */
.woocommerce ul.products li.product:hover
a.woocommerce-LoopProduct-link img {
    transform: scale(1.04);
}

/* Gradient overlay */
.fotoicon-product-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    padding: 65px 18px 18px;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(12, 25, 20, 0.55) 35%,
        rgba(12, 25, 20, 0.88) 100%
    );
}

/* Product title */
.fotoicon-product-overlay
.woocommerce-loop-product__title {
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-size: 19px !important;
    font-weight: 400;
    line-height: 1.3 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Product price */
.fotoicon-product-overlay .price {
    color: #FFFFFF !important;
    font-size: 13px !important;
    margin: 0 !important;
}

.fotoicon-product-overlay .price del {
    color: rgba(255,255,255,0.65) !important;
}

.fotoicon-product-overlay .price ins {
    color: #FFFFFF !important;
    text-decoration: none;
}

/* Add to cart button */
.fotoicon-product-overlay .button {
    background: var(--color-background) !important;
    color: var(--color-text) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 18px !important;
    font-size: 12px !important;
    margin: 4px 0 0 !important;
}

.fotoicon-product-overlay .button:hover {
    background: var(--color-green) !important;
}

/* Sale badge stays at top right */
.woocommerce ul.products li.product .onsale {
    z-index: 3;
    top: 14px;
    right: 14px;
    left: auto;
}

/* Mobile cards */
@media (max-width: 768px) {

    .woocommerce ul.products li.product {
        aspect-ratio: 4 / 3;
    }

    .fotoicon-product-overlay {
        padding: 55px 16px 16px;
        gap: 6px;
    }

    .fotoicon-product-overlay
    .woocommerce-loop-product__title {
        font-size: 18px !important;
    }
}


/* ========================================
   FOTOICON - MOBILE OVERLAY REFINEMENT
======================================== */

@media (max-width: 768px) {

    /* Make mobile product images taller */
    .woocommerce ul.products li.product {
        aspect-ratio: 4 / 5 !important;
        border-radius: 24px !important;
    }

    /* Reduce overlay height and spacing */
    .fotoicon-product-overlay {
        padding: 38px 14px 14px !important;
        gap: 4px !important;

        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(12, 25, 20, 0.35) 35%,
            rgba(12, 25, 20, 0.88) 100%
        );
    }

    /* Smaller product titles */
    .fotoicon-product-overlay
    .woocommerce-loop-product__title {
        font-size: 15px !important;
        line-height: 1.25 !important;
    }

    /* Smaller prices */
    .fotoicon-product-overlay .price {
        font-size: 11px !important;
    }

    /* Smaller Add to Cart button */
    .fotoicon-product-overlay .button {
        font-size: 10px !important;
        padding: 8px 14px !important;
        margin-top: 3px !important;
    }

    /* Smaller sale badge */
    .woocommerce ul.products li.product .onsale {
        font-size: 10px !important;
        padding: 7px 10px !important;
        top: 10px;
        right: 10px;
    }
}


/* ========================================
   FOTOICON HOMEPAGE HERO
======================================== */

.fotoicon-hero {
    position: relative;
    width: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 28px;
    margin: 10px 0 45px;

    background-color: #34483c;
    background-image:
        linear-gradient(
            90deg,
            rgba(12, 25, 20, 0.82) 0%,
            rgba(12, 25, 20, 0.60) 38%,
            rgba(12, 25, 20, 0.12) 100%
        ),
        url('https://fotoicon.com/wp-content/uploads/2026/11/home-hero-banner-001.webp');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fotoicon-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    padding: 65px 60px;
    color: #ffffff;
}

.fotoicon-hero-eyebrow {
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0 0 20px;
}

.fotoicon-hero-content h1 {
    color: #ffffff !important;
    font-family: Georgia, serif;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 20px;
}

.fotoicon-hero-description {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    line-height: 1.7;
    max-width: 420px;
    margin: 0 0 28px;
}

.fotoicon-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 22px;
    border-radius: 50px;
    background: #F6F4E9;
    color: #182B25 !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.fotoicon-hero-button:hover {
    background: #D5E7D2;
    color: #182B25 !important;
    transform: translateY(-2px);
}

.fotoicon-hero-button span {
    font-size: 17px;
}

/* Tablet */
@media (max-width: 1024px) {
    .fotoicon-hero {
        min-height: 390px;
    }

    .fotoicon-hero-content {
        padding: 50px 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .fotoicon-hero {
        min-height: 420px;
        border-radius: 24px;
        margin: 5px 0 32px;
        background-position: center;
        background-image:
            linear-gradient(
                90deg,
                rgba(12, 25, 20, 0.72) 0%,
                rgba(12, 25, 20, 0.35) 100%
            ),
            url('https://fotoicon.com/wp-content/uploads/2026/11/home-hero-banner-001.webp');
    }

    .fotoicon-hero-content {
        padding: 35px 24px;
    }

    .fotoicon-hero-eyebrow {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .fotoicon-hero-content h1 {
        font-size: 43px;
    }

    .fotoicon-hero-description {
        font-size: 13px;
        max-width: 300px;
    }

    .fotoicon-hero-button {
        padding: 12px 18px;
        font-size: 10px;
    }
}

/* Hide prices, sale badges and ratings on free photo cards. */
.woocommerce ul.products li.product:has(.fotoicon-gallery-download)
:is(.price, .onsale, .star-rating) {
    display: none !important;
}

/* Reveal the title and Download button on desktop. */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    .woocommerce ul.products li.product:has(.fotoicon-gallery-download)
    .fotoicon-product-overlay {
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .woocommerce ul.products li.product:has(.fotoicon-gallery-download)
    :is(.fotoicon-gallery-download, .woocommerce-LoopProduct-link):focus-visible {
        outline: 2px solid currentColor;
        outline-offset: -3px;
    }

    .woocommerce ul.products li.product:has(.fotoicon-gallery-download):is(:hover, :focus-within)
    .fotoicon-product-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Show a download icon in the bottom-right corner on mobile and touch. */
@media (max-width: 768px), (hover: none), (pointer: coarse) {
    .woocommerce ul.products li.product:has(.fotoicon-gallery-download)
    .fotoicon-product-overlay {
        inset: auto 12px 12px auto;
        width: auto;
        padding: 0 !important;
        background: none;
    }

    .woocommerce ul.products li.product:has(.fotoicon-gallery-download)
    .woocommerce-loop-product__title {
        display: none;
    }

    .woocommerce ul.products li.product .fotoicon-product-overlay
    a.fotoicon-gallery-download {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 0 !important;
    }

    .woocommerce ul.products li.product a.fotoicon-gallery-download::before {
        content: "↓";
        font-size: 24px;
        line-height: 1;
    }
}

/*mobile view product card*/
@media (max-width: 768px) {
    .woocommerce ul.products li.product:has(.fotoicon-gallery-download)
    .fotoicon-product-overlay {
        inset: auto 0 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px !important;
        padding: 42px 20px 20px !important;
        background: linear-gradient(
            to top,
            rgba(12, 25, 20, 0.82),
            rgba(12, 25, 20, 0.35) 58%,
            transparent
        );
        pointer-events: none;
    }

    .woocommerce ul.products li.product:has(.fotoicon-gallery-download)
    .fotoicon-product-overlay .woocommerce-loop-product__title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        min-width: 0;
        margin: 0 !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    .woocommerce ul.products li.product
    .fotoicon-product-overlay a.fotoicon-gallery-download {
        flex: 0 0 44px;
        pointer-events: auto;
    }
}