/* ==========================================================================
   WooCommerce Custom Styles
   UniFi Store Theme - Extracted from templates
   ========================================================================== */

/* === Shop/Archive Page === */
/* ==========================================================================
   Shop Page - UI.com Style
   ========================================================================== */
.shop-page {
    background: #fff;
    min-height: calc(100vh - 200px);
}

/* Subcategory Chips */
.shop-filters {
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid #F0F0F0;
}

.shop-filters-inner {
    max-width: 1440px;
    margin: 0 auto;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #666;
    background: #F5F5F5;
    border: 1px solid transparent;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.filter-chip:hover {
    background: #EAEAEA;
    color: #1A1A1A;
}

.filter-chip.active {
    background: #006FFF;
    color: #fff;
    border-color: #006FFF;
}

.filter-chip .chip-count {
    margin-left: 6px;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Filter Dropdowns Row */
.filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.8125rem;
    color: #666;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-dropdown-btn:hover {
    border-color: #006FFF;
    color: #006FFF;
}

.filter-dropdown-btn svg {
    width: 12px;
    height: 12px;
}

.filter-dropdown-btn.has-value {
    background: #E8F1FF;
    border-color: #006FFF;
    color: #006FFF;
}

/* Toolbar */
.shop-toolbar {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.shop-result-count {
    font-size: 0.875rem;
    color: #666;
}

.shop-sort-select .woocommerce-ordering {
    margin: 0;
}

.shop-sort-select select {
    padding: 8px 32px 8px 14px;
    font-size: 0.8125rem;
    color: #666;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid #E6E6E6;
    border-radius: 20px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.shop-sort-select select:focus {
    outline: none;
    border-color: #006FFF;
}

/* Products Container */
.shop-products {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

/* ==========================================================================
   Product List View (Mobile-first like UI.com)
   ========================================================================== */
.products-list {
    display: flex;
    flex-direction: column;
}

.product-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #F0F0F0;
    text-decoration: none;
    transition: background 0.15s ease;
}

.product-list-item:hover {
    background: #FAFAFA;
    margin: 0 -16px;
    padding: 16px;
    border-radius: 8px;
}

.product-list-image {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: #FAFBFB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-list-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-list-content {
    flex: 1;
    min-width: 0;
}

.product-list-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-list-sku {
    font-size: 0.75rem;
    color: #808080;
    margin-bottom: 4px;
}

.product-list-desc {
    font-size: 0.8125rem;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-list-price-wrap {
    flex-shrink: 0;
    text-align: right;
}

.product-list-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.product-list-price del {
    color: #999;
    font-weight: 400;
    font-size: 0.75rem;
    display: block;
}

.product-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #006FFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.product-list-btn:hover {
    background: #0059CC;
}

.product-list-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Product Grid View (Desktop)
   ========================================================================== */
.products-grid {
    display: none;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.shop-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.shop-pagination .woocommerce-pagination ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.shop-pagination .page-numbers:hover {
    background: #F5F5F5;
    color: #1A1A1A;
}

.shop-pagination .page-numbers.current {
    background: #006FFF;
    color: #fff;
}

/* No products */
.no-products {
    text-align: center;
    padding: 80px 24px;
}

.no-products h2 {
    font-size: 1.5rem;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.no-products p {
    color: #666;
    margin-bottom: 24px;
}

.no-products .btn-shop {
    display: inline-block;
    padding: 14px 28px;
    background: #006FFF;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

/* ==========================================================================
   Desktop: Show Grid View
   ========================================================================== */
@media (min-width: 769px) {
    .products-list {
        display: none;
    }

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

    /* Product Card for Grid */
    .product-card {
        background: #FAFBFB;
        border: none;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .product-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    .product-card-image {
        position: relative;
        aspect-ratio: 1;
        background: #FAFBFB;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .product-card-image a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 24px;
    }

    .product-card-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

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

    .product-card-content {
        padding: 16px;
        display: flex;
        flex-direction: column;
        flex: 1;
        background: #fff;
    }

    .product-card-title {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #1A1A1A;
        margin: 0 0 4px 0;
        line-height: 1.3;
    }

    .product-card-title a {
        color: inherit;
        text-decoration: none;
    }

    .product-card-title a:hover {
        color: #006FFF;
    }

    .product-card-sku {
        font-size: 0.6875rem;
        color: #808080;
        margin-bottom: 8px;
    }

    .product-card-desc {
        font-size: 0.8125rem;
        color: #666;
        line-height: 1.4;
        margin: 0 0 12px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: auto;
        padding-top: 12px;
        border-top: 1px solid #F0F0F0;
    }

    .product-card-price {
        font-size: 0.8125rem;
        font-weight: 600;
        color: #1A1A1A;
        white-space: nowrap;
    }

    .product-card-price del {
        color: #999;
        font-weight: 400;
        font-size: 0.6875rem;
        margin-right: 4px;
    }

    .product-card .btn-add-cart {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        background: #006FFF;
        color: #fff !important;
        font-size: 0.75rem;
        font-weight: 600;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        text-decoration: none;
        transition: background 0.15s ease;
        white-space: nowrap;
    }

    .product-card .btn-add-cart:hover {
        background: #0059CC;
    }
}

/* ==========================================================================
   Tablet (max-width: 1200px)
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* ==========================================================================
   Mobile Styles (max-width: 768px) - List View
   ========================================================================== */
@media (max-width: 768px) {
    .shop-filters {
        padding: 12px 16px;
    }

    .filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px 12px;
        padding: 0 16px;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .filter-dropdowns {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }

    .filter-dropdowns::-webkit-scrollbar {
        display: none;
    }

    .filter-dropdown-btn {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .shop-toolbar {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .shop-products {
        padding: 0 16px 100px;
    }

    .product-list-item {
        gap: 12px;
        padding: 12px 0;
    }

    .product-list-image {
        width: 56px;
        height: 56px;
    }

    .product-list-title {
        font-size: 0.875rem;
    }

    .product-list-desc {
        display: none;
    }

    .product-list-price {
        font-size: 0.875rem;
        margin-bottom: 6px;
    }

    .product-list-btn {
        width: 36px;
        height: 36px;
    }

    .product-list-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   Extra Small (max-width: 380px)
   ========================================================================== */
@media (max-width: 380px) {
    .product-list-image {
        width: 48px;
        height: 48px;
    }

    .product-list-title {
        font-size: 0.8125rem;
    }

    .product-list-sku {
        display: none;
    }

    .product-list-price {
        font-size: 0.8125rem;
    }
}

/* === Single Product Page === */
/* === Single Product Page - UI.com Style === */
.single-product-page {
    padding: 24px 0 64px;
    background: #fff;
}

.single-product-page .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumbs */
.product-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #808080;
}

.product-breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.15s ease;
}

.product-breadcrumbs a:hover {
    color: #006FFF;
}

.product-breadcrumbs .separator {
    color: #CCC;
}

.product-breadcrumbs .current {
    color: #1A1A1A;
}

/* Main Product Layout */
.product-main-layout {
    display: grid;
    grid-template-columns: 80px 1fr 420px;
    gap: 24px;
    margin-bottom: 48px;
}

/* Thumbnail Gallery */
.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #F5F5F5;
    transition: all 0.15s ease;
}

.thumbnail-item:hover {
    border-color: #CCC;
}

.thumbnail-item.active {
    border-color: #006FFF;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.thumbnail-more {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.15s ease;
}

.thumbnail-more:hover {
    background: #E6E6E6;
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #F5F5F5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10001;
}

.gallery-modal-close:hover {
    background: #E6E6E6;
}

.gallery-modal-close svg {
    width: 24px;
    height: 24px;
    color: #1A1A1A;
}

.gallery-modal-content {
    max-width: 90vw;
    max-height: 80vh;
    position: relative;
}

.gallery-modal-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #F5F5F5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-modal-nav:hover {
    background: #E6E6E6;
}

.gallery-modal-nav svg {
    width: 24px;
    height: 24px;
    color: #1A1A1A;
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

.gallery-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 14px;
    background: #F5F5F5;
    padding: 8px 16px;
    border-radius: 20px;
}

.gallery-modal-thumbs {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 8px;
}

.gallery-modal-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.gallery-modal-thumb:hover {
    opacity: 0.8;
}

.gallery-modal-thumb.active {
    opacity: 1;
    border-color: #006FFF;
}

.gallery-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Image */
.product-main-image {
    position: relative;
    background: #F5F5F5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
}

.product-main-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    padding: 32px;
}

.zoom-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.15s ease;
}

.zoom-button:hover {
    background: #F5F5F5;
}

.zoom-button svg {
    width: 20px;
    height: 20px;
    color: #666;
}

/* Product Info Panel */
.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-title-section h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.product-sku {
    font-size: 0.875rem;
    color: #808080;
}

.product-short-desc {
    font-size: 0.9375rem;
    color: #4D4D4D;
    line-height: 1.6;
}

/* Stock Status */
.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.stock-status.in-stock {
    color: #00C853;
}

.stock-status.out-of-stock {
    color: #FF3D00;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* UI Care Section - like ui.com */
.ui-care-section {
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ui-care-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #006FFF;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.ui-care-info {
    flex: 1;
}

.ui-care-name {
    font-size: 1rem;
    font-weight: 600;
    color: #006FFF;
    margin-bottom: 4px;
}

.ui-care-desc {
    font-size: 0.875rem;
    color: #666;
}

.ui-care-price {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    white-space: nowrap;
}

/* Price Section */
.product-price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1A1A1A;
}

.product-price-old {
    font-size: 1.25rem;
    color: #999;
    text-decoration: line-through;
}

/* Quantity & Cart */
.product-actions {
    display: flex;
    gap: 12px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #666;
    transition: all 0.15s ease;
}

.qty-btn:hover {
    background: #F5F5F5;
    color: #1A1A1A;
}

.qty-btn:disabled {
    color: #CCC;
    cursor: not-allowed;
}

.qty-input {
    width: 50px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #1A1A1A;
    -moz-appearance: textfield;
}

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

.btn-add-to-cart {
    flex: 1;
    height: 48px;
    background: #006FFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-add-to-cart:hover {
    background: #0059CC;
}

.btn-add-to-cart:disabled {
    background: #CCC;
    cursor: not-allowed;
}

/* Powerful Accessories */
.related-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E6E6E6;
}

.related-section .section-heading {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.related-card {
    background: #F6F6F8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #EBEBEB;
}

.related-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #DDD;
}

.related-card-image {
    height: 140px;
    background: #F6F6F8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.related-card-image img {
    max-width: 90%;
    max-height: 116px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.related-card-body {
    background: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.related-card-info {
    flex: 1;
    min-width: 0;
}

a.related-card-title {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #006FFF;
    line-height: 1.3;
    text-decoration: none;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.related-card-title:hover {
    color: #0059CC;
}

.related-card-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1A1A1A;
}

.related-card-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #006FFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.15s ease;
}

.related-card-btn:hover {
    background: #0059CC;
}

.related-card-btn svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 900px) {
    .related-grid {
    margin-left: 0;
    padding-left: 0;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .related-card {
        width: 180px;
    }
    
    .related-card-image {
        height: 120px;
    }
}

/* Product Tabs */
.product-tabs-section {
    border-top: 1px solid #E6E6E6;
    padding-top: 48px;
}

.product-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #E6E6E6;
    margin-bottom: 32px;
}

.tab-button {
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s ease;
}

.tab-button:hover {
    color: #1A1A1A;
}

.tab-button.active {
    color: #006FFF;
    border-bottom-color: #006FFF;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 16px 0;
}

.tab-content p {
    font-size: 0.9375rem;
    color: #4D4D4D;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #E6E6E6;
}

.specs-table td {
    padding: 12px 0;
    font-size: 0.9375rem;
}

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

.specs-table td:last-child {
    color: #1A1A1A;
    font-weight: 500;
}

/* In The Box List */
.in-the-box-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.in-the-box-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E6E6E6;
    font-size: 0.9375rem;
    color: #1A1A1A;
}

.in-the-box-list li:last-child {
    border-bottom: none;
}

.in-the-box-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #006FFF;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 1200px) {
    .product-main-layout {
        grid-template-columns: 80px 1fr 360px;
    }

    .related-grid {
    margin-left: 0;
    padding-left: 0;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-main-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        order: 1;
    }

    .product-main-image {
        order: 0;
        min-height: 400px;
    }

    .product-info-panel {
        order: 2;
    }

    .related-grid {
    margin-left: 0;
    padding-left: 0;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .product-main-layout {
        gap: 24px;
    }

    .product-title-section h1 {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

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

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .related-grid {
    margin-left: 0;
    padding-left: 0;
        grid-template-columns: 1fr;
    }

    .related-card-image {
        width: 56px;
        height: 56px;
    }

    a.related-card-title {
        font-size: 0.875rem;
    }

    .related-card-price {
        font-size: 0.875rem;
    }

    .product-tabs-nav {
        overflow-x: auto;
    }

    .tab-button {
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 0.875rem;
    }
}

/* === Cart Page === */
/* === Cart Page - Clean UI.com Style === */
.cart-page {
    padding: 40px 0 80px;
    background: #fff;
    min-height: calc(100vh - 200px);
}

.cart-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cart-header {
    margin-bottom: 32px;
}

.cart-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
}

.cart-items-count {
    font-size: 1rem;
    color: #808080;
    font-weight: 400;
}

/* Two Column Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Cart Items Section */
.cart-items-section {
    background: #fff;
    border: 1px solid #E6E6E6;
    border-radius: 12px;
}

/* Single Cart Item - Flexbox */
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #F0F0F0;
    gap: 20px;
}

.cart-item:last-of-type {
    border-bottom: none;
}

/* Image */
.cart-item-image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    background: #F8F8F8;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cart-item-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Product Details */
.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1A1A1A;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.cart-item-name a:hover {
    color: #006FFF;
}

.cart-item-sku {
    font-size: 0.8125rem;
    color: #999;
    margin: 0;
}

/* Price */
.cart-item-price {
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    text-align: right;
    padding: 0 16px;
    white-space: nowrap;
}

/* Remove Button */
.cart-item-remove {
    flex: 0 0 auto;
}

.cart-item-remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #B3B3B3;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.cart-item-remove a:hover {
    background: #FFF5F5;
    color: #FF3D00;
}

