/* Sidebar States */
.cart-sidebar--active,
.favorites-sidebar--active {
    transform: translateX(0) !important;
}

.cart-overlay--active,
.favorites-overlay--active {
    display: block !important;
    opacity: 1 !important;
}

/* Dividers */
.cart-sidebar__divider,
.favorites-sidebar__divider {
    height: 1px;
    background-color: #E0E0E0;
}

/* Cart Item (matching product-detail.html) */
.cart-item,
.favorites-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    position: relative;
    align-items: flex-start;
}

.cart-item__image,
.favorites-item__image {
    width: 65px;
    height: 85px;
    flex-shrink: 0;
    background-color: #f9f9f9;
}

.cart-item__image img,
.favorites-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__info,
.favorites-item__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.cart-item__name,
.favorites-item__name {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.cart-item__price,
.favorites-item__price {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.cart-item__option {
    display: flex;
    gap: 5px;
    font-size: 12px;
}

.cart-item__option-label {
    color: #828282;
}

.cart-item__option-value {
    color: #000;
}

.cart-item__remove,
.favorites-item__remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.cart-item__remove img,
.favorites-item__remove img {
    width: 12px;
    height: 12px;
}

/* Buy Block in Sidebar */
.cart-sidebar__buy-block {
    padding: 20px 0 0;
}

.cart-sidebar__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-sidebar__count {
    font-size: 14px;
    color: #828282;
}

.cart-sidebar__total {
    font-size: 18px;
    font-weight: 600;
}

.cart-sidebar__checkout {
    width: 100%;
    padding: 18px;
    background-color: #000;
    color: #fff;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: lowercase;
    cursor: pointer;
    transition: background 0.3s;
}

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

/* Empty states */
.cart-sidebar__empty,
.favorites-sidebar__empty {
    text-align: center;
    padding: 40px 0;
    color: #828282;
}

/* Checkout Page Styles */
.checkout-form {
    margin-top: 30px;
}

.checkout-form__group {
    margin-bottom: 20px;
}

.checkout-form__row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.checkout-form__input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #E0E0E0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.checkout-form__input:focus {
    border-bottom-color: #000;
}

.checkout-form__subtitle {
    font-size: 18px;
    font-weight: 500;
    margin: 30px 0 20px;
}

.checkout-summary {
    margin: 30px 0 40px;
    padding-top: 30px;
    border-top: 1px solid #E0E0E0;
}

.checkout-summary__title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.checkout-summary__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkout-summary__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkout-summary__item-name {
    display: block;
    font-weight: 500;
}

.checkout-summary__item-meta {
    font-size: 14px;
    color: #828282;
}

.checkout-summary__total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 20px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #000;
}

.checkout-submit {
    width: 100%;
    margin-top: 40px;
}

/* Honeypot поля (скрыты от пользователей, но видны ботам) */
.checkout-form__hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Стили ошибок валидации */
.checkout-form__input--error {
    border-bottom-color: #e53935 !important;
}

.checkout-form__error {
    display: block;
    color: #e53935;
    font-size: 13px;
    margin-top: 5px;
    font-family: 'Inter', sans-serif;
}

.checkout-form__global-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 3px solid #e53935;
}

/* Hide gallery on checkout page on mobile only */
@media (max-width: 768px) {
    .checkout .product-detail__gallery {
        display: none;
    }
}

/* ===================== */
/* Coupon Block Styles */
/* ===================== */

.coupon-block {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #E0E0E0;
}

.coupon-block__title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 15px;
}

.coupon-block__form {
    display: flex;
    gap: 10px;
}

.coupon-block__input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #E0E0E0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    text-transform: uppercase;
    transition: border-color 0.2s;
}

.coupon-block__input:focus {
    border-color: #000;
}

.coupon-block__input::placeholder {
    text-transform: none;
}

.coupon-block__btn {
    padding: 12px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.coupon-block__btn:hover {
    background-color: #333;
}

.coupon-block__btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.coupon-block__message {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
}

.coupon-block__message--success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.coupon-block__message--error {
    background-color: #ffebee;
    color: #c62828;
}

.coupon-block__applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: #e8f5e9;
    border-radius: 4px;
    margin-top: 10px;
}

.coupon-block__applied-text {
    font-size: 14px;
    font-weight: 500;
    color: #2e7d32;
}

