/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Colors */
    --primary: #0B3EA8;
    --secondary: #1D4ED8;
    --accent: #2563EB;
    --white: #FFFFFF;
    --text: #1E293B;
    --text-light: #64748B;
    --gray: #F7F9FC;
    --border: #E5E7EB;
    --dark-blue: #07225A;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    
    /* Layout */
    --container-max: 1440px;
    --container-padding: 20px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

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

body {
    font-family: var(--font-primary);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 60px 0;
}

.bg-gray {
    background-color: var(--gray);
}

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

.text-accent {
    color: #4AA4FF; /* Lighter blue for hero highlight */
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/*
Theme Name: Al Opal Blue
Theme URI: https://example.com/
Author: Web Developer
Author URI: https://example.com/
Description: Custom WordPress theme for Al Opal
Version: 1.0.2
Requires at least: 5.8
Tested up to: 6.3
Requires PHP: 7.2
Text Domain: al-opal-blue
*/

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-header::before,
.section-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: clamp(50px, 15vw, 300px);
    height: 1px;
    background-color: var(--border);
}

.section-header::before {
    left: 0;
}

.section-header::after {
    right: 0;
}

.section-title {
    display: inline-block;
    background-color: var(--white);
    padding: 0 20px;
    position: relative;
    z-index: 1;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--primary);
    font-weight: 700;
}

