/* Custom Single Product Page Styles - EXACT MOCKUP REPLICATION */

/* Main Page Background - DARK THEME */
body.single-product {
    background-color: #070707;
    background-image:
        radial-gradient(at 0% 0%, rgba(112, 0, 226, 0.1) 0%, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 255, 252, 0.05) 0%, transparent 50%);
    color: #fff;
    font-family: 'SF Pro Display', 'SF Pro Custom', sans-serif;
    min-height: 100vh;
}

/* Container */
.ms-single-product-wrapper {
    max-width: 1300px;
    /* Optimized width */
    margin: 40px auto !important;
    padding: 0 40px;
}

.ms-breadcrumbs {
    margin: 10px 0 20px !important;
}

/* Product Card */
.ms-product-card {
    background: rgba(20, 20, 25, 0.85);
    /* Slightly more opaque */
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 35px;
    padding: 30px 40px 20px !important;
    /* Reduced bottom padding */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: visible;
    color: #fff;
    /* Allow things to pop out if needed */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Slightly clearer border */
    overflow: hidden !important;
}

.ms-product-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: radial-gradient(1000px circle at var(--x, 0) var(--y, 0),
            rgba(0, 255, 252, 0.1),
            transparent 40%) !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.ms-product-card:hover::before {
    opacity: 1 !important;
}

/* Title */
.ms-product-title-wrapper {
    text-align: center;
    margin-bottom: 25px;
    /* Push content down slightly like mockup */
}

.ms-product-title {
    font-size: 2rem;
    /* Exact match */
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Columns */
.ms-product-layout {
    display: flex;
    gap: 100px;
    /* Large gap */
    align-items: flex-start;
    justify-content: center;
    /* Center the whole block */
}

.ms-product-gallery {
    flex: 1;
    max-width: 550px;
    /* Limit image size naturally */
}

.ms-product-summary {
    flex: 1;
    max-width: 480px;
    /* Forced constraint to match text wrap */
    padding-top: 10px;
    min-width: 0;
    /* Ensure columns don't collapse */
}

/* Gallery Styles */
.woocommerce-product-gallery__image img {
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: auto;
}

.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap;
    /* Allow wrapping if needed, or nowrap */
    gap: 15px !important;
    margin-top: 20px !important;
    padding: 0 !important;
    list-style: none !important;
    justify-content: flex-start !important;
}

.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li {
    width: 25% !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    /* Remove default margin */
    border: none !important;
    list-style: none !important;
    /* Double safety */
}

.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li img {
    border-radius: 12px;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
    width: 100%;
    height: auto;
    display: block;
}

.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li img:hover {
    opacity: 1;
    border-color: #00FFFC;
    box-shadow: 0 0 15px rgba(0, 255, 252, 0.3);
}

/* Description Text */
.ms-product-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #ccc;
    font-weight: 400;
    margin-bottom: 50px;
    /* Increased spacing as requested */
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* Custom Price Block */
.ms-mockup-price {
    margin-bottom: 25px;
    text-align: left;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.ms-mp-main {
    font-size: 2.4rem;
    /* Precise */
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.ms-mp-sub {
    font-size: 1rem;
    color: #aaa;
    font-weight: 400;
    text-align: right;
    width: 100%;
    margin-top: 5px;
}

/* Finition Row */
.ms-variation-row {
    background: #fff;
    border-radius: 8px;
    /* Slightly less rounded */
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    /* Tighter padding */
    margin-bottom: 20px;
    /* increased spacing slightly */
    width: 100%;
    /* Ensure it fills the constrained column */
}

.ms-variation-row label {
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    text-transform: capitalize;
}

.ms-variation-row select {
    border: none;
    background: transparent;
    font-weight: 600;
    color: #000;
    text-align-last: right;
    font-size: 1rem;
    padding: 0;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

/* Breadcrumbs */
.ms-breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

.ms-breadcrumbs a {
    color: #fff;
    text-decoration: none;
    margin-right: 5px;
}

.ms-breadcrumbs a:hover {
    text-decoration: underline;
    color: #00FFFC;
}

.woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    color: #aaa;
}

/* Custom Quantity Row (+ 1 -) */
.ms-qty-row {
    background: #fff;
    border-radius: 25px;
    /* Fully rounded pill */
    height: 45px;
    /* Slightly shorter */
    width: 130px;
    /* Slightly uniform width */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    /* Remove padding */
    margin-bottom: 25px;
    overflow: hidden;
    /* Prevent scrollbars */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
    /* Ensure edge cleanliness */
}

.ms-qty-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    /* Smaller icons */
    font-weight: 700;
    color: #000;
    cursor: pointer;
    width: 40px;
    /* Larger click area */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Visual centering */
    outline: none;
    transition: background 0.2s;
}

.ms-qty-btn:hover {
    background: #f0f0f0;
}

.ms-qty-input {
    width: 50px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    /* Proper size */
    font-weight: 800 !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    line-height: 45px !important;
    /* Center vertically */
}

/* Hide Default "Additional Information" Heading - SUPER AGGRESSIVE */
/* Hide Default "Additional Information" Headings - NUCLEAR OPTION */
.woocommerce-Tabs-panel--additional_information h2,
#tab-additional_information h2,
.woocommerce-Tabs-panel h2,
.woocommerce-product-details__short-description+h2,
.ms-section-title__heading,
.woocommerce-Tabs-panel h3 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 0 !important;
}

