/**
 * Fullwidth Layout Styles
 *
 * @package Hello_Healthy_Product_Customizer
 */

.hhpc-fullwidth-layout {
    font-family: 'Zen Old Mincho', serif;
}

/* =====================================================
   PHOTOSWIPE LIGHTBOX
   ===================================================== */
/* Ensure proper z-index for lightbox */
.pswp {
    z-index: 999999 !important;
}

.pswp__bg {
    background: rgba(0, 0, 0, 0.9) !important;
}

.hhpc-fullwidth-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hhpc-fullwidth-product {
    background: #fff;
}

/* Header */
.hhpc-fullwidth-header {
    padding: 15px 0;
    margin-bottom: 30px;
}

.hhpc-fullwidth-header .woocommerce-breadcrumb {
    color: #666;
    font-size: 0.9em;
}

.hhpc-fullwidth-header .woocommerce-breadcrumb a {
    color: #1b461f;
    text-decoration: none;
}

.hhpc-fullwidth-header .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* =====================================================
   MAIN LAYOUT - Side by Side on Desktop
   ===================================================== */
.hhpc-fullwidth-layout .hhpc-fullwidth-columns {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 50px !important;
    margin-bottom: 60px;
    align-items: flex-start;
}

.hhpc-fullwidth-layout .hhpc-fullwidth-images {
    flex: 1 1 60% !important;
    max-width: 60% !important;
    min-width: 0;
}

.hhpc-fullwidth-layout .hhpc-fullwidth-info {
    flex: 1 1 40% !important;
    max-width: 40% !important;
    min-width: 0;
    padding: 0 !important;
}

/* Override WooCommerce default image container styles */
.hhpc-fullwidth-layout .woocommerce #content div.product div.images,
.hhpc-fullwidth-layout .woocommerce div.product div.images,
.hhpc-fullwidth-layout .woocommerce-page #content div.product div.images,
.hhpc-fullwidth-layout .woocommerce-page div.product div.images,
.hhpc-fullwidth-layout div.product div.images {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* =====================================================
   PRODUCT GALLERY
   ===================================================== */
.hhpc-fullwidth-images .woocommerce-product-gallery {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    background: #fdfbef !important;
    opacity: 1 !important;
    width: 100%;
    position: relative;
}

/* Lightbox trigger icon */
.hhpc-fullwidth-images .woocommerce-product-gallery--with-images .woocommerce-product-gallery__trigger {
    display: block;
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    background: rgba(27, 70, 31, 0.9);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.hhpc-fullwidth-images .woocommerce-product-gallery--with-images .woocommerce-product-gallery__trigger:hover {
    background: #1b461f;
    transform: scale(1.1);
}

.hhpc-fullwidth-images .woocommerce-product-gallery__image .zoomImg {
    display: none !important;
}

/* Gallery Main Image */
.hhpc-fullwidth-images .woocommerce-product-gallery__wrapper {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
    min-height: 300px;
    background: #fdfbef;
    border-radius: 8px;
}

.hhpc-fullwidth-images .woocommerce-product-gallery__image {
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    width: 100%;
    background: #fdfbef;
}

.hhpc-fullwidth-images .woocommerce-product-gallery__image:hover {
    transform: none !important;
}

.hhpc-fullwidth-images .woocommerce-product-gallery__image a {
    pointer-events: auto;
    cursor: zoom-in;
    display: block;
    width: 100%;
}

.hhpc-fullwidth-images .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto !important;
    max-width: 100%;
    display: block;
    pointer-events: auto;
    transform: none !important;
    transition: none !important;
}

.hhpc-fullwidth-images .woocommerce-product-gallery__image img:hover {
    transform: none !important;
}

/* Gallery Thumbnails */
.hhpc-fullwidth-images .flex-control-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    padding: 0;
    list-style: none;
    justify-content: flex-start;
}

