/**
 * YOO Manager - Styles
 * v1.2.0 - Customizable colors, better UI
 */

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    --ym-primary: #1565c0;
    --ym-primary-hover: #0d47a1;
    --ym-title-color: #e57373;
    --ym-price-color: #333;
    --ym-sale-color: #e53935;
    --ym-badge-bg: #1565c0;
    --ym-badge-color: #fff;
    --ym-incart-bg: #43a047;
    --ym-incart-color: #fff;
    --ym-border: #e0e0e0;
    --ym-card-bg: #fff;
    --ym-card-radius: 8px;
    --ym-link-red: #e53935;
    --ym-success: #43a047;
    --ym-danger: #e53935;
    --ym-thumb-count: 6;
}

/* ========================================
   PRODUCT GRID
======================================== */

.ym-grid {
    display: grid;
    grid-template-columns: repeat(var(--ym-columns, 4), 1fr);
    gap: var(--ym-gap, 15px);
}

@media (max-width: 1199px) {
    .ym-grid {
        grid-template-columns: repeat(var(--ym-columns-m, 3), 1fr);
    }
}

@media (max-width: 767px) {
    .ym-grid {
        grid-template-columns: repeat(var(--ym-columns-s, 2), 1fr);
        gap: 10px;
    }
}

/* Card */
.ym-card {
    background: var(--ym-card-bg);
    border: 1px solid var(--ym-border);
    border-radius: var(--ym-card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ym-card-media {
    position: relative;
    padding: 10px;
    background: #fff;
}

.ym-image-link {
    display: block;
}

.ym-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.ym-card-icons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.ym-icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ym-icon-btn:hover {
    color: var(--ym-sale-color);
    background: #fff;
}

.ym-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ym-badge-bg);
    color: var(--ym-badge-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.ym-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ym-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 58px;
}

/* Title color from CSS variable (customizable) */
.ym-title a {
    color: var(--ym-title-color, #e57373);
    text-decoration: none;
}

.ym-title a:hover {
    text-decoration: underline;
}

/* Stock Display */
.ym-stock-display {
    margin-bottom: 8px;
}

.ym-stock-text {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ym-stock-text.ym-in-stock {
    color: var(--ym-success);
}

.ym-stock-text.ym-out-stock {
    color: var(--ym-danger);
}

.ym-stock-progress {
    height: 4px !important;
    border-radius: 2px;
}

.ym-stock-progress::-webkit-progress-value {
    background: var(--ym-success);
}

.ym-stock-progress::-moz-progress-bar {
    background: var(--ym-success);
}

.ym-price {
    margin-bottom: 10px;
    font-size: 16px;
}

.ym-price del {
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

.ym-price .ym-sale {
    color: var(--ym-sale-color);
    font-weight: 600;
    font-size: 18px;
}

.ym-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    overflow: visible;
}

.ym-qty-box {
    display: flex;
    border: 1px solid var(--ym-border);
    border-radius: 4px;
    overflow: hidden;
    height: 38px;
    flex-shrink: 0;
}

.ym-qty-input {
    width: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
    background: #fff;
}

.ym-qty-input::-webkit-outer-spin-button,
.ym-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ym-qty-btns {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--ym-border);
}

.ym-qty-btns button {
    flex: 1;
    width: 24px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: background 0.2s;
    padding: 0;
}

.ym-qty-btns button:hover {
    background: #e0e0e0;
}

.ym-qty-btns .ym-qty-up {
    border-bottom: 1px solid var(--ym-border);
}

.ym-btn {
    flex: 1;
    height: 38px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ym-btn-cart {
    background: var(--ym-primary);
    color: #fff;
}

.ym-btn-cart:hover {
    background: var(--ym-primary-hover);
}

/* In Cart button - green with quantity */
.ym-btn-incart {
    background: var(--ym-incart-color, #43a047);
    color: #fff;
    border: none;
}

.ym-btn-incart:hover {
    opacity: 0.9;
}

.ym-btn-incart .ym-cart-qty {
    font-weight: 600;
    margin-left: 2px;
}

.ym-out-of-stock {
    color: var(--ym-sale-color);
    font-size: 13px;
    margin-top: auto;
}

/* Mobile Grid */
@media (max-width: 767px) {
    .ym-card-body {
        padding: 10px;
    }
    
    .ym-title {
        font-size: 13px;
        min-height: 50px;
        -webkit-line-clamp: 2;
        margin-bottom: 6px;
    }
    
    .ym-price {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .ym-price del {
        font-size: 12px;
    }
    
    .ym-price .ym-sale {
        font-size: 16px;
    }
    
    .ym-actions {
        flex-direction: row;
        gap: 6px;
    }
    
    .ym-qty-box {
        height: 34px;
    }
    
    .ym-qty-input {
        width: 30px;
        font-size: 13px;
    }
    
    .ym-qty-btns button {
        width: 20px;
        font-size: 11px;
    }
    
    .ym-btn {
        height: 34px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .ym-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .ym-icon-btn {
        width: 28px;
        height: 28px;
    }
    
    .ym-icon-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ========================================
   CATEGORY GRID
======================================== */

.ym-cat-grid {
    display: grid;
    grid-template-columns: repeat(var(--ym-cat-columns, 3), 1fr);
    gap: var(--ym-cat-gap, 15px);
}

@media (max-width: 959px) {
    .ym-cat-grid {
        grid-template-columns: repeat(var(--ym-cat-columns-m, 2), 1fr);
    }
}

@media (max-width: 639px) {
    .ym-cat-grid {
        grid-template-columns: repeat(var(--ym-cat-columns-s, 1), 1fr);
    }
}

.ym-category-card {
    min-height: 200px;
    border-radius: var(--ym-card-radius);
    overflow: hidden;
}

.ym-category-card img {
    transition: transform 0.3s ease;
}

.ym-cat-item:hover .uk-transition-scale-up {
    transform: scale(1.05);
}

/* ========================================
   PRODUCT PAGE
======================================== */

.ym-product-page {
    padding: 0;
}

/* Breadcrumb */
.ym-breadcrumb {
    margin-bottom: 8px;
}

.ym-breadcrumb .uk-breadcrumb > li > a {
    color: #1e87f0;
    font-size: 13px;
}

/* Product Title */
.ym-product-page .ym-product-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 15px 0;
}

/* Product Main Grid */
.ym-product-main {
    margin-bottom: 15px;
}

/* ========================================
   GALLERY - Bottom Thumbnails
======================================== */

.ym-gallery {
    width: 100%;
}

.ym-gallery-main {
    border: 1px solid var(--ym-border);
    border-radius: 4px;
    padding: 15px;
    background: #fff;
}

.ym-gallery-main img.ym-main-image {
    width: 100%;
    height: auto;
    display: block;
    border: none !important;
    box-shadow: none !important;
}

/* Bottom Thumbnails - Configurable Count */
.ym-gallery-bottom-thumbs .ym-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(var(--ym-thumb-count, 6), 1fr);
    gap: 8px;
    margin-top: 10px;
}

.ym-gallery-bottom-thumbs .ym-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
    aspect-ratio: 1;
}

.ym-gallery-bottom-thumbs .ym-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ym-thumb:hover,
.ym-thumb.ym-active {
    border-color: #1e87f0;
}

/* ========================================
   GALLERY - Left Thumbnails
======================================== */

.ym-gallery-left-thumbs {
    display: flex;
    gap: 10px;
}

.ym-gallery-thumbs-left {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.ym-gallery-thumbs-left .ym-thumb {
    width: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.ym-gallery-thumbs-left .ym-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.ym-gallery-main-wrap {
    flex: 1;
}

.ym-gallery-main-wrap .ym-gallery-main {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   META & ATTRIBUTES
======================================== */

.ym-meta-list,
.ym-attributes-list {
    margin-bottom: 12px;
}

.ym-meta-row {
    display: flex;
    align-items: baseline;
    font-size: 14px;
    line-height: 1.7;
}

.ym-meta-label {
    color: #333;
    flex-shrink: 0;
}

.ym-meta-dots {
    flex: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 8px;
    min-width: 20px;
    position: relative;
    top: -4px;
}

.ym-meta-value {
    flex-shrink: 0;
    text-align: right;
}

.ym-link-red {
    color: var(--ym-link-red) !important;
    text-decoration: none;
}

.ym-link-red:hover {
    text-decoration: underline;
}

.ym-text-success {
    color: var(--ym-success) !important;
}

.ym-text-danger {
    color: var(--ym-danger) !important;
}

/* Price Block */
.ym-price-block {
    margin: 12px 0;
}

.ym-price-old {
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}

.ym-price-sale {
    color: var(--ym-sale-color);
    font-size: 26px;
    font-weight: 600;
}

.ym-price-current {
    font-size: 26px;
    font-weight: 600;
    color: #333;
}

/* Cart Row */
.ym-cart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

/* Quantity Wrapper */
.ym-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ym-border);
    border-radius: 4px;
    overflow: hidden;
    height: 44px;
    background: #fff;
}

.ym-qty-wrap .ym-qty-input {
    width: 50px;
    height: 42px;
    border: none;
    text-align: center;
    font-size: 16px;
    background: transparent;
    -moz-appearance: textfield;
    outline: none;
}

.ym-qty-wrap .ym-qty-input::-webkit-outer-spin-button,
.ym-qty-wrap .ym-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ym-qty-wrap .ym-qty-btns {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--ym-border);
    height: 100%;
}

.ym-qty-wrap .ym-qty-btns button {
    width: 28px;
    height: 21px;
    border: none;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
    color: #666;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ym-qty-wrap .ym-qty-btns button:hover {
    background: #eee;
}

.ym-qty-wrap .ym-qty-btns .ym-qty-up {
    border-bottom: 1px solid var(--ym-border);
}

/* Cart Button */
.ym-cart-btn {
    height: 44px;
    padding: 0 24px;
    background: #43a047;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.ym-cart-btn:hover {
    background: #388e3c;
}

.ym-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ym-cart-btn.ym-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Action Buttons */
.ym-action-btns {
    display: flex;
    gap: 15px;
    margin: 10px 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ym-border);
}

.ym-action-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.ym-action-btn:hover {
    color: #333;
}

.ym-action-btn.ym-active svg {
    fill: var(--ym-sale-color);
    color: var(--ym-sale-color);
}

/* Reviews Row */
.ym-reviews-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ym-stars {
    display: flex;
    gap: 2px;
}

.ym-star {
    font-size: 18px;
    color: #e0e0e0;
}

.ym-star-filled {
    color: #4caf50;
}

.ym-star-half {
    color: #4caf50;
}

.ym-reviews-link {
    color: var(--ym-link-red);
    text-decoration: none;
    font-size: 14px;
}

.ym-reviews-link:hover {
    text-decoration: underline;
}

/* All Features Link */
.ym-all-features {
    display: inline-block;
    margin-top: 8px;
    color: var(--ym-link-red);
    font-size: 14px;
    text-decoration: none;
}

.ym-all-features:hover {
    text-decoration: underline;
}

/* ========================================
   INFO BOXES - Below (Horizontal)
======================================== */

.ym-info-boxes-row {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.ym-info-box-wrap {
    flex: 1;
    display: flex;
}

.ym-info-box {
    padding: 15px;
    border-radius: 6px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex: 1;
}

.ym-info-icon {
    flex-shrink: 0;
}

.ym-info-text {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

/* ========================================
   INFO BOXES - Right Sidebar (Vertical)
======================================== */

.ym-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ym-info-box-vertical {
    flex-direction: column;
    text-align: center;
    padding: 15px 12px;
}

.ym-info-box-vertical .ym-info-icon {
    margin-bottom: 8px;
}

.ym-info-box-vertical .ym-info-text {
    font-size: 12px;
    line-height: 1.4;
}

/* ========================================
   TABS
======================================== */

.ym-tabs-section {
    margin-top: 20px;
    border-top: 1px solid var(--ym-border);
    padding-top: 15px;
}

.ym-tabs-nav {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

.ym-tabs-nav > li > a {
    font-size: 15px;
    font-weight: 500;
    color: #666 !important;
    padding: 10px 0 !important;
    margin-right: 25px !important;
    border-bottom: 2px solid transparent !important;
    text-transform: none !important;
}

.ym-tabs-nav > li.uk-active > a {
    color: var(--ym-link-red) !important;
    border-bottom-color: var(--ym-link-red) !important;
}

.ym-tab-content {
    padding: 15px 0;
}

.ym-short-desc {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ym-border);
}

.ym-tabs-section .ym-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #43a047;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
}

.ym-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ym-spec-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.ym-spec-table tr:nth-child(even) {
    background: #fafafa;
}

.ym-spec-table th,
.ym-spec-table td {
    padding: 10px 12px;
    text-align: left;
}

.ym-spec-table th {
    width: 35%;
    font-weight: 500;
    color: #333;
}

.ym-spec-table td {
    color: #666;
}

/* ========================================
   RELATED PRODUCTS
======================================== */

.ym-related-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--ym-border);
}

.ym-related-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.ym-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.ym-related-card {
    background: #fff;
    border: 1px solid var(--ym-border);
    border-radius: 6px;
    overflow: hidden;
    padding: 10px;
}

.ym-related-image {
    display: block;
}

.ym-related-image img {
    width: 100%;
    height: auto;
}

.ym-related-info {
    padding: 10px 0 0;
}

.ym-related-name {
    display: block;
    font-size: 13px;
    color: var(--ym-title-color);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 5px;
}

.ym-related-name:hover {
    text-decoration: underline;
}

.ym-related-price {
    font-size: 14px;
    font-weight: 600;
}

.ym-related-price del {
    color: #999;
    font-weight: 400;
    margin-right: 5px;
}

.ym-related-price ins {
    text-decoration: none;
    color: var(--ym-sale-color);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1199px) {
    .ym-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ym-gallery-bottom-thumbs .ym-gallery-thumbs {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 959px) {
    .ym-product-page .ym-product-title {
        font-size: 22px;
    }
    
    .ym-price-sale,
    .ym-price-current {
        font-size: 24px;
    }
    
    .ym-info-box {
        padding: 12px;
    }
    
    .ym-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Stack info boxes on tablet */
    .ym-info-boxes-row {
        flex-wrap: wrap;
    }
    
    .ym-info-box-wrap {
        min-width: calc(50% - 8px);
    }
    
    .ym-gallery-bottom-thumbs .ym-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .ym-product-main > div {
        width: 100% !important;
    }
    
    .ym-gallery {
        margin-bottom: 20px;
    }
    
    /* Convert left thumbs to bottom on mobile */
    .ym-gallery-left-thumbs {
        flex-direction: column;
    }
    
    .ym-gallery-thumbs-left {
        width: 100%;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        order: 2;
        margin-top: 10px;
    }
    
    .ym-gallery-thumbs-left .ym-thumb {
        width: 60px;
        flex-shrink: 0;
    }
    
    .ym-gallery-main-wrap {
        order: 1;
    }
    
    .ym-gallery-bottom-thumbs .ym-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Stack info sidebar below on mobile */
    .ym-info-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .ym-info-box-vertical {
        flex: 1;
        min-width: calc(50% - 5px);
        flex-direction: row;
        text-align: left;
    }
    
    .ym-info-box-vertical .ym-info-icon {
        margin-bottom: 0;
        margin-right: 10px;
    }
}

@media (max-width: 640px) {
    .ym-product-page .ym-product-title {
        font-size: 20px;
    }
    
    .ym-cart-row {
        flex-wrap: wrap;
    }
    
    .ym-qty-wrap {
        flex-shrink: 0;
    }
    
    .ym-cart-btn {
        flex: 1;
        justify-content: center;
    }
    
    .ym-meta-row {
        font-size: 13px;
    }
    
    .ym-info-box-wrap {
        min-width: 100%;
    }
    
    .ym-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ym-gallery-bottom-thumbs .ym-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 479px) {
    .ym-price-sale,
    .ym-price-current {
        font-size: 22px;
    }
    
    .ym-cart-btn {
        padding: 0 15px;
        font-size: 14px;
    }
    
    .ym-qty-wrap {
        height: 40px;
    }
    
    .ym-qty-wrap .ym-qty-input {
        width: 40px;
        height: 38px;
    }
    
    .ym-info-box-vertical {
        min-width: 100%;
    }
}

/* ========================================
   MINI CHECKOUT
======================================== */

.ym-mini-checkout {
    font-family: inherit;
}

.ym-mini-checkout .ym-checkout-section {
    margin-bottom: 20px;
}

.ym-mini-checkout .ym-section-heading {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ym-border);
}

/* Cart Items in Mini Checkout */
.ym-mini-checkout .ym-cart-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--ym-border);
}

