/*
 * ShapeDiver Cart Premium Styling
 * Modern & Stylish Corporate Design
 */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --dark-gradient: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --premium-purple: #667eea;
    --premium-pink: #f093fb;
    --premium-blue: #4facfe;
    --premium-dark: #1a202c;
    --premium-light: #f7fafc;
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.15);
    --border-premium: rgba(102, 126, 234, 0.1);
    --text-premium: #2d3748;
    --text-light: #718096;
}

/* Main Cart Container */
.cart-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
     position: relative;
}
.cart-product-info {
    padding: 0 !important;
}
.cart-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23667eea" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23f093fb" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

/* ShapeDiver Warehouse Details Container */
.shapediver-warehouse-details {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-premium);
    border-radius: 20px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shapediver-warehouse-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 1;
}

.shapediver-warehouse-details:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Product Header Section */
.warehouse-product-header {
    display: flex;
    align-items: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-bottom: 1px solid var(--border-premium);
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Remove Button Section */
.product-remove-section {
    flex: 0 0 auto;
}

.product-remove-section .remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    color: #e53e3e;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border:2px solid #e53e3e;
}

.product-remove-section .remove::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.product-remove-section .remove:hover {
    color: #ffffff;
    transform: scale(1.1) rotate(90deg);
    border-color: #e53e3e;
}

.product-remove-section .remove:hover::before {
    opacity: 1;
}

/* Product Image Section */
.product-image-section {
    flex: 0 0 auto;
}

.product-image-section img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--accent-gradient) border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px rgba(79, 172, 254, 0.2);
}

.product-image-section img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 12px 24px rgba(79, 172, 254, 0.3);
}

/* Product Action Section (3D Button) */
.product-action-section {
    flex: 0 0 auto;
}

.shapediver-view-3d-btn {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.shapediver-view-3d-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.shapediver-view-3d-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.shapediver-view-3d-btn:hover::before {
    left: 100%;
}

.shapediver-view-3d-btn:active {
    transform: translateY(-1px);
}

/* Product Info Section */
.product-info-section {
    flex: 1 1 auto;
    min-width: 250px;
}

 

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-title a:hover {
    filter: brightness(1.2);
}

.product-configuration-id {
    font-size: 14px;
    color: var(--text-light);
    display: block;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.config-label {
    font-weight: 700;
    color: var(--text-premium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.config-value {
    font-family: 'Courier New', monospace;
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 8px rgba(79, 172, 254, 0.2);
}

/* Items Grid */
.shapediver-items-grid {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

/* Grid Header */
.items-grid-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 80px 100px 100px;
    background: var(--dark-gradient);
    border-bottom: 2px solid var(--premium-purple);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
 }

.items-grid-header .grid-col {
    padding: 20px 14px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    text-align: left !important;
    justify-content: start !important;
}
.woocommerce-cart .shapediver-view-3d-btn { 
    font-weight: 400 !important;
}
.grid-row .grid-col {
    justify-content: start !important;
    text-align: left !important;
}

.items-grid-header .grid-col:first-child {
    padding-left: 14px !important;
}
.items-grid-header .grid-col:last-child {
    border-right: none;
}

.items-grid-header .grid-col::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 28px;
    transform: translateX(-14px);
    width: 30px;
    height: 2px;
    background: var(--wd-primary-color, #16a085) !important;
    border-radius: 2px;
}

/* Grid Body */
.items-grid-body {
    background: rgba(255, 255, 255, 0.6);
}

.grid-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 80px 100px 100px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.grid-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.5s ease;
}

.grid-row:hover {
    background: rgba(102, 126, 234, 0.02);
    transform: translateX(5px);
}

.grid-row:hover::before {
    left: 100%;
}

.grid-row:last-child {
    border-bottom: none;
}

.grid-col {
    padding: 20px 14px !important;
    border-right: 1px solid rgba(102, 126, 234, 0.05);
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-premium);
    font-weight: 500;
    position: relative;
}

.grid-col:last-child {
    border-right: none;
    justify-content: flex-end;
    font-weight: 800;
    color: var(--premium-purple);
    font-size: 16px;
 }

/* Service Row Styling */
.service-row {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.05) 0%, rgba(245, 87, 108, 0.05) 100%);
    border-left: 3px solid var(--premium-purple);
}

.service-name {
    color: var(--premium-pink);
    font-style: italic;
 }
