/* =========================================
   Global Resets & Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* --- Salla-Style Checkout Fields --- */

/* Fix Select Dropdown Styling to Match Inputs - MODERN LUXURY STYLE */
select.goha-select-field, 
.goha-select-field select,
.woocommerce-checkout select {
    width: 100%;
    padding: 0 20px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px;
    font-size: 1rem;
    /* Custom Chevron Arrow for Modern Look */
    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='%23333' 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: left 15px center; /* Arrow on left for RTL */
    background-size: 18px;
    background-color: #fdfdfd;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #333;
    font-weight: 600;
    height: 54px !important; /* Fixed Height */
    line-height: 54px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    cursor: pointer;
}

select.goha-select-field:focus,
.goha-select-field select:focus,
.woocommerce-checkout select:focus {
    background-color: #fff;
    border-color: var(--primary-color, #ea9527) !important;
    box-shadow: 0 8px 20px rgba(234, 149, 39, 0.15);
    transform: translateY(-2px);
    outline: none;
}

/* Fix Options Styling (Standard Select) */
select.goha-select-field option,
.goha-select-field select option {
    padding: 10px;
    background: #fff;
    color: #333;
}

/* --- Select2 Override (If WooCommerce forces JS dropdowns) --- */
.select2-container .select2-selection--single {
    height: 54px !important;
    border-radius: 12px !important;
    border: 1px solid #e0e0e0 !important;
    background-color: #fdfdfd !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 54px !important;
    padding-right: 20px !important; /* RTL Text */
    padding-left: 40px !important; /* Space for Arrow */
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

/* Hide Default Arrow & Add Custom One */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 54px !important;
    width: 40px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important; /* RTL Left */
    right: auto !important;
    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='%23333' 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: center;
    background-size: 18px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important; /* Hide default triangle */
}

/* Focus State for Select2 */
.select2-container--open .select2-selection--single {
    border-color: var(--primary-color, #ea9527) !important;
    box-shadow: 0 8px 20px rgba(234, 149, 39, 0.15);
    background-color: #fff !important;
}

/* Dropdown Menu (The List) */
.select2-dropdown {
    border: 1px solid #f0f0f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    margin-top: 5px !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

.select2-results__option {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    color: #555 !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #f9f9f9;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-color, #ea9527) !important;
    color: #fff !important;
}

.select2-results__option[aria-selected="true"] {
    background-color: #f0f0f0 !important;
    color: #333 !important;
    font-weight: 700 !important;
}

/* Checkout Form Layout Improvements */
.woocommerce-checkout .col2-set .col-1, 
.woocommerce-checkout .col2-set .col-2 {
    float: none;
    width: 100%;
    max-width: 100%;
}

/* Ensure nice spacing */
.woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Gap between fields */
}

/* Override default float logic for flex gap */
.woocommerce-billing-fields__field-wrapper .form-row {
    width: 100%;
    margin: 0 !important; /* Reset margin, use gap */
}

.woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-billing-fields__field-wrapper .form-row-last {
    width: calc(50% - 7.5px); /* Half width minus half gap */
    float: none;
}

/* Mobile responsiveness for split fields */
@media (max-width: 600px) {
    .woocommerce-billing-fields__field-wrapper .form-row-first,
    .woocommerce-billing-fields__field-wrapper .form-row-last {
        width: 100%;
    }
}

.woocommerce h1, .woocommerce h2, .woocommerce h3, .woocommerce h4, .woocommerce h5, .woocommerce h6 {
    border: none !important;
}

/* =========================================
   Survey Master Layout Styles
   ========================================= */

/* --- 1. Main Grid Layout --- */
.survey-master-layout {
    position: relative;
    padding-bottom: 80px; /* Space for sticky bar */
    max-width: 1600px;
    margin: 0 auto;
}

.survey-top-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch; /* Make columns equal height */
    margin-bottom: 60px;
}

/* Right Column (Gallery) */
.survey-gallery-wrapper {
    flex: 1 1 50%;
    max-width: 55%; /* Slightly larger for gallery */
    display: flex;
    flex-direction: column;
}

/* Left Column (Summary) */
.survey-summary-wrapper {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically if shorter */
}

.survey-gallery-card {
    /* Removed padding and white bg from wrapper to let images breathe */
    background: transparent;
    padding: 0;
    text-align: center;
    margin-bottom: 20px;
}

/* WooCommerce Gallery Overrides (Scoped to Custom Layout) */
.survey-master-layout .woocommerce-product-gallery {
    opacity: 1 !important;
    position: relative;
}

.survey-master-layout .woocommerce-product-gallery__trigger {
    display: none !important; /* Hide Zoom Icon */
}

/* Main Image Viewport */
.survey-master-layout .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.survey-master-layout .woocommerce-product-gallery__image {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    position: relative;
}

.survey-master-layout .woocommerce-product-gallery__image::before {
    display: none !important; /* Remove per-slide border */
}

/* Image Styles */
.survey-master-layout .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px; /* Match viewport radius */
}

/* Thumbnails (Horizontal Bottom) */
.survey-master-layout .flex-control-thumbs {
    display: flex;
    gap: 15px;
    margin-top: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center; /* Center thumbs */
}

.survey-master-layout .flex-control-thumbs li {
    width: 100px; /* Fixed width for consistent thumbs */
    cursor: pointer;
    flex-shrink: 0;
}

.survey-master-layout .flex-control-thumbs li img {
    border-radius: 15px;
    background-color: #f4f4f4;
    padding: 5px;
    transition: all 0.2s;
    border: 1px solid #eee;
    height: 100px; /* Square thumbs */
    object-fit: contain;
    width: 100%;
}

.survey-master-layout .flex-control-thumbs li img.flex-active {
    border: 2px solid #000;
    transform: scale(1.05);
}


/* --- 2. Summary Details --- */

.survey-summary-card {
    padding: 10px;
}

.survey-master-layout .product_title {
    font-size: 2.1rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    color: #000 !important;
    border: none !important;
}

.survey-short-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.survey-price-box {
    margin-bottom: 25px;
}

.survey-price-box .price {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important; /* Identity Color */
    display: flex;
    align-items: center;
    gap: 15px;
}

.survey-price-box .price del {
    color: #aaa !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    text-decoration: line-through;
}

.survey-price-box .price ins {
    text-decoration: none !important;
}