.ym-mini-checkout .ym-cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ym-mini-checkout .ym-cart-item-image {
    border-radius: 4px;
    object-fit: cover;
}

.ym-mini-checkout .ym-item-name a {
    text-decoration: none;
}

.ym-mini-checkout .ym-item-name a:hover {
    text-decoration: underline;
}

/* Quantity Box in Mini Checkout - using standard ym-qty-box */
.ym-mini-checkout .ym-qty-box {
    display: flex;
    border: 1px solid var(--ym-border);
    border-radius: 4px;
    overflow: hidden;
    height: 38px;
    flex-shrink: 0;
}

.ym-mini-checkout .ym-qty-box .ym-qty-input {
    width: 45px;
    border: none;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
    background: #fff;
    outline: none;
}

.ym-mini-checkout .ym-qty-box .ym-qty-input::-webkit-outer-spin-button,
.ym-mini-checkout .ym-qty-box .ym-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ym-mini-checkout .ym-qty-box .ym-qty-btns {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--ym-border);
}

.ym-mini-checkout .ym-qty-box .ym-qty-btns button {
    flex: 1;
    width: 28px;
    border: none;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
    color: #666;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ym-mini-checkout .ym-qty-box .ym-qty-btns button:hover {
    background: #e8e8e8;
}

.ym-mini-checkout .ym-qty-box .ym-qty-btns .ym-qty-up {
    border-bottom: 1px solid var(--ym-border);
}