.cart-item-remove a svg {
    width: 18px;
    height: 18px;
}

/* Hide WooCommerce quantity */
.cart-item .quantity,
.cart-item-quantity {
    display: none !important;
}

/* Summary Card */
.cart-summary-sidebar {
    position: sticky;
    top: 100px;
}

.cart-summary-card {
    background: #fff;
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    padding: 24px;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #E6E6E6;
}

/* Coupon */
.coupon-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E6E6E6;
}

.coupon-form {
    display: flex;
    gap: 8px;
}

.coupon-form input[type="text"] {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
    min-width: 0;
}

.coupon-form input[type="text"]:focus {
    outline: none;
    border-color: #006FFF;
}

.coupon-form input[type="text"]::placeholder {
    color: #999;
}

.coupon-form button {
    flex: 0 0 auto;
    padding: 12px 20px;
    background: #006FFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.coupon-form button:hover {
    background: #0059CC;
}

/* Totals */
.cart-totals-rows {
    margin-bottom: 24px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.9375rem;
}

.cart-total-row .label {
    color: #666;
}

.cart-total-row .value {
    color: #1A1A1A;
    font-weight: 500;
}

.cart-total-row.total {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid #E6E6E6;
    font-size: 1.375rem;
}

.cart-total-row.total .label {
    font-weight: 600;
    color: #1A1A1A;
}