.bg-gray .section-title {
    background-color: var(--gray);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.875rem;
    gap: 8px;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--white {
    background-color: var(--white);
    color: var(--primary);
}

.btn--white:hover {
    background-color: var(--gray);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ==========================================================================
   1. Top Announcement Bar
   ========================================================================== */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.8125rem;
}

.top-bar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__features {
    display: flex;
    gap: 24px;
}

.top-bar__feature {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.top-bar__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar__dropdown {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
    transition: var(--transition);
}

.top-bar__dropdown:hover {
    opacity: 1;
}

.top-bar__phone {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   2. Header Main
   ========================================================================== */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}

.header.is-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header__main {
    padding: 20px 0;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__logo {
    height: 80px;
    width: auto;
    border-radius: 8px;
    background-color: var(--white);
    padding: 4px;
    flex-shrink: 0;
}

.header__logo img {
    height: 80px;
    width: auto;
}

.header__logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header__logo-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.header__logo-subname {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.header__search {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    height: 44px;
}

.search-form__input {
    flex: 1;
    border: none;
    padding: 0 16px;
    height: 100%;
    outline: none;
    font-family: inherit;
}

.search-form__category {
    border-left: 1px solid var(--border);
    background-color: var(--gray);
    height: 100%;
    display: flex;
    align-items: center;
}

.search-category-dropdown {
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 16px;
    padding-right: 32px;
    font-size: 0.875rem;
    color: var(--text-light);
    outline: none;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.search-form__button {
    background-color: var(--primary);
    color: var(--white);
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-form__button:hover {
    background-color: var(--secondary);
}

.header__icons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text);
    font-size: 0.75rem;
    position: relative;
}

.header__icon-link i {
    font-size: 1.25rem;
    color: var(--primary);
}

.header__icon-link:hover {
    color: var(--accent);
}

.header__cart {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: 0;
    background-color: var(--text);
    color: var(--white);
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Force Elementor Full Width */
body, #page, .site-main, .entry-content {
    max-width: 100% !important;
}
.site-main {
    padding: 0 !important;
    margin: 0 !important;
}

/* Force our custom widgets to break out of Elementor's boxed limits automatically */
.elementor-section:has(.elementor-widget-alop_hero),
.elementor-section:has(.elementor-widget-alop_cta) {
    padding: 0 !important;
}
.elementor-section:has(.elementor-widget-alop_hero) > .elementor-container,
.elementor-section:has(.elementor-widget-alop_cta) > .elementor-container {
    max-width: 100% !important;
    padding: 0 !important;
}
.elementor-widget-wrap:has(.elementor-widget-alop_hero),
.elementor-widget-wrap:has(.elementor-widget-alop_cta) {
    padding: 0 !important;
}

/* ==========================================================================
   3. Navigation
   ========================================================================== */
.nav {
    border-top: 1px solid var(--border);
}

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

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: flex;
    align-items: center;
    padding: 16px 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    gap: 4px;
}

.nav__link i {
    font-size: 0.7rem;
}

.nav__link:hover, .nav__link--active {
    color: var(--primary);
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* Sub-menu Dropdowns */
.nav__sublist {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav__item:hover > .nav__sublist,
.nav__item:focus-within > .nav__sublist {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__sublist li {
    display: block;
    width: 100%;
}

.nav__sublist .nav__link {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav__sublist .nav__link:hover {
    background-color: var(--gray);
    color: var(--primary);
    padding-left: 25px;
}

/* ==========================================================================
   4. Hero Banner
   ========================================================================== */
.hero {
    position: relative;
    background-color: #051A40;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    overflow: hidden;
}

.hero__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5,26,64,0.95) 0%, rgba(5,26,64,0.7) 50%, rgba(5,26,64,0.3) 100%);
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
    padding: 0 5%;
}

.hero__content {
    max-width: 650px;
}

.hero__title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero__desc {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 3px solid var(--primary);
}

.hero__feature i,
.hero__feature svg {
    color: var(--primary);
    font-size: 1.2rem;
    width: 1em !important;
    height: 1em !important;
    max-width: 1.2rem;
    max-height: 1.2rem;
    fill: currentColor;
    display: inline-block;
}

.hero__image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero__image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* ==========================================================================
   5. Trusted Brands
   ========================================================================== */
.brands__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.brand-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: var(--transition);
    cursor: pointer;
}

.brand-card img {
    max-height: 40px;
    max-width: 100%;
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(100%);
}

.brand-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.brand-card:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* ==========================================================================
   6. Powering Industries
   ========================================================================== */
.powering-industries {
    /* Container section spacing */
}

.powering-industries__box {
    background-color: #03112E; /* Very dark blue */
    background-image: linear-gradient(90deg, #020C24 0%, #061B4A 100%);
    border-radius: 24px; /* Curve the box */
    color: var(--white);
    padding: 60px 40px; /* Reduced side padding slightly */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.powering-industries__content {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    max-width: 45%; /* Prevent text from taking too much space */
}

.powering-industries__subtitle {
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
    color: #A0B3D6; /* Lighter text for subtitle */
}

.powering-industries__title {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.powering-industries__desc {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: 0.9375rem;
}

.powering-industries__divider {
    width: 1px;
    height: 180px;
    background-color: rgba(255,255,255,0.15);
    position: relative;
    z-index: 2;
}

.powering-industries__features {
    display: flex;
    gap: clamp(10px, 2vw, 30px); /* Slightly reduced gap */
    flex: 1;
    position: relative;
    z-index: 2;
    justify-content: space-between;
    padding-right: 0;
}

.powering-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 90px;
}

.powering-feature__icon {
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    transition: var(--transition);
}

.powering-feature:hover .powering-feature__icon {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

.powering-feature__text {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

.powering-industries__map {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35%;
    height: 150%;
    background-image: url('data:image/svg+xml;utf8,<svg width="400" height="200" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="1.5" fill="%23ffffff" opacity="0.2"/><circle cx="30" cy="20" r="1.5" fill="%23ffffff" opacity="0.2"/></svg>'); /* Placeholder for dotted map */
    background-size: cover;
    background-position: right center;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   7. Featured Products
   ========================================================================== */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card__image-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.product-card__image {
    max-height: 100%;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.05);
}

.product-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text);
    flex: 1;
}

.product-card__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #10B981; /* Green color for price as per design */
    margin-bottom: 16px;
}

.product-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.product-card__view {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.product-card__view:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.product-card__cart {
    color: var(--primary);
    font-size: 1.25rem;
    transition: var(--transition);
}

.product-card__cart:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* ==========================================================================
   8. Feature Strip
   ========================================================================== */
.feature-strip {
    background-color: var(--white);
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-strip__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-strip__item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 250px;
}

.feature-strip__icon {
    font-size: 2rem;
    color: var(--primary);
}

.feature-strip__text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-strip__text p {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* ==========================================================================
   9. Browse Categories
   ========================================================================== */
.categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    min-height: 120px;
}

.category-card__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    flex: 1;
}

.category-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 95%;
}

.category-card__arrow {
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #4A5568; /* Slate gray */
    z-index: 2;
    transition: var(--transition);
    position: relative;
    width: 60px;
}

/* Hover Accent Block */
.category-card__hover-accent {
    position: absolute;
    right: -20px; /* Hide initially or keep small */
    top: -10px;
    bottom: -10px;
    width: 0;
    background-color: var(--primary); /* Theme Color Accent */
    z-index: 1;
    transition: all 0.3s ease;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    opacity: 0;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.category-card:hover .category-card__hover-accent {
    width: 50px;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 1;
}

.category-card:hover .category-card__arrow {
    transform: translateX(5px);
}

/* Circular outline on hover for icon */
.category-card__icon::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    border: 1px solid #CBD5E1;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.category-card:hover .category-card__icon::before {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   10. CTA Section
   ========================================================================== */
.cta {
    background-color: var(--dark-blue);
    background-image: linear-gradient(135deg, rgba(7,34,90,1) 0%, rgba(11,62,168,1) 100%);
    color: var(--white);
    padding: 60px 0;
}

.cta__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: var(--border-radius);
}

.cta__icon {
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
}

.cta__content {
    flex: 1;
}

.cta__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta__desc {
    opacity: 0.9;
    max-width: 600px;
}

.cta__actions {
    display: flex;
    gap: 16px;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.footer {
    background-color: #03112E; /* Very dark blue for footer */
    color: #94A3B8; /* Slate gray for text */
    padding-top: 80px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer__logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer__logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background-color: var(--white);
    padding: 4px;
    flex-shrink: 0;
}

.footer__logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer__logo-name {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
}

.footer__logo-subname {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--white);
}

.footer__about {
    font-size: 0.875rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.footer__social a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.footer__title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.footer__links li, .footer__contact li {
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.footer__links a {
    color: inherit;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer__contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer__contact i {
    color: var(--primary);
    margin-top: 4px;
}

.footer__payments {
    display: flex;
    gap: 8px;
    background-color: var(--white);
    padding: 8px;
    border-radius: 4px;
    display: inline-flex;
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.75rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    animation: fadeUp 1s ease-out forwards;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Elementor SVG Fixes
   ========================================================================== */
.powering-feature__icon i,
.powering-feature__icon svg,
.powering-feature__icon img,
.feature-strip__icon i,
.feature-strip__icon svg,
.feature-strip__icon img,
.category-card__icon i,
.category-card__icon svg,
.category-card__icon img {
    width: 1em !important;
    height: 1em !important;
    max-width: 100% !important;
    max-height: 100% !important;
    fill: currentColor !important;
    display: inline-block !important;
}

/* ==========================================================================
   12. Custom Single Product Layout
   ========================================================================== */

.woocommerce-breadcrumb {
    max-width: var(--container-max);
    margin: 20px auto !important;
    padding: 0 var(--container-padding);
    color: var(--primary) !important;
    font-weight: 500;
}

.custom-single-product {
    display: flex;
    flex-direction: column;
    gap: 35px;
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: var(--container-max);
    margin: 0 auto 60px;
}

.product-top-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 4.5fr) minmax(0, 5.5fr);
    gap: 45px;
    margin-bottom: 30px;
    align-items: start;
}
.product-top-wrapper > .product-gallery-wrapper,
.product-top-wrapper > .product-gallery-wrapper .woocommerce-product-gallery,
.product-top-wrapper > .summary.entry-summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Vertical Gallery Override */
.woocommerce-product-gallery {
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 20px;
    position: relative;
}
.woocommerce-product-gallery .flex-viewport {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    min-width: 0;
}
.woocommerce-product-gallery .flex-control-nav {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 !important;
    position: relative;
}
/* Mockup arrows for gallery (visual only) */
.woocommerce-product-gallery .flex-control-nav::before {
    content: '\f106'; /* FontAwesome up arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    text-align: center;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.woocommerce-product-gallery .flex-control-nav::after {
    content: '\f107'; /* FontAwesome down arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    text-align: center;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 5px;
}
.woocommerce-product-gallery .flex-control-nav li {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: var(--white);
}
.woocommerce-product-gallery .flex-control-nav li img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: var(--transition);
}
.woocommerce-product-gallery .flex-control-nav li img.flex-active {
    border-color: var(--primary) !important;
}

/* Meta & Brand */
.product-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.product-meta-left a {
    color: var(--primary);
    font-weight: 600;
}
.brand-logo-placeholder {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-style: italic;
    line-height: 1;
    text-align: right;
}
.brand-logo-placeholder span {
    font-size: 0.8rem;
    font-weight: 400;
}

/* Title */
.custom-single-product .product_title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
    word-break: break-word;
}

/* Stock & SKU */
.product-stock-sku {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    align-items: center;
}
.stock-badge {
    color: #10B981; /* Green */
    font-weight: 600;
}

/* Ratings */
.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.woocommerce-product-rating .woocommerce-review-link {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Price */
.custom-single-product .price {
    font-size: 2rem !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    margin-bottom: 20px;
}

/* Short Description */
.product-short-description {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Features Icons Grid */
.product-feature-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.feature-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    line-height: 1.3;
}
.feature-icon i {
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* Add to Cart Form & Buttons Grid */
.custom-single-product form.cart,
.woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 25px;
}
.custom-single-product .quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 10px 0;
}
.custom-single-product .quantity::before {
    content: "Quantity";
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    width: auto;
    flex-shrink: 0;
}
.custom-single-product .quantity .qty {
    width: 75px;
    height: 46px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    background: var(--white);
}

.custom-single-product button.single_add_to_cart_button {
    flex: 1;
    min-width: 160px;
    height: 46px !important;
    padding: 0 20px !important;
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    margin: 0 !important;
}
.custom-single-product button.single_add_to_cart_button:hover {
    background: var(--dark-blue) !important;
}
.custom-single-product .custom-yith-wrapper {
    flex: 1;
    min-width: 160px;
    margin: 0 !important;
}
.custom-single-product .custom-rfq-button {
    width: 100%;
    height: 46px !important;
    padding: 0 20px !important;
    background: var(--white) !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 !important;
}
.custom-single-product .custom-rfq-button:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

/* RFQ Modal Styles */
.rfq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.rfq-modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.rfq-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
}
.rfq-modal-close:hover {
    color: var(--text);
}
.rfq-modal-desc {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.5;
}
.rfq-row {
    margin-bottom: 15px;
}
.rfq-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.rfq-modal-content input[type="text"],
.rfq-modal-content input[type="tel"],
.rfq-modal-content input[type="email"],
.rfq-modal-content input[type="number"],
.rfq-modal-content select,
.rfq-modal-content textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
}
.rfq-modal-content input::placeholder,
.rfq-modal-content textarea::placeholder {
    color: #a0a0a0;
}
.rfq-select-wrapper {
    position: relative;
}
.rfq-select-wrapper label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--white);
    padding: 0 5px;
    font-size: 0.8rem;
    color: #a0a0a0;
    z-index: 2;
}

/* Product Detail Section */
.rfq-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 25px 0 15px;
}
.rfq-product-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.rfq-input-group {
    position: relative;
}
.rfq-col-code { flex: 2; }
.rfq-col-brand { flex: 2; }
.rfq-col-qty { flex: 1; }