.hhpc-fullwidth-images .flex-control-thumbs li {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.hhpc-fullwidth-images .flex-control-thumbs li:hover {
    border-color: #1b461f;
}

.hhpc-fullwidth-images .flex-control-thumbs li.flex-active {
    border-color: #1b461f;
    box-shadow: 0 2px 8px rgba(27, 70, 31, 0.2);
}

.hhpc-fullwidth-images .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hhpc-fullwidth-images .flex-control-thumbs li:hover img,
.hhpc-fullwidth-images .flex-control-thumbs li.flex-active img {
    opacity: 1;
}

/* Navigation Arrows */
.hhpc-fullwidth-images .flex-direction-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hhpc-fullwidth-images .flex-direction-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(27, 70, 31, 0.85);
    color: #fff;
    text-decoration: none;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 50%;
    font-size: 18px;
}

.hhpc-fullwidth-images .flex-direction-nav a:hover {
    background: #1b461f;
    transform: translateY(-50%) scale(1.05);
}

.hhpc-fullwidth-images .flex-direction-nav .flex-prev {
    left: 15px;
}

.hhpc-fullwidth-images .flex-direction-nav .flex-next {
    right: 15px;
}

/* =====================================================
   PRODUCT INFO / SUMMARY
   ===================================================== */
.hhpc-fullwidth-layout .hhpc-fullwidth-info .summary,
.hhpc-fullwidth-layout .hhpc-fullwidth-summary {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.hhpc-fullwidth-summary .product_title {
    color: #1b461f;
    font-size: 1.6em;
    margin: 0 0 20px 0;
    font-family: 'Zen Old Mincho', serif;
    line-height: 1.3;
    font-weight: 600;
}

.hhpc-fullwidth-summary .price {
    color: #95372f;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
    padding: 0;
    border: none;
}

.hhpc-fullwidth-summary .price del {
    opacity: 0.5;
    font-size: 0.8em;
}

.hhpc-fullwidth-summary .price ins {
    text-decoration: none;
}

.hhpc-fullwidth-summary .woocommerce-product-details__short-description {
    color: #555;
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.hhpc-fullwidth-summary .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

/* Cart Form */
.hhpc-fullwidth-summary .cart {
    border: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    margin-top: 20px;
}

.hhpc-fullwidth-summary .quantity {
    margin-right: 15px;
}

.hhpc-fullwidth-summary .quantity .qty {
    width: 70px;
    height: 50px;
    text-align: center;
    font-size: 1.1em;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-family: 'Zen Old Mincho', serif;
}

.hhpc-fullwidth-summary .quantity .qty:focus {
    border-color: #1b461f;
    outline: none;
}

.hhpc-fullwidth-summary .single_add_to_cart_button {
    background-color: #1b461f;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Zen Old Mincho', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.hhpc-fullwidth-summary .single_add_to_cart_button:hover {
    background-color: #0f2610;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 70, 31, 0.3);
}

/* Product Meta */
.hhpc-fullwidth-summary .product_meta {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #666;
}

.hhpc-fullwidth-summary .product_meta > span {
    display: block;
    margin-bottom: 8px;
}

.hhpc-fullwidth-summary .product_meta a {
    color: #1b461f;
    text-decoration: none;
}

.hhpc-fullwidth-summary .product_meta a:hover {
    text-decoration: underline;
}

/* =====================================================
   PRODUCT DETAILS / TABS
   ===================================================== */
.hhpc-fullwidth-details {
    border-top: 1px solid #e5e5e5;
    padding-top: 50px;
    margin-top: 20px;
}

.hhpc-fullwidth-details .woocommerce-tabs {
    background: #fdfbef;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.hhpc-fullwidth-details .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 25px 0;
    list-style: none;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 15px;
}

.hhpc-fullwidth-details .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.hhpc-fullwidth-details .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hhpc-fullwidth-details .woocommerce-tabs ul.tabs li a:hover {
    background: rgba(27, 70, 31, 0.1);
    color: #1b461f;
}

.hhpc-fullwidth-details .woocommerce-tabs ul.tabs li.active a {
    background: #1b461f;
    color: #fff;
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */
@media screen and (max-width: 1200px) {
    .hhpc-fullwidth-layout .hhpc-fullwidth-columns {
        gap: 35px !important;
    }
}

@media screen and (max-width: 992px) {
    .hhpc-fullwidth-layout .hhpc-fullwidth-columns {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .hhpc-fullwidth-layout .hhpc-fullwidth-images,
    .hhpc-fullwidth-layout .hhpc-fullwidth-info {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Move images above product info on mobile */
    .hhpc-fullwidth-layout .hhpc-fullwidth-images {
        order: -1 !important;
    }

    .hhpc-fullwidth-layout .hhpc-fullwidth-info {
        order: 0 !important;
    }

    /* Reduced padding for mobile */
    .hhpc-fullwidth-layout .hhpc-fullwidth-info .summary,
    .hhpc-fullwidth-layout .hhpc-fullwidth-summary {
        padding: 20px;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .hhpc-fullwidth-summary .product_title {
        font-size: 1.4em;
        margin-bottom: 10px;
    }

    .hhpc-fullwidth-summary .price {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 768px) {
    .hhpc-fullwidth-container {
        padding: 15px 12px;
    }

    .hhpc-fullwidth-images .woocommerce-product-gallery {
        padding: 12px;
        border-radius: 10px;
    }

    .hhpc-fullwidth-layout .hhpc-fullwidth-info .summary,
    .hhpc-fullwidth-layout .hhpc-fullwidth-summary {
        padding: 15px 5px;
    }

    .hhpc-fullwidth-summary .product_title {
        font-size: 1.2em;
        margin-bottom: 8px;
    }

    .hhpc-fullwidth-summary .price {
        font-size: 1.1em;
        margin-bottom: 0;
    }

    /* Hide description and meta on mobile - show only title, price */
    .hhpc-fullwidth-summary .woocommerce-product-details__short-description {
        display: none;
    }

    .hhpc-fullwidth-summary .product_meta {
        display: none;
    }

    /* Cart styling for mobile */
    .hhpc-fullwidth-summary .cart {
        margin-top: 0;
        padding: 15px;
        background: #f9f9f9;
        border-radius: 10px;
        border: 1px solid #e5e5e5;
    }

    .hhpc-fullwidth-images .flex-control-thumbs li {
        width: 55px;
        height: 55px;
    }

    .hhpc-fullwidth-details {
        padding-top: 25px;
    }

    .hhpc-fullwidth-details .woocommerce-tabs {
        padding: 15px 12px;
    }

    .hhpc-fullwidth-details .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
    }

    .hhpc-fullwidth-details .woocommerce-tabs ul.tabs li a {
        padding: 8px 12px;
        font-size: 0.85em;
    }
}

@media screen and (max-width: 480px) {
    .hhpc-fullwidth-container {
        padding: 10px;
    }

    .hhpc-fullwidth-layout .hhpc-fullwidth-info .summary,
    .hhpc-fullwidth-layout .hhpc-fullwidth-summary {
        padding: 12px 0;
    }

    .hhpc-fullwidth-summary .product_title {
        font-size: 1.1em;
    }

    .hhpc-fullwidth-summary .price {
        font-size: 1em;
    }

    .hhpc-fullwidth-summary .cart {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 12px;
    }

    .hhpc-fullwidth-summary .quantity {
        margin-right: 0;
        flex: 0 0 auto;
    }

    .hhpc-fullwidth-summary .quantity .qty {
        width: 50px;
        height: 44px;
        font-size: 1em;
    }

    .hhpc-fullwidth-summary .single_add_to_cart_button {
        flex: 1;
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .hhpc-fullwidth-images .woocommerce-product-gallery {
        padding: 10px;
    }

    .hhpc-fullwidth-images .flex-control-thumbs {
        gap: 8px;
    }

    .hhpc-fullwidth-images .flex-control-thumbs li {
        width: 50px;
        height: 50px;
    }
}

/* =====================================================
   BUY NOW BUTTON
   ===================================================== */
.hhpc-buy-now-wrapper {
    margin-top: 15px;
}

.hhpc-buy-now-button {
    display: block;
    width: 100%;
    background-color: #95372f;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Zen Old Mincho', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
}

.hhpc-buy-now-button:hover {
    background-color: #7a2d27;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 55, 47, 0.3);
    color: #fff;
}

@media screen and (max-width: 480px) {
    .hhpc-buy-now-button {
        padding: 12px 15px;
        font-size: 0.95em;
    }
}