.cart-total-row.total .value {
    color: #006FFF;
    font-weight: 700;
}

/* Checkout Button */
.checkout-button {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: #006FFF;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.checkout-button:hover {
    background: #0059CC;
    color: #fff !important;
}

/* Continue Shopping */
.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #666;
    font-size: 0.875rem;
    text-decoration: none;
}

.continue-shopping:hover {
    color: #006FFF;
}

/* Hidden elements */
.cart-items-section button[name="update_cart"] {
    display: none !important;
}

/* Override WooCommerce notices */
.woocommerce-cart .woocommerce-notices-wrapper {
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 24px;
}

.woocommerce-message {
    background: #E6F4EA;
    border: none;
    border-left: 4px solid #34A853;
    padding: 16px 20px;
    border-radius: 8px;
    color: #1A1A1A;
    margin: 0;
}

.woocommerce-message::before {
    display: none;
}

.woocommerce-message a.button {
    background: #006FFF;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    margin-right: 12px;
}

.woocommerce-message a.button:hover {
    background: #0059CC;
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cart-summary-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .cart-page {
        padding: 24px 0 48px;
    }

    .cart-page .container {
        padding: 0 16px;
    }

    .cart-item {
        flex-wrap: wrap;
        padding: 16px;
        position: relative;
    }

    .cart-item-image {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }

    .cart-item-details {
        flex: 1;
        min-width: calc(100% - 90px);
    }

    .cart-item-price {
        width: 100%;
        text-align: left;
        padding: 12px 0 0 0;
        margin-top: 12px;
        border-top: 1px solid #F0F0F0;
    }

    .cart-item-remove {
        position: absolute;
        top: 12px;
        right: 12px;
    }

    .cart-summary-card {
        padding: 20px;
    }
}

