/* ===================================================================
   WOOCOMMERCE COMPLETE CSS - DEFAULT ADD TO CART VERSION
   =================================================================== */


/* ===== PRODUCT PAGE LAYOUT ===== */

.custom-product-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 1rem 2rem 1rem;
}

.custom-product-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    margin-top: 4rem;
    align-items: start;
}

/* ===== LEFT SIDE: PRODUCT GALLERY ===== */

.custom-product-gallery {
    width: 100%;
    position: relative;
    margin-top: 1rem;
}

.main-product-image {
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f8f8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.main-product-image img,
.main-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
    cursor: default;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    margin-top: 1.5rem;
}

.gallery-thumb {
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-thumb:hover {
    opacity: 0.85;
    border-color: #ccc;
    transform: translateY(-2px);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #0066FF;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.gallery-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== RIGHT SIDE: PRODUCT INFO ===== */

.custom-product-info {
    padding: 1rem 0;
    position: sticky;
    top: 2rem;
}

.custom-product-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #1a1a1a;
}

/* ===== STAR RATING ===== */

.custom-rating-wrapper {
    margin: 15px 0;
}

.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-rating {
    color: #ffc107;
    font-size: 18px;
}

.woocommerce-review-link {
    color: #0066FF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.woocommerce-review-link:hover {
    text-decoration: underline;
}

/* ===== CUSTOM PRICING DISPLAY ===== */

.custom-product-price-wrapper {
    margin: 30px 0;
    position: relative;
}

.sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-text {
    font-size: 12px;
}

.badge-discount {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
}

.price-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.old-price {
    font-size: 20px;
    text-decoration: line-through;
    color: #999;
    font-weight: 500;
}

.current-price {
    font-size: 42px;
    font-weight: 800;
    color: #0066FF;
    line-height: 1;
    letter-spacing: -1px;
}

.you-save {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* OLD PRICE FALLBACK */
.custom-product-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #0066FF;
}

/* ===== SHORT DESCRIPTION ===== */

.custom-short-description {
    margin: 25px 0 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    border-left: 4px solid #0066FF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-short-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 12px 0;
}

.custom-short-description p:last-child {
    margin-bottom: 0;
}

.custom-short-description strong {
    color: #0066FF;
    font-weight: 600;
}

.custom-short-description a {
    color: #0066FF;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.custom-short-description a:hover {
    border-bottom-color: #0066FF;
}

.custom-short-description ul,
.custom-short-description ol {
    margin: 15px 0;
    padding-left: 25px;
}

.custom-short-description li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #555;
}

.custom-short-description ul li {
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.custom-short-description ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0066FF;
    font-weight: 700;
}

/* ===== ADD TO CART ===== */

.custom-add-to-cart-wrapper {
    margin-bottom: 2rem;
}

.single_add_to_cart_button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: #0066FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single_add_to_cart_button:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
}

.quantity {
    margin-bottom: 1rem;
}

.quantity input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* ===== PRODUCT META ===== */

.custom-product-meta {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.custom-product-meta .meta-item {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.custom-product-meta .meta-item strong {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #333;
}

.custom-product-meta .meta-item a {
    color: #0066FF;
    text-decoration: none;
}

.custom-product-meta .meta-item a:hover {
    text-decoration: underline;
}

/* ===== FIXED TABBED INTERFACE ===== */

.custom-product-tabs {
    margin: 60px 0 40px 0;
}

/* Tab Navigation - CLEAN DESIGN */
.tabs-nav {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs-nav .tab-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tabs-nav .tab-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.tabs-nav .tab-link:hover {
    color: #0066FF;
    background: rgba(0, 102, 255, 0.1);
}

.tabs-nav .tab-link.active {
    color: #0066FF;
    background: #fff;
    border-bottom: 3px solid #0066FF;
}

/* Tab Content */
.tabs-content {
    background: #fff;
    padding: 40px;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 8px 8px;
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Description Content */
.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.description-content p {
    margin-bottom: 20px;
}

.description-content h2,
.description-content h3,
.description-content h4 {
    color: #1a1a1a;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.description-content h2 {
    font-size: 28px;
}

.description-content h3 {
    font-size: 22px;
}

.description-content h4 {
    font-size: 18px;
}

/* ===== PREMIUM REVIEWS SECTION ===== */

#reviews {
    padding: 0;
}

/* Reviews Header */
#reviews h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 35px;
    color: #1a1a1a;
    padding-bottom: 25px;
    border-bottom: 3px solid #0066FF;
    position: relative;
}

#reviews h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(135deg, #0066FF, #6d28d9);
    border-radius: 3px;
}

.woocommerce-Reviews-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-Reviews-title::before {
    content: '⭐';
    font-size: 32px;
}

/* Reviews Overview Stats */
.reviews-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #F5F8FF, #ffffff);
    border-radius: 12px;
    border: 2px solid #E0EAF5;
}

