/*
Theme Name: Seller Seeds Store
Theme URI: https://sellerseeds.store/
Description: WordPress тема для інтернет-магазину насіння та садових товарів з інтеграцією WooCommerce
Author: Your Name
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seller-seeds
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header Styles */
.site-header {
    background: #fff;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.site-logo {
    font-size: 28px;
    font-weight: 700;
    color: #2c5530;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.thankyou_page_logo{
    max-width: 300px;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo .custom-logo {
    max-height: 56px;
    width: auto;
    height: auto;
    max-width: 220px;
    object-fit: contain;
}

.site-logo-text {
    display: inline-block;
}

/* Thank You page — окремий дизайн хедера */
.site-header--thankyou {
    /* Стилі для сторінки подяки: змініть під свій дизайн */
}
.site-header--thankyou .header-content--thankyou {
    justify-content: center;
    padding: 24px 0;
}

.header-actions {
    position: fixed;
    top: 50px;
    right: 50px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: hsla(0, 0%, 100%, 0.8);
    border-radius: 50px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease-in-out;
    will-change: transform;
}

.header-actions.header-actions--has-items {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header-actions:hover {
    transform: scale(1.05);
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    color: #333;
}

.cart-icon:hover {
    color: #2c5530;
}

.cart-count {
    position: absolute;
    bottom: -3px;
    right: -3px;
    box-sizing: border-box;
    min-width: 30px;
    height: 30px;
    padding: 0 5px;
    line-height: 30px;
    border-radius: 30px;
    background-color: #ff4a4a;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    width: auto;
}

/* Hero Section */
.hero-section {
    padding: 40px 0 20px;
    text-align: center;
}
.hero-section .container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 75px;
}
@media (max-width: 1024px) {
    .hero-section .container{
        gap: 20px;
    }
}
.hero-section .container p{
    font-size: 28px;
    color: #000;
	font-weight: 300;
	line-height: 1.35;
    max-width: 800px;
    margin: 0 auto;
}
/* Categories Section */
.categories-section {
    padding: 55px 0 75px;
}
@media (max-width: 1024px) {
    .categories-section{
        padding: 0;
    }
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    list-style: none;
    margin-top: 20px;
}

.categories-list li {
    margin: 0;
}

.category-link {
    display: inline-block;
    padding: 10px 20px;
    transition: all 0.3s ease;

    border-color: #3cb54a;
	border-width: 2px;
    border-style: solid;
	border-radius: 30px;
	background-color: #dff1df;
	font-size: 14px;
	color: #29442e;
	font-weight: 400;
}

.category-link:hover { 
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(44, 85, 48, 0.2);
}

/* Products Section */
.products-section {
    padding: 40px 0 60px;
    background: #ffffff;
}
@media (max-width: 1024px) {
    .products-section{
        padding: 0 0 60px;
    }
}

.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #2c5530;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-section-title {
    font-size: 24px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    color: #2c5530;
    font-weight: 500;
}

.category-section-title:first-child {
    margin-top: 0;
}

.category-section-title a {
    color: inherit;
}

.category-section-title a:hover {
    color: #1e3a21;
}

.products-grid--by-category {
    margin-bottom: 10px;
}

.category-block {
    scroll-margin-top: 100px;
}

.all-products-link-wrap {
    text-align: center;
    margin-top: 35px;
    margin-bottom: 10px;
}

.all-products-link {
    display: inline-block;
    padding: 14px 32px;
    background: #2c5530;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.all-products-link:hover {
    background: #1e3a21;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #2c5530;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
    text-align: center;
}

.product-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    text-align: center;
}

.product-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 22px;
    font-weight: 700;
    color: #2c5530;
}

.price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

.price-currency {
    font-size: 14px;
    color: #666;
    margin-left: 2px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.add-to-cart-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    cursor: pointer;

    
	color: #ffffff;
	background-color: #009a06;
	border-width: 0px;
	border-style: none !important;
	border-radius: 5px;
	box-shadow: none !important;
	white-space: normal;
	transition-duration: 0.2s;
	transition-property: background-color, color, border-color, box-shadow, opacity, transform, gap;
	transition-timing-function: ease-in-out;

    font-size: 14px;
	padding-left: 30px;
	padding-right: 30px;
}

.add-to-cart-btn:hover {
    background: #1e3a21;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(44, 85, 48, 0.3);
}

.product-details-link {
    padding: 12px 20px;
    text-align: center;

    color: #000000;
	border-style: solid !important;
	border-color: #000000 !important;
	border-width: 1px;
	border-radius: 5px;
	box-shadow: none !important;
	white-space: normal;
	transition-duration: 0.2s;
	transition-property: background-color, color, border-color, box-shadow, opacity, transform, gap;
	transition-timing-function: ease-in-out;
    font-size: 14px;
	padding-left: 30px;
	padding-right: 30px;
}

.product-details-link:hover {
    background: #2c5530;
    color: white;
    border-color: #2c5530;
}