/* === Empty Cart === */
/* === Empty Cart - UI.com Style === */
.empty-cart-page {
    padding: 64px 24px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.empty-cart-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: #F5F5F5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-cart-icon svg {
    width: 64px;
    height: 64px;
    color: #999;
}

.empty-cart-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.empty-cart-page p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 32px;
}

.empty-cart-page .return-to-shop a,
.empty-cart-page .btn-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: #006FFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.empty-cart-page .return-to-shop a:hover,
.empty-cart-page .btn-shop:hover {
    background: #0059CC;
}

/* Hide default WooCommerce empty cart notice */
.woocommerce-info.cart-empty {
    display: none;
}

/* === Checkout Page === */
/* === Checkout Page - UI.com Style v2 === */
.checkout-page {
    padding: 0 0 64px;
    background: #fff;
    min-height: calc(100vh - 200px);
}

.checkout-page .container {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Back Link */
.checkout-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4D4D4D;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 24px 0;
    transition: color 0.15s ease;
}

.checkout-back-link:hover {
    color: #006FFF;
}

.checkout-back-link svg {
    width: 16px;
    height: 16px;
}

/* Header */
.checkout-header {
    margin-bottom: 24px;
}

.checkout-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 24px 0;
}

/* Account Section */
.account-section {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.account-section-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.account-icon {
    width: 24px;
    height: 24px;
    color: #006FFF;
    flex-shrink: 0;
    margin-top: 2px;
}

.account-text {
    flex: 1;
}

.account-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #4D4D4D;
    line-height: 1.4;
}