/* Actions */
/* Actions - Premium Buttons */
.ms-actions-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.btn-custom-action {
    height: 55px;
    border-radius: 27px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    flex: 1;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-custom-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-custom-action:hover::before {
    left: 100%;
}

.btn-custom-action:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.btn-custom-action:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-bulk {
    background: linear-gradient(135deg, #7F00FF 0%, #3D00FA 100%);
    box-shadow: 0 5px 20px rgba(82, 0, 255, 0.4);
}

.btn-precut {
    background: linear-gradient(90deg, #00ced1, #008080);
    box-shadow: 0 5px 15px rgba(0, 206, 209, 0.3);
}


.ms-separator-or {
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
    padding: 0 5px;
}

/* Trust Badges - CRITICAL FIX */
.ms-trust-badges {
    margin-top: 30px;
    border-top: none;
    text-align: left;
    font-size: 0.7rem;
    color: #bbb;
    line-height: 1.4;
}

.ms-payment-icons {
    display: flex;
    justify-content: flex-start;
    /* Align left */
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.ms-payment-icons img,
.ms-payment-icons svg {
    height: 30px !important;
    /* Strict height constraint */
    width: auto !important;
    /* Preserve aspect ratio */
    max-width: 60px;
    /* Sanity check */
    background: #fff;
    /* White background for logos */
    border-radius: 4px;
    padding: 2px 4px;
    /* Tiny padding */
    object-fit: contain;
    /* Ensure image fits */
    display: block;
    /* Remove inline gaps */
}

/* Tabs Section - CRITICALLY FIXED */
.ms-single-bottom {
    margin-top: 50px !important;
}

.woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 0 30px !important;
    display: flex !important;
    flex-direction: row !important;
    /* Force Horizontal */
    justify-content: flex-start !important;
    list-style: none !important;
    /* Prevent bullets */
    gap: 40px !important;
    background: transparent !important;
    border: none !important;
}

.woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    /* Double safety */
    display: block !important;
}

.woocommerce-tabs ul.tabs li:before,
.woocommerce-tabs ul.tabs li:after {
    display: none !important;
    /* Hide any pseudo-elements that might look like bullets */
    content: none !important;
}

.woocommerce-tabs ul.tabs li a {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    padding-bottom: 10px !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s;
    text-decoration: none !important;
    display: block !important;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(0, 255, 252, 0.5);
}

.woocommerce-Tabs-panel {
    background: rgba(20, 20, 25, 0.85);
    /* Glassmorphism background */
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 35px;
    padding: 40px;
    /* Padding for the container */
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ddd;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Clean/Empty lines to replace old rule */

/* Custom Table Styling */
.woocommerce-product-attributes {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    /* For rounded corners */
    width: 100%;
    margin-top: 0;
    /* Remove top margin since heading is gone */
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: none;
    /* Shadow is now on the panel */
}

.woocommerce-product-attributes tr {
    border: none;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
    padding: 15px 20px;
    text-align: center;
    /* Center align as per mockup seems centered/balanced */
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* First Row - Purple Header */
.woocommerce-product-attributes tr:first-child th,
.woocommerce-product-attributes tr:first-child td {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.3rem;
    /* Larger header text */
    text-transform: capitalize;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

/* Remove bottom border from last row */
.woocommerce-product-attributes tr:last-child th,
.woocommerce-product-attributes tr:last-child td {
    border-bottom: none;
}

/* Column Widths */
.woocommerce-product-attributes th {
    width: 50%;
    /* Equal split looks like mockup */
    color: #ddd;
    font-weight: 400;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    /* Vertical divider */
}

.woocommerce-product-attributes td {
    width: 50%;
    color: #fff;
    font-weight: 600;
}

/* First row special styling overrides */
.woocommerce-product-attributes tr:first-child th {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    /* Lighter divider for header */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ms-product-card {
    animation: fadeInUp 0.8s ease-out forwards;
}

.ms-single-bottom {
    /* Animation removed to prevent gap during load */
}

.ms-product-gallery {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    /* Initial state for delay */
}

.ms-product-summary {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .ms-product-layout {
        flex-direction: column;
    }

    .ms-variation-row {
        flex-direction: row;
        /* Keep row on mobile for label-value */
    }

    .ms-actions-row {
        flex-direction: column;
    }

    .ms-separator-or {
        margin: 10px 0;
    }
}

/* =========================================
   SHOP & ARCHIVE PAGES - PREMIUM STYLING
   ========================================= */

/* Dark Theme for Shop/Archives */
body.post-type-archive-product,
body.tax-product_cat {
    background-color: #070707;
    background-image:
        radial-gradient(at 0% 0%, rgba(112, 0, 226, 0.15) 0%, transparent 40%),
        radial-gradient(at 90% 10%, rgba(0, 255, 252, 0.1) 0%, transparent 40%),
        radial-gradient(at 50% 100%, rgba(20, 20, 25, 1) 0%, transparent 60%);
    color: #fff;
    min-height: 100vh;
}

/* Page Title & Header */
.ms-sp--header {
    text-align: center;
    padding: 100px 0 60px;
    position: relative;
    z-index: 2;
}

.ms-sp--title {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;

    /* BRAND GRADIENT: Gris vers Violet */
    background: linear-gradient(90deg, #EBEBEB 0%, #7000E2 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;

    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    background-attachment: scroll !important;
    background-size: cover !important;
}

.woocommerce-products-header__term-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.5;
}

/* Grid Layout Adjustments */
.post-type-archive-product .container,
.tax-product_cat .container {
    max-width: 1440px;
}

.woocommerce-content-loop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 15px;
}

/* Sorting & Count */
.woocommerce-result-count {
    color: #666;
    font-size: 14px;
}

.woocommerce-ordering select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    outline: none;
}

/* --- PRODUCT CARD V4 OVERHAUL : PREMIUM GLASSMORPHISM --- */

article.ms-product-v4 {
    height: 100% !important;
    position: relative !important;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1) !important;
    z-index: 1 !important;
    list-style: none !important;
}

.ms-product-card-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%), rgba(10, 10, 15, 0.7) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    padding: 16px !important;
    text-decoration: none !important;
    color: inherit !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

/* 1. IMAGE AREA (Fixed Ratio) */
.ms-product-image-wrapper {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
}

.ms-product-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1) !important;
}