.rfq-input-group label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--white);
    padding: 0 5px;
    font-size: 0.8rem;
    color: #a0a0a0;
    z-index: 2;
}

.rfq-add-part-btn {
    background: none;
    border: none;
    color: #00bcd4;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
}
.rfq-add-part-btn:hover {
    text-decoration: underline;
}

.mt-20 {
    margin-top: 20px;
}
.rfq-submit-wrapper {
    margin-top: 30px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}
.rfq-submit-btn {
    padding: 12px 30px !important;
    font-size: 1rem !important;
}
.rfq-message {
    font-size: 0.9rem;
    font-weight: 600;
}
.rfq-success { color: #10B981; }
.rfq-error { color: #ef4444; }

/* Side by side custom buttons */
.custom-single-product form.cart .button.single_add_to_cart_button {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 14px 24px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    flex: 1; /* Takes 50% */
    text-align: center;
    border: 2px solid var(--primary) !important;
    margin: 0 !important;
}
.custom-single-product form.cart .button.single_add_to_cart_button::before {
    content: '\f07a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}
.custom-yith-wrapper {
    flex: 1; /* Takes 50% */
}
.custom-yith-wrapper .yith-ywraq-add-to-quote {
    margin: 0 !important;
}
.custom-yith-wrapper .yith-ywraq-add-to-quote a.add-request-quote-button,
.custom-yith-wrapper .yith-ywraq-add-to-quote a {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    width: 100%;
    text-align: center;
    padding: 14px 24px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    display: block;
    margin: 0 !important;
}
.custom-yith-wrapper .yith-ywraq-add-to-quote a.add-request-quote-button:hover,
.custom-yith-wrapper .yith-ywraq-add-to-quote a:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

/* Wishlist Compare Share */
.product-actions-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}
.product-actions-links a {
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-actions-links a:hover {
    color: var(--primary);
}
.share-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}
.share-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
}

/* Feature Strip */
.product-feature-strip {
    display: flex;
    justify-content: space-between;
    background: #F8FAFC;
    padding: 30px 40px;
    border-radius: 8px;
    margin-bottom: 50px;
}
.strip-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.strip-item i {
    font-size: 2rem;
    color: var(--primary);
}

/* Custom Tabs */
.woocommerce-tabs ul.tabs {
    display: flex !important;
    justify-content: center !important;
    border-bottom: 2px solid #E2E8F0 !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
}
.woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    padding: 15px 30px !important;
    margin: 0 !important;
}
.woocommerce-tabs ul.tabs li a {
    font-weight: 700 !important;
    color: var(--text-light) !important;
    text-transform: uppercase;
}
.woocommerce-tabs ul.tabs li.active a {
    color: var(--primary) !important;
}
.woocommerce-tabs ul.tabs li.active {
    border-bottom: 3px solid var(--primary) !important;
}