/* --- 3. Badges --- */
.survey-badges {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.badge-item {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.stock-badge {
    background: #e9f7ef;
    color: #27ae60;
    border: 1px solid #d4efdf;
}

.warranty-badge {
    background: #fef9e7;
    color: #f1c40f;
    border: 1px solid #f9e79f;
}

/* --- 4. Add to Cart Box --- */
.survey-add-to-cart-box {
    margin-bottom: 40px;
    text-align: center;
}

.survey-add-to-cart-box form.cart {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.survey-add-to-cart-box .quantity {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    height: 55px;
    display: flex;
    align-items: center;
    width: 100px;
}

.survey-add-to-cart-box .quantity input {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.survey-add-to-cart-box .single_add_to_cart_button {
    flex-grow: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #cf8523 100%) !important; /* Luxury Gradient */
    color: #fff !important;
    font-family: 'Alexandria', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    border-radius: 12px !important;
    height: 55px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(234, 149, 39, 0.25) !important;
}

.survey-add-to-cart-box .single_add_to_cart_button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #cf8523 0%, var(--primary-color) 100%) !important;
    box-shadow: 0 10px 25px rgba(234, 149, 39, 0.35) !important;
}

.buy-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    color: #555;
    text-decoration: none;
    font-family: 'Alexandria', sans-serif !important;
    font-weight: 700;
    transition: all 0.3s ease;
    background: transparent;
}

.buy-now-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fffaf0; /* Light tint of primary */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.buy-now-btn i {
    font-size: 1.1rem;
}

/* --- New Availability Box --- */
.survey-availability-box {
    background: #f8fff9;
    border: 1px solid #d4efdf;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.survey-availability-box .avail-icon {
    font-size: 24px;
    color: #27ae60;
}

.survey-availability-box .avail-text {
    display: flex;
    flex-direction: column;
}

.survey-availability-box .avail-text strong {
    color: #111;
    font-size: 1rem;
    margin-bottom: 3px;
}

.survey-availability-box .avail-text span {
    color: #555;
    font-size: 0.9rem;
}

/* --- PDF Box --- */
.survey-pdf-box {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 15px;
}

.survey-pdf-box .pdf-header {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    border: none !important;
}

.pdf-btn {
    display: block;
    background: #0073aa;
    color: #fff !important;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none !important;
    transition: background 0.3s;
}

.pdf-btn:hover {
    background: #005177;
}

/* =========================================
   Missing Single Product Styles (Restored)
   ========================================= */

/* --- Sale Flash (Standard WooCommerce Hook) --- */
.survey-master-layout .onsale {
    position: absolute;
    top: 20px;
    right: 20px; /* RTL Start */
    left: auto;
    z-index: 10;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-family: 'Alexandria', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 18px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    min-height: auto;
    min-width: auto;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.2);
}

/* Ensure it sits above the image */
.survey-master-layout .survey-gallery-card {
    position: relative;
    /* Removed Border/Frame from here */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    z-index: 0;
}

/* Remove Rotating Gradient from Main Card */
.survey-master-layout .survey-gallery-card::before,
.survey-master-layout .survey-gallery-card::after {
    display: none;
}

/* --- Main Image Frame (Contains Everything) --- */
.survey-master-layout .woocommerce-product-gallery {
    position: relative;
    padding: 4px; /* Border thickness */
    background: linear-gradient(135deg, #fff, #f9f9f9);
    border-radius: 24px; /* Outer radius */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden; /* To Clip the gradient */
}

/* Rotating Gradient Border Effect on MAIN CONTAINER */
.survey-master-layout .woocommerce-product-gallery::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg, 
        transparent 0%, 
        var(--primary-color, #ea9527) 20%, 
        transparent 40%, 
        #0073aa 60%, 
        transparent 80%
    );
    animation: rotate-border-glow 4s linear infinite;
    z-index: 0;
}

/* Inner Background to mask the center */
.survey-master-layout .woocommerce-product-gallery::after {
    content: '';
    position: absolute;
    inset: 4px; /* Matches padding */
    background: #fff;
    border-radius: 20px; /* Inner radius */
    z-index: 0;
}

/* Wrapper for Image - No Border, just positioning */
.survey-master-layout .woocommerce-product-gallery__wrapper {
    position: relative;
    z-index: 1; /* Above gradient */
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 20px;
    overflow: hidden;
}

.survey-master-layout .woocommerce-product-gallery__wrapper::before,
.survey-master-layout .woocommerce-product-gallery__wrapper::after {
    display: none; /* Ensure no double borders */
}

/* --- Thumbnails Styling (Overlay / Floating) --- */
.survey-master-layout .flex-control-thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    
    list-style: none;
    flex-wrap: nowrap; /* Keep in one line */
    justify-content: center;
    max-width: 90%;
    overflow-x: auto; /* Scroll if too many */
}

/* Hide scrollbar */
.survey-master-layout .flex-control-thumbs::-webkit-scrollbar {
    display: none;
}

.survey-master-layout .flex-control-thumbs li {
    width: 45px; /* Compact Size */
    height: 45px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 50%; /* Circle thumbs */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    border: 2px solid transparent; /* Placeholder for active state */
}

.survey-master-layout .flex-control-thumbs li img {
    border-radius: 0; /* Container handles radius */
    padding: 0;
    border: none;
    height: 100%;
    width: 100%;
    object-fit: cover;
    box-shadow: none;
    opacity: 0.8;
    transition: transform 0.3s, opacity 0.3s;
    background: #fff;
}

.survey-master-layout .flex-control-thumbs li:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: rgba(0,0,0,0.1);
}

.survey-master-layout .flex-control-thumbs li:hover img {
    opacity: 1;
}

/* Active Thumbnail */
.survey-master-layout .flex-control-thumbs li img.flex-active {
    opacity: 1;
    transform: scale(1.1);
}

/* Apply active border to LI instead of IMG for cleaner circle */
.survey-master-layout .flex-control-thumbs li:has(img.flex-active) {
    border-color: var(--primary-color, #ea9527);
    box-shadow: 0 0 0 2px rgba(234, 149, 39, 0.2);
}

/* Fallback if :has not supported fully (Standard Active Styling) */
.survey-master-layout .flex-control-thumbs li img.flex-active {
    border: none; /* Managed by LI */
}

/* --- Features List (Under Availability) --- */
.survey-info-boxes {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 480px) {
    .survey-info-boxes {
        grid-template-columns: 1fr; /* Stack on very small screens */
    }
}

.info-box-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced gap for better fit */
    padding: 12px; /* Slightly compact */
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%; /* Equal height */
}

.info-box-item:hover {
    transform: translateY(-3px); /* Move up slightly */
    border-color: var(--primary-color, #ea9527);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-box-item .icon {
    width: 40px; /* Slightly smaller icon */
    height: 40px;
    background: #fffaf0; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #ea9527);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-box-item .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box-item .text strong {
    font-size: 0.85rem; /* Slightly smaller font to fit grid */
    color: #1a1a1a;
    margin-bottom: 2px;
    font-weight: 700;
    line-height: 1.2;
}

.info-box-item .text span {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.2;
}


/* --- Add to Cart & Badges --- */
.survey-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}
.stock-badge {
    background: #e6f9e6;
    color: #2ecc71;
}

/* --- Tech Specs Grid (Under Images) --- */
.survey-tech-specs-section {
    margin-top: 19px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 40px 30px 30px 30px; /* Top padding for title space */
    position: relative;
}

.specs-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #000;
    position: absolute;
    top: -14px;
    right: 30px;
    background: #fff;
    padding: 0 15px;
    margin: 0;
    border: none !important;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns exactly */
    gap: 15px;
}

/* Responsive: 2 columns on medium, 1 on mobile */
@media (max-width: 991px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

.spec-card {
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Icon left, text right */
    gap: 15px;
    border: none; /* No border on cards in this design */
    transition: transform 0.3s;
}

.spec-card:hover {
    transform: translateY(-3px);
    background: #f0f0f0;
}

.spec-icon {
    font-size: 24px;
    color: #555;
    flex-shrink: 0;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: block;
}

.spec-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.spec-content strong {
    display: block;
    font-size: 0.7rem;
    color: #000;
    margin-bottom: 3px;
    font-weight: 800;
}

.spec-content span {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.2;
}



/* --- Breadcrumb Customization --- */
.goha-breadcrumbs-simple,
.woocommerce-breadcrumb {
    background: #fff0dd; /* Light Burgundy/Pinkish tint */
    padding: 12px 20px;
    margin-bottom: 20px;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 8px;
    border: 1px solid #f2e6e6;
}

.goha-breadcrumbs-simple a,
.woocommerce-breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.goha-breadcrumbs-simple .sep,
.woocommerce-breadcrumb .sep {
    margin: 0 10px;
    color: #ccc;
    font-size: 0.9em;
}

.goha-breadcrumbs-simple a:hover,
.woocommerce-breadcrumb a:hover {
    color: #a01c1c;
}

/* Force hide icons in breadcrumbs if any exist */
.goha-breadcrumbs-simple i,
.woocommerce-breadcrumb i,
.goha-breadcrumbs-simple svg,
.woocommerce-breadcrumb svg {
    display: none !important;
}


/* --- Archive / Shop Grid Layout --- */
.goha-shop-content ul.products,
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive Grid */
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.goha-shop-content ul.products li.product,
ul.products li.product {
    width: 100%; /* Reset WooCommerce default width */
    margin: 0; /* Reset WooCommerce default margin */
    float: none; /* Reset float */
}

/* Luxury Card Styling Refined */
.goha-luxury-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.goha-luxury-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* Visual Area */
.goha-card-visual {
    position: relative;
    padding-top: 120%; /* Taller, more elegant portrait ratio */
    overflow: hidden;
    background: #f8f8f8;
}

.goha-card-visual img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.goha-luxury-card:hover .goha-card-visual img {
    transform: scale(1.05);
}

/* Content Area */
.goha-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
    background: #fff;
    position: relative;
    z-index: 2;
}