.coupon-block__remove {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.coupon-block__remove:hover {
    color: #c62828;
}

/* Discount row in checkout summary */
.checkout-summary__discount {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #2e7d32;
    padding: 10px 0;
    margin-top: 15px;
    border-top: 1px dashed #E0E0E0;
}

.checkout-summary__discount-label {
    font-weight: 500;
}

.checkout-summary__discount-value {
    font-weight: 600;
}

/* ===================== */
/* Order Result Pages */
/* ===================== */

.order-result__icon {
    text-align: center;
    margin-bottom: 20px;
}

.order-result__icon svg {
    width: 64px;
    height: 64px;
}

.order-result__section {
    margin: 25px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
}

.order-result__section:last-of-type {
    border-bottom: none;
}

.order-result__subtitle {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #000;
}

.order-result__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.order-result__label {
    font-size: 14px;
    color: #828282;
    flex-shrink: 0;
}

.order-result__value {
    font-size: 14px;
    color: #000;
    text-align: right;
}

.order-result__value--bold {
    font-weight: 600;
}

.order-result__status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.order-result__status--pending {
    background-color: #fff3e0;
    color: #f57c00;
}

.order-result__status--processing {
    background-color: #e3f2fd;
    color: #1976d2;
}

.order-result__status--completed {
    background-color: #e8f5e9;
    color: #388e3c;
}

.order-result__status--cancelled {
    background-color: #ffebee;
    color: #d32f2f;
}

.order-result__address {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Order Items List */
.order-result__items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-result__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

.order-result__item:last-child {
    border-bottom: none;
}

.order-result__item-info {
    flex: 1;
}

.order-result__item-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.order-result__item-meta {
    display: block;
    font-size: 12px;
    color: #828282;
}

.order-result__item-details {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.order-result__item-qty {
    font-size: 13px;
    color: #828282;
}

.order-result__item-price {
    font-size: 13px;
    color: #828282;
}

.order-result__item-total {
    font-size: 14px;
    font-weight: 600;
}

/* Error Block (Payment Failed) */
.order-result__error-block {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.order-result__error-title {
    font-size: 14px;
    font-weight: 600;
    color: #c62828;
    margin: 0 0 10px;
}

.order-result__error-message {
    font-size: 14px;
    color: #b71c1c;
    margin: 0;
    line-height: 1.5;
}

/* Action Buttons */
.order-result__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.order-result__btn--primary {
    background-color: #000;
    color: #fff;
}

.order-result__btn--secondary {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
}

.order-result__btn--secondary:hover {
    background-color: #f5f5f5;
}

.order-result .product-detail__buy-btn {
    text-align: center;
}

.order-result__message {
    font-size: 14px;
    color: #828282;
    text-align: center;
    margin: 20px 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .order-result .product-detail__gallery {
        display: none;
    }

    .order-result__item {
        flex-direction: column;
        gap: 8px;
    }

    .order-result__item-details {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ===================== */
/* Podeli Promo Block */
/* ===================== */

.podeli-promo {
    margin-top: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-left: 3px solid #EF3124;
    border-radius: 4px;
}

.podeli-promo__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.podeli-promo__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #EF3124 0%, #d62b1f 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podeli-promo__icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.podeli-promo__icon svg path {
    fill: #fff;
}

.podeli-promo__text {
    flex: 1;
}

.podeli-promo__title {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin: 0 0 4px;
}

.podeli-promo__desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.4;
}

.podeli-promo__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #EF3124;
    text-decoration: none;
    transition: opacity 0.2s;
}

.podeli-promo__link:hover {
    opacity: 0.7;
}

.podeli-promo__link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.podeli-promo__brand {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #999;
}

.podeli-promo__brand-logo {
    height: 14px;
    width: auto;
}

/* Compact variant for checkout */
.podeli-promo--compact {
    margin: 20px 0;
    padding: 12px 14px;
}

.podeli-promo--compact .podeli-promo__icon {
    width: 32px;
    height: 32px;
}

.podeli-promo--compact .podeli-promo__icon svg {
    width: 18px;
    height: 18px;
}

.podeli-promo--compact .podeli-promo__title {
    font-size: 13px;
}

.podeli-promo--compact .podeli-promo__desc {
    font-size: 12px;
    margin-bottom: 6px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .podeli-promo {
        padding: 14px;
    }

    .podeli-promo__icon {
        width: 36px;
        height: 36px;
    }

    .podeli-promo__title {
        font-size: 13px;
    }

    .podeli-promo__desc {
        font-size: 12px;
    }
}