/* Related Products */
.related.products h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 30px;
}
.related ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 20px !important;
}
.related ul.products li.product {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    text-align: left;
}
.related ul.products li.product:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.related ul.products li.product img {
    margin-bottom: 15px;
}
.related ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.related ul.products li.product .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}
/* ============================================
   CART PAGE - Professional Boxed Template
   Targets BOTH Block-based & Classic Cart
   ============================================ */

/* ---- Page Container ---- */
.woocommerce-cart .entry-content,
.woocommerce-cart .woocommerce,
.woocommerce-cart .wp-block-woocommerce-cart {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ---- Page Title ---- */
.woocommerce-cart .entry-title,
.woocommerce-cart .page-title,
.woocommerce-cart .wp-block-post-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 30px auto 20px;
    max-width: 1300px;
    padding: 0 30px;
}

/* ---- Block Cart: 2-Column Layout ---- */
.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper {
    width: 100%;
}
.woocommerce-cart .woocommerce-cart-form {
    flex: 1;
    min-width: 0;
}
.woocommerce-cart .cart-collaterals {
    width: 350px;
    flex-shrink: 0;
}

/* Block Cart Inner Layout */
.wp-block-woocommerce-cart .wc-block-cart {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.wp-block-woocommerce-cart .wc-block-cart__main {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.wp-block-woocommerce-cart .wc-block-cart__sidebar {
    width: 370px;
    flex-shrink: 0;
}

/* ---- Cart Items Card (Block) - only inner items get the card ---- */
.wc-block-cart .wc-block-cart-items {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
/* Remove card from the main wrapper to avoid double-box */
.wc-block-cart .wc-block-cart__main {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

/* Block Cart Table Header */
.wc-block-cart-items .wc-block-cart-items__header,
.wc-block-cart-items thead {
    background: #F1F5F9;
}
.wc-block-cart-items .wc-block-cart-items__header-image,
.wc-block-cart-items .wc-block-cart-items__header-product,
.wc-block-cart-items .wc-block-cart-items__header-total,
.wc-block-cart-items thead th {
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
}

/* Block Cart Item Row */
.wc-block-cart-items .wc-block-cart-items__row {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
}
.wc-block-cart-items .wc-block-cart-items__row:last-child {
    border-bottom: none;
}

/* Block Cart Product Image */
.wc-block-cart-items .wc-block-cart-item__image img,
.wc-block-cart-items .wc-block-components-product-image img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Block Cart Product Name */
.wc-block-cart-items .wc-block-cart-item__product .wc-block-components-product-name,
.wc-block-cart-items .wc-block-components-product-name {
    font-weight: 600 !important;
    color: var(--primary) !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    display: block;
    margin-bottom: 5px;
}

/* Block Cart Product Meta/Variations */
.wc-block-cart-items .wc-block-components-product-metadata,
.wc-block-cart-items .wc-block-cart-item__product .wc-block-components-product-details {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Hide product short description in cart */
.wc-block-cart-items .wc-block-components-product-metadata__description,
.wc-block-cart-items .wc-block-components-product-details__short-description {
    display: none !important;
}

/* Block Cart Price */
.wc-block-cart-items .wc-block-cart-item__total .wc-block-components-product-price,
.wc-block-cart-items .wc-block-components-product-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

/* Block Cart Quantity */
.wc-block-cart-items .wc-block-components-quantity-selector {
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}
.wc-block-cart-items .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
    width: 45px !important;
    height: 36px !important;
    text-align: center;
    border: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--white);
}
.wc-block-cart-items .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    width: 32px;
    height: 36px;
    background: #F8FAFC;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wc-block-cart-items .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
    background: var(--primary);
    color: var(--white);
}

/* Block Cart Remove Button */
.wc-block-cart-items .wc-block-cart-item__remove-link,
.wc-block-cart-items button.wc-block-cart-item__remove-link {
    color: #EF4444 !important;
    font-size: 0.8rem;
    background: none !important;
    border: none !important;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 8px;
}

/* ---- Cart Totals Sidebar (Block) ---- */
.wc-block-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block,
.wc-block-cart .wc-block-cart__sidebar,
.woocommerce-cart .cart_totals {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Sidebar Title */
.wc-block-cart .wc-block-cart__sidebar .wc-block-components-order-summary .wc-block-components-panel__button,
.wc-block-cart .wc-block-cart__sidebar h2,
.woocommerce-cart .cart_totals > h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

/* Subtotal / Total rows */
.wc-block-cart .wc-block-components-totals-item,
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    padding: 12px 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.wc-block-cart .wc-block-components-totals-item .wc-block-components-totals-item__label {
    font-weight: 600;
}
.wc-block-cart .wc-block-components-totals-item .wc-block-components-totals-item__value {
    font-weight: 700;
}

/* Estimated Total */
.wc-block-cart .wc-block-components-totals-footer-item,
.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    border-bottom: none !important;
    padding-top: 20px;
}

/* Coupon / Add Coupons */
.wc-block-components-totals-coupon,
.wc-block-cart .wc-block-components-panel {
    border-color: var(--border) !important;
}

/* ---- Checkout Button ---- */
.wc-block-cart .wc-block-cart__submit-container .wc-block-components-checkout-step__container a,
.wc-block-cart .wc-block-cart__submit-container a,
.wc-block-cart .wc-block-cart__submit-container .wc-block-cart__submit-button,
.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block a,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 15px 20px !important;
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none !important;
    text-decoration: none !important;
    cursor: pointer;
}
.wc-block-cart .wc-block-cart__submit-container a:hover,
.wc-block-cart__submit-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block a:hover,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--dark-blue) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(27, 50, 107, 0.3);
}

