* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'SolaimanLipi';
    src: url('/arafat/wp-content/themes/tilestoolsbd/fonts/SolaimanLipi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
  font-size: 62.5%; /* 16px × 62.5% = 10px */
}


body {
    font-family: 'SolaimanLipi', 'Noto Sans Bengali', sans-serif !important;
    background: #fff;
    color: #222;
    line-height: 1.6;
    font-size: 2.5rem !important;
}

.container {
    max-width: 1328px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 1.8rem;
    line-height: 1.5;
}

.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.breadcrumbs span:not(.breadcrumb-current) {
    color: #6b7280;
    margin: 0 8px;
    font-weight: normal;
}

.breadcrumbs span:last-child {
    color: #374151;
    font-weight: 600;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 12px 15px;
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .breadcrumbs span:not(.breadcrumb-current) {
        margin: 0 6px;
    }
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.footer-main {
    padding: 48px 0 32px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo-wrapper {
    margin-bottom: 16px;
}

.footer-logo {
    height: 48px !important;
    width: auto !important;
    display: block;
}

.footer-tagline {
    font-size: 2.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.footer-description {
    font-size: 2rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

.footer-heading {
    font-size: 2.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 16px 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #fb923c, #f97316);
    border-radius: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 2rem;
    transition: all 0.3s ease;
    padding: 4px 0;
    border-radius: 4px;
}

.footer-links a:hover {
    color: #fb923c;
    transform: translateX(4px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    color: #cbd5e1;
}

.contact-icon {
    width: 16px;
    height: 16px;
    color: #fb923c;
    flex-shrink: 0;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    color: #cbd5e1;
}

.trust-icon {
    width: 16px;
    height: 16px;
    color: #16a34a;
    flex-shrink: 0;
}

.footer-bottom {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid #334155;
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    font-size: 1.8rem;
    color: #94a3b8;
}

.footer-payment {
    color: #94a3b8;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-text {
    font-size: 1.8rem;
    color: #94a3b8;
}

.payment-icons {
    display: flex;
    gap: 8px;
}

/* Remove extra right-side radio UI since native radios exist */
.payment-method-selector { display: none !important; }
#payment .wc_payment_method label::after { display: none !important; content: none !important; }

/* Hide default place-order row and privacy text inside payment section */
.woocommerce-checkout #payment .place-order { display: none !important; }
.woocommerce-checkout #payment .woocommerce-privacy-policy-text { display: none !important; }

@media (max-width: 480px) {
    .footer-main {
        padding: 32px 0 24px;
    }
    
    .footer-content {
        gap: 24px;
    }
    
    .payment-icons {
        flex-wrap: wrap;
    }
}/* Header Styles */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
}

/* Marquee Banner */
.marquee-banner {
    background: #4D874D;
    color: white;
    padding: 8px 0;
    font-size: 15px;
    overflow: hidden;
    font-weight: 500;
}

.marquee-banner {
    background-color: #10777B;
    max-height: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-text {
    font-size: 2.5rem;
    color: #fff;
    padding-right: 50px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-banner marquee {
    white-space: nowrap;
    font-family: 'SolaimanLipi', 'Noto Sans Bengali', sans-serif;
}

/* Main Header */
.main-header {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: block;
    line-height: 0;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* WordPress Custom Logo */
.custom-logo {
    height: 50px !important;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover,
.custom-logo:hover {
    transform: scale(1.05);
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
    font-size: 2.5rem;
    font-family: 'SolaimanLipi', 'Noto Sans Bengali', sans-serif;
}

.nav-menu li a:hover {
    color: #2980b9;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.search-icon,
.cart-icon,
.user-icon {
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    position: relative;
}

.search-icon:hover,
.cart-icon:hover,
.user-icon:hover {
    background-color: #f0f8ff;
    color: #2980b9;
    transform: scale(1.1);
}

/* Cart specific styling */
.cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Multi-language styling */
.multi-language {
    display: flex;
    align-items: center;
    margin-left: 5px;
}

/* Search icon active state */
.search-icon.active {
    background-color: #2980b9;
    color: white;
}

.search-icon:hover,
.cart-icon:hover,
.user-icon:hover {
    background: #f5f5f5;
    color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.user-icon a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.user-icon svg,
.search-icon svg,
.cart-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Search Dropdown Styling */
.search-dropdown {
    position: absolute;
    top: 50%;
    right: calc(100% + 15px);
    background: white;
    padding: 15px;
    width: 300px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(20px);
    transition: all 0.2s ease;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Search form styling inside dropdown */
.search-dropdown form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-dropdown .search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #eee;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    background: white;
}

.search-dropdown .search-field:focus {
    border-color: #666;
}

.search-dropdown .search-submit {
    background: #2980b9;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: white;
}

.search-dropdown .search-submit:hover {
    background: #1e6a96;
}

.search-dropdown .search-submit svg {
    width: 16px;
    height: 16px;
}

/* Responsive search dropdown */
@media (max-width: 768px) {
    .search-dropdown {
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        width: 280px;
        transform: translateY(-10px);
    }
    
    .search-dropdown.active {
        transform: translateY(0);
    }
    
    .header-icons {
        gap: 15px;
    }
    
    .search-icon,
    .cart-icon,
    .user-icon {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
}

/* Responsive search dropdown for mobile */
@media (max-width: 768px) {
    .search-dropdown {
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        width: 280px;
        transform: translateY(-10px) scale(0.9);
    }
    
    .search-dropdown.active {
        transform: translateY(0) scale(1);
    }
    
    .search-dropdown::after {
        display: none;
    }
}

.search-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid #e1e5e9;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    z-index: -1;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.search-field {
    flex: 1;
    padding: 12px 50px 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: 'SolaimanLipi', 'Noto Sans Bengali', sans-serif;
}

.search-field:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    background: white;
}

.search-field::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #007cba;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.search-submit:hover {
    background: #005a87;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.search-submit svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* Search Icon Animation */
.search-icon {
    position: relative;
}

.search-icon.active {
    background: #007cba;
    color: white;
}

/* Enhanced Cart Icon Design */
.cart-icon {
    position: relative !important;
    background: #f0f8ff !important;
    padding: 8px !important;
    transition: all 0.3s ease !important;
}

.cart-icon:hover {
    background: #007cba !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon svg {
    color: #007cba;
    transition: color 0.3s ease;
}

.cart-icon:hover svg {
    color: white !important;
}

.cart-count {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-count.show {
    opacity: 1;
    transform: scale(1);
}

.cart-count.animate {
    animation: cartPulse 0.8s ease;
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
        box-shadow: 0 4px 16px rgba(255, 71, 87, 0.6);
    }

    50% {
        transform: scale(0.9);
    }

    75% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2c8e8e;
    transition: 0.3s;
}

/* Banner Slider Section */
.main-banner {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 550px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active,
.dot:hover {
    background: white;
}

/* Shop by Category Section */
.shop-by-category {
    padding: 60px 0;
    background: #f8f9fa;
}

.category-main-title {
    text-align: center;
    font-size: 4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 50px;
    font-family: Arial, sans-serif;
}

.view-all-categories-btn-mobile {
    display: none;
    background: #009688;
    color: #fff;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.view-all-categories-btn-mobile:hover {
    background: #00796b;
}

/* Parent Grid */
.category-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;
}

/* Large Card (Left Side) */
.category-large {
    min-height: 580px;
}

/* Right Side Grid (4 Small Categories) */
.category-small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

/* Category Card */
.category-card {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: none;
}

.category-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Hide unnecessary text & logo */
.category-logo,
.category-title,
.category-subtitle {
    display: none;
}

/* Image Styling */
.category-image img,
.category-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* View All Button */
.view-all-container {
    text-align: center;
    margin-top: 30px;
}

.view-all-categories-btn {
    display: inline-block;
    background: #009688;
    color: #fff;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.view-all-categories-btn:hover {
    background: #00796b;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Mobile slider adjustments */
    .banner-slider {
        height: 250px;
    }

    .slider-btn {
        padding: 12px 16px;
        font-size: 16px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .slider-dots {
        bottom: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .header-icons {
        gap: 10px;
    }

    .search-icon,
    .cart-icon {
        padding: 6px;
    }

    .user-icon {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        display: block;
    }

    .header-wrapper {
        position: relative;
    }

    .marquee-banner {
        font-size: 13px;
        padding: 8px 0;
    }

    /* Category Section Mobile */
    .category-header {
        margin-bottom: 20px;
    }

    .category-main-title {
        font-size: 1.8rem;
        text-align: left;
        margin-bottom: 0;
        flex: 1;
    }

    .view-all-container {
        display: none;
    }

    .view-all-categories-btn-mobile {
        display: inline-block;
    }

    .category-grid-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .category-large {
        grid-row: span 1;
        min-height: 180px;
        order: 1;
        margin-bottom: 10px;
    }

    .category-small-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 8px;
        order: 2;
    }

    .category-small {
        min-height: 120px;
    }

    .category-card {
        min-height: 120px;
    }

    /* Mobile Cart */
    .cart-count {
        min-width: 18px !important;
        height: 18px !important;
        font-size: 11px !important;
        top: -10px !important;
        right: -10px !important;
    }
}

/* Payment Methods Styling */
.payment-methods-wrapper {
    margin-top: 20px;
}

.payment-methods-grid,
#payment .wc_payment_methods {
    display: grid;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.payment-method-card,
#payment .wc_payment_method {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    margin: 0;
    padding: 0;
    position: relative;
    pointer-events: auto;
}

.payment-method-card:hover,
#payment .wc_payment_method:hover {
    border-color: #fb923c;
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.15);
}

/* Active payment method background */
.payment-method-card.selected,
#payment .wc_payment_method.selected,
#payment .wc_payment_method input[type="radio"]:checked + label {
    border-color: #fb923c;
    background: #fff7ed; /* solid warm highlight */
    box-shadow: 0 4px 20px rgba(251, 146, 60, 0.15);
}
.payment-method-header,
#payment .wc_payment_method > label {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    gap: 16px;
    transition: all 0.3s ease;
    margin: 0;
}

.payment-method-label,
#payment .wc_payment_method label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 16px;
    transition: all 0.3s ease;
    margin: 0;
    width: 100%;
    position: relative;
    pointer-events: auto;
}

.payment-method-icon,
#payment .wc_payment_method label::before {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 20px;
    color: #64748b;
    transition: all 0.3s ease;
    content: "💳";
    font-family: "Font Awesome 5 Free", sans-serif;
}

#payment .wc_payment_method input[type="radio"]:checked + label::before {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

.payment-method-content {
    flex: 1;
}

.payment-method-name,
#payment .wc_payment_method label {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-method-subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.recommended-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Remove old custom right-side radio visuals */
.payment-method-selector,
#payment .wc_payment_method label::after { display: none !important; content: none !important; }

.payment-method-details,
#payment .payment_box {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #f3f4f6;
    margin-top: 0;
    background: #f9fafb;
    display: none;
}

#payment .wc_payment_method input[type="radio"]:checked ~ .payment_box {
    display: block !important;
}

/* Rely solely on the checked radio state to show details to avoid accidental multiple opens */
/* #payment .wc_payment_method.selected .payment_box { display: block !important; } */

.payment-method-details .form-row,
#payment .payment_box .form-row {
    margin-bottom: 15px;
}