.account-links {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.account-links a {
    color: #006FFF;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.account-links a:hover {
    text-decoration: underline;
}

/* Guest Checkout Header */
.guest-checkout-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #E6E6E6;
}

/* Section Title */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 32px 0 16px 0;
}

/* Address Type Toggle */
.address-type-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.address-type-btn {
    padding: 10px 20px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4D4D4D;
    cursor: pointer;
    transition: all 0.15s ease;
}

.address-type-btn:hover {
    border-color: #006FFF;
}

.address-type-btn.active {
    background: #F0F7FF;
    border-color: #006FFF;
    color: #006FFF;
}

/* Form Fields */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.form-row-first,
.form-row-last {
    width: 100% !important;
}

@media (min-width: 480px) {
    .form-row-first,
    .form-row-last {
        width: calc(50% - 8px) !important;
    }
    
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .form-row-wide {
        width: 100% !important;
    }
}

.form-row label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4D4D4D;
    margin-bottom: 6px;
}

.form-row label .required {
    color: #FF3D00;
}

.form-row label .optional {
    color: #999;
    font-weight: 400;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="password"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E6E6E6;
    border-radius: 10px;
    font-size: 1rem;
    color: #1A1A1A;
    background: #fff;
    transition: all 0.15s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #006FFF;
    box-shadow: 0 0 0 3px rgba(0,111,255,0.1);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #999;
}

.form-row select {
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><path d="m6 9 6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-row textarea {
    min-height: 80px;
    resize: vertical;
}

/* Checkbox */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #006FFF;
}

/* Shipping Checkbox */
.shipping-different-address {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    font-size: 0.9375rem;
    cursor: pointer;
}

/* Shipping Methods */
#shipping_method {
    list-style: none;
    padding: 0;
    margin: 0;
}

#shipping_method li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #E6E6E6;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

#shipping_method li:hover {
    border-color: #006FFF;
}

#shipping_method li:last-child {
    margin-bottom: 0;
}

#shipping_method input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #006FFF;
}

#shipping_method label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.9375rem;
}

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

.wc_payment_method {
    border: 1px solid #E6E6E6;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.wc_payment_method:last-child {
    margin-bottom: 0;
}

.wc_payment_method > label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wc_payment_method > label:hover {
    background: #F5F5F5;
}

.wc_payment_method input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #006FFF;
}

.payment_box {
    padding: 16px;
    background: #F9FAFB;
    border-top: 1px solid #E6E6E6;
    font-size: 0.875rem;
    color: #666;
}

/* Order Details Section */
.order-details-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E6E6E6;
}

.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.order-details-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
}

.edit-cart-link {
    color: #006FFF;
    font-size: 0.875rem;
    text-decoration: none;
}

.edit-cart-link:hover {
    text-decoration: underline;
}

.items-count {
    font-size: 0.8125rem;
    color: #808080;
    margin-bottom: 12px;
}

/* Order Items */
.order-items-list {
    margin-bottom: 16px;
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #E6E6E6;
}

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