/* Product Quick-View Modal (popup like cart) */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    overflow-y: auto;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-content-wrap {
    background: white;
    width: 100%;
	max-width: 1200px;
    max-height: 90vh;
    border-radius: 8px;
    padding: 35px;
    position: relative;
    margin: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.product-modal-close:hover {
    color: #333;
    background: #f5f5f5;
}

.product-modal-content {
    min-height: 120px;
}

.product-modal-loading,
.product-modal-error {
    text-align: center;
    padding: 40px;
    color: #666;
}

.product-quickview-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.product-quickview-image {
    position: relative;
}

.product-quickview-image .product-quickview-main-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.product-quickview-gallery {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.product-quickview-gallery-thumb {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    scroll-snap-align: start;
    border: 2px solid transparent;
    opacity: 0.75;
    transition: opacity 0.2s, border-color 0.2s;
}

.product-quickview-gallery-thumb:hover,
.product-quickview-gallery-thumb.active {
    opacity: 1;
    border-color: #2c5530;
}

/* Single product gallery slider (ACF) */
.product-gallery-slider {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.product-gallery-thumb {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    scroll-snap-align: start;
    border: 2px solid transparent;
    opacity: 0.75;
    transition: opacity 0.2s, border-color 0.2s;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    opacity: 1;
    border-color: #2c5530;
}

.product-quickview-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.product-quickview-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.product-quickview-price {
    margin-bottom: 20px;
}

.product-quickview-price .price-current {
    font-size: 22px;
    font-weight: 700;
    color: #2c5530;
}

.product-quickview-price .price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-quickview-sku {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    margin-bottom: 15px;
}

.product-quickview-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.product-quickview-attributes {
    margin-bottom: 20px;
}

.product-quickview-attributes-title {
    font-size: 16px;
    margin: 0 0 10px;
    color: #333;
}

.product-quickview-attributes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.product-quickview-attributes-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.product-quickview-attributes-table td:first-child {
    color: #666;
    width: 40%;
}

.quantity-selector--quickview {
    margin-bottom: 12px;
}

.quantity-selector--quickview label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

.quantity-selector--quickview .product-quantity-quickview {
    width: 80px;
    padding: 8px 10px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.product-quickview-actions .add-to-cart-btn {
    padding: 14px 28px;
    font-size: 16px;
}

.product-card .product-title.product-quickview-trigger,
.product-card .product-image-wrapper.product-quickview-trigger {
    cursor: pointer;
}

.product-card .product-image-wrapper.product-quickview-trigger:hover .product-image {
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .product-quickview-inner {
        grid-template-columns: 1fr;
    }
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    overflow-y: auto;
}

.cart-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-content {
    background: white;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 8px;
    padding: 35px;
    position: relative;
    margin: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cart-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.cart-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-close:hover {
    color: #333;
    background: #f5f5f5;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.cart-item-title {
    font-weight: 600;
    margin: 0;
    font-size: 15px;
}

.cart-item-price {
    color: #2c5530;
    font-weight: bold;
    margin: 0;
    font-size: 15px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 3px;
}

.remove-item {
    flex-shrink: 0;
    align-self: center;
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
}

.cart-total {
    padding: 20px 0;
    border-top: 2px solid #2c5530;
    margin-top: 20px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 18px;
}

.cart-total-final {
    font-size: 24px;
    font-weight: bold;
    color: #2c5530;
}

/* Order Form */
.order-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2c5530;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.submit-order-btn {
    width: 100%;
    padding: 16px;
    background: #2c5530;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.submit-order-btn:hover {
    background: #1e3a21;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

.empty-cart {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Footer */
.site-footer {
    background: #efefef;
    color: white;
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-block {
    max-width: 900px;
    margin: 0 auto;
}

.footer-brand {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}
.footer-logo img{
    max-width: 180px;
}
.footer-logo a,
.footer-logo .custom-logo {
    display: inline-block;
}

.footer-logo .custom-logo {
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.footer-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #000;
}

.footer-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer-delivery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-delivery-item {
    text-align: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.footer-delivery-item strong {
    display: block;
    font-size: 16px;
    color: #000;
    margin-bottom: 10px;
}

.footer-delivery-item p {
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

.footer-bottom {
    background-color: #000;
    text-align: center;
    padding: 20px 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-details-link {
        text-align: center;
    }

    .categories-list {
        gap: 10px;
    }

    .category-link {
        padding: 8px 16px;
        font-size: 14px;
    }

    .cart-content {
        width: 95%;
        padding: 25px;
    }

    .footer-title {
        font-size: 18px;
    }

    .footer-subtitle {
        font-size: 15px;
    }

    .footer-delivery {
        grid-template-columns: 1fr;
    }
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.thankyou-content h1{
    text-align: center;
	color: #2d5306;
	font-size: 42px;
}
.thankyou-content p{
    text-align: center;
	font-size: 20px;
	font-style: italic;
}
.thankyou-content a{
    text-align: center;
	color: #2d5306;
	font-size: 20px;
    font-weight: 700;
    margin: 40px auto 0;
	display: flex;
	max-width: 300px;
	justify-content: center;
}
@media (max-width: 1024px) {
    .thankyou-content h1{
        line-height: 1;
	    margin-bottom: 30px;
    }
}