/* Remove Button */
.ym-mini-checkout .ym-remove-item {
    transition: background 0.2s, transform 0.2s;
}

.ym-mini-checkout .ym-remove-item:hover {
    background: #d32f2f !important;
    transform: scale(1.1);
}

/* Address Fields */
.ym-mini-checkout .uk-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.ym-mini-checkout .uk-input,
.ym-mini-checkout .uk-select,
.ym-mini-checkout .uk-textarea {
    border: 1px solid var(--ym-border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ym-mini-checkout .uk-input:focus,
.ym-mini-checkout .uk-select:focus,
.ym-mini-checkout .uk-textarea:focus {
    border-color: var(--ym-primary);
    box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.1);
    outline: none;
}

.ym-mini-checkout .uk-input.ym-field-error,
.ym-mini-checkout .uk-select.ym-field-error,
.ym-mini-checkout .uk-textarea.ym-field-error {
    border-color: var(--ym-danger);
}

/* Shipping Methods */
.ym-mini-checkout .ym-shipping-option {
    padding: 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.ym-mini-checkout .ym-shipping-option:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Payment Methods */
.ym-mini-checkout .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ym-mini-checkout .wc_payment_method {
    padding: 10px 0;
    border-bottom: 1px solid var(--ym-border);
}

.ym-mini-checkout .wc_payment_method:last-child {
    border-bottom: none;
}

.ym-mini-checkout .wc_payment_method label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ym-mini-checkout .payment_box {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-top: 10px;
}

/* Payment Icons */
.ym-mini-checkout .ym-payment-icons img {
    filter: grayscale(0);
    opacity: 1;
    transition: opacity 0.2s;
}

.ym-mini-checkout .ym-payment-icons img:hover {
    opacity: 0.8;
}

/* Order Summary */
.ym-mini-checkout .ym-summary-section {
    position: relative;
}

.ym-mini-checkout .ym-summary-details > div {
    padding: 8px 0;
}

/* Place Order Button */
.ym-mini-checkout .ym-place-order {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.ym-mini-checkout .ym-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ym-mini-checkout .ym-place-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Validation Errors */
.ym-mini-checkout .ym-validation-errors {
    margin-top: 15px;
}

/* Loading State */
.ym-mini-checkout.ym-loading {
    position: relative;
    pointer-events: none;
}

.ym-mini-checkout.ym-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 100;
}

/* Category Messages */
.ym-mini-checkout .ym-category-messages .uk-alert {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive Mini Checkout */
@media (max-width: 960px) {
    .ym-mini-checkout .ym-summary-section {
        margin-top: 20px;
    }
}

@media (max-width: 640px) {
    .ym-mini-checkout .ym-cart-item [uk-grid] {
        flex-wrap: wrap;
    }
    
    .ym-mini-checkout .ym-qty-box {
        margin-top: 10px;
    }
    
    .ym-mini-checkout .ym-item-subtotal {
        margin-top: 10px;
    }
}