/* ---- Classic Cart Table ---- */
.woocommerce-cart table.shop_table {
    background: var(--white);
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100%;
}
.woocommerce-cart table.shop_table thead {
    background: #F1F5F9;
}
.woocommerce-cart table.shop_table thead th {
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border) !important;
}
.woocommerce-cart table.shop_table tbody td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border) !important;
    border-top: none !important;
}
.woocommerce-cart table.shop_table tbody tr:last-child td {
    border-bottom: none !important;
}
.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.woocommerce-cart table.shop_table .product-name a {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    text-decoration: none;
}
.woocommerce-cart table.shop_table .product-remove a.remove {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FEE2E2;
    color: #EF4444 !important;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}
.woocommerce-cart table.shop_table .product-remove a.remove:hover {
    background: #EF4444;
    color: var(--white) !important;
}
.woocommerce-cart table.shop_table td.actions {
    padding: 20px;
    background: #F8FAFC;
    border-top: 1px solid var(--border) !important;
}
.woocommerce-cart .coupon {
    display: flex;
    gap: 10px;
    align-items: center;
}
.woocommerce-cart .coupon #coupon_code {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    width: 200px;
}
.woocommerce-cart .coupon .button {
    background: var(--white) !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer;
}
.woocommerce-cart table.shop_table td.actions > .button {
    float: right;
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 10px 25px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
}