/* Category */
.card-cats {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.card-cats a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.card-cats a:hover {
    color: var(--primary-color, #ea9527);
}

/* Title */
.card-title {
    font-family: 'Alexandria', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.5;
    color: #1a1a1a;
    border: none !important;
}

.card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: var(--primary-color, #ea9527);
}

/* Footer (Price + Button) */
.card-footer {
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #f0f0f0;
}

/* Price */
.card-price {
    font-family: 'Alexandria', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color, #ea9527);
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.card-price del {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: line-through;
}

/* Actions Row (New) */
.card-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Add to Cart Button (WooCommerce Default Class Override) */
.goha-luxury-card .button.add_to_cart_button {
    flex: 1;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Alexandria', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0 15px;
    margin: 0 !important; /* Override potential default margins */
}

.goha-luxury-card .button.add_to_cart_button:hover {
    background: var(--primary-color, #ea9527);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 149, 39, 0.3);
}

.goha-luxury-card .button.add_to_cart_button.loading {
    opacity: 0.7;
    cursor: wait;
}

.goha-luxury-card .button.add_to_cart_button::after {
    display: none; /* Remove default arrow if any */
}

/* View Details Button */
.view-details-btn-row {
    width: 42px;
    height: 42px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #fff;
    text-decoration: none;
}

.view-details-btn-row:hover {
    border-color: var(--primary-color, #ea9527);
    color: var(--primary-color, #ea9527);
    background: #fff;
    transform: translateY(-2px);
}

/* --- Mosaic Features Section (Luxury Redesign) --- */
.survey-features-mosaic-section {
    padding: 100px 0;
    margin-top: 60px;
    background: linear-gradient(180deg, #fff 0%, #fcfcfc 100%);
    overflow: hidden;
}

.mosaic-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    flex-direction: row;
}

.mosaic-text-side {
    flex: 0 0 40%;
    text-align: right;
    position: relative;
    z-index: 2;
}

.mosaic-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: var(--secondary-color);
    line-height: 1.1;
    letter-spacing: -1px;
    border: none !important;
}

.mosaic-desc {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.9;
    font-weight: 400;
}

.mosaic-desc p {
    margin-bottom: 20px;
}

.mosaic-visual-side {
    flex: 1;
    position: relative;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: start;
    perspective: 1000px;
}

.mosaic-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.03);
    aspect-ratio: 1 / 1;
}

/* Staggered Effect (Luxury Masonry) */
.mosaic-grid .mosaic-item:nth-child(even) {
    transform: translateY(60px);
}

.mosaic-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 70px rgba(234, 149, 39, 0.2);
    z-index: 10;
}

/* Adjust hover for staggered items to maintain relative offset */
.mosaic-grid .mosaic-item:nth-child(even):hover {
    transform: translateY(45px) scale(1.03);
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.mosaic-item:hover img {
    transform: scale(1.1);
}

/* Background Decoration */
.mosaic-visual-side::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(234, 149, 39, 0.04) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 991px) {
    .survey-features-mosaic-section {
        padding: 60px 0;
    }
    .mosaic-container {
        flex-direction: column;
        gap: 40px;
    }
    .mosaic-text-side {
        text-align: center;
        flex: auto;
    }
    .mosaic-grid {
        gap: 15px;
        grid-template-columns: repeat(2, 1fr);
    }
    .mosaic-grid .mosaic-item:nth-child(even) {
        transform: translateY(30px); /* Smaller offset on mobile */
    }
    .mosaic-grid .mosaic-item:nth-child(even):hover {
        transform: translateY(20px);
    }
}

/* --- Alternating Feature Rows (Luxury Redesign) --- */
.survey-extra-features-section {
    padding: 40px 0;
    overflow: hidden;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-text-side {
    flex: 1;
    text-align: right;
    padding: 20px;
    z-index: 2;
}

.feature-visual-side {
    flex: 1;
    position: relative;
    border-radius: 30px;
    /* overflow: hidden; Removed to allow shadow to show if needed, but safe to keep for rounded corners on img */
}

/* Typography */
.feature-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--secondary-color, #1a1a1a);
    line-height: 1.2;
    border: none !important;
}

.feature-desc {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Image Styling */
.feature-img-element {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08); /* Luxury Shadow */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    object-fit: cover;
    /* aspect-ratio: 16/10;  Flexible landscape */
    background: #f8f9fa;
}

.feature-visual-side:hover .feature-img-element {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

/* Highlight Circle in Title */
.highlight-circle {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.circle-svg {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: -1;
    opacity: 0.6;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .feature-row {
        gap: 30px;
        padding: 40px 20px;
    }

    /* Force Image on Top for Mobile */
    .feature-row-1 {
        flex-direction: column-reverse; /* Visual (img) Top, Text Bottom */
    }
    
    .feature-row-2 {
        flex-direction: column; /* Visual (img) Top, Text Bottom */
    }

    .feature-text-side {
        text-align: center;
        padding: 0;
    }

    .feature-title {
        font-size: 1.8rem;
        border: none !important;
    }

    .feature-desc {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .feature-img-element {
        border-radius: 20px;
        margin-bottom: 20px;
    }
}

/* --- Section 2: Box & Specs (Updated) --- */
.feature-row-2 {
    /* Removed row-reverse to fix zig-zag, now standard LTR (Visual Left, Text Right) */
}

/* --- Section 3: Tech Specs & Box Content --- */
.feature-row-3 {
    align-items: flex-start; /* Align top */
    gap: 40px;
}

/* Specs Side (Accordion) */
.specs-side {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    padding: 40px;
    flex: 0 0 62%; /* Wider for better reading experience */
    max-width: 62%;
}

.goha-accordion {
    width: 100%;
    margin-top: 20px;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

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

.accordion-header {
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    transition: color 0.3s;
    border: none !important;
}

.accordion-header:hover {
    color: #ea9527;
}

.accordion-header i {
    transition: transform 0.3s;
    font-size: 0.9rem;
    color: #999;
}

.accordion-item.active .accordion-header i {
    color: #ea9527;
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding-bottom: 20px;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

.accordion-item.active .accordion-content {
    /* display: block;  <-- REMOVED: Let jQuery handle display via slideDown */
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-content li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.accordion-content li:last-child {
    border-bottom: none;
}

/* Box Visual Side */
.box-visual-side {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: transparent; 
    flex: 0 0 38%; /* Narrower box */
    max-width: 38%;
}

.box-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Elegant Handle Design */
.box-handle-elegant {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: -1px; /* Connect to body seamless */
    z-index: 2;
    position: relative;
}

.handle-arch {
    width: 140px; /* Reduced width as requested */
    height: 60px;
    background: #ea9527; /* Brand Color */
    border-radius: 30px 30px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03); /* Soft shadow for depth */
    position: relative;
}

/* Decorate the arch with a luxury line */
.handle-arch::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20px;
    width: 20px;
    height: 20px;
    background: transparent;
    box-shadow: 10px 10px 0 #ea9527; /* Curve smoothing left - Match Brand Color */
    border-bottom-right-radius: 50%;
}

.handle-arch::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -20px;
    width: 20px;
    height: 20px;
    background: transparent;
    box-shadow: -10px 10px 0 #ea9527; /* Curve smoothing right - Match Brand Color */
    border-bottom-left-radius: 50%;
}

.handle-grip {
    width: 60px;
    height: 12px;
    background: rgba(255,255,255,0.25); /* Subtle grip on orange */
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); /* Inner shadow for depth */
    position: relative;
    overflow: hidden;
}

/* Add a shiny highlight to the grip */
.handle-grip::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
}

.box-body {
    background: #ea9527; /* Brand Color Background */
    border-radius: 30px; /* More rounded */
    padding: 50px 30px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(234, 149, 39, 0.25); /* Luxurious colored shadow */
    text-align: center;
    position: relative;
    z-index: 1;
}

.box-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #fff; /* White text on Orange */
    letter-spacing: -0.5px;
    border: none !important;
}

.box-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px; /* More breathing room */
}

.box-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.box-icon-circle {
    width: 60px; /* Slightly larger */
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ea9527; /* Brand color icon */
    font-size: 1.4rem;
    background: #fff; /* White circle */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy pop */
}

.box-grid-item:hover .box-icon-circle {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0, 0.15);
}

