/* Document Layout - Pin footer to bottom */

body {
    margin: 0;
}

main {
    flex: 1;
    margin: 10px;
}

.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }

/* Additional sticky header styles */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.wp-block-navigation-item__content {
    text-decoration: none;
    transition: color 0.2s ease;
}

.wp-block-navigation-item__content:hover {
    opacity: 0.8;
}

/* Product Category Rows */
.product-category-row {
    margin: 40px 0;
}

.product-category-row .category-title {
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
}

.product-category-row .products {
    display: grid;
    gap: 20px;
}

.product-item {
    display: block;
    background: #fff2e5;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    text-align: left;
    align-self: start;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 8px;
}

.product-item .product-thumbnail,
.product-image-wrapper img {
    width: 100%;
    height: 192px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.product-item:hover .product-thumbnail,
.product-item:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #5c4a3a;
    color: #faf8f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3d3228;
    margin: 0;
    transition: color 0.3s ease;
}

.product-item:hover .product-title {
    color: #2d2418;
}

.product-description {
    color: #5c4a3a;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e5e5e5;
}

.product-item .price {
    font-size: 1.125rem;
    font-weight: bold;
    color: #3d3228;
    margin: 0;
}

.view-details {
    color: #5c4a3a;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.product-item:hover .view-details {
    color: #3d3228;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-category-row .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .product-category-row .products {
        grid-template-columns: 1fr !important;
    }
}

/* Shop Page Styles */
.shop-container {
    display: block;
    margin: 40px 0;
}

.shop-filters {
    background: #fff2e5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.filter-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
    color: #3d3228;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #5c4a3a;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.category-filter-btn:hover {
    border-color: #5c4a3a;
    background: #fff2e5;
}

.category-filter-btn.active {
    background: #5c4a3a !important;
    color: white !important;
    border-color: #5c4a3a !important;
}

.shop-layout {
    width: 100%;
}

.shop-products-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.shop-pagination a,
.shop-pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #5c4a3a;
    transition: all 0.2s ease;
}

.shop-pagination a:hover {
    background: #fff2e5;
    border-color: #5c4a3a;
}

.shop-pagination .current {
    background: #5c4a3a;
    color: #fff;
    border-color: #5c4a3a;
}

@media (max-width: 768px) {
    .shop-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shop-filters {
        position: relative;
        top: 0;
    }
}

/* Single Product Page */
.product-single-card {
    background: #fff2e5;
    margin: 40px auto;
    max-width: 1100px;
}

.product-image-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-image-section .wc-block-product-image {
    width: 100%;
}

.product-image-section .wp-block-image {
    margin-bottom: 0;
}

.product-image-section .wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-details-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-details-section .wc-block-product-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #3d3228;
}

.product-details-section .wc-block-product-price {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #3d3228;
}

.product-details-section .wc-block-product-rating {
    margin-bottom: 20px;
}

.product-details-section .wc-block-components-product-add-to-cart,
.product-details-section .wc-block-product-add-to-cart {
    margin-bottom: 30px;
}

.product-single-card button {
    background: #5c4a3a;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.product-single-card button:hover {
    background: #3d3228;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-single-card {
        display: block !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
    }

    .product-image-section,
    .product-details-section {
        width: 100%;
    }

    .product-details-section .wc-block-product-title {
        font-size: 1.5em;
    }
}

/* Related Products Section */
.related-products-section {
    margin: 60px auto;
    padding: 0;
}

.related-products-section h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 30px;
    color: #3d3228;
}

.related-products-grid {
    display: grid;
    gap: 20px;
}

@media (max-width: 768px) {
    .related-products-section {
        margin: 40px auto;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .related-products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Cart Page */
.cart-page-card {
    max-width: 1000px;
    margin: 40px auto !important;
}

.cart-page-card h1 {
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 600;
    color: #3d3228;
}

.cart-page-card .wc-block-cart {
    margin: 0;
}

.cart-page-card .wc-block-cart table {
    width: 100%;
    border-collapse: collapse;
}

.cart-page-card .wc-block-cart table th,
.cart-page-card .wc-block-cart table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.cart-page-card .wc-block-cart table th {
    background: #f5f0eb;
    font-weight: 600;
    color: #3d3228;
}

.cart-page-card .wc-block-cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.cart-page-card .wc-block-cart-item img {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
}

.cart-page-card button {
    background: #5c4a3a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-page-card button:hover {
    background: #3d3228;
}

.cart-page-card .wc-block-cart-totals {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #5c4a3a;
}

.cart-page-card .wc-block-cart-thank-you {
    text-align: center;
    padding: 40px;
}

@media (max-width: 768px) {
    .cart-page-card {
        padding: 20px !important;
    }

    .cart-page-card h1 {
        font-size: 1.8em;
    }

    .cart-page-card .wc-block-cart-item {
        flex-direction: column;
    }

    .cart-page-card .wc-block-cart-item img {
        max-width: 100%;
    }
}

/* Checkout Page */
.checkout-page-card {
    max-width: 1000px;
    margin: 40px auto !important;
}

.checkout-page-card h1 {
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 600;
    color: #3d3228;
}

.checkout-page-card .wc-block-checkout {
    margin: 0;
}

.checkout-page-card form {
    margin-bottom: 30px;
}

.checkout-page-card .wc-block-components-text-input,
.checkout-page-card .wc-block-components-select,
.checkout-page-card .wc-block-components-textarea,
.checkout-page-card input[type="text"],
.checkout-page-card input[type="email"],
.checkout-page-card input[type="tel"],
.checkout-page-card input[type="number"],
.checkout-page-card select,
.checkout-page-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    color: #3d3228;
    transition: border-color 0.2s ease;
}

.checkout-page-card input:focus,
.checkout-page-card select:focus,
.checkout-page-card textarea:focus {
    outline: none;
    border-color: #5c4a3a;
}

.checkout-page-card fieldset {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.checkout-page-card fieldset legend {
    font-weight: 600;
    color: #3d3228;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.checkout-page-card .wc-block-checkout-billing-address,
.checkout-page-card .wc-block-checkout-shipping-address {
    margin-bottom: 30px;
}

.checkout-page-card .wc-block-checkout-payment {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #5c4a3a;
}

.checkout-page-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #3d3228;
}

.checkout-page-card input[type="checkbox"],
.checkout-page-card input[type="radio"] {
    margin-right: 8px;
    accent-color: #5c4a3a;
}

.checkout-page-card button,
.checkout-page-card .wc-block-components-button {
    background: #5c4a3a;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    width: auto;
}

.checkout-page-card button:hover,
.checkout-page-card .wc-block-components-button:hover {
    background: #3d3228;
}

.checkout-page-card .wc-block-components-button.is-secondary {
    background: white;
    color: #3d3228;
    border: 1px solid #ddd;
}

.checkout-page-card .wc-block-components-button.is-secondary:hover {
    background: #f5f0eb;
    border-color: #5c4a3a;
}

.checkout-page-card .wc-block-checkout-order-review {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.checkout-page-card .wc-block-checkout-order-review h2 {
    font-size: 1.3em;
    color: #3d3228;
    margin-bottom: 20px;
}

.checkout-page-card table {
    width: 100%;
    border-collapse: collapse;
}

.checkout-page-card table td,
.checkout-page-card table th {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.checkout-page-card .wc-block-checkout-i-have-read-terms {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .checkout-page-card {
        padding: 20px !important;
    }

    .checkout-page-card h1 {
        font-size: 1.8em;
    }

    .checkout-page-card fieldset {
        padding: 15px;
    }
}