.order-item-image {
    width: 56px;
    height: 56px;
    background: #F5F5F5;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-item-details {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.order-item-meta {
    font-size: 0.75rem;
    color: #808080;
}

.order-item-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A1A1A;
    white-space: nowrap;
}

/* Collapsible Order Details */
.order-details-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px solid #E6E6E6;
}

.order-details-toggle h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-details-toggle .toggle-icon {
    transition: transform 0.2s ease;
}

.order-details-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.order-details-content {
    display: none;
    padding-top: 16px;
}

.order-details-content.expanded {
    display: block;
}

/* Order Totals */
.order-totals-section {
    padding: 16px 0;
    border-top: 1px solid #E6E6E6;
    margin-top: 16px;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9375rem;
}

.order-total-row.shipping {
    color: #666;
}

.order-total-row.total {
    font-size: 1.125rem;
    font-weight: 600;
}

.order-total-row .label {
    color: #4D4D4D;
}

.order-total-row .value {
    color: #1A1A1A;
    font-weight: 500;
}

.order-total-row.total .value {
    color: #006FFF;
}

/* Place Order Button */
#place_order {
    width: 100%;
    padding: 16px 24px;
    background: #006FFF;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 16px;
}

#place_order:hover {
    background: #0059CC;
}

#place_order:disabled {
    background: #CCC;
    cursor: not-allowed;
}

/* Gift Code Link */
.gift-code-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #006FFF;
    font-size: 0.875rem;
    text-decoration: none;
}

.gift-code-link:hover {
    text-decoration: underline;
}

/* Terms */
.woocommerce-terms-and-conditions-wrapper {
    margin-top: 16px;
    text-align: center;
    font-size: 0.75rem;
    color: #808080;
    line-height: 1.5;
}

.woocommerce-terms-and-conditions-wrapper a {
    color: #006FFF;
    text-decoration: none;
}

.woocommerce-terms-and-conditions-wrapper a:hover {
    text-decoration: underline;
}

/* Hide default WooCommerce elements */
.woocommerce-checkout h3#ship-to-different-address {
    display: none;
}

#ship-to-different-address-checkbox {
    display: none;
}

/* Validation */
.woocommerce-invalid input,
.woocommerce-invalid select {
    border-color: #FF3D00 !important;
}

.woocommerce-validated input,
.woocommerce-validated select {
    border-color: #00C853 !important;
}

/* Notices */
.woocommerce-NoticeGroup {
    margin-bottom: 24px;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 16px;
    list-style: none;
}

.woocommerce-error {
    background: #FFF5F5;
    border: 1px solid #FFD7D7;
    color: #FF3D00;
}

.woocommerce-message {
    background: #F0FFF4;
    border: 1px solid #C6F6D5;
    color: #00C853;
}

.woocommerce-info {
    background: #EBF8FF;
    border: 1px solid #BEE3F8;
    color: #006FFF;
}

/* Responsive */
@media (max-width: 640px) {
    .checkout-page .container {
        padding: 0 16px;
    }
    
    .checkout-header h1 {
        font-size: 1.5rem;
    }
    
    .account-section {
        padding: 16px;
    }
    
    .address-type-toggle {
        flex-direction: column;
    }
    
    .address-type-btn {
        text-align: center;
    }
}

/* === My Account === */
/* === My Account Page - UI.com Style === */
.account-page {
    padding: 32px 0 64px;
    background: #F9FAFB;
    min-height: calc(100vh - 200px);
}

.account-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.account-header {
    margin-bottom: 32px;
}

.account-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 8px 0;
}

.account-welcome {
    font-size: 1rem;
    color: #666;
}

/* Account Layout */
.account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

/* Navigation */
.account-navigation {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.account-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-navigation li {
    border-bottom: 1px solid #E6E6E6;
}

.account-navigation li:last-child {
    border-bottom: none;
}

.account-navigation li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #4D4D4D;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
}

.account-navigation li a:hover {
    background: #F5F5F5;
    color: #1A1A1A;
}

.account-navigation li.is-active a {
    background: #E8F1FF;
    color: #006FFF;
    font-weight: 500;
}

.account-navigation li a svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.account-navigation li.is-active a svg {
    opacity: 1;
}

/* Content Area */
.account-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    min-height: 400px;
}

.account-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #E6E6E6;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.dashboard-card {
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
    text-align: center;
}

.dashboard-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: #E8F1FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card-icon svg {
    width: 24px;
    height: 24px;
    color: #006FFF;
}