.box-grid-item span {
    font-size: 0.85rem;
    color: #fff; /* White text */
    font-weight: 600;
}

/* Mobile Responsive Adjustments for Section 3 */
@media (max-width: 991px) {
    .feature-row-3 {
        flex-direction: column-reverse; /* Box on top, Specs below */
        gap: 50px;
    }

    .specs-side,
    .box-visual-side {
        flex: auto;
        max-width: 100%;
        width: 100%;
        padding: 0;
    }

    /* Box Content Enhancements (Luxury Mobile) */
    .box-container {
        max-width: 100%; /* Full width */
        padding: 0 10px; /* Slight padding */
    }

    .box-body {
        padding: 40px 20px;
        box-shadow: 0 20px 50px rgba(234, 149, 39, 0.35); /* Stronger Shadow */
        border-radius: 25px;
    }

    .box-items-grid {
        grid-template-columns: repeat(3, 1fr); /* Keep 3 columns or auto-fit */
        gap: 20px 10px; /* Vertical gap 20, Horizontal 10 */
        justify-content: center;
    }

    .box-grid-item {
        text-align: center;
    }

    .box-icon-circle {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
        margin-bottom: 5px; /* Spacing between icon and text */
        box-shadow: 0 8px 20px rgba(0,0,0,0.12); /* Sharp shadow */
    }

    .box-grid-item span {
        font-size: 0.9rem; /* Slightly larger text for readability */
        line-height: 1.3;
        display: block;
        width: 100%;
    }
}

/* --- Mobile Responsiveness (Top Section & Breadcrumbs) --- */
@media (max-width: 768px) {
    /* Hide Breadcrumbs globally on Mobile */
    .woocommerce-breadcrumb,
    .goha-breadcrumbs-simple,
    .goha-breadcrumbs {
        display: none !important;
    }

    /* Product Page Reordering (Details First, Images Second) */
    .survey-top-section {
        flex-direction: column;
        gap: 20px;
    }

    /* Reorder: Summary First */
    .survey-summary-wrapper {
        order: -1; /* Moves to top */
        flex: auto;
        width: 100%;
    }

    /* Reorder: Gallery Second */
    .survey-gallery-wrapper {
        order: 1;
        flex: auto;
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    /* Adjust Gallery for Mobile */
    .woocommerce-product-gallery {
        display: block !important;
        width: 100% !important;
        background: transparent !important; /* Remove background */
        padding: 0 !important; /* Remove padding */
        box-shadow: none !important;
    }

    /* Disable Rotating Border & White Mask on Mobile */
    .survey-master-layout .woocommerce-product-gallery::before,
    .survey-master-layout .woocommerce-product-gallery::after,
    .woocommerce-product-gallery::before,
    .woocommerce-product-gallery::after {
        display: none !important;
        content: none !important;
    }

    .woocommerce-product-gallery__wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .woocommerce-product-gallery__image {
        width: 100% !important;
        display: block !important;
        margin-bottom: 20px !important;
    }

    .woocommerce-product-gallery__image img {
        border-radius: 15px;
        width: 100% !important;
        height: auto !important;
    }

    /* Adjust Thumbnails (Horizontal Scroll) */
    .flex-control-thumbs {
        display: flex !important;
        flex-wrap: nowrap !important; /* Force single row */
        justify-content: flex-start !important;
        overflow-x: auto !important;
        padding-bottom: 15px !important;
        -webkit-overflow-scrolling: touch;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .flex-control-thumbs li {
        width: 80px !important;
        flex: 0 0 80px !important; /* Fixed width, no shrink/grow */
        height: 80px !important;
    }

    .flex-control-thumbs li img {
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Adjust Titles/Fonts for Mobile */
    .product_title {
        font-size: 1.8rem !important;
        text-align: center;
        border: none !important;
    }

    .survey-short-desc {
        text-align: center;
        font-size: 1rem;
    }

    .survey-price-box {
        justify-content: center;
        display: flex;
    }

    .survey-badges {
        justify-content: center;
    }

    .survey-add-to-cart-box form.cart {
        justify-content: center;
    }
}

/* --- FAQ Section --- */
.survey-faq-section {
    background: #111;
    color: #fff;
    padding: 80px 0;
    margin-top: 0;
}
.faq-container {
    display: flex;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: flex-start;
}
.faq-list-side {
    flex: 1;
}
.faq-form-side {
    flex: 0 0 400px;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
}
.section-title-white {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 40px;
    border: none !important;
}
/* FAQ Accordion */
.goha-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-item {
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.3s;
    border: none !important;
}
.faq-question:hover {
    color: #ea9527;
}
.question-text {
    display: flex;
    align-items: center;
    gap: 15px;
}
.faq-question i {
    color: #666;
    font-size: 1.2rem;
    transition: transform 0.3s, color 0.3s;
}
.faq-item.active .faq-question i {
    color: #ea9527;
}
.faq-item.active .toggle-icon i {
    color: #ea9527;
}
.faq-question h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: inherit;
}
.faq-answer {
    display: none;
    padding-top: 10px;
    padding-right: 30px;
    color: #aaa;
    line-height: 1.8;
}
.faq-item.active .faq-answer {
    /* display: block; <-- REMOVED: Let jQuery handle display via slideDown */
}

/* Form */
.form-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    border: none !important;
}
.form-subtitle {
    color: #777;
    margin-bottom: 30px;
}
.goha-contact-form input, 
.goha-contact-form textarea {
    width: 100%;
    background: #252525;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    color: #fff;
    font-family: inherit;
}
.goha-contact-form input:focus, 
.goha-contact-form textarea:focus {
    border-color: #ea9527;
    outline: none;
}
.submit-btn {
    background: #ea9527;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}
.submit-btn:hover {
    background: #d4861b;
}

/* Responsive FAQ */
@media (max-width: 991px) {
    .faq-container {
        flex-direction: column;
    }
    .faq-form-side {
        width: 100%;
        flex: auto;
    }
}

/* --- Related Products Section --- */
.survey-related-section {
    padding: 80px 0;
    background: #fff;
}
.related-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}
.related-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 40px;
    text-align: right;
    color: #000;
    border: none !important;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.related-item {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
    background: #fff;
}
.related-item:hover {
    transform: translateY(-10px);
}
.related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.related-img {
    background: #f9f9f9;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
}
.related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.related-item:hover .related-img img {
    transform: scale(1.1);
}
.related-item-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
    text-align: right;
    border: none !important;
}
.related-price {
    color: #ea9527;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
}
.related-price del {
    color: #aaa;
    font-size: 0.9rem;
    margin-left: 10px;
}
.related-sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}
@media (max-width: 991px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Override Shop Header --- */
.goha-shop-header {
    background: #fff;
    padding: 20px 0;
    text-align: right;
    border-bottom: none !important; /* Removed border */
    color: #333;
}
.goha-shop-header .header-content {
    color: #333;
}
.goha-shop-header h1.page-title {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
    border: none !important;
}

/* --- Luxury Badges & Overlays (Re-added & Enhanced) --- */
.goha-card-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.goha-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
    font-family: 'Alexandria', sans-serif;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Space between icon and text */
}