.product-info-section .product-title a:hover {
    color: var(--wd-primary-color, #16a085) !important;
    filter: none;
}
.product-info-section .product-title a {
    color: var(--wd-primary-color, #16a085) !important;
    filter: none;
}
/* Pricing Summary */
.shapediver-pricing-summary {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    border-top: 3px solid var(--success-gradient);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.shapediver-pricing-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67, 233, 123, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.pricing-table {
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    border-collapse: collapse;
    position: relative;
    z-index: 2;
}

.pricing-table tr {
    border-bottom: 1px solid rgba(67, 233, 123, 0.2);
    transition: all 0.3s ease;
}

.pricing-table tr:hover {
    background: rgba(67, 233, 123, 0.05);
    transform: translateX(3px);
}

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

.pricing-table td {
    padding: 16px 0;
    font-size: 15px;
}

.pricing-table .label {
    color: var(--text-premium);
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.pricing-table .value {
    color: var(--premium-dark);
    font-weight: 700;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 16px;
 }

.pricing-table .grand-total {
    border-top: 3px solid var(--success-gradient);
    margin-top: 12px;
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
    border-radius: 8px;
    padding: 8px 0;
}

.pricing-table .grand-total .label,
.pricing-table .grand-total .value {
    color: var(--premium-dark);
    font-size: 20px;
    font-weight: 900;
 }

/* Cart Actions */
.shapediver-cart-actions {
    text-align: right;
    margin-top: 40px;
    padding: 0 32px 40px;
    position: relative;
    z-index: 2;
}

.shapediver-checkout-button {
    display: inline-block;
    background: var(--success-gradient);
    color: #ffffff;
    padding: 20px 40px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(67, 233, 123, 0.4);
 }

.shapediver-checkout-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.shapediver-checkout-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.shapediver-checkout-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(67, 233, 123, 0.5);
}

.shapediver-checkout-button:hover::before {
    left: 100%;
}

.shapediver-checkout-button:hover::after {
    width: 300px;
    height: 300px;
}

.shapediver-checkout-button:active {
    transform: translateY(-2px) scale(1.01);
}

/* Modal Styling */
.shapediver-image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(48, 12, 103, 0.95) 100%);
    backdrop-filter: blur(20px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.shapediver-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--premium-purple);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.shapediver-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #ffffff;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--secondary-gradient);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.3);
}

.shapediver-modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(240, 147, 251, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .items-grid-header,
    .grid-row {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 80px 100px 100px;
    }
    
    .items-grid-header .grid-col:nth-child(3),
    .grid-row .grid-col:nth-child(3) {
        display: none;
    }
}

@media (max-width: 768px) {
    .cart-content-wrapper {
        padding: 20px 15px;
    }
    
    .warehouse-product-header {
        padding: 20px;
        gap: 16px;
    }
    
    .product-image-section img {
        width: 60px;
        height: 60px;
    }
    
    .shapediver-view-3d-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .items-grid-header {
        display: none;
    }
    
    .grid-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .grid-col {
        border: none;
        padding: 4px 0;
        justify-content: space-between;
    }
    
    .grid-col::before {
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
        margin-right: 8px;
    }
    
    .shapediver-pricing-summary {
        padding: 20px;
    }
    
    .pricing-table {
        max-width: 100%;
    }
    
    .shapediver-cart-actions {
        padding: 0 20px 20px;
        text-align: center;
    }
    
    .shapediver-checkout-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .warehouse-product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .product-info-section {
        width: 100%;
    }
    
    .product-action-section {
        width: 100%;
    }
    
    .shapediver-view-3d-btn {
        width: 100%;
    }
}

/* Animation and Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.shapediver-warehouse-details {
    animation: fadeInUp 0.6s ease-out;
}

.warehouse-product-header {
    animation: slideInLeft 0.8s ease-out;
}

.shapediver-view-3d-btn {
    animation: pulse 2s ease-in-out infinite;
}

.shapediver-view-3d-btn:hover {
    animation: none;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Print Styles */
@media print {
    .cart-content-wrapper {
        padding: 0;
        background: #ffffff;
    }
    
    .cart-content-wrapper::before {
        display: none;
    }
    
    .shapediver-warehouse-details {
        border: 2px solid #000;
        border-radius: 0;
        box-shadow: none;
        page-break-inside: avoid;
        background: #ffffff;
    }
    
    .shapediver-warehouse-details::before {
        display: none;
    }
    
    .product-remove-section,
    .product-action-section,
    .shapediver-cart-actions {
        display: none;
    }
    
    .warehouse-product-header {
        background: #ffffff;
        border-bottom: 2px solid #000;
    }
    
    .items-grid-header {
        background: #f0f0f0;
        color: #000;
        text-shadow: none;
    }
    
    .shapediver-pricing-summary {
        background: #f9f9f9;
        border-top: 2px solid #000;
    }
    
    .shapediver-pricing-summary::before {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cart-content-wrapper {
     }
    
    .shapediver-warehouse-details {
        background: rgba(45, 55, 72, 0.95);
        border-color: rgba(102, 126, 234, 0.2);
    }
    
    .warehouse-product-header {
        background: linear-gradient(135deg, rgba(45, 55, 72, 0.9) 0%, rgba(26, 32, 44, 0.9) 100%);
    }
    
    .product-title {
       
    }
    
    .items-grid-body {
        background: rgba(26, 32, 44, 0.6);
    }
    
    .grid-col {
        color: #e2e8f0;
    }
    
    .pricing-table .label {
        color: #e2e8f0;
    }
    
    .pricing-table .value {
        color: #ffffff;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .shapediver-warehouse-details {
        border: 3px solid #000;
    }
    
    .shapediver-view-3d-btn {
        border: 2px solid #000;
    }
    
    .shapediver-checkout-button {
        border: 2px solid #000;
    }
    
    .grid-row {
        border-bottom: 2px solid #000;
    }
}


.woocommerce-checkout .wc-block-components-formatted-money-amount {
display: none !important;
}