/* Classic Cart Totals Inner */
.woocommerce-cart .cart_totals table.shop_table {
    border: none !important;
    box-shadow: none;
    border-radius: 0;
}

/* ---- Empty Cart ---- */
.woocommerce-cart .cart-empty,
.wc-block-cart .wc-block-cart__empty-cart__title {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: var(--text-light);
    width: 100%;
}
.woocommerce-cart .return-to-shop .button {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
.woocommerce-cart .return-to-shop .button:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

/* ---- WooCommerce Notices ---- */
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info {
    background: #F0F9FF;
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.woocommerce-cart .woocommerce-error {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* ---- Responsive Cart ---- */
@media (max-width: 768px) {
    .woocommerce-cart .woocommerce,
    .wp-block-woocommerce-cart .wc-block-cart {
        flex-direction: column;
    }
    .woocommerce-cart .cart-collaterals,
    .wp-block-woocommerce-cart .wc-block-cart__sidebar {
        width: 100%;
    }
}

/* ============================================
   CHECKOUT PAGE - Professional Boxed Template
   ============================================ */

/* ---- Page Container ---- */
.woocommerce-checkout .entry-content,
.woocommerce-checkout .woocommerce,
.woocommerce-checkout .wp-block-woocommerce-checkout {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ---- Page Title ---- */
.woocommerce-checkout .entry-title,
.woocommerce-checkout .page-title,
.woocommerce-checkout .wp-block-post-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 30px auto 25px;
    max-width: 1300px;
    padding: 0 30px;
}

/* ---- Block Checkout: 2-Column Layout ---- */
.wp-block-woocommerce-checkout .wc-block-checkout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.wp-block-woocommerce-checkout .wc-block-checkout__main {
    flex: 1;
    min-width: 0;
}
.wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 30px;
}

/* ---- Checkout Form Card ---- */
.wc-block-checkout__main {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Section Titles (Contact info, Billing address, etc) */
.wc-block-checkout .wc-block-components-checkout-step__heading,
.wc-block-checkout .wc-block-checkout__contact-fields h3,
.wc-block-checkout .wc-block-checkout__billing-fields h3,
.wc-block-checkout .wc-block-checkout__shipping-fields h3,
.wc-block-checkout .wc-block-components-checkout-step__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F1F5F9;
}

/* ---- Form Fields ---- */
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[type="number"],
.wc-block-checkout input[type="password"],
.wc-block-checkout select,
.wc-block-checkout textarea,
.wc-block-components-text-input input,
.wc-block-components-combobox,
.wc-block-components-text-input textarea {
    width: 100%;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
}
.wc-block-checkout input:focus,
.wc-block-checkout select:focus,
.wc-block-checkout textarea:focus,
.wc-block-components-text-input input:focus {
    border-color: var(--primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 50, 107, 0.1) !important;
}

/* Field Labels */
.wc-block-components-text-input label,
.wc-block-components-combobox label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* 2-Column Field Grid */
.wc-block-checkout .wc-block-components-address-form .wc-block-components-address-form__address_1,
.wc-block-checkout .wc-block-components-address-form .wc-block-components-address-form__country {
    grid-column: 1 / -1;
}

/* Checkbox styling */
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
    accent-color: var(--primary);
}

/* ---- Order Summary Sidebar ---- */
.wc-block-checkout__sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Order Summary Title */
.wc-block-checkout__sidebar .wc-block-components-order-summary .wc-block-components-panel__button,
.wc-block-checkout__sidebar h2,
.wc-block-checkout__sidebar .wc-block-components-order-summary__button-text {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Order Summary Product Row */
.wc-block-checkout__sidebar .wc-block-components-order-summary-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 15px;
}
.wc-block-checkout__sidebar .wc-block-components-order-summary-item:last-child {
    border-bottom: none;
}

/* Product Image */
.wc-block-checkout__sidebar .wc-block-components-order-summary-item__image img,
.wc-block-checkout__sidebar .wc-block-components-product-image img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Product Quantity Badge */
.wc-block-checkout__sidebar .wc-block-components-order-summary-item__quantity {
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Product Name in Summary */
.wc-block-checkout__sidebar .wc-block-components-order-summary-item__description .wc-block-components-product-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

/* Hide description in order summary */
.wc-block-checkout__sidebar .wc-block-components-product-metadata__description {
    display: none !important;
}

/* Totals Section */
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
    border-color: var(--border) !important;
}
.wc-block-checkout__sidebar .wc-block-components-totals-item {
    padding: 10px 0;
}
.wc-block-checkout__sidebar .wc-block-components-totals-item__label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}
.wc-block-checkout__sidebar .wc-block-components-totals-item__value {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Total Row */
.wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
}

