/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Дочерняя тема для Astra
 Author:       Ваше Имя
 Author URI:   https://yoursite.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

/* Сюда добавляйте свои CSS стили */





:root {
    --hotel-primary: #00CCCC;
    --hotel-primary-dark: #009999;
    --hotel-primary-light: #33DDDD;
    --hotel-dark: #333333;
    --hotel-gray: #666666;
    --hotel-light-gray: #999999;
    --hotel-bg-light: #F8F9FA;
    --hotel-border: #E0E0E0;
    --hotel-white: #FFFFFF;
    --hotel-shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
    --hotel-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --hotel-shadow-lg: 0 8px 35px rgba(0,0,0,0.12);
    --hotel-shadow-xl: 0 12px 50px rgba(0,0,0,0.15);
    --hotel-radius-sm: 8px;
    --hotel-radius-md: 12px;
    --hotel-radius-lg: 16px;
    --hotel-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GRID CONTAINER ===== */
.custom-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ===== PRODUCT CARD ===== */
.custom-product-card {
    background: var(--hotel-white);
    border-radius: var(--hotel-radius-lg);
    overflow: hidden;
    box-shadow: var(--hotel-shadow-md);
    transition: var(--hotel-transition);
    border: 1px solid var(--hotel-border);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.custom-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hotel-shadow-xl);
    border-color: var(--hotel-primary);
}

/* ===== IMAGE WRAPPER ===== */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--hotel-bg-light);
}

.product-image-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Main & Hover Images */
.main-img,
.hover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: var(--hotel-transition);
}

.hover-img {
    opacity: 0;
    transform: scale(1.05);
}

.custom-product-card:hover .hover-img {
    opacity: 1;
    transform: scale(1);
}

.custom-product-card:hover .main-img {
    transform: scale(1.05);
    opacity: 0;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--hotel-primary) 0%, var(--hotel-primary-dark) 100%);
    color: var(--hotel-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,204,204,0.3);
}

.product-badge.sale {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%);
    box-shadow: 0 2px 10px rgba(255,107,107,0.3);
}

/* ===== PRODUCT CONTENT ===== */
.product-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Product Title */
.product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
    min-height: 50px;
}

.product-title a {
    color: var(--hotel-dark);
    text-decoration: none;
    transition: var(--hotel-transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: var(--hotel-primary);
}

/* Product Price */
.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--hotel-primary);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hotel-border);
}

.product-price del {
    color: var(--hotel-light-gray);
    font-size: 14px;
    font-weight: 400;
    margin-right: 8px;
}

.product-price ins {
    text-decoration: none;
    color: var(--hotel-primary);
}

