/* 
 * Additions CSS
 * Additional styles that don't require SCSS compilation
 * Safe to add custom styles here without breaking existing code
 */

/* TEST: Temporary visible style to verify CSS is loading */
body {
    /* border-top: 5px solid red !important; */
    flex-wrap: wrap;
}

/* Site Header */
header.site-header {
    width: 100% !important;
    top: 0;
}

.header {
    width: 100% !important;
}

.header .shopping .qty-icon.qty-icon-second {
    aspect-ratio: 1 / 1;
}

.header .shopping .qty-icon.qty-icon-first {
    aspect-ratio: 1 / 1;
}

/* Heart and Basket Logo Containers */
.header .shopping .heart-logo-container {
    position: relative;
    display: inline-block;
    margin-right: 20px;
}

.header .shopping .heart-logo {
    margin-right: 0 !important;
}

.header .shopping .basket-logo-container {
    position: relative;
    display: inline-block;
}

.header .shopping img.basket-logo {
    margin-right: 0;
}

/* Quantity Icon Positioning - Now using absolute positioning */
.header .shopping .qty-icon.qty-icon-first {
    position: absolute;
    top: -0.6rem;
    right: -1rem;
    margin: 0;
    z-index: 3;
}

.header .shopping .qty-icon.qty-icon-second {
    position: absolute;
    top: -0.6rem;
    right: -30px;
    margin: 0;
    z-index: 3;
}

/* WooCommerce Single Product Container */
.woocommerce-single-product-container {
    width: 100%;
    padding: 150px 0 0 0;
}

/* Responsive adjustments */
@media (max-width: 1300px) {
    .single-product-layout {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .single-product-layout {
        padding: 0 10px;
    }
}

/* Shop Page Hero Section */
.shop-hero-section {
    padding: 200px 0 60px 0; /* Added 50px to top padding */
    background-color: #ffffff; /* White background */
}

.shop-hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.shop-hero-row {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.shop-hero-column {
    flex: 1;
    width: 50%;
}

.shop-hero-image-column {
    /* 50% width for image column */
}

.shop-hero-content-column {
    /* 50% width for content column */
}

.shop-primary-image img {
    width: 100%;
    height: auto;
    /* No rounded corners, no hover effects */
    border: none;
    box-shadow: none;
}

.shop-hero-title {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #004f44;
    line-height: 1.2;
}

.shop-hero-content-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.shop-hero-content-text p {
    margin-bottom: 15px;
}

.shop-hero-content-text p:last-child {
    margin-bottom: 0;
}

/* Products Section */
.shop-products-section {
    padding: 60px 0;
}

.shop-products-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 65px;
    column-gap: 10px;
    margin-top: 40px;
    width: 100%;
}

.product-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    /* No borders */
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Creates square aspect ratio */
    position: relative;
    overflow: hidden;
}

.product-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill; /* Allow stretching */
    /* No rounded corners */
    border-radius: 0;
    /* No hover effects */
    transition: none;
}

.product-main-img {
    opacity: 1;
}

.product-hover-img {
    opacity: 0;
}

/* Only apply hover effects when hover image exists */
.product-image:has(.product-hover-img) .product-main-img {
    transition: opacity 0.3s ease;
}

.product-image:has(.product-hover-img) .product-hover-img {
    transition: opacity 0.3s ease;
}

.product-image:has(.product-hover-img):hover .product-main-img {
    opacity: 0;
}

.product-image:has(.product-hover-img):hover .product-hover-img {
    opacity: 1;
}

.product-details {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    color: #333;
    line-height: 1.3;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.product-price-add {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 15px;
    min-height: 50px; /* Ensure minimum height for better centering */
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.product-price::before {
    display: none;
}

.add-to-cart-btn {
    background: #004f44;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    /* No rounded corners */
    border-radius: 0;
    /* Background hover transition */
    transition: background-color 0.2s;
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    background: #e4a8aa;
    color: #fff;
    text-decoration: none;
}

/* Single Product Layout */
.single-product-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-image-column {
    flex: 1;
    max-width: 50%;
}

.product-details-column {
    flex: 1;
    max-width: 50%;
}

.product-main-content {
    padding: 20px 0;
}

.product-main-image {
    width: 100%;
    margin-bottom: 20px;
}

.product-main-img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.product-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    overflow: hidden;
}

.gallery-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details-content {
    padding: 20px 0;
}

.product-title {
    font-size: 60px;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #004f44;
    line-height: 1.2;
}

.single-product .product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.product-price::before {
    content: "Price: ";
    font-weight: 500;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 30px 0;
}

.product-add-to-cart {
    margin-bottom: 30px;
}

.product-cart-form {
    display: flex;
    align-items: center;
}

.quantity-input {
    display: flex;
    align-items: center;
}

.qty-input {
    width: 80px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 16px;
    text-align: center;
    color: #333;
    font-weight: 500;
    border-radius: 4px;
}

.qty-input:focus {
    outline: none;
    border-color: #004f44;
}

.single_add_to_cart_button {
    background: #004f44;
    color: #fff;
    padding: 12px 30px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.2s;
    margin-left: 30px;
}

.single_add_to_cart_button:hover {
    background: #e4a8aa;
    color: #fff;
}

/* Product Details Section */
.product-desc-wrapper {
    background-color: #f3f3f3;
    padding: 80px 0;
    width: 100%;
}

.product-desc-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
}