.review-stat {
    text-align: center;
    padding: 15px;
}

.review-stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #0066FF;
    display: block;
    margin-bottom: 5px;
}

.review-stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Reviews List */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.commentlist .comment {
    padding: 0;
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #e5e5e5;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.commentlist .comment:hover {
    border-color: #0066FF;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
    transform: translateY(-2px);
}

.commentlist .comment-text {
    padding: 30px;
}

/* Review Header with Avatar */
.commentlist .meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.commentlist .avatar {
    border-radius: 50%;
    border: 4px solid #0066FF;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
    width: 60px;
    height: 60px;
}

.commentlist .reviewer-info {
    flex: 1;
}

.commentlist .woocommerce-review__author {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.commentlist .verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.commentlist .verified-badge::before {
    content: '✓';
    font-size: 12px;
    font-weight: 800;
}

.commentlist .woocommerce-review__published-date {
    font-size: 14px;
    color: #999;
    display: block;
    font-weight: 500;
}

/* Star Rating in Reviews */
.commentlist .star-rating {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 18px;
}

.commentlist .star-rating span {
    color: #ffc107;
    text-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}

/* Review Content */
.commentlist .description p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Review Actions */
.review-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.review-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-action-btn:hover {
    background: #0066FF;
    border-color: #0066FF;
    color: white;
    transform: translateY(-2px);
}

.review-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Review Form Section */
.comment-reply-title {
    font-size: 26px;
    font-weight: 800;
    margin: 50px 0 30px 0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-reply-title::before {
    content: '✍️';
    font-size: 30px;
}

.comment-form {
    background: linear-gradient(135deg, #ffffff, #F5F8FF);
    padding: 40px;
    border-radius: 16px;
    margin-top: 30px;
    border: 2px solid #E0EAF5;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
}

.comment-form p {
    margin-bottom: 25px;
}

/* Star Rating Selector */
.comment-form-rating {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e5e5e5;
}

.comment-form-rating label {
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
}

.stars {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stars a {
    color: #e0e0e0;
    font-size: 32px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stars a:hover,
.stars a.active {
    color: #ffc107;
    transform: scale(1.2) rotate(-10deg);
    filter: drop-shadow(0 4px 8px rgba(255, 193, 7, 0.4));
}

.stars a.active {
    animation: starPulse 0.5s ease;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.4); }
}

/* Form Fields */
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    background: white;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus {
    border-color: #0066FF;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* Submit Button */
.form-submit {
    margin-top: 30px;
    margin-bottom: 0;
}

.form-submit input[type="submit"] {
    background: linear-gradient(135deg, #0066FF, #6d28d9);
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-submit input[type="submit"]:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
}

.form-submit input[type="submit"]:active {
    transform: translateY(-1px);
}

/* No Reviews State */
.woocommerce-noreviews {
    text-align: center;
    padding: 80px 30px;
    background: linear-gradient(135deg, #F5F8FF, #ffffff);
    border-radius: 16px;
    color: #999;
    font-size: 17px;
    border: 3px dashed #E0EAF5;
    margin: 40px 0;
}

.woocommerce-noreviews::before {
    content: '⭐';
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Review Count Badge */
.review-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0066FF, #6d28d9);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 15px;
}

/* Helpful/Not Helpful Counters */
.review-helpful-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.review-helpful-count.helpful {
    color: #10b981;
}

.review-helpful-count.not-helpful {
    color: #ef4444;
}

/* ===== ADDITIONAL INFO TABLE ===== */

.attributes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.attributes-table tr {
    border-bottom: 1px solid #e5e5e5;
}

.attributes-table th,
.attributes-table td {
    padding: 15px;
    text-align: left;
}

.attributes-table th {
    font-weight: 600;
    width: 35%;
    background: #f9f9f9;
    color: #333;
}

.attributes-table td {
    width: 65%;
    color: #555;
}

/* ===== OLD DESCRIPTION/ATTRIBUTES (FALLBACK) ===== */

.custom-product-description,
.custom-product-attributes {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.custom-product-description h2,
.custom-product-attributes h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #0066FF;
    padding-bottom: 0.75rem;
    color: #1a1a1a;
}

/* ===== WOOCOMMERCE DEFAULT GALLERY SUPPORT ===== */

.woocommerce-product-gallery {
    width: 100%;
    position: relative;
    margin-top: 1rem;
}

.woocommerce-product-gallery__wrapper {
    margin: 0;
    padding: 0;
}

.woocommerce-product-gallery__image {
    width: 100%;
    max-height: 500px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    object-fit: contain;
}

/* ===== WOOCOMMERCE FIXES ===== */

.woocommerce div.product {
    margin-top: 1.5rem;
}

.woocommerce div.product div.images {
    width: 100%;
    float: none;
}

.woocommerce div.product div.summary {
    width: 100%;
    float: none;
}

.woocommerce div.product div.images img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    box-shadow: none;
}

.custom-product-gallery img,
.woocommerce-product-gallery img,
.main-product-image img {
    max-height: 500px;
    object-fit: contain;
}

/* ===== SHOP/ARCHIVE PAGES ===== */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.woocommerce ul.products li.product {
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    list-style: none;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.woocommerce ul.products li.product .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0066FF;
    margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: #0066FF;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

/* ===== BREADCRUMBS ===== */

.woocommerce-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.woocommerce-breadcrumb a {
    color: #0066FF;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== PAGINATION ===== */

.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin-top: 3rem;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    display: inline-block;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: block;
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #0066FF;
    border-color: #0066FF;
    color: #fff;
}

/* ===== CHECKOUT PAGE ===== */

.woocommerce-checkout #primary,
.woocommerce-checkout .content-area,
.woocommerce-checkout main {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 80px 40px !important;
}

.woocommerce-checkout .woocommerce {
    padding: 0 !important;
}

.woocommerce-checkout form.checkout {
    max-width: 100% !important;
    margin: 0 auto !important;
}

.woocommerce-checkout .col2-set {
    width: 60% !important;
    float: left !important;
    padding-right: 40px !important;
    margin-bottom: 0 !important;
}

.woocommerce-checkout #order_review_heading {
    display: none;
}

.woocommerce-checkout #order_review {
    width: 38% !important;
    float: right !important;
    padding: 30px !important;
    background: #f9f9f9 !important;
    border-radius: 12px !important;
    border: 1px solid #e5e5e5 !important;
    position: sticky !important;
    top: 30px !important;
}

.woocommerce-checkout #customer_details {
    margin-bottom: 30px !important;
}

.woocommerce-checkout .woocommerce-billing-fields h3 {
    font-size: 1.5rem !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #e5e5e5 !important;
}

.woocommerce-checkout .form-row {
    margin-bottom: 20px !important;
    padding: 0 !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    padding: 12px 15px !important;
    width: 100% !important;
    border: 2px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 15px !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #0066FF !important;
    outline: none !important;
}

.woocommerce-checkout .shop_table {
    width: 100% !important;
    margin-bottom: 25px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.woocommerce-checkout .shop_table th {
    background: #fff !important;
    padding: 15px !important;
    font-weight: 600 !important;
    text-align: left !important;
    border-bottom: 2px solid #e5e5e5 !important;
}

.woocommerce-checkout .shop_table td {
    padding: 15px !important;
    border-bottom: 1px solid #eee !important;
}

.woocommerce-checkout .shop_table .product-name {
    font-weight: 500 !important;
}

.woocommerce-checkout .shop_table .product-total {
    text-align: right !important;
    font-weight: 600 !important;
    color: #0066FF !important;
}

.woocommerce-checkout .cart-subtotal th,
.woocommerce-checkout .cart-subtotal td,
.woocommerce-checkout .order-total th,
.woocommerce-checkout .order-total td {
    font-size: 16px !important;
    padding: 15px !important;
}

.woocommerce-checkout .order-total {
    background: #fff !important;
    border-top: 2px solid #0066FF !important;
}

.woocommerce-checkout .order-total .amount {
    color: #0066FF !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.woocommerce-checkout #payment {
    background: #fff !important;
    padding: 25px !important;
    border-radius: 8px !important;
    margin-top: 20px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    padding: 0 !important;
    margin-bottom: 20px !important;
    list-style: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 15px !important;
    margin-bottom: 12px !important;
    background: #f9f9f9 !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 8px !important;
}

.woocommerce-checkout #place_order {
    width: 100% !important;
    padding: 18px 30px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    margin-top: 20px !important;
    background: #0066FF !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.woocommerce-checkout #place_order:hover {
    background: #6d28d9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4) !important;
}

.woocommerce-checkout form.checkout::after,
.woocommerce-checkout::after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large tablets */
@media (max-width: 1200px) {
    .custom-product-wrapper {
        padding: 2rem 1rem;
    }
    
    .custom-product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .main-product-image,
    .woocommerce-product-gallery__image {
        max-height: 450px;
    }
    
    .main-product-image img,
    .woocommerce-product-gallery__image img {
        max-height: 450px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .custom-product-wrapper {
        padding: 2rem 1rem;
    }
    
    .custom-product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .custom-product-info {
        position: relative;
        top: 0;
        padding-top: 0;
    }
    
    .custom-product-title {
        font-size: 1.5rem;
    }
    
    .main-product-image,
    .woocommerce-product-gallery__image {
        max-height: 400px;
    }
    
    .main-product-image img,
    .woocommerce-product-gallery__image img {
        max-height: 400px;
    }
    
    /* Checkout */
    .woocommerce-checkout #primary,
    .woocommerce-checkout .content-area,
    .woocommerce-checkout main {
        padding: 40px 30px !important;
    }
    
    .woocommerce-checkout .col2-set {
        width: 58% !important;
        padding-right: 30px !important;
    }
    
    .woocommerce-checkout #order_review {
        width: 40% !important;
        padding: 25px !important;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .custom-product-wrapper {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }
    
    .custom-product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .custom-product-gallery {
        margin-top: 0;
        width: 100%;
    }
    
    .main-product-image,
    .woocommerce-product-gallery__image {
        max-height: 350px;
        margin-bottom: 2rem;
    }
    
    .main-product-image img,
    .woocommerce-product-gallery__image img {
        max-height: 350px;
        width: 100%;
    }
    
    .product-thumbnails,
    .custom-product-gallery .product-thumbnails {
        grid-template-columns: 1fr 1fr 1fr 1fr !important;
        gap: 8px !important;
    }
    
    .custom-product-info {
        padding: 0;
    }
    
    .custom-product-title {
        font-size: 1.4rem;
    }
    
    .custom-short-description {
        font-size: 0.9rem;
    }
    
    .custom-product-meta .meta-item {
        font-size: 0.85rem;
    }
    
    /* Pricing */
    .current-price {
        font-size: 36px;
    }
    
    .old-price {
        font-size: 18px;
    }
    
    .sale-badge {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .you-save {
        font-size: 13px;
        padding: 5px 14px;
    }
    
    .custom-short-description {
        padding: 15px;
        margin: 20px 0 25px 0;
    }
    
    .custom-short-description p {
        font-size: 15px;
    }
    
    /* Tabs */
    .custom-product-tabs {
        margin: 40px 0 30px 0;
    }
    
    .tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        border-radius: 6px 6px 0 0;
    }
    
    .tabs-nav .tab-link {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .tabs-content {
        padding: 25px 20px;
        min-height: 300px;
    }
    
    /* Reviews Mobile */
    .commentlist .comment {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .commentlist .comment-text {
        padding: 20px 15px;
    }
    
    .commentlist .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 15px;
    }
    
    .commentlist .avatar {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .comment-form {
        padding: 25px 20px;
    }
    
    .comment-form-rating {
        padding: 20px 15px;
    }
    
    .stars a {
        font-size: 28px;
    }
    
    #reviews h2 {
        font-size: 26px;
    }
    
    .woocommerce-Reviews-title {
        font-size: 24px;
    }
    
    .comment-reply-title {
        font-size: 22px;
    }
    
    .description-content {
        font-size: 15px;
    }
    
    /* Shop */
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    /* Checkout */
    .woocommerce-checkout #primary,
    .woocommerce-checkout .content-area,
    .woocommerce-checkout main {
        padding: 30px 20px !important;
    }
    
    .woocommerce-checkout .col2-set {
        width: 100% !important;
        float: none !important;
        padding-right: 0 !important;
        margin-bottom: 30px !important;
    }
    
    .woocommerce-checkout #order_review {
        width: 100% !important;
        float: none !important;
        position: relative !important;
        top: 0 !important;
        padding: 25px 20px !important;
    }
    
    .woocommerce-checkout #payment {
        padding: 20px 15px !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .custom-product-wrapper {
        padding: 1rem 0.75rem;
    }
    
    .custom-product-title {
        font-size: 1.2rem;
    }
    
    .main-product-image,
    .woocommerce-product-gallery__image {
        max-height: 300px;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }
    
    .main-product-image img,
    .woocommerce-product-gallery__image img {
        max-height: 300px;
    }
    
    .product-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 6px;
        margin-top: 1.5rem;
        padding-top: 0.75rem;
    }
    
    .gallery-thumb {
        border-radius: 6px !important;
    }
    
    .single_add_to_cart_button {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Pricing */
    .current-price {
        font-size: 32px;
    }
    
    .old-price {
        font-size: 16px;
    }
    
    .custom-short-description {
        padding: 12px;
        margin: 15px 0 20px 0;
    }
    
    .custom-short-description p {
        font-size: 14px;
    }
    
    /* Tabs */
    .tabs-nav .tab-link {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .tabs-nav .tab-link svg {
        width: 16px;
        height: 16px;
    }
    
    .tabs-content {
        padding: 20px 15px;
    }
    
    /* Reviews Small Mobile */
    .commentlist .comment-text {
        padding: 15px;
    }
    
    .comment-form {
        padding: 20px 15px;
    }
    
    .comment-form-rating {
        padding: 15px;
    }
    
    .stars a {
        font-size: 24px;
    }
    
    #reviews h2 {
        font-size: 24px;
    }
    
    .woocommerce-Reviews-title {
        font-size: 22px;
    }
    
    .comment-reply-title {
        font-size: 20px;
    }
    
    .form-submit input[type="submit"] {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .description-content {
        font-size: 14px;
    }
    
    .description-content h2 {
        font-size: 22px;
    }
    
    .description-content h3 {
        font-size: 18px;
    }
    
    /* Checkout */
    .woocommerce-checkout #primary,
    .woocommerce-checkout .content-area,
    .woocommerce-checkout main {
        padding: 20px 15px !important;
    }
    
    .woocommerce-checkout .woocommerce-billing-fields h3 {
        font-size: 1.3rem !important;
    }
    
    .woocommerce-checkout input.input-text,
    .woocommerce-checkout select {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    
    .woocommerce-checkout #order_review {
        padding: 20px 15px !important;
    }
    
    .woocommerce-checkout #place_order {
        padding: 15px 20px !important;
        font-size: 16px !important;
    }
}

/* ===== Z-INDEX LAYERS ===== */




.woocommerce-product-gallery,
.custom-product-gallery {
    z-index: 1;
}