/*
Theme Name: SaveABowl Prime
Author: You
Description: Custom Eco-Industrial theme for smoking accessories.
Version: 1.2
*/

:root {
    --sage: #5F8D4E;
    --charcoal: #2C3E50;
    --slate: #4A5568;
    --paper: #F4F7F6;
    --white: #ffffff;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- RESET & BASICS --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--slate); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: var(--charcoal); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--charcoal); text-transform: uppercase; font-weight: 700; }

/* --- GLOBAL VISIBILITY UTILITIES (CRITICAL FIX) --- */
/* By default (Desktop), hide mobile elements */
.mobile-only { display: none; }
.desktop-only { display: flex; }

/* --- LAYOUT UTILITIES --- */
.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.btn { display: inline-block; background: var(--sage); color: white; padding: 1rem 2rem; font-weight: bold; text-transform: uppercase; border: none; cursor: pointer; transition: 0.3s; }
.btn:hover { background: var(--charcoal); }

/* --- HEADER STRUCTURE --- */
header.site-header { 
    background: var(--white);
    padding: 0; 
    height: 80px; 
    border-bottom: 1px solid #e2e8f0; 
    display: flex;
    align-items: center;
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.header-grid {
    display: flex;
    justify-content: space-between; /* Pushes Logo Left, Tools/Burger Right */
    align-items: center;
    height: 100%;
    width: 100%;
}

/* LOGO AREA */
.site-branding {
    flex: 1; 
}
.site-branding img {
    max-height: 50px; 
    width: auto;
}
.text-logo {
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--charcoal);
}

/* NAVIGATION AREA */
.main-nav {
    flex: 2; 
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative; 
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--charcoal);
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--sage);
    transition: width 0.3s;
}
.nav-links > li > a:hover::after {
    width: 100%;
}

/* DROPDOWN MENU SUPPORT */
.nav-links ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    background: white;
    border: 1px solid #eee;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    z-index: 999;
    padding: 10px 0;
}

/* Pseudo-element Bridge to fix "Hover Gap" */
.nav-links ul.sub-menu::before {
    content: "";
    display: block;
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.nav-links li:hover > ul.sub-menu {
    display: block;
}

.nav-links ul.sub-menu li {
    display: block;
    margin: 0;
}

.nav-links ul.sub-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.85rem;
    text-transform: none; 
    color: var(--slate);
}
.nav-links ul.sub-menu a:hover {
    background: var(--paper);
    color: var(--sage);
}
.nav-links ul.sub-menu a::after { display: none; } 

/* HEADER TOOLS (Cart/Account) */
.header-tools {
    flex: 1; 
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    align-items: center;
}

.tool-link {
    color: var(--charcoal);
    display: flex;
    align-items: center;
    position: relative;
}

.tool-link:hover {
    color: var(--sage);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--sage);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*--- Page title hide --- */
.page-id-4881 > div:first-of-type > h1:first-of-type, .page-id-1019 > div:first-of-type > h1:first-of-type  {
	display: none;
}

/* --- TEXT PAGE / POLICY STYLING --- */
.text-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 20px;
    font-size: 1.1rem;
}

.text-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--slate);
}

.text-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--charcoal);
    line-height: 1.1;
}

.text-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    color: var(--charcoal);
}

.text-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--charcoal);
    font-family: var(--font-body);
    font-weight: 800;
}

.text-content h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--sage);
    letter-spacing: 1px;
}

.text-content ul, 
.text-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.text-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--slate);
}

.text-content ul li::marker {
    color: var(--sage);
}