.product-details-title {
    font-size: 60px;
    font-family: 'Bebas Neue', sans-serif;
    color: #004f44;
    margin: 0 0 40px 0;
    text-align: left;
    width: 100%;
    flex-basis: 100%;
}

.product-details-content {
    display: flex;
    gap: 40px;
    width: 100%;
    flex-basis: 100%;
}

.product-details-left,
.product-details-right {
    flex: 1;
    width: 50%;
}

.product-description-title {
    font-family: 'American Typewriter', serif;
    font-size: 24px;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.product-long-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.features-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
}

.specifications-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.features-and-benefits {
    margin-top: 0;
}

.feature-benefit-item {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.specifications {
    margin-top: 0;
}

.specification-item {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
}

.spec-title {
    font-weight: 600;
    color: #333;
    margin-right: 8px;
}

.spec-content {
    color: #666;
}

/* Responsive adjustments for product details */
@media (max-width: 768px) {
    .product-desc-wrapper {
        padding: 60px 0;
    }
    
    .product-details-title {
        font-size: 40px;
        margin-bottom: 30px;
    }
    
    .product-details-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-details-left,
    .product-details-right {
        width: 100%;
    }
    
    .product-description-title {
        font-size: 20px;
    }
}


/* Responsive adjustments for single product */
@media (max-width: 768px) {
    .single-product-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-image-column,
    .product-details-column {
        max-width: 100%;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
}

/* Product Category Filter */
.product-category-filter {
    padding: 30px 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.product-category-filter .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-filter-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.category-filter-item {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.category-filter-item:hover {
    color: #e4a8aa;
    text-decoration: none;
}

.category-filter-item.active {
    color: #e4a8aa;
    border-bottom-color: #e4a8aa;
}

.products-loading {
    text-align: center;
    padding: 40px 0;
    font-size: 16px;
    color: #666;
}

.products-loading p {
    margin: 0;
}

/* Pagination Styles */
.pagination-section {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.pagination-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.products-count {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-number,
.pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    transition: all 0.2s;
}

.pagination-number:hover {
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.pagination-number.current {
    background: #004f44;
    color: #fff;
    border-color: #004f44;
}

.pagination-arrow {
    font-size: 18px;
    font-weight: bold;
}

.pagination-arrow:hover {
    background: #004f44;
    color: #fff;
    border-color: #004f44;
    text-decoration: none;
}

/* Responsive adjustments for shop hero */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 65px;
        column-gap: 10px;
    }
}

@media (max-width: 768px) {
    .shop-hero-section {
        padding: 120px 0 40px 0;
    }

    .shop-hero-row {
        flex-direction: column;
        gap: 30px;
    }

    .shop-hero-column {
        width: 100%;
    }

    .shop-hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .shop-hero-content-text {
        font-size: 1rem;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 65px;
        column-gap: 10px;
    }

    .product-price-add {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .add-to-cart-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .shop-hero-section {
        padding: 100px 0 30px 0;
    }

    .shop-hero-title {
        font-size: 1.75rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        row-gap: 65px;
        column-gap: 10px;
    }
}

/* WooCommerce My Account Two Column Layout */
.woocommerce {
    display: flex;
    gap: 20px;
}

.woocommerce-MyAccount-navigation {
    width: 200px;
    flex-shrink: 0;
    margin-left:0 !important;
}

.woocommerce-MyAccount-content {
    flex: 1;
}

.footer-header__logo {
    display: none !important;
}

.footer-header__logo img {
    display: none;
}

.footer-content {
    padding: 40px 0 !important;
}


body.woocommerce-account .standard-page-container .woocommerce::before {
    display:none !important;
}