.payment-method-details label,
#payment .payment_box label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
    display: block;
}

.payment-method-details input[type="text"],
.payment-method-details input[type="email"],
.payment-method-details input[type="tel"],
.payment-method-details select,
#payment .payment_box input[type="text"],
#payment .payment_box input[type="email"],
#payment .payment_box input[type="tel"],
#payment .payment_box select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.payment-method-details input:focus,
.payment-method-details select:focus,
#payment .payment_box input:focus,
#payment .payment_box select:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

/* Special Instructions Section */
.form-section.special-instructions {
    margin-top: 24px;
}

.form-section.special-instructions .section-header {
    margin-bottom: 20px;
}

.instructions-content {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.instructions-content .form-row.terms {
    margin-bottom: 16px;
}

.instructions-content .form-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

.instructions-content .form-textarea:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

/* Security badges */
.security-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 4px;
}

.security-badge i {
    color: #10b981;
}

/* Payment Security Info */
.payment-security-info {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #d1fae5;
    border-radius: 12px;
}

.security-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #065f46;
    font-size: 14px;
}

.security-header i {
    color: #10b981;
    font-size: 16px;
}

.security-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.security-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #047857;
}

.security-feature i {
    color: #10b981;
    font-size: 14px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .payment-method-label {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .payment-method-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .payment-method-name {
        font-size: 15px;
    }
    
    .payment-method-subtitle {
        font-size: 13px;
    }
    
    .payment-method-details {
        padding: 0 16px 16px 16px;
    }
}

/* Checkout Layout - Two Column Design */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.checkout-main {
    min-width: 0; /* Prevents grid overflow */
}

.order-sidebar {
    position: sticky;
    top: 20px;
}

.special-instructions {
    grid-column: 1 / -1; /* Spans full width */
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.instructions-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.form-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

/* Mobile layout adjustments */
@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .order-sidebar {
        position: static;
        order: -1; /* Move to top on mobile */
    }
    
    .special-instructions {
        margin-top: 30px;
        padding-top: 20px;
    }
}

/* Screen Reader Text - Hide from visual display but keep accessible */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* WooCommerce specific screen reader text hiding */
.woocommerce .screen-reader-text,
.woocommerce-Price-amount .screen-reader-text,
.price .screen-reader-text,
.woocommerce .price .screen-reader-text {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
}

/* Hide the "View cart" button that appears after adding to cart */
.woocommerce a.added_to_cart,
.added_to_cart.wc-forward {
    display: none !important;
}

/* Policy Pages Font Size */
.privacy-policy-page,
.refund-policy-page,
.terms-page {
    font-size: 25px !important;
}

.privacy-policy-page h1,
.privacy-policy-page h2,
.refund-policy-page h1,
.refund-policy-page h2,
.terms-page h1,
.terms-page h2 {
    font-size: 30px !important;
}

.privacy-policy-page .policy-content,
.refund-policy-page .policy-content,
.terms-page .policy-content {
    font-size: 25px !important;
}

.privacy-policy-page .policy-content p,
.privacy-policy-page .policy-content li,
.refund-policy-page .policy-content p,
.refund-policy-page .policy-content li,
.terms-page .policy-content p,
.terms-page .policy-content li {
    font-size: 25px !important;
}

/* Policy Pages Header Margin */
.privacy-policy-page .page-header,
.refund-policy-page .page-header,
.terms-page .page-header {
    margin-top: 80px !important;
}