.text-content a {
    color: var(--sage);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.text-content a:hover {
    color: var(--charcoal);
    background-color: #f0f0f0;
}

.text-content strong,
.text-content b {
    color: var(--charcoal);
    font-weight: 700;
}

.text-content .callout {
    background: var(--paper);
    border-left: 4px solid var(--sage);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

/* --- NEWSLETTER FORM STYLING --- */
.text-content .mailster-form {
    margin: 2rem auto;
    max-width: 600px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.text-content .mailster-wrapper {
    margin-bottom: 1.5rem;
}

.text-content .mailster-form .input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    background: #f8fafc;
    transition: all 0.3s ease;
}

.text-content .mailster-form .input:focus {
    outline: none;
    border-color: var(--sage);
    background: white;
    box-shadow: 0 0 0 3px rgba(95, 141, 78, 0.1);
}

.text-content .mailster-form label {
    font-weight: 600;
    color: var(--charcoal) !important;
    font-size: 0.95rem;
    display: inline-block;
}
.text-content .mailster-form input[type="checkbox"] {
    accent-color: var(--sage);
    transform: scale(1.2);
    margin-right: 0.5rem;
}

.text-content .mailster-form .submit-button {
    background: var(--sage) !important;
    color: white !important;
    padding: 1.25rem;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.text-content .mailster-form .submit-button:hover {
    background: var(--charcoal) !important;
}

.text-content .mailster-lists-wrapper {
    background: var(--paper);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.text-content .mailster-lists-wrapper label {
    margin-bottom: 1rem;
    display: block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.5rem;
}

.text-content .mailster-list {
    margin: 0;
    padding: 0;
}

.text-content .mailster-list li {
    margin-bottom: 1rem;
    list-style: none;
}

.text-content .mailster-list li:last-child {
    margin-bottom: 0;
}

.text-content .mailster-list-description {
    display: block;
    font-size: 0.85rem;
    color: var(--slate);
    margin-top: 0.4rem;
    margin-left: 2rem;
    line-height: 1.4;
}

.text-content .mailster-_gdpr-wrapper {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.text-content .mailster-_gdpr-wrapper label {
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: none;
    border: none;
}


.meta-date {
    display: block;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- HERO SECTION --- */
.hero { 
    background: var(--paper);
    width: 100%;
    position: relative;
    z-index: 5;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40vh;
    gap: 2rem;
    padding: 2rem 0;
}

.hero-content { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    padding-right: 2rem;
}

.hero-content h1 { 
    font-size: clamp(2.5rem, 6vw, 4rem); 
    line-height: 1.1; 
    margin-bottom: 2rem; 
    color: var(--charcoal);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--slate);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-visual { 
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img { 
    max-width: 100%;
    height: auto;
    max-height: 600px; 
    object-fit: contain; 
}

.hero-actions .btn { 
    padding: 1.2rem 2.5rem;
    letter-spacing: 1px;
    text-align: center;
}

/* --- LINEUP SECTION --- */
.lineup-section {
    padding: 6rem 0 4rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* --- CATEGORY GRID --- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 4rem 0; }
.cat-card { position: relative; height: 400px; overflow: hidden; display: flex; align-items: flex-end; }
.cat-card img { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: 0.5s; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card-content { position: relative; z-index: 2; width: 100%; padding: 2rem; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); }
.cat-card h3 { color: white; font-size: 1.5rem; margin: 0; }

/* --- HELP PAGE STYLING --- */
.help-page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.help-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--charcoal);
    max-width: 600px;
    margin: 0 auto;
}

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 3rem 0;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.policy-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background: white;
    border-color: var(--sage);
}

.policy-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.policy-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.policy-card p {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 1.5rem;
}

.link-arrow {
    margin-top: auto; 
    font-weight: bold;
    color: var(--sage);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.faq-section {
    margin-bottom: 4rem;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--sage);
    display: inline-block;
    padding-bottom: 5px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.faq-item {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

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

.faq-item h4 {
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--slate);
    margin: 0;
}

.faq-item p:nth-of-type(n+2) {
	padding-top: 1rem;
}

.faq-item ul {
	margin-left: 1.5rem;
}

.contact-section {
    text-align: center;
    background: var(--paper);
    padding: 3rem;
    border-radius: 8px;
    border: 2px dashed #cbd5e1;
}

.contact-section h2 {
    margin-bottom: 1rem;
}

.contact-btn {
    margin: 2rem 0 1rem;
    display: inline-block;
    text-decoration: none;
    font-size: 1.1rem;
}

.small-text {
    font-size: 0.85rem;
    color: #888;
}

@media (max-width: 768px) {
    .policy-grid {
        grid-template-columns: 1fr; 
    }
    
    .contact-section {
        padding: 2rem 1rem;
    }
}

/* --- ICONS SECTION --- */
.features { background: var(--paper); padding: 5rem 0; text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.feature-item img { width: 60px; margin: 0 auto 1rem; }

/* --- FOOTER --- */
footer { background: var(--charcoal); color: var(--paper); padding: 4rem 0 6rem; text-align: center; }

/* ==========================================================================
   GLOBAL STICKY FOOTER FIX
   ========================================================================== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
}

#page, 
.site,
#main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

main, 
.site-main, 
#primary {
    flex-grow: 1;
}

footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* --- BOTTOM BAR (Sticky) --- */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: white;
    border-top: 1px solid #eee;
    
    display: none; 
    
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    padding-bottom: env(safe-area-inset-bottom);
}
    
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--slate);
    font-size: 0.75rem;
    font-weight: 500;
	border: none;
    background: none;
}

.bottom-nav-item.active { color: var(--sage); }
.bottom-nav-item svg { margin-bottom: 4px; }
.icon-wrapper { position: relative; display: flex; justify-content: center; }

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

/* --- DESKTOP SEARCH BAR --- */
.header-search {
    flex: 1.5; 
    display: flex;
    justify-content: center;
    margin: 0 1rem;
}

.header-search form {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.header-search input.search-field {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.header-search input.search-field:focus {
    border-color: var(--sage);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(95, 141, 78, 0.1);
}

.header-search button.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--slate);
    cursor: pointer;
    padding: 5px;
}
.header-search button.search-submit:hover { color: var(--sage); }

/* --- MOBILE SEARCH POPUP --- */
.mobile-search-bar {
    position: fixed;
    bottom: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px;
    border-top: 1px solid #eee;
    z-index: 999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    
    transform: translateY(110%); 
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mobile-search-bar.active {
    transform: translateY(0);
}

.mobile-search-bar form {
    display: flex;
    gap: 10px;
}

.mobile-search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px; 
}

.mobile-search-bar button {
    background: var(--sage);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* --- RESPONSIVE BREAKPOINTS --- */

@media (min-width: 1600px) {
    .container { max-width: 1500px; }
    .hero-content h1 { font-size: 5rem; }
    .hero-visual img { max-height: 700px; }
}

@media (max-width: 1093px) {
    .text-logo { font-size: 1.4rem; }
}

@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .cat-card h3 { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .mobile-only { display: block; } 
    .desktop-only { display: none; }
    
    .mobile-bottom-bar { display: flex; } 

    .header-grid {
        justify-content: space-between; 
    }
    
    #mobile-menu-trigger {
        background: none;
        border: none;
        color: var(--charcoal);
        cursor: pointer;
        padding: 5px;
    }

    .hero-inner { 
        flex-direction: column;
        text-align: center; 
        gap: 2rem;
        min-height: auto;
        padding: 3rem 20px 3rem;
    }
    .hero-content { 
        flex: none;
        width: 100%;
        padding-right: 0;
        align-items: center; 
    }
    .hero-content h1 { 
        font-size: clamp(2.2rem, 10vw, 3rem); 
        margin-bottom: 1.25rem; 
    }
    .hero-content p { 
        font-size: 1.1rem;
        margin-bottom: 2rem; 
    }
    .hero-visual { 
        flex: none;
        margin-top: 1rem; 
        width: 100%; 
    }
    .hero-visual img { 
        width: auto; 
        margin: 0 auto; 
    }

    .lineup-section {
        padding: 4rem 0 2rem;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .category-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%; 
        width: 80%;
        height: 100vh;
        background: white;
        z-index: 2000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        padding: 2rem;
        transition: left 0.3s ease-in-out;
        display: block !important; 
    }

    .main-nav.mobile-active { left: 0; }

    .nav-links { flex-direction: column; align-items: flex-start; width: 100%; }
    .nav-links li { width: 100%; border-bottom: 1px solid #eee; }
    .nav-links a { display: block; padding: 15px 0; font-size: 1.2rem; }
    
    /* MOBILE SUBMENU VISIBILITY FIX */
    .nav-links ul.sub-menu {
        display: block !important; /* Force visible */
        position: static; 
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: transparent;
        margin-top: 10px;
        width: 100%;
    }

    #mobile-menu-close {
        background: none;
        border: none;
        position: absolute;
        top: 15px;
        right: 15px;
        cursor: pointer;
        color: var(--charcoal);
    }
	
	.mobile-extra-links {
    	margin-top: 1rem;
    	border-top: 1px solid #eee; 
	}

	.mobile-menu-item {
    	display: block;
    	padding: 15px 0;
    	font-size: 1.2rem;
    	color: var(--charcoal);
    	font-weight: 600;
    	text-transform: uppercase;
    	font-family: var(--font-heading);
	}

	.mobile-menu-item:hover {
    	color: var(--sage);
	}
}

/* ==========================================================================
   WOOCOMMERCE MY-ACCOUNT PAGE REDESIGN
   ========================================================================== */

.woocommerce-account .woocommerce {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

@media (min-width: 769px) {
    .woocommerce-account .woocommerce {
        flex-direction: row;
        align-items: flex-start;
    }
}

.woocommerce-MyAccount-navigation {
    width: 100%;
}

@media (min-width: 769px) {
    .woocommerce-MyAccount-navigation {
        width: 25%;
        position: sticky;
        top: 2rem;
    }
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (min-width: 769px) {
    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ACCOUNT MENU SIZE FIX */
.woocommerce-MyAccount-navigation li {
    flex: 1 1 calc(50% - 0.5rem); 
    margin: 0;
    display: flex;
}

@media (min-width: 769px) {
    .woocommerce-MyAccount-navigation li {
        width: 100%;
        display: block; /* Desktop reverts to block */
    }
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1rem 1.25rem;
    background-color: #f4f4f4; 
    color: var(--charcoal, #2c2c2c);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    text-align: center;
    transition: all 0.25s ease;
}

@media (min-width: 769px) {
    .woocommerce-MyAccount-navigation li a {
        justify-content: flex-start;
        text-align: left;
    }
}

.woocommerce-MyAccount-navigation li a:hover {
    background-color: #e8e8e8;
    border-color: var(--charcoal, #2c2c2c);
}

.woocommerce-MyAccount-navigation li.is-active a {
    background-color: var(--charcoal, #2c2c2c);
    color: #ffffff;
    border-color: var(--charcoal, #2c2c2c);
}

.woocommerce-MyAccount-content {
    width: 100%;
    background: #ffffff;
    border: 2px solid var(--charcoal, #2c2c2c);
    padding: 2rem;
}

@media (min-width: 769px) {
    .woocommerce-MyAccount-content {
        width: 75%;
        padding: 3rem;
    }
}

/* PASSWORD CHANGE BORDER AND ALIGNMENT FIX */
.woocommerce-MyAccount-content h2, 
.woocommerce-MyAccount-content legend {
    font-family: 'Oswald', 'League Gothic', sans-serif;
    text-transform: uppercase;
    font-size: 1.75rem;
    letter-spacing: 0.02em;
    color: var(--charcoal, #2c2c2c);
    margin-bottom: 2rem;
    border: none;
    padding: 0 10px;
    width: auto;
    background: transparent;
}

.woocommerce-MyAccount-content fieldset {
    border: 1px solid #dcdcdc;
    padding: 2rem 1.5rem;
    margin: 3rem 0;
    border-radius: 8px;
    background: #fdfdfd;
}

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dcdcdc;
    background-color: #fafafa;
    color: var(--charcoal, #2c2c2c);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    border-radius: 4px; 
}

.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus {
    outline: none;
    border-color: var(--charcoal, #2c2c2c);
    background-color: #ffffff;
}

.woocommerce-MyAccount-content label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"] {
    display: inline-block;
    background-color: var(--charcoal, #2c2c2c);
    color: #ffffff;
    border: 2px solid var(--charcoal, #2c2c2c);
    padding: 0.85rem 2rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.25s ease;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover {
    background-color: transparent;
    color: var(--charcoal, #2c2c2c);
}

.woocommerce-MyAccount-content table.shop_table {
    border-collapse: collapse;
    width: 100%;
    border: none;
    margin: 1.5rem 0;
}

.woocommerce-MyAccount-content table.shop_table th {
    background-color: var(--charcoal, #2c2c2c);
    color: #ffffff;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 1rem;
    text-align: left;
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

/* ADDRESSES BORDER AND ALIGNMENT FIX */
.woocommerce-Addresses {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 500px) {
    .woocommerce-Addresses {
        flex-direction: row;
    }
    .woocommerce-Address {
        flex: 1;
    }
}

.woocommerce-Address address {
    font-style: normal;
    background: #f9f9f9;
    padding: 1.5rem;
    border-left: none; /* Removed the black line */
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    border-radius: 8px; /* Added modern touch */
}

.woocommerce-Address .title h3,
.woocommerce-Address header.title h3 {
    text-align: center;
    width: 100%;
}

.woocommerce-Address .title .edit,
.woocommerce-Address header.title .edit {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* MY COUPONS SPACING AND MODERN APPEARANCE */
.woocommerce-MyAccount-content > p {
    color: var(--slate);
    line-height: 1.6;
}

.woocommerce-MyAccount-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

#my-coupons-section,
.woocommerce-MyAccount-content .coupon-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-top: 2rem;
}
