body, html {
    padding: 0;
    margin: 0;
    background-color: rgb(253, 243, 197);
    font-family: 'Playfair Display', serif;
    font-style: Roman;
    background-image: url("./assets/imgs/web/bg.jpg");
    background-size: cover;
    background-attachment: fixed;
}

p:empty {
    display: none;
  }
  
.pageLoad {
    opacity: 0;
    transform: translateY(50px);
    animation: moveUp 3s forwards;
    font-weight: 500;
    color: rgb(36, 10, 10);
}

@keyframes moveUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* WooCommerce Products Grid Layout - Tailwind Responsive */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Product Card Styling - Theme Matching */
.product-card {
    height: 100%;
    
    display: flex;
    flex-direction: column;
    background-color: #fdf6e3;
    border: 1px solid #a67c52;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 0;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #8b5a3c;
}

/* Product Image Container */
.product-image-container {
    position: relative;
    background-color: white;
    border-bottom: 1px solid #a67c52;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: auto;
}

.product-card:hover .product-image-container img {
    transform: scale(1.02);
}

/* Product Content - Centered */
.product-content {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #fdf6e3;
    flex: 1;
    text-align: center;
    min-height: 0;
    box-sizing: border-box;
}

/* Product Title - Centered */
.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    width: 100%;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    width: 100%;
    text-align: center !important;
}

.product-title a:hover {
    color: #a67c52;
}

/* Product Price - Centered */
.product-price {
    margin-bottom: 1rem;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    width: 100%;
}

.product-price .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    text-align: center !important;
    width: 100%;
}

.link-clean {
    color: #111827;        /* odpowiednik text-gray-900 */
    margin-bottom: 0.5rem; /* odpowiednik mb-2 */
    font-size: 1.25rem;    /* odpowiednik text-xl */
    text-decoration: none; /* odpowiednik no-underline */
  }
  
  .link-clean:hover {
    color: #111827;        /* utrzymuje ten sam kolor na hover */
    text-decoration: none; /* brak podkreślenia na hover */
  }

.product-price .price del {
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 0.5rem;
    font-size: 1rem;
    text-align: center !important;
}

.product-price .price ins {
    text-decoration: none;
    color: #111827;
    text-align: center !important;
}

/* Read More Button - Dark Brown Theme Matching */
.read-more-btn {
    background: #483C32;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    display: block;
    box-sizing: border-box;
    min-height: 44px;
    line-height: 1.2;
    flex-shrink: 0;
}

.read-more-btn:hover {
    background: #2d241f;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pagination Styling - Clean and Centered */
.woocommerce-pagination {
    margin: 2rem auto 1rem;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    flex-direction: row;
}

.woocommerce-pagination ul li {
    margin: 0;
    display: inline-block;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background: #483C32;
    color: white;
    border-color: #483C32;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.woocommerce-pagination ul li span.current {
    background: #483C32;
    color: white;
    border-color: #483C32;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom Shop Layout */
.custom-pianos-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.custom-pianos-layout .woocommerce {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.custom-pianos-layout .woocommerce ul.products {
    flex: 1;
    margin-bottom: 2rem;
}

/* Tailwind Responsive Breakpoints */
@media (max-width: 1279px) {
    .woocommerce ul.products {
        gap: 1.25rem;
        padding: 0 0.75rem;
    }
    
    .product-content {
        padding: 0.875rem;
        min-height: 0;
    }
}

@media (max-width: 1023px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.75rem;
    }
    
    .product-title {
        font-size: 1rem;
        min-height: 2.25rem;
    }
    
    .product-price .price {
        font-size: 1.125rem;
    }
    
    .product-content {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .custom-pianos-layout {
        padding: 1rem 0.75rem;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0;
    }
    
    .product-content {
        padding: 0.75rem;
        min-height: 0;
    }
    
    .product-title {
        font-size: 0.875rem;
        min-height: 2rem;
        margin-bottom: 0.375rem;
    }
    
    .product-price {
        margin-bottom: 0.75rem;
        min-height: 1.75rem;
    }
    
    .product-price .price {
        font-size: 1rem;
    }
    
    .read-more-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-height: 40px;
    }
    
    /* Mobile Pagination */
    .woocommerce-pagination {
        margin: 1.5rem auto 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .woocommerce-pagination ul {
        gap: 0.375rem;
        flex-wrap: wrap;
        justify-content: center;
        flex-direction: row;
    }
    
    .woocommerce-pagination ul li {
        display: inline-block;
        margin: 0;
    }
    
    .woocommerce-pagination ul li a,
    .woocommerce-pagination ul li span {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0 0.5rem;
        font-size: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 639px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .custom-pianos-layout {
        padding: 0.75rem 0.5rem;
    }
    
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0;
    }
    
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-content {
        padding: 0.75rem;
        min-height: 0;
    }
    
    .product-title {
        font-size: 1rem;
        min-height: 2.25rem;
        margin-bottom: 0.5rem;
    }
    
    .product-price {
        margin-bottom: 0.875rem;
        min-height: 2rem;
    }
    
    .product-price .price {
        font-size: 1.125rem;
    }
    
    .read-more-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    /* Mobile Pagination */
    .woocommerce-pagination {
        margin: 1.5rem auto 0.75rem;
        padding: 0 0.5rem;
    }
    
    .woocommerce-pagination ul {
        gap: 0.375rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .woocommerce-pagination ul li a,
    .woocommerce-pagination ul li span {
        min-width: 2.5rem;
        height: 2.5rem;
        padding: 0 0.5rem;
        font-size: 0.75rem;
    }
}

/* Hide WooCommerce notices */
.woocommerce-notices-wrapper {
    display: none;
}

/* Product Link Styling */
.product-link {
    text-decoration: none;
    color: black;
}

.product-link:hover {
    text-decoration: underline;
    color: white;
}

.product-item {
    padding-top: 10%;
    padding-bottom: 10%;
    border-right: solid 3px rgb(0, 0, 0, 0.5);
    background-color: rgb(0, 0, 0, 0.1);
}

.product-item:hover {
    background-color: rgba(62, 15, 15, 0.372);
}

.item-link {
    text-decoration: none;
    color: black;
}

.item-link:hover {
    text-decoration: underline;
    color: white;
}

.item-container {
    padding: 5% 0;
    border-right: 3px solid rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.1);
}

.item-container:hover {
    background-color: rgba(62, 15, 15, 0.372);
}

/* Sortowanie */
.woocommerce-ordering {
    margin-bottom: 1.5rem;
    text-align: right;
}

.orderby {
    font-size: 1rem;
    color: #333;
    cursor: pointer;
}

.orderby:focus {
    outline: 2px solid #483C32;
    border-color: transparent;
}


.product-subtitle {
    display: none !important;
}


.woocommerce-product-details__short-description {
    display: none !important;
}

.summary .price {
    display: none !important;
}

/* Product Gallery Zoom Effect */
.woocommerce-product-gallery__image img,
.custom-product-tabs img {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.woocommerce-product-gallery__image img:hover,
.custom-product-tabs img:hover {
    transform: scale(1.2);
}