.goha-badge i {
    font-size: 0.85rem;
}

/* Sale Badge - Animated */
.goha-badge.sale {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    position: relative;
    overflow: hidden;
}

.goha-badge.sale::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: badge-shimmer 2s infinite;
}

@keyframes badge-shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.goha-badge.new {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.goha-badge.out-stock {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

/* Add Cart Icon to Button (Sharp Duotone) */
.card-actions-row .button::before {
    font-family: "Font Awesome 7 Sharp Duotone" !important;
    font-weight: 900;
    content: '\f07a'; /* cart-shopping */
    margin-left: 8px;
    font-size: 1rem;
}

/* =========================================
   Context-Specific Visibility Logic (Shop vs Related)
   ========================================= */

/* 1. Main Shop: Buttons Row Visible, Overlay Hidden */
.goha-luxury-card .card-actions-row {
    display: flex; /* Default behavior for Shop */
}
.goha-luxury-card .goha-card-overlay {
    display: none; /* Hide overlay in main shop */
}

/* 2. Related / Upsells: Buttons Row Visible (Compact Icons), Overlay Hidden */
.related.products .goha-luxury-card .card-actions-row,
.up-sells.products .goha-luxury-card .card-actions-row {
    display: flex !important; /* Show footer buttons */
    justify-content: flex-end; /* Align right */
    gap: 8px;
    margin-top: 10px;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    position: relative;
    z-index: 50;
}

.related.products .goha-luxury-card .goha-card-overlay,
.up-sells.products .goha-luxury-card .goha-card-overlay {
    display: none !important; /* Hide overlay to avoid duplication */
}

/* Ensure footer allows expansion */
.related.products .card-footer,
.up-sells.products .card-footer {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 60px; /* Ensure enough space */
    padding-bottom: 5px;
    overflow: visible !important;
}

/* Compact Buttons for Related Products (Icon Only) */
.related.products .card-actions-row .button,
.related.products .card-actions-row .view-details-btn-row,
.related.products .card-actions-row .buy-now-icon-btn,
.up-sells.products .card-actions-row .button,
.up-sells.products .card-actions-row .view-details-btn-row,
.up-sells.products .card-actions-row .buy-now-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0 !important; /* Hide Text */
    background: #f4f4f4;
    color: #333;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex: none; /* Don't stretch */
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
}

/* Icons inside Compact Buttons */
.related.products .card-actions-row .button::before,
.related.products .card-actions-row .view-details-btn-row i,
.related.products .card-actions-row .buy-now-icon-btn i,
.up-sells.products .card-actions-row .button::before,
.up-sells.products .card-actions-row .view-details-btn-row i,
.up-sells.products .card-actions-row .buy-now-icon-btn i {
    font-size: 0.9rem !important;
    margin: 0 !important;
    color: #555;
    font-family: "Font Awesome 7 Sharp Duotone" !important;
    font-weight: 900;
}

/* Hover Effects for Compact Buttons */
.related.products .card-actions-row .button:hover,
.related.products .card-actions-row .view-details-btn-row:hover,
.related.products .card-actions-row .buy-now-icon-btn:hover,
.up-sells.products .card-actions-row .button:hover,
.up-sells.products .card-actions-row .view-details-btn-row:hover,
.up-sells.products .card-actions-row .buy-now-icon-btn:hover {
    background: var(--primary-color, #ea9527);
    color: #fff;
    border-color: var(--primary-color, #ea9527);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(234, 149, 39, 0.3);
}

.related.products .card-actions-row .button:hover::before,
.related.products .card-actions-row .view-details-btn-row:hover i,
.related.products .card-actions-row .buy-now-icon-btn:hover i,
.up-sells.products .card-actions-row .button:hover::before,
.up-sells.products .card-actions-row .view-details-btn-row:hover i,
.up-sells.products .card-actions-row .buy-now-icon-btn:hover i {
    color: #fff;
}

/* Buy Now Icon Styling (General Shop) */
.buy-now-icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #fff;
    text-decoration: none;
}

.buy-now-icon-btn:hover {
    background: #e74c3c; /* Red for Buy Now */
    color: #fff;
    border-color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

/* Ensure Badges are always on top */
.goha-card-badges {
    z-index: 20 !important;
}

/* Adjust Card Height/Padding for Related Products to keep them compact */
.related.products .card-footer,
.up-sells.products .card-footer {
    border-top: none;
    padding-top: 5px;
    margin-top: 5px;
    min-height: auto;
}

/* Ensure Price is aligned nicely since buttons are gone */
.related.products .card-price,
.up-sells.products .card-price {
    justify-content: flex-start; 
    margin-bottom: 5px;
}

/* =========================================
   Luxury Overhaul: Related Products Section
   ========================================= */

/* Section Container Styling */
.related.products,
.up-sells.products {
    background: linear-gradient(to bottom, #ffffff, #fdfbf7); /* Subtle fade to warm luxury tone */
    padding: 80px 0;
    margin-top: 60px;
    border-top: 1px solid #f0f0f0;
    position: relative;
}

/* Decorative Background Element */
.related.products::before,
.up-sells.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary-color, #ea9527), transparent);
    opacity: 0.3;
}

/* Section Title Styling - Luxury */
.related.products > h2,
.up-sells.products > h2 {
    text-align: center;
    font-family: 'Alexandria', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%; /* Ensure it takes full width for centering */
    border: none !important;
}


/* =========================================
   Luxury "Fire" Checkout Styles
   ========================================= */

/* --- 1. Wrapper & Layout --- */
.goha-luxury-checkout-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Alexandria', sans-serif;
}

.goha-checkout-cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .goha-checkout-cols {
        grid-template-columns: 1fr;
    }
}

/* --- 2. Checkout Steps (Progress Bar) --- */
.goha-checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    min-width: 120px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid #e1e1e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ccc;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-label {
    margin-top: 15px;
    font-weight: 700;
    color: #ccc;
    font-size: 1rem;
    transition: color 0.4s;
}

/* Active & Completed States */
.step-item.active .step-icon,
.step-item.completed .step-icon {
    border-color: var(--primary-color, #ea9527);
    background: var(--primary-color, #ea9527);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(234, 149, 39, 0.4);
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: #111;
}

.step-line {
    flex-grow: 1;
    height: 3px;
    background: #e1e1e1;
    margin: 0 -30px 35px -30px; /* Adjust to connect icons */
    position: relative;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
}

.step-line.active {
    background: linear-gradient(90deg, var(--primary-color, #ea9527), #ffc107);
}


/* --- 3. Header Modern --- */
.goha-checkout-header-modern {
    text-align: center;
    margin-bottom: 50px;
}

.modern-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #111 0%, #555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: none !important;
}

.modern-subtitle {
    color: #777;
    font-size: 1.1rem;
}

/* --- 4. Glass Boxes & Containers --- */
.goha-checkout-box,
.goha-checkout-review-box {
    background: #fff;
    border-radius: 24px;
    padding: 30px; /* Reduced padding slightly for better fit */
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden; /* For header glow overflow */
    position: relative;
}

.goha-checkout-box:hover,
.goha-checkout-review-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.12);
}

.glass-effect {
    /* Optional: if we want transparency */
    /* background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px); */
}

.sticky-box {
    position: sticky;
    top: 100px;
}

/* Box Header with Glow */
.box-header-glow {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: none !important; /* Removed border */
    position: relative;
}

.box-header-glow::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color, #ea9527);
    border-radius: 10px;
}

.header-icon-wrap {
    width: 50px;
    height: 50px;
    background: rgba(234, 149, 39, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-color, #ea9527);
}

.goha-checkout-subtitle {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 800;
    border: none !important;
}


/* --- 5. Modern Input Fields (Floating Label Style) --- */
.woocommerce-input-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.form-row label {
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
    color: #333;
}

.form-row input.input-text,
.form-row textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fdfdfd;
    transition: all 0.3s ease;
    color: #111;
    font-weight: 600;
}