.dashboard-card-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.dashboard-card-label {
    font-size: 0.8125rem;
    color: #808080;
}

/* Orders Table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #E6E6E6;
}

.orders-table td {
    padding: 16px;
    font-size: 0.9375rem;
    border-bottom: 1px solid #E6E6E6;
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.order-number {
    font-weight: 600;
    color: #006FFF;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.order-status.processing {
    background: #FEF3C7;
    color: #D97706;
}

.order-status.completed {
    background: #D1FAE5;
    color: #059669;
}

.order-status.pending {
    background: #E5E7EB;
    color: #6B7280;
}

.order-status.cancelled {
    background: #FEE2E2;
    color: #DC2626;
}

.order-actions a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #F5F5F5;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #4D4D4D;
    text-decoration: none;
    transition: all 0.15s ease;
}

.order-actions a:hover {
    background: #E6E6E6;
    color: #1A1A1A;
}

/* Address Cards */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.address-card {
    padding: 24px;
    background: #F9FAFB;
    border-radius: 12px;
}

.address-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 16px 0;
}

.address-card address {
    font-style: normal;
    font-size: 0.9375rem;
    color: #4D4D4D;
    line-height: 1.6;
}

.address-card .edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: #006FFF;
    font-size: 0.875rem;
    text-decoration: none;
}

.address-card .edit-link:hover {
    text-decoration: underline;
}

/* Form Styles */
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
    max-width: 500px;
}

.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
    margin-bottom: 20px;
}

.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4D4D4D;
    margin-bottom: 6px;
}

.woocommerce-EditAccountForm input,
.woocommerce-EditAccountForm select,
.woocommerce-address-fields input,
.woocommerce-address-fields select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus,
.woocommerce-EditAccountForm select:focus,
.woocommerce-address-fields select:focus {
    outline: none;
    border-color: #006FFF;
    box-shadow: 0 0 0 3px rgba(0,111,255,0.1);
}

.woocommerce-EditAccountForm button,
.woocommerce-address-fields button {
    padding: 12px 24px;
    background: #006FFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.woocommerce-EditAccountForm button:hover,
.woocommerce-address-fields button:hover {
    background: #0059CC;
}

/* Empty State */
.no-orders {
    text-align: center;
    padding: 48px 24px;
}

.no-orders-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: #F5F5F5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-orders-icon svg {
    width: 32px;
    height: 32px;
    color: #999;
}

.no-orders p {
    color: #666;
    margin-bottom: 20px;
}

.no-orders .btn-shop {
    display: inline-block;
    padding: 12px 24px;
    background: #006FFF;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
}

/* Login Form */
.woocommerce-form-login,
.woocommerce-form-register {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.woocommerce-form-login h2,
.woocommerce-form-register h2 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}

.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
    margin-bottom: 16px;
}

.woocommerce-form-login label,
.woocommerce-form-register label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4D4D4D;
    margin-bottom: 6px;
}

.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="email"],
.woocommerce-form-register input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.woocommerce-form-login button,
.woocommerce-form-register button {
    width: 100%;
    padding: 14px;
    background: #006FFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.woocommerce-form-login button:hover,
.woocommerce-form-register button:hover {
    background: #0059CC;
}

.woocommerce-LostPassword {
    text-align: center;
    margin-top: 16px;
}

.woocommerce-LostPassword a {
    color: #006FFF;
    font-size: 0.875rem;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-navigation ul {
        display: flex;
        overflow-x: auto;
        padding: 8px;
        gap: 4px;
    }

    .account-navigation li {
        border-bottom: none;
    }

    .account-navigation li a {
        padding: 10px 16px;
        white-space: nowrap;
        border-radius: 8px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .addresses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .orders-table {
        display: block;
        overflow-x: auto;
    }
}

/* === Login Form === */
.login-page {
    padding: 64px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.login-page h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 40px;
}

.login-forms-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.login-forms-wrapper > div {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.login-forms-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 24px 0;
}

.login-forms-wrapper .form-row {
    margin-bottom: 20px;
}

.login-forms-wrapper label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4D4D4D;
    margin-bottom: 6px;
}

.login-forms-wrapper label .required {
    color: #FF3D00;
}

.login-forms-wrapper input[type="text"],
.login-forms-wrapper input[type="email"],
.login-forms-wrapper input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.15s ease;
}