/* Coupon in Checkout */
.wc-block-checkout__sidebar .wc-block-components-totals-coupon,
.wc-block-checkout__sidebar .wc-block-components-panel {
    border-color: var(--border) !important;
}
.wc-block-checkout__sidebar .wc-block-components-totals-coupon__button {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

/* ---- Place Order Button ---- */
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button,
.wc-block-checkout__actions button[type="submit"],
.wc-block-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button {
    width: 100% !important;
    padding: 16px 30px !important;
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout__actions button[type="submit"]:hover {
    background: var(--dark-blue) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(27, 50, 107, 0.3);
}

/* ---- Terms & Privacy ---- */
.wc-block-checkout__terms {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 15px;
}
.wc-block-checkout__terms a {
    color: var(--primary);
    font-weight: 600;
}

/* ---- Classic Checkout ---- */
.woocommerce-checkout .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
.woocommerce-checkout .woocommerce > .woocommerce-notices-wrapper {
    width: 100%;
}
.woocommerce-checkout #customer_details {
    flex: 1;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    width: 380px;
    flex-shrink: 0;
}
.woocommerce-checkout #order_review {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.woocommerce-checkout h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    width: 100%;
}
.woocommerce-checkout #place_order {
    width: 100%;
    padding: 16px !important;
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    text-transform: uppercase;
    cursor: pointer;
}