.form-row input.input-text:focus,
.form-row textarea:focus,
.select2-container--default .select2-selection--single:focus {
    background: #fff;
    border-color: var(--primary-color, #ea9527);
    box-shadow: 0 0 0 4px rgba(234, 149, 39, 0.1);
    outline: none;
}

.select2-container--default .select2-selection--single {
    border: 2px solid #f0f0f0 !important;
    border-radius: 12px !important;
    height: 54px !important;
    padding: 10px !important;
    background: #fdfdfd !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
    font-weight: 600;
    color: #111 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 52px !important;
    right: 10px !important;
}


/* --- 6. Order Review Table --- */
.woocommerce-checkout-review-order-table {
    border: none !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border: none !important;
    padding: 15px 0 !important;
    border-bottom: 1px dashed #f0f0f0 !important;
}

.product-name {
    font-weight: 600;
    color: #333;
}

.product-total, 
.cart-subtotal td,
.order-total td {
    text-align: left !important;
    font-family: 'Alexandria', sans-serif;
    font-weight: 700;
}

.order-total th, 
.order-total td {
    border-bottom: none !important;
    padding-top: 25px !important;
    font-size: 1.3rem;
    color: #111;
}

.order-total td strong {
    color: var(--primary-color, #ea9527);
}

/* Payment Methods */
#payment {
    background: #fafafa;
    border-radius: 16px;
    padding: 20px;
    margin-top: 25px;
}

#payment ul.payment_methods {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

#payment div.payment_box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

#payment div.payment_box::before {
    border-bottom-color: #fff !important; /* Arrow color fix */
}

/* Place Order Button */
#place_order {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color, #ea9527) 0%, #d35400 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 18px;
    border-radius: 14px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(234, 149, 39, 0.4);
    margin-top: 10px;
}

#place_order:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(234, 149, 39, 0.5);
    background: linear-gradient(135deg, #d35400 0%, var(--primary-color, #ea9527) 100%);
}

/* Secure Badge */
.secure-badge-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    padding: 15px;
    background: #f8fff9;
    border: 1px solid #d4efdf;
    border-radius: 12px;
    color: #27ae60;
    font-weight: 700;
    font-size: 0.95rem;
}

.secure-badge-checkout i {
    font-size: 1.2rem;
}

/* --- 7. Animations --- */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.goha-col-1 {
    animation: slideInUp 0.6s ease-out;
}

.goha-col-2 {
    animation: slideInUp 0.6s ease-out 0.2s backwards; /* Delay for staggered effect */
}

/* =========================================
   MOBILE CHECKOUT OPTIMIZATION (THE DRAGON FIX 🐉)
   ========================================= */

@media (max-width: 767px) {
    
    /* 1. Layout & Spacing */
    .goha-luxury-checkout-wrapper {
        padding: 20px 5px !important; /* Significantly reduce wrapper padding */
    }

    .goha-checkout-layout {
        padding: 0 !important; /* Remove layout padding */
        overflow-x: hidden;
    }

    .goha-checkout-cols {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .goha-checkout-box, 
    .goha-checkout-review-box {
        padding: 20px 15px !important;
        border-radius: 16px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.03) !important;
        margin-bottom: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important; /* Ensure full width */
    }

    /* 2. Typography */
    .modern-title {
        font-size: 1.6rem !important;
        margin-top: 10px !important;
    }
    
    .goha-checkout-subtitle {
        font-size: 1.1rem !important;
    }

    .box-header-glow {
        margin-bottom: 20px !important;
        gap: 10px !important;
        padding-bottom: 15px !important;
    }

    .header-icon-wrap {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        border-radius: 10px !important;
        min-width: 40px !important; /* Prevent shrinking */
    }

    /* 3. Checkout Steps (Progress Bar) - Compact Mobile */
    .goha-checkout-steps {
        margin-bottom: 30px !important;
        gap: 0 !important;
    }

    .step-item {
        min-width: auto !important;
        flex: 1;
    }

    .step-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
        margin: 0 auto !important;
    }
    
    .step-label {
        font-size: 0.75rem !important;
        margin-top: 6px !important;
        text-align: center;
    }

    .step-line {
        margin: 0 -15px 25px -15px !important; /* Adjust line spacing */
        height: 2px !important;
    }

    /* 4. Form Fields - Touch Friendly */
    .form-row {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 15px !important;
    }

    .form-row label {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }

    .form-row input.input-text, 
    .form-row textarea,
    select,
    .select2-container--default .select2-selection--single {
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 0 15px !important;
        height: 50px !important;
        line-height: 50px !important;
        border-radius: 10px !important;
    }
    
    .form-row textarea {
        height: auto !important;
        padding: 15px !important;
        line-height: 1.5 !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 48px !important;
        padding-right: 0 !important;
        padding-left: 20px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 48px !important;
    }

    /* 5. Order Review Table */
    .woocommerce-checkout-review-order-table th, 
    .woocommerce-checkout-review-order-table td {
        font-size: 0.9rem !important;
        padding: 12px 0 !important;
    }
    
    /* Product Thumbnail in Review Table (if present) */
    .product-name img {
        width: 40px !important;
        height: 40px !important;
        border-radius: 8px !important;
        margin-left: 10px !important;
        vertical-align: middle;
    }

    .order-total th, 
    .order-total td {
        font-size: 1.1rem !important;
        padding-top: 15px !important;
    }

    /* 6. Payment Methods */
    #payment {
        padding: 15px !important;
        border-radius: 12px !important;
    }
    
    #payment ul.payment_methods {
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
    }

    #payment ul.payment_methods li {
        margin-bottom: 10px !important;
    }
    
    #payment ul.payment_methods li label {
        font-size: 0.95rem !important;
        margin-right: 10px !important; /* RTL spacing */
    }

    #payment div.payment_box {
        font-size: 0.85rem !important;
        padding: 12px !important;
    }

    /* 7. Revert Sticky "Place Order" Button (User Request) */
    #place_order {
        position: static !important;
        width: 100% !important;
        margin-top: 20px !important;
        border-radius: 12px !important;
        padding: 16px !important;
        box-shadow: 0 10px 30px rgba(234, 149, 39, 0.4) !important;
    }
    
    .woocommerce-checkout {
        padding-bottom: 20px !important;
    }
    
    .form-row.place-order {
        padding: 0 !important;
        margin-bottom: 20px !important;
    }
    
    /* Secure badge adjustment */
    .secure-badge-checkout {
        margin-bottom: 20px !important;
        padding: 10px !important;
        font-size: 0.8rem !important;
    }

    /* 8. Hide Sticky Box behavior on mobile */
    .sticky-box {
        position: static !important;
    }
}

/* =========================================
   CUSTOM LUXURY CART TEMPLATE STYLES
   (Targeting cart.php specific classes)
   ========================================= */
.goha-cart-luxury-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Alexandria', sans-serif;
    direction: rtl; /* Force RTL */
}

.cart-luxury-header {
    text-align: center;
    margin-bottom: 50px;
}

.cart-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 10px;
    border: none !important;
}

.cart-subtitle {
    font-size: 1.1rem;
    color: #777;
    font-weight: 500;
}

.goha-cart-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.goha-cart-items-box {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.cart-items-header-row {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 1fr 50px; /* Thumb, Name, Price, Qty, Total, Remove */
    padding-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
    margin-bottom: 20px;
    font-weight: 800;
    color: #555;
    font-size: 0.9rem;
    text-align: center;
}

.cart-items-header-row div {
    text-align: center;
}

.cart-items-header-row div:nth-child(2) {
    text-align: right; /* Product Name aligned right */
    padding-right: 20px;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 1fr 50px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px dashed #f0f0f0;
    transition: all 0.3s ease;
}

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

.cart-item-row:hover {
    background: #fafafa;
    border-radius: 12px;
    transform: translateX(-5px);
}

.item-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.item-details {
    text-align: right;
    padding-right: 20px;
}

.item-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 5px;
}