.login-forms-wrapper input:focus {
    outline: none;
    border-color: #006FFF;
    box-shadow: 0 0 0 3px rgba(0,111,255,0.1);
}

.login-forms-wrapper .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #666;
}

.login-forms-wrapper .woocommerce-form-login__rememberme input {
    width: 18px;
    height: 18px;
    accent-color: #006FFF;
}

.login-forms-wrapper button[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: #006FFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 8px;
}

.login-forms-wrapper button[type="submit"]:hover {
    background: #0059CC;
}

.login-forms-wrapper .woocommerce-LostPassword {
    margin-top: 16px;
    text-align: center;
}

.login-forms-wrapper .woocommerce-LostPassword a {
    color: #006FFF;
    font-size: 0.875rem;
    text-decoration: none;
}

.login-forms-wrapper .woocommerce-LostPassword a:hover {
    text-decoration: underline;
}

.register-benefits {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E6E6E6;
}

.register-benefits h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.register-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.register-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: #4D4D4D;
}

.register-benefits li svg {
    width: 16px;
    height: 16px;
    color: #00C853;
}

@media (max-width: 768px) {
    .login-forms-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* === Related Products === */
.related.products {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E6E6E6;
}

.related.products > h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 20px 0;
}

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

.related-product-card {
    background: #F6F6F8;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.related-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.related-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 16px;
}

.related-card-image img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.related-card-content {
    background: #fff;
    padding: 12px 14px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.related-card-title {
    flex: 1;
    min-width: 100%;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1A1A1A;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.related-card-title a {
    color: inherit;
    text-decoration: none;
}

.related-card-title a:hover {
    color: #006FFF;
}

.related-card-price {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1A1A1A;
}

.related-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #006FFF;
    color: #fff;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.related-card-btn:hover {
    background: #0059CC;
}

@media (max-width: 1024px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .related-card-image img {
        max-height: 100px;
    }
}

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

    .related-card-content {
        padding: 10px 12px;
    }

    .related-card-title {
        font-size: 0.75rem;
    }

    .related-card-price {
        font-size: 0.8125rem;
    }

    .related-card-btn {
        width: 32px;
        height: 32px;
    }
}

/* === Password Input with Show/Hide Button === */
.login-forms-wrapper .password-input,
.woocommerce-form .password-input {
    position: relative;
    display: block;
}

.login-forms-wrapper .password-input input,
.woocommerce-form .password-input input {
    width: 100%;
    padding-right: 48px;
}

.login-forms-wrapper .show-password-input,
.woocommerce-form .show-password-input {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-forms-wrapper .show-password-input:hover,
.woocommerce-form .show-password-input:hover {
    opacity: 1;
    background: transparent;
}

.login-forms-wrapper .show-password-input::after,
.woocommerce-form .show-password-input::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg fill=none viewBox=0 0 24 24 stroke=%234D4D4D stroke-width=2%3E%3Cpath stroke-linecap=round stroke-linejoin=round d=M15 12a3 3 0 11-6 0 3 3 0 016 0z/%3E%3Cpath stroke-linecap=round stroke-linejoin=round d=M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z/%3E%3C/svg%3E);
    background-size: contain;
    background-repeat: no-repeat;
}

.login-forms-wrapper .show-password-input.display-password::after,
.woocommerce-form .show-password-input.display-password::after {
    background-image: url(data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg fill=none viewBox=0 0 24 24 stroke=%234D4D4D stroke-width=2%3E%3Cpath stroke-linecap=round stroke-linejoin=round d=M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21/%3E%3C/svg%3E);
}

/* === Fix Password Show Button (High Specificity) === */
.woocommerce-form .form-row .password-input {
    position: relative !important;
    display: block !important;
}

.woocommerce-form .form-row .password-input input[type="password"],
.woocommerce-form .form-row .password-input input[type="text"] {
    width: 100% !important;
    padding-right: 48px !important;
}

.woocommerce form .form-row button.show-password-input,
.woocommerce-form .form-row button.show-password-input,
button.show-password-input {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 4px !important;
    margin: 0 !important;
    cursor: pointer !important;
    opacity: 0.5 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: unset !important;
    min-height: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.woocommerce form .form-row button.show-password-input:hover,
.woocommerce-form .form-row button.show-password-input:hover,
button.show-password-input:hover {
    opacity: 1 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.woocommerce form .form-row button.show-password-input::after,
.woocommerce-form .form-row button.show-password-input::after,
button.show-password-input::after {
    content: '' !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234D4D4D' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}