/* ---- Responsive Checkout ---- */
@media (max-width: 768px) {
    .wp-block-woocommerce-checkout .wc-block-checkout,
    .woocommerce-checkout .woocommerce {
        flex-direction: column;
    }
    .wp-block-woocommerce-checkout .wc-block-checkout__sidebar,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100%;
    }
}

/* ============================================
   CATEGORY / ARCHIVE PAGE - Professional
   ============================================ */

/* Page Container overrides for WooCommerce Archive */
.tax-product_cat .site-main,
.post-type-archive-product .site-main {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important;
    padding: 40px !important;
    margin: 40px auto 60px !important;
    width: 100% !important;
    max-width: var(--container-max) !important;
    float: none !important;
}
.woocommerce-page:not(.woocommerce-cart):not(.woocommerce-checkout):not(.tax-product_cat):not(.post-type-archive-product) .site-main {
    padding-top: 40px !important;
    padding-bottom: 60px !important;
    width: 100% !important;
    float: none !important;
}

/* Hide Sidebar on WooCommerce pages */
.woocommerce-page #secondary,
.tax-product_cat #secondary,
.post-type-archive-product #secondary {
    display: none !important;
}

/* Archive Title */
.woocommerce-products-header__title,
.tax-product_cat .page-title,
.post-type-archive-product .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Result count & Ordering */
.woocommerce-result-count {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}
.woocommerce-ordering select {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--text);
}

/* WooCommerce Notices on Category Page */
.woocommerce-page .woocommerce-notices-wrapper,
.tax-product_cat .woocommerce-notices-wrapper {
    margin-bottom: 20px;
}
.woocommerce-message {
    background: #F0FDF4 !important;
    border-left: 4px solid #10B981 !important;
    padding: 12px 20px !important;
    border-radius: 0 8px 8px 0 !important;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.woocommerce-message a.button {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-decoration: none;
}

/* Product Grid */
.woocommerce ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 25px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}
.woocommerce ul.products li.product,
ul.products li.product {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(27, 50, 107, 0.1);
    transform: translateY(-3px);
}

/* Product Image */
.woocommerce ul.products li.product a img,
ul.products li.product a img,
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
ul.products li.product .woocommerce-loop-product__link img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background: #F8FAFC;
    margin-bottom: 15px;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    margin-bottom: 10px !important;
    line-height: 1.4;
    flex-grow: 1;
    text-align: center !important;
}

/* Product Price */
.woocommerce ul.products li.product .price,
ul.products li.product .price {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}

/* Add to Cart button on archive */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.product_type_variable,
ul.products li.product .button,
ul.products li.product a.add_to_cart_button,
ul.products li.product a.product_type_variable {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 15px !important;
    background: var(--primary) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover,
.woocommerce ul.products li.product a.product_type_variable:hover,
ul.products li.product .button:hover,
ul.products li.product a.add_to_cart_button:hover,
ul.products li.product a.product_type_variable:hover {
    background: var(--dark-blue) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Sale Badge */
ul.products li.product .onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #EF4444;
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

/* Star Rating */
ul.products li.product .star-rating {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #F59E0B;
}

/* Pagination */
.woocommerce-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}
.woocommerce-pagination ul.page-numbers li a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #F0F4FF;
}
.woocommerce-pagination ul.page-numbers li span.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}
.woocommerce-breadcrumb a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}