/* 2. DETAILS AREA */
.ms-product-details {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    position: relative !important;
    z-index: 2 !important;
}

.ms-product-category {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-bottom: 8px !important;
}

.ms-product-name {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #fff !important;
    margin: 0 0 12px 0 !important;
    transition: color 0.3s ease !important;
}

.ms-product-price-box {
    margin-top: auto !important;
    margin-bottom: 20px !important;
}

.ms-product-price-box .price {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    display: block !important;
}

/* 3. ACTION BAR (Fades in on hover) */
.ms-product-action-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    opacity: 0.5 !important;
    transition: all 0.3s ease !important;
}

.ms-action-text {
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.ms-action-icon {
    font-size: 18px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: transform 0.3s ease !important;
}

/* --- THE SHIMMER EFFECT --- */
.ms-card-shimmer {
    position: absolute !important;
    top: 0 !important;
    left: -150% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            transparent) !important;
    transform: skewX(-25deg) !important;
    transition: none !important;
    z-index: 1 !important;
}

/* --- HOVER STATES --- */
article.ms-product-v4:hover .ms-product-card-link {
    transform: translateY(-10px) !important;
    border-color: rgba(112, 0, 226, 0.4) !important;
    background: rgba(20, 20, 25, 0.85) !important;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(112, 0, 226, 0.2) !important;
}

