/**
 * WooCommerce Size Guide Frontend Styles
 */

/* Size Guide Link */
.wc-size-guide-link-container {
    margin-top: 10px;
}

.wc-size-guide-link {
    font-size: 14px;
    text-decoration: none;
    color: #515151;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.wc-size-guide-link:hover {
    color: #000;
    text-decoration: underline;
}

/* Size Guide Sidebar */
.wc-size-guide-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: #fff;
    z-index: 999999;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    overflow: hidden;
}

.wc-size-guide-sidebar.open {
    right: 0;
}

.wc-size-guide-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wc-size-guide-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.wc-size-guide-sidebar-header h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
}

.wc-size-guide-close {
    font-size: 24px;
    line-height: 1;
    color: #333;
    text-decoration: none;
}

.wc-size-guide-close:hover {
    color: #000;
}

.wc-size-guide-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.wc-size-guide-section {
    margin-bottom: 30px;
}

.wc-size-guide-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.4;
}

/* Size Guide Tabs */
.wc-size-guide-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 8px;
}

.wc-size-guide-tab {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    color: #fff;
    background-color: #000;
    text-decoration: none;
    font-weight: 500;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.wc-size-guide-tab:hover {
    color: #fff;
    background: #333;
}

.wc-size-guide-tab.active {
    color: #000;
    background: #fff;
    border: 2px solid #000;
}

.wc-size-guide-tab-content {
    display: none;
}

.wc-size-guide-tab-content.active {
    display: block;
}

/* Measurements */
.wc-size-guide-measurements-list {
    margin-bottom: 20px;
}

.wc-size-guide-measurement-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wc-size-guide-measurement-item:last-child {
    border-bottom: none;
}

.wc-size-guide-measurement-name {
    font-weight: 500;
}

/* How to Measure */
.wc-size-guide-how-to-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

.wc-size-guide-how-to-description {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.wc-size-guide-image {
    margin: 15px 0;
    text-align: center;
}

.wc-size-guide-image img {
    max-width: 100%;
    height: auto;
}

/* Measurement Categories */
.wc-size-guide-measurement-category {
    margin-bottom: 20px;
}

.wc-size-guide-category-title {
    font-size: 15px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Steps */
.wc-size-guide-steps-list {
    margin: 15px 0;
    padding: 0;
    list-style: none;
}

.wc-size-guide-step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.wc-size-guide-step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

.wc-size-guide-step-text {
    flex: 1;
    line-height: 1.5;
    padding-top: 3px;
}

/* Overlay */
.wc-size-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999998;
    display: none;
}

.wc-size-guide-overlay.open {
    display: block;
}

/* Responsive */
@media screen and (max-width: 480px) {
    .wc-size-guide-sidebar {
        width: 100%;
        right: -100%;
    }
}