/* Product Main Description */
.product-main-description {
    font-size: 14px;
    color: var(--hotel-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-main-description p {
    margin: 0;
}

/* ===== PRODUCT BUTTONS ===== */
.product-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn {
    flex: 1;
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--hotel-radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--hotel-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
}

/* Details Button */
.btn-details {
    background: var(--hotel-white);
    color: var(--hotel-dark);
    border-color: var(--hotel-border);
}

.btn-details:hover {
    background: var(--hotel-bg-light);
    border-color: var(--hotel-dark);
    color: var(--hotel-dark);
    transform: translateY(-2px);
}

/* Book Button */
.btn-book {
    background: linear-gradient(135deg, var(--hotel-primary) 0%, var(--hotel-primary-dark) 100%);
    color: var(--hotel-white);
    border-color: var(--hotel-primary);
    box-shadow: 0 4px 15px rgba(0,204,204,0.25);
}

.btn-book:hover {
    background: linear-gradient(135deg, var(--hotel-primary-dark) 0%, var(--hotel-primary) 100%);
    border-color: var(--hotel-primary-dark);
    box-shadow: 0 6px 25px rgba(0,204,204,0.35);
    transform: translateY(-2px);
    color: var(--hotel-white);
}

/* ===== LOADING STATE ===== */
.custom-products-grid:empty::before {
    content: 'Загрузка товаров...';
    display: block;
    text-align: center;
    padding: 40px;
    color: var(--hotel-gray);
    font-size: 16px;
}



.elementor-element-aa9dbef .elementor-widget-image-box.elementor-position-left .elementor-image-box-wrapper {
    flex-direction: row-reverse;
    text-align: center;
}


.elementor-element-d02d1ce {position:relative;}

.elementor-element-c5bc6c6 {
    position: absolute !important;
    top: 160px;
    z-index:999 !important;
}
.elementor-element-0c12a9c {display:none !important;}
.elementor-element-fe74539 {width:400px !important;}
/* ===== RESPONSIVE DESIGN ===== */

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .custom-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .product-title {
        font-size: 17px;
        min-height: 46px;
    }
    
    .product-content {
        padding: 20px;
    }
}

/* Mobile Large - 2 columns smaller */
@media (max-width: 768px) {
    
    
.elementor-32 .elementor-element.elementor-element-63054bd .gallery-item {
    padding: 0 15px 15px 0;
    width: 50%;
}

.elementor-32 .elementor-element.elementor-element-63054bd .gallery {
    margin: 0 -15px -15px 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}
    
.elementor-element-c5bc6c6 {
    position: relative !important;
    top: 0;
}    
    
    
    
 .custom-product-card:hover .main-img {
    transform: none;
    opacity: 1;
}   
    
.t-card__descr ul {
    margin: 0 20px;
    margin-bottom: 10px;
}    
    
    
    .custom-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-title {
        font-size: 15px;
        min-height: 42px;
    }
    
    .product-price {
        font-size: 18px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .product-main-description {
        font-size: 13px;
        margin-bottom: 16px;
        -webkit-line-clamp: none;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .product-badge {
        top: 10px;
        left: 10px;
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Mobile - 1 column */
@media (max-width: 576px) {
    
 .main-img, .hover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    top: 0;
    left: 0;
    transition: var(--hotel-transition);
}


    .hover-img {
    opacity: 1;
    transform: none;
}
    
    .custom-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .custom-product-card {
        flex-direction: row;
        height: auto;
    }
    
    .product-image-wrapper {
        width: 45%;
        aspect-ratio: 1/1;
        flex-shrink: 0;
    }
    
    .product-content {
        width: 55%;
        padding: 16px;
    }
    
    .product-title {
        font-size: 16px;
        min-height: auto;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 17px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    

    
    .product-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        padding: 11px 16px;
        font-size: 13px;
    }
}

/* Mobile Extra Small */
@media (max-width: 400px) {
    .custom-product-card {
        flex-direction: column;
    }
    
    .product-image-wrapper {
        width: 100%;
        aspect-ratio: 4/3;
    }
    
    .product-content {
        width: 100%;
    }
    
    .product-buttons {
        flex-direction: row;
    }
    
    .product-title {
        font-size: 15px;
    }
}

/* ===== HOVER ANIMATIONS ===== */
.custom-product-card .product-image-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: var(--hotel-transition);
}

.custom-product-card:hover .product-image-link::after {
    opacity: 1;
}

/* ===== CARD SKELETON (Loading Animation) ===== */
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.custom-product-card.skeleton {
    pointer-events: none;
}

.custom-product-card.skeleton .product-image-wrapper,
.custom-product-card.skeleton .product-title,
.custom-product-card.skeleton .product-price,
.custom-product-card.skeleton .product-main-description,
.custom-product-card.skeleton .btn {
    background: linear-gradient(90deg, var(--hotel-bg-light) 25%, var(--hotel-border) 50%, var(--hotel-bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--hotel-radius-md);
}

.custom-product-card.skeleton .product-image-wrapper {
    aspect-ratio: 4/3;
}

.custom-product-card.skeleton .product-title {
    height: 24px;
    margin-bottom: 12px;
}

.custom-product-card.skeleton .product-price {
    height: 28px;
    margin-bottom: 16px;
}

.custom-product-card.skeleton .product-main-description {
    height: 60px;
    margin-bottom: 20px;
}

.custom-product-card.skeleton .btn {
    height: 44px;
}

/* ===== ACCESSIBILITY ===== */
.custom-product-card:focus-within {
    outline: 2px solid var(--hotel-primary);
    outline-offset: 2px;
}

.btn:focus,
.product-title a:focus {
    outline: 2px solid var(--hotel-primary);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .custom-products-grid {
        display: block;
    }
    
    .custom-product-card {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .product-buttons,
    .product-badge {
        display: none;
    }
}