article.ms-product-v4:hover .ms-product-image-wrapper img {
    transform: scale(1.08) !important;
}

article.ms-product-v4:hover .ms-product-name {
    color: #00FFFC !important;
}

article.ms-product-v4:hover .ms-product-action-bar {
    opacity: 1 !important;
    border-color: rgba(112, 0, 226, 0.2) !important;
}

article.ms-product-v4:hover .ms-action-icon {
    transform: translateX(5px) !important;
    color: #00FFFC !important;
}

article.ms-product-v4:hover .ms-action-text {
    color: #00FFFC !important;
}

article.ms-product-v4:hover .ms-card-shimmer {
    animation: masterShimmer 1.2s cubic-bezier(0.2, 1, 0.3, 1) !important;
}

@keyframes masterShimmer {
    0% {
        left: -150%;
    }

    100% {
        left: 200%;
    }
}

/* Sale Badge Fix */
.onsale {
    background: #00FFFC !important;
    color: #000 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 10px !important;
    padding: 5px 12px !important;
    border-radius: 30px !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 10 !important;
    box-shadow: 0 5px 15px rgba(0, 255, 252, 0.3) !important;
    line-height: normal !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

/* Breadcrumbs Polish */
.tax-product_cat .woocommerce-breadcrumb,
.post-type-archive-product .woocommerce-breadcrumb {
    margin: 20px 0 30px !important;
    font-size: 13px !important;
    color: #666 !important;
}

.woocommerce-breadcrumb a {
    color: #999 !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.woocommerce-breadcrumb a:hover {
    color: #00FFFC !important;
}

/* Pagination */
.woocommerce-pagination {
    margin: 60px 0 !important;
}

.woocommerce-pagination .page-numbers {
    border: none !important;
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
}

.woocommerce-pagination .page-numbers li {
    display: block !important;
}

.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px !important;
    height: 45px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.woocommerce-pagination .page-numbers li span.current,
.woocommerce-pagination .page-numbers li a:hover {
    background: #7000E2 !important;
    border-color: #7000E2 !important;
    box-shadow: 0 0 15px rgba(112, 0, 226, 0.4) !important;
    color: #fff !important;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .ms-sp--title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .ms-sp--title {
        font-size: 2.2rem;
    }

    .woocommerce-content-loop-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    article.ms-product-v4 {
        margin-bottom: 30px !important;
    }

    .ms-product-card-link {
        padding: 12px !important;
    }

    .ms-product-name {
        font-size: 1.1rem !important;
    }
}

/* --- PRE-CUT MODAL STYLES --- */
.ms-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ms-modal-container.active {
    display: flex;
}

.ms-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.ms-modal-content {
    position: relative;
    max-width: 600px;
    width: 100%;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 35px;
    padding: 50px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.ms-modal-container.active .ms-modal-content {
    transform: scale(1);
    opacity: 1;
}

.ms-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.ms-modal-close:hover {
    opacity: 1;
}

.ms-modal-header {
    text-align: center;
    margin-bottom: 35px;
}

.ms-modal-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff 0%, #00FFFC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ms-modal-header p {
    color: #999;
}

.ms-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}

.ms-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ms-form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7000E2;
}

.ms-form-group input,
.ms-form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 18px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ms-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
    cursor: pointer;
}

/* Style the options for browsers that support it */
.ms-form-group select option {
    background-color: #141419;
    color: #fff;
    padding: 10px;
}

.ms-form-group input:focus,
.ms-form-group select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00FFFC;
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 252, 0.1);
}

.ms-form-group input::placeholder {
    color: #444;
}

.ms-modal-footer {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .ms-modal-content {
        padding: 40px 25px;
    }

    .ms-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ms-modal-header h2 {
        font-size: 1.6rem;
    }
}