:root {
    --rev-primary: #01cbca;
    --rev-secondary: #c3dd56;
    --rev-accent: #fab400;
    --rev-highlight: #e67309;
    --rev-dark: #1a1a1a;
    --rev-light: #ffffff;
    --rev-gradient: linear-gradient(135deg, var(--rev-primary), var(--rev-secondary));
    --rev-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --rev-radius: 16px;
}

/* My Account Dashboard Revolution */
.wc-revolution-dashboard {
    font-family: 'Inter', sans-serif;
    color: var(--rev-dark);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wc-rev-welcome-hero {
    background: var(--rev-gradient);
    border-radius: var(--rev-radius);
    padding: 60px 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--rev-shadow);
}

.wc-rev-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.wc-rev-avatar {
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    width: 100px !important;
    height: 100px !important;
}

.wc-rev-avatar-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.wc-rev-welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wc-rev-welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 10px;
}

/* Stats Grid */
.wc-rev-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.wc-rev-stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--rev-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--rev-shadow);
    transition: transform 0.3s ease;
}

.wc-rev-stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    background: rgba(1, 203, 202, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rev-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Quick Actions */
.wc-rev-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wc-rev-action-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: var(--rev-radius);
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.wc-rev-action-card:hover {
    background: white;
    border-color: var(--rev-primary);
    box-shadow: var(--rev-shadow);
}

.action-icon {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.action-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.action-desc {
    font-size: 0.9rem;
    color: #666;
}

/* Downloads Section */
.wc-rev-download-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.download-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.download-info {
    flex-grow: 1;
}

.download-name {
    display: block;
    font-weight: 700;
}

.download-remaining {
    font-size: 0.8rem;
    color: #888;
}

.wc-rev-download-btn {
    background: var(--rev-primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.wc-rev-download-btn:hover {
    background: var(--rev-secondary);
}

.wc-rev-view-all {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--rev-primary);
    font-weight: 700;
    text-decoration: none;
}

/* Image Quality and Aspect Ratio Fixes */
.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img,
.woocommerce div.product div.images .flex-control-thumbs li img {
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    image-rendering: -webkit-optimize-contrast;
    box-shadow: var(--rev-shadow);
    border-radius: var(--rev-radius);
}



/* Single Product Gallery Fixes */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    aspect-ratio: 4 / 3;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
    aspect-ratio: 4 / 3;
}

/* Shop Grid Revolution */
.wc-revolution-shop ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    padding: 20px 0;
}

.wc-revolution-shop ul.products::before,
.wc-revolution-shop ul.products::after {
    display: none !important;
}

.wc-revolution-shop ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: white;
    border-radius: var(--rev-radius);
    overflow: hidden;
    box-shadow: var(--rev-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wc-revolution-shop ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.wc-revolution-shop ul.products li.product .woocommerce-loop-product__title {
    padding: 15px 15px 5px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rev-dark);
}

.wc-revolution-shop ul.products li.product .price {
    padding: 0 15px 15px;
    color: var(--rev-primary);
    font-weight: 600;
}

.wc-revolution-shop ul.products li.product .button {
    margin: 15px;
    border-radius: 30px;
    background: var(--rev-primary);
    color: white;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.wc-revolution-shop ul.products li.product .button:hover {
    background: var(--rev-secondary);
}

/* Single Product Revolution - Centered and Refined */
.wc-revolution-single .product {
    max-width: 900px;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 60px 20px;
    text-align: center;
}

.wc-revolution-single div.product div.images {
    width: 100% !important;
    max-width: 800px;
    margin: 0 auto 30px !important;
    float: none !important;
}

.wc-revolution-single div.product div.summary {
    width: 100% !important;
    max-width: 700px;
    margin: 0 auto !important;
    float: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wc-revolution-single .product_title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--rev-dark);
    line-height: 1.2;
}

.wc-revolution-single .price {
    font-size: 2rem;
    color: var(--rev-primary);
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
}

.wc-revolution-single .woocommerce-product-details__short-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
    text-align: center;
}

.wc-revolution-single .single_add_to_cart_button {
    background: var(--rev-gradient) !important;
    border-radius: 50px !important;
    padding: 18px 60px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    box-shadow: 0 15px 30px rgba(1, 203, 202, 0.3) !important;
    border: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer;
}

.wc-revolution-single .single_add_to_cart_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(1, 203, 202, 0.4) !important;
}

/* Tabs and extra info centered */
.wc-revolution-single .woocommerce-tabs,
.wc-revolution-single .related.products {
    width: 100%;
    margin-top: 60px;
    text-align: left;
    /* Keep descriptions readable but centered in container */
}

.wc-revolution-single .woocommerce-Tabs-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #fdfdfd;
    border-radius: var(--rev-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.woocommerce-product-attributes-item__label {
    width: 150px;
}