.item-name:hover {
    color: var(--primary-color, #ea9527);
}

.item-meta {
    font-size: 0.85rem;
    color: #888;
}

.item-price, .item-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
}

.item-total {
    color: var(--primary-color, #ea9527);
    font-weight: 800;
}

.item-quantity {
    display: flex;
    justify-content: center;
}

/* --- Quantity Input Styling --- */
.item-quantity .quantity {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-quantity .quantity .input-text {
    width: 60px !important;
    height: 45px !important;
    text-align: center;
    border-radius: 12px !important;
    border: 1px solid #e0e0e0 !important;
    font-weight: 800;
    color: #333;
    background: #f9f9f9;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    /* Hide spin buttons */
    -moz-appearance: textfield;
}

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

.item-quantity .quantity .input-text:focus {
    background: #fff;
    border-color: var(--primary-color, #ea9527) !important;
    box-shadow: 0 0 0 4px rgba(234, 149, 39, 0.1), inset 0 2px 5px rgba(0,0,0,0.02);
    outline: none;
}

.item-remove {
    text-align: center;
}

.remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    text-decoration: none;
    transition: all 0.3s;
    margin: 0 auto;
}

.remove-btn:hover {
    background: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}

/* --- Cart Actions Bar (Coupon & Update) --- */
.cart-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px dashed #f0f0f0;
    flex-wrap: wrap;
    gap: 20px;
}

.coupon-section {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 500px;
    position: relative;
}

/* Coupon Input */
.coupon-section .input-text {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    font-family: 'Alexandria', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.coupon-section .input-text:focus {
    border-color: #333;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    outline: none;
}

/* General Action Button */
.action-btn {
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Alexandria', sans-serif;
}

/* Apply Coupon Button */
.apply-coupon-btn {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.apply-coupon-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Update Cart Button */
.update-cart-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.update-cart-btn:hover {
    background: var(--primary-color, #ea9527);
    color: #fff;
    border-color: var(--primary-color, #ea9527);
    transform: translateY(-3px) rotate(2deg); /* Fun rotate on hover */
    box-shadow: 0 10px 20px rgba(234, 149, 39, 0.2);
}

/* Icons for buttons (if not in HTML, we can add via before/after but HTML update is cleaner or rely on text) */
/* Assuming standard WP structure, we might not have icons inside buttons easily without JS/PHP edits.
   We will rely on CSS purity. */

/* Responsive Actions */
@media (max-width: 768px) {
    .cart-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .coupon-section {
        max-width: 100%;
    }
    
    .update-cart-btn {
        width: 100%;
    }
}

/* Sidebar */
.goha-cart-sidebar {
    position: sticky;
    top: 20px;
}

.cart-summary-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f9f9f9 !important;
    color: #1a1a1a;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
    font-size: 1.4rem;
    font-weight: 900;
    color: #1a1a1a;
}

.summary-row.total .amount {
    color: var(--primary-color, #ea9527);
}

.checkout-btn-full {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color, #ea9527) 0%, #d35400 100%);
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(234, 149, 39, 0.4);
    transition: all 0.3s;
}

.checkout-btn-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(234, 149, 39, 0.5);
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .goha-cart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-items-header-row {
        display: none;
    }

    .cart-item-row {
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
        position: relative;
        padding: 20px;
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .item-thumbnail {
        grid-row: 1 / 4;
    }

    .item-details {
        grid-column: 2;
        padding-right: 0;
        text-align: right;
    }

    .item-price, .item-quantity, .item-total {
        grid-column: 2;
        justify-content: flex-start; /* RTL: Start is right */
        text-align: right;
    }

    .item-remove {
        position: absolute;
        top: 15px;
        left: 15px; /* RTL Left */
    }

    .cart-actions-bar {
        flex-direction: column;
        gap: 20px;
    }

    .coupon-section {
        width: 100%;
        flex-direction: column;
    }

    .coupon-section .input-text {
        width: 100%;
    }

    .action-btn {
        width: 100%;
    }
}

/* =========================================
   Luxury Cart Page Styles (Refined & Fixed)
   ========================================= */

.woocommerce-cart .woocommerce,
.page-shopping-cart .woocommerce {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Alexandria', sans-serif;
}

/* Force Table Layout */
.woocommerce-cart table.shop_table,
.woocommerce-cart table.cart {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 15px !important; /* Space between rows */
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    table-layout: auto !important;
}

/* Header Styling */
.woocommerce-cart table.shop_table thead,
.woocommerce-cart table.cart thead {
    background: transparent !important;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.cart th {
    padding: 10px 20px !important;
    font-weight: 800 !important;
    color: #555 !important;
    text-transform: uppercase;
    font-size: 0.9rem !important;
    border: none !important;
    text-align: right !important; /* Arabic alignment */
}

/* Row Styling (Card Effect) */
.woocommerce-cart table.shop_table tbody tr,
.woocommerce-cart table.cart tbody tr {
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    transition: transform 0.3s ease !important;
    border-radius: 15px !important;
}

.woocommerce-cart table.shop_table tbody tr:hover,
.woocommerce-cart table.cart tbody tr:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
}

/* Cell Styling */
.woocommerce-cart table.shop_table td,
.woocommerce-cart table.cart td {
    padding: 20px !important;
    border: none !important;
    vertical-align: middle !important;
    background: #fff !important; /* Ensure bg is white for rounded corners */
}

/* Rounded Corners for Rows */
.woocommerce-cart table.shop_table td:first-child,
.woocommerce-cart table.cart td:first-child {
    border-top-right-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
}

.woocommerce-cart table.shop_table td:last-child,
.woocommerce-cart table.cart td:last-child {
    border-top-left-radius: 15px !important;
    border-bottom-left-radius: 15px !important;
}

/* Product Thumbnail - STRICT FIX */
.woocommerce-cart table.shop_table td.product-thumbnail,
.woocommerce-cart table.cart td.product-thumbnail {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    text-align: center !important;
}

.woocommerce-cart table.shop_table td.product-thumbnail img,
.woocommerce-cart table.cart td.product-thumbnail img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Product Name */
.woocommerce-cart table.shop_table td.product-name a,
.woocommerce-cart table.cart td.product-name a {
    color: #1a1a1a !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    font-size: 1.1rem !important;
    display: block !important;
    margin-bottom: 5px !important;
}

.woocommerce-cart table.shop_table td.product-name a:hover,
.woocommerce-cart table.cart td.product-name a:hover {
    color: var(--primary-color, #ea9527) !important;
}

/* Price & Total */
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal {
    font-weight: 700 !important;
    color: #1a1a1a !important;
    font-size: 1rem !important;
}

.woocommerce-cart table.shop_table td.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal {
    color: var(--primary-color, #ea9527) !important;
    font-weight: 800 !important;
}

/* Quantity */
.woocommerce-cart table.shop_table .quantity,
.woocommerce-cart table.cart .quantity {
    margin: 0 auto !important;
    width: fit-content !important;
}

.woocommerce-cart table.shop_table .quantity .input-text,
.woocommerce-cart table.cart .quantity .input-text {
    width: 60px !important;
    height: 40px !important;
    border-radius: 8px !important;
    border: 1px solid #eee !important;
    text-align: center !important;
    font-weight: 700 !important;
    color: #333 !important;
    padding: 0 !important;
}

/* Remove Icon */
.woocommerce-cart table.shop_table td.product-remove,
.woocommerce-cart table.cart td.product-remove {
    width: 50px !important;
    text-align: center !important;
}

.woocommerce-cart table.shop_table td.product-remove a.remove,
.woocommerce-cart table.cart td.product-remove a.remove {
    color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    margin: 0 auto !important;
    text-decoration: none !important;
}

.woocommerce-cart table.shop_table td.product-remove a.remove:hover,
.woocommerce-cart table.cart td.product-remove a.remove:hover {
    background: #e74c3c !important;
    color: #fff !important;
}

/* Actions Row (Coupon & Update) */
.woocommerce-cart table.shop_table td.actions,
.woocommerce-cart table.cart td.actions {
    background: transparent !important;
    padding: 30px 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.woocommerce-cart .coupon {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    float: right !important; /* Arabic RTL */
}

.woocommerce-cart .coupon input.input-text {
    padding: 12px 20px !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    width: 200px !important;
    min-width: 200px !important;
    background: #fff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03) !important;
}

.woocommerce-cart .button[name="apply_coupon"],
.woocommerce-cart .button[name="update_cart"] {
    background: #333 !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 12px 25px !important;
    font-weight: 700 !important;
    border: none !important;
    transition: all 0.3s !important;
}

.woocommerce-cart .button[name="apply_coupon"]:hover,
.woocommerce-cart .button[name="update_cart"]:hover {
    background: var(--primary-color, #ea9527) !important;
    transform: translateY(-2px) !important;
}

/* Force Update Cart Button Visuals even if Disabled */
.woocommerce-cart .button[name="update_cart"]:disabled,
.woocommerce-cart .button[name="update_cart"][disabled] {
    opacity: 1 !important;
    cursor: pointer !important;
    background: #333 !important;
    color: #fff !important;
    display: inline-block !important; /* Ensure visibility */
}

/* Cart Totals Section */
.cart-collaterals {
    margin-top: 40px !important;
    display: flex !important;
    justify-content: flex-end !important; /* Align to right/start for RTL */
}

.cart-collaterals .cart_totals {
    width: 100% !important;
    max-width: 500px !important; /* Limit width */
    background: #fff !important;
    padding: 40px !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08) !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    float: none !important;
}

.cart-collaterals .cart_totals h2 {
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    margin-bottom: 25px !important;
    color: #1a1a1a !important;
    border-bottom: 2px solid #f9f9f9 !important;
    padding-bottom: 15px !important;
    text-align: right !important;
}

.cart-collaterals .shop_table {
    width: 100% !important;
    border: none !important;
    margin-bottom: 30px !important;
}

.cart-collaterals .shop_table th {
    text-align: right !important;
    padding: 15px 0 !important;
    color: #666 !important;
    font-weight: 600 !important;
}

.cart-collaterals .shop_table td {
    text-align: left !important;
    padding: 15px 0 !important;
    color: #111 !important;
    font-weight: 800 !important;
}

.cart-collaterals .shop_table tr.order-total th,
.cart-collaterals .shop_table tr.order-total td {
    border-top: 2px dashed #eee !important;
    padding-top: 20px !important;
    font-size: 1.4rem !important;
    color: var(--primary-color, #ea9527) !important;
}

/* Proceed to Checkout Button - STRICT FIX */
.wc-proceed-to-checkout .checkout-button {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, var(--primary-color, #ea9527) 0%, #d35400 100%) !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    padding: 20px !important;
    border-radius: 14px !important;
    margin-top: 10px !important;
    transition: all 0.3s !important;
    box-shadow: 0 10px 30px rgba(234, 149, 39, 0.4) !important;
    text-align: center !important;
    border: none !important;
    text-decoration: none !important;
}

.wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(234, 149, 39, 0.5) !important;
    background: linear-gradient(135deg, #d35400 0%, var(--primary-color, #ea9527) 100%) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .woocommerce-cart table.shop_table,
    .woocommerce-cart table.cart {
        display: block !important;
    }
    
    .woocommerce-cart table.shop_table thead,
    .woocommerce-cart table.cart thead {
        display: none !important;
    }
    
    .woocommerce-cart table.shop_table tbody,
    .woocommerce-cart table.cart tbody {
        display: block !important;
    }
    
    .woocommerce-cart table.shop_table tr,
    .woocommerce-cart table.cart tr {
        display: block !important;
        margin-bottom: 20px !important;
        padding: 20px !important;
        position: relative !important;
    }
    
    .woocommerce-cart table.shop_table td,
    .woocommerce-cart table.cart td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #f9f9f9 !important;
        text-align: right !important;
    }
    
    .woocommerce-cart table.shop_table td::before,
    .woocommerce-cart table.cart td::before {
        content: attr(data-title);
        font-weight: 700;
        color: #999;
        font-size: 0.9rem;
    }
    
    .woocommerce-cart table.shop_table td.product-thumbnail,
    .woocommerce-cart table.cart td.product-thumbnail {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        text-align: center !important;
        border-bottom: none !important;
    }
    
    .woocommerce-cart table.shop_table td.product-thumbnail img,
    .woocommerce-cart table.cart td.product-thumbnail img {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 15px !important;
    }
    
    .woocommerce-cart table.shop_table td.product-remove,
    .woocommerce-cart table.cart td.product-remove {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important; /* Arabic left */
        width: auto !important;
        border: none !important;
    }
    
    .woocommerce-cart .coupon {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .woocommerce-cart .coupon input.input-text {
        width: 100% !important;
    }
    
    .cart-collaterals .cart_totals {
        padding: 25px !important;
    }
}


/* =========================================
   Checkout Page Color & Heading Fixes
   ========================================= */
/* Force Headings to Primary Color (Fixing the Red Issue) */
.woocommerce-checkout h3,
#order_review_heading,
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    color: var(--primary-color, #ea9527) !important;
    font-family: 'Alexandria', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
    margin-top: 20px !important;
    margin-bottom: 25px !important;
    border: none !important;
    background: transparent !important;
}

/* Fix Input Labels if they are red */
.woocommerce-checkout label {
    color: #333 !important;
}

/* Fix Required Asterisk Color */
.woocommerce-checkout .required {
    color: var(--primary-color, #ea9527) !important; /* Make asterisk orange instead of red */
    text-decoration: none !important;
}

/* Ensure no red borders on inputs unless error */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout textarea {
    border-color: #f0f0f0 !important;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus {
    border-color: var(--primary-color, #ea9527) !important;
}

/* =========================================
   FINAL OVERRIDE FOR HEADINGS & FRAMES
   (The "Super Nuclear Option" to remove all borders)
   ========================================= */
/* 1. Standard Headings */
h1, h2, h3, h4, h5, h6 {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-style: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 2. WooCommerce Specific */
.woocommerce h1, .woocommerce h2, .woocommerce h3, .woocommerce h4, .woocommerce h5, .woocommerce h6,
.woocommerce-page h1, .woocommerce-page h2, .woocommerce-page h3, .woocommerce-page h4, .woocommerce-page h5, .woocommerce-page h6 {
    border: none !important;
    border-bottom: none !important;
}

/* 3. Theme & Class Specific */
.entry-title, .page-title, .section-title, .widget-title,
.product_title, .woocommerce-loop-product__title,
.box-title, .modern-title, .goha-checkout-subtitle,
.related-title, .mosaic-title, .feature-title,
.accordion-header, .form-title,
.elementor-heading-title, .elementor-widget-heading {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

/* 4. Deep Nesting & Elementor Overrides */
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
body #content h1, body #content h2, body #content h3, body #content h4, body #content h5, body #content h6,
.elementor-widget-heading .elementor-heading-title {
    border: none !important;
    border-style: none !important;
}

/* 5. Remove Pseudo-element Underlines/Borders (Common in Themes) */
h1::after, h2::after, h3::after, h4::after, h5::after, h6::after,
.widget-title::after, .section-title::after,
.entry-title::after, .page-title::after {
    border: none !important;
    background: none !important; /* Removes underline bars */
    box-shadow: none !important;
    /* Do not set content: none as it might hide icons, just hide the styling */
}

h1::before, h2::before, h3::before, h4::before, h5::before, h6::before,
.widget-title::before,
.entry-title::before, .page-title::before {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}
