/* ===================================================== */
/*                  Theme Meta & Imports                 */
/* ===================================================== */

/*
 Theme Name:   Storefront Child
 Template:     storefront
*/

@import url("../storefront/style.css");

/* ===================================================== */
/*                  Root Variables                       */
/* ===================================================== */

:root {
    --deep-emerald: #184A45;
    --dark-amethyst: #4A2040;
    --charcoal-black: #1A1A1D;
    --steel-gray: #3E3E42;
    --vivid-violet: #8E44AD;
    --golden-amber: #F1C40F;
    --ethereal-teal: #16A085;
    --soft-ivory: #F4F4F4;
    --muted-gold: #B59F6F;
    --slate-gray: #7D7D7D;
}

/* ===================================================== */
/*                  Base Styles                          */
/* ===================================================== */

body {
    background-color: var(--charcoal-black);
    color: var(--soft-ivory);
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

body,
#page,
.site,
.site-header,
.site-main,
.hero-parallax {
    margin: 0;
    padding: 0;
}

.col-full {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0;
    box-sizing: content-box;
}

/* ===================================================== */
/*                  Typography                           */
/* ===================================================== */

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--soft-ivory);
}

p {
    font-size: 1.2rem;
}

blockquote,
.product-tagline,
.home-intro p:first-of-type {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    color: var(--muted-gold);
}

/* ===================================================== */
/*                  Buttons                             */
/* ===================================================== */

button,
.woocommerce button.button {
    background-color: var(--dark-amethyst);
    color: var(--soft-ivory);
    border: none;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

button:hover,
.woocommerce button.button:hover {
    background-color: var(--vivid-violet);
}

/* ===================================================== */
/*                   Header Layout                       */
/* ===================================================== */

.site-header {
    background-color: var(--dark-amethyst);
    color: var(--soft-ivory);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.5rem 0rem;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.site-main {
    margin-top: 0;
    padding-top: 0;
}

/* Header right section container */
.header-right-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    order: 2;
    margin-left: auto;
    margin-right: 2rem;
}


/* ===================================================== */
/*                   Logo & Branding                     */
/* ===================================================== */

.site-branding {
    display: flex;
    align-items: center;
    padding-left: 3rem;
    margin-bottom: 0rem;
    order: 1;
}

.site-header .custom-logo-link svg {
    display: block;
    height: 80px;
    width: auto;
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* ===================================================== */
/*                   Main Navigation                     */
/* ===================================================== */

.main-navigation {
    margin-left: auto;
    display: flex;
    gap: 2rem;
    order: 2;
    margin-right: 2rem;
}

.site-header .main-navigation a {
    color: var(--soft-ivory);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-header .main-navigation a:hover {
    color: var(--golden-amber);
}

/* Hide checkbox */
.menu-toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* ===================================================== */
/*                  Social Media Icons Header            */
/* ===================================================== */

.header-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
    order: 3;
}

.header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(244, 244, 244, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-social a:hover {
    background-color: var(--ethereal-teal);
    transform: translateY(-2px);
}

.header-social svg {
    width: 20px;
    height: 20px;
    fill: var(--soft-ivory);
    transition: fill 0.3s ease;
}

.header-social a:hover svg {
    fill: var(--soft-ivory);
}

/* ===================================================== */
/*                   Navigation Cart                     */
/* ===================================================== */

.custom-cart {
    position: static;
    top: auto;
    right: auto;
    display: inline-flex;
    align-items: center;
    z-index: 20;
    order: 4;
}

.custom-cart .cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    text-decoration: none;
    color: var(--soft-ivory);
}

.custom-cart__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.custom-cart__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: var(--soft-ivory);
}

.custom-cart__count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--golden-amber);
    color: var(--dark-amethyst);
    font-size: 0.6rem;
    font-weight: bold;
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    line-height: 1;
}

/* ===================================================== */
/*                  Hero Section                         */
/* ===================================================== */

.hero-parallax {
    background-image: url('/wp-content/uploads/hero_bg.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--soft-ivory);
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 0;
}

.hero-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(26, 26, 29, 0.6);
    z-index: 0;
}

.hero-inner {
    z-index: 2;
    max-width: 1600px;
    width: 100%;
}

.hero-inner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--soft-ivory);
}

.hero-inner h1 strong {
    font-family: "Ephesis", cursive;
    font-size: 4rem;
    color: var(--golden-amber);
}

.hero-inner p {
    font-family: 'Jost', sans-serif;
    font-size: 1.25rem;
    margin-top: 1rem;
}

.hero-cta {
    display: inline-block;
    background-color: var(--ethereal-teal);
    color: var(--soft-ivory);
    padding: 0.75rem 1.5rem;
    margin-top: 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    text-align: center;
}

.hero-cta:hover {
    background: var(--deep-emerald);
}

/* ===================================================== */
/*                  Chevron Divider                      */
/* ===================================================== */

.chevron-divider {
    width: 100%;
    height: 80px;
    overflow: hidden;
    line-height: 0;
}

.chevron-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.chevron-divider.chevron-hero {
    position: absolute;
    bottom: 0;
    left: 0;
}

/* ===================================================== */
/*                  Section Layouts                      */
/* ===================================================== */

.full-section {
    padding: 4rem 10rem;
    padding-top: 0;
    background-color: var(--charcoal-black);
    color: var(--soft-ivory);
}

.full-section h1 {
    color: var(--soft-ivory);
    text-align: center;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 10rem;
    padding-top: 0;
    background-color: var(--charcoal-black);
    color: var(--soft-ivory);
}

.split-section blockquote {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 1rem;
    color: var(--muted-gold);
}

.split-section cite {
    display: block;
    margin-top: 0.5rem;
    color: var(--slate-gray);
    font-family: 'Jost', sans-serif;
}

/* ===================================================== */
/*                  Behind the Dice Section              */
/* ===================================================== */

.behind-dice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    padding: 2rem 10rem;
    padding-top: 0;
    background-color: var(--deep-emerald);
}

.behind-dice h1 {
    grid-column: span 2;
    color: var(--soft-ivory);
    text-align: center;
}

.behind-dice iframe,
.behind-dice .behind-text,
.behind-dice .behind-cta {
    width: 100%;
}

/* ===================================================== */
/*                  Social Feed                          */
/* ===================================================== */

.social-feed {
    padding: 4rem 2rem;
    background-color: var(--charcoal-black);
    color: var(--soft-ivory);
    text-align: center;
}

.social-feed h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--golden-amber);
}

/* ===================================================== */
/*                  Shop Grid Layout                     */
/* ===================================================== */

.shop-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: .25rem;
}

.shop-grid-item {
    list-style: none;
    position: relative;
}

.shop-grid-link {
    position: relative;
    display: block;
    overflow: hidden;
    z-index: 1;
    pointer-events: auto;
}

.shop-grid-link img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.shop-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(74, 32, 64, 0.6);
    color: var(--soft-ivory);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 1rem;
    pointer-events: none;
    z-index: 2;
}

.shop-grid-title {
    font-size: 2rem;
    display: block;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: var(--soft-ivory);
    text-align: center;
}

.shop-grid-price {
    font-size: 1.5rem;
    display: block;
    color: var(--golden-amber);
    margin-bottom: 1rem;
    text-align: center;
}

.shop-grid-cart-button {
    background: var(--ethereal-teal);
    color: var(--soft-ivory);
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 0.25rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    text-align: center;
    z-index: 3;
}

.shop-grid-cart-button:hover {
    background: var(--deep-emerald);
}

.shop-grid-item:hover .shop-grid-overlay {
    opacity: 1;
}

.shop-grid-overlay>* {
    pointer-events: auto;
}

/* Show/hide buttons based on screen size */
.desktop-only {
    display: inline-block;
}

.mobile-only {
    display: none;
}

/* ===================================================== */
/*                  Product Page Styling                 */
/* ===================================================== */

/* Hide sidebar on WooCommerce pages */
.woocommerce #secondary,
.single-product #secondary,
.woocommerce-page #secondary {
    display: none;
}

/* Make main content full width when sidebar is hidden */
.woocommerce #primary,
.single-product #primary,
.woocommerce-page #primary {
    width: 100%;
    max-width: 100%;
    float: none;
}

/* Clean Product Page Layout */
.clean-product-page {
    max-width: 1900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.clean-product-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

/* Product image section */
.clean-product-image {
    position: relative;
}

.clean-product-image .woocommerce-product-gallery {
    margin: 0;
}

.clean-product-image .woocommerce-product-gallery__image {
    margin: 0;
}

.clean-product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Product info section */
.clean-product-info {
    padding-left: 20px;
}

.clean-product-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--soft-ivory);
    line-height: 1.2;
}

.clean-product-price {
    margin-bottom: 30px;
}

.clean-product-price .price {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ethereal-teal);
}

.clean-product-excerpt {
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--soft-ivory);
    font-style: italic;
}

.clean-product-cart {
    margin-bottom: 40px;
}

.clean-product-cart .cart {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.clean-product-cart input[type="number"] {
    width: 80px;
    padding: 12px;
    border: 2px solid #3E3E42;
    border-radius: 4px;
    font-size: 1rem;
}

.clean-product-cart .single_add_to_cart_button {
    background: var(--vivid-violet);
    border: none;
    padding: 15px 30px;
    color: var(--soft-ivory);
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.clean-product-cart .single_add_to_cart_button:hover {
    background: var(--dark-amethyst);
}

.clean-product-meta {
    font-size: 0.9rem;
    color: var(--slate-gray);
}

/* Expandable details section */
.clean-product-details {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.clean-details-toggle {
    margin-bottom: 20px;
}

.details-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--slate-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.details-button:hover {
    color: var(--dark-amethyst);
}

.details-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.clean-details-content {
    padding-top: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attribute-list {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.attribute-list li {
    background: #f8f8f8;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    color: #666;
}

/* Hide the magnifying glass icon but keep zoom functionality */
.woocommerce-product-gallery__trigger,
.zoom-icon,
.woocommerce-product-gallery__image .zoom,
.product-zoom-trigger {
    display: none !important;
}

/* ===================================================== */
/*                  Contact & Policy Pages               */
/* ===================================================== */

/* Hide sidebar on contact, privacy, and policy pages */
.page-template-contact #secondary,
.page-id-contact #secondary,
body.page #secondary,
.privacy-policy #secondary,
.refund-policy #secondary,
body.page-template-default #secondary {
    display: none !important;
}

/* Make content full-width */
.page-template-contact #primary,
.page-id-contact #primary,
body.page #primary,
.privacy-policy #primary,
.refund-policy #primary,
body.page-template-default #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* ===================================================== */
/*                  Contact Form Styling                 */
/* ===================================================== */

.contact-page-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 6rem 2rem;
    background-color: var(--charcoal-black);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-page-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--soft-ivory);
    font-family: 'Playfair Display', serif;
}

.contact-page-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--muted-gold);
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: 1.2rem;
}

.wpcf7-form {
    background-color: var(--steel-gray);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.wpcf7-form label {
    display: block;
    color: var(--soft-ivory);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--slate-gray);
    border-radius: 4px;
    background-color: var(--charcoal-black);
    color: var(--soft-ivory);
    font-size: 1rem;
    font-family: 'Jost', sans-serif;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: 2px solid var(--ethereal-teal);
    outline-offset: 2px;
    border-color: var(--ethereal-teal);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0;
    accent-color: var(--ethereal-teal);
}

.wpcf7-form .wpcf7-list-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.wpcf7-form .wpcf7-list-item label {
    margin-bottom: 0;
    margin-left: 0.5rem;
    cursor: pointer;
}

.wpcf7-form input[type="submit"] {
    background-color: var(--ethereal-teal);
    color: var(--soft-ivory);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: auto;
    margin-top: 1rem;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: var(--deep-emerald);
    transform: translateY(-2px);
}

.wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Form field groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .wpcf7-form-control-wrap {
    margin-bottom: 0;
}

/* Error and success messages */
.wpcf7-response-output {
    border: none !important;
    padding: 1rem !important;
    margin: 1rem 0 !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
}

.wpcf7-mail-sent-ok {
    background-color: rgba(22, 160, 133, 0.1) !important;
    color: var(--ethereal-teal) !important;
    border-left: 4px solid var(--ethereal-teal) !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors {
    background-color: rgba(231, 76, 60, 0.1) !important;
    color: #e74c3c !important;
    border-left: 4px solid #e74c3c !important;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.wpcf7-form .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
    display: block;
}

.wpcf7-form .ajax-loader {
    display: inline-block;
    margin-left: 1rem;
    vertical-align: middle;
}

/* Remove default CF7 styling conflicts */
.wpcf7 form .wpcf7-response-output {
    margin: 1rem 0 !important;
}

.wpcf7 form p {
    margin-bottom: 1.5rem;
}

/* ===================================================== */
/*                  Policy Pages Styling                 */
/* ===================================================== */

.privacy-policy .site-main,
.refund-policy .site-main,
body.page-template-default:not(.woocommerce-page) .site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-color: var(--charcoal-black);
}

.privacy-policy .entry-content,
.refund-policy .entry-content,
body.page-template-default:not(.woocommerce-page) .entry-content {
    background-color: var(--steel-gray);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
}

/* Policy page headings */
.privacy-policy .entry-content h1,
.privacy-policy .entry-content h2,
.privacy-policy .entry-content h3,
.refund-policy .entry-content h1,
.refund-policy .entry-content h2,
.refund-policy .entry-content h3,
body.page-template-default:not(.woocommerce-page) .entry-content h1,
body.page-template-default:not(.woocommerce-page) .entry-content h2,
body.page-template-default:not(.woocommerce-page) .entry-content h3 {
    color: var(--soft-ivory);
    font-family: 'Playfair Display', serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-policy .entry-content h1,
.refund-policy .entry-content h1,
body.page-template-default:not(.woocommerce-page) .entry-content h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--golden-amber);
}

.privacy-policy .entry-content h2,
.refund-policy .entry-content h2,
body.page-template-default:not(.woocommerce-page) .entry-content h2 {
    font-size: 1.8rem;
    color: var(--soft-ivory);
    border-bottom: 2px solid var(--soft-ivory);
    padding-bottom: 0.5rem;
}

.privacy-policy .entry-content h3,
.refund-policy .entry-content h3,
body.page-template-default:not(.woocommerce-page) .entry-content h3 {
    font-size: 1.4rem;
    color: var(--muted-gold);
}

/* Policy page text */
.privacy-policy .entry-content p,
.refund-policy .entry-content p,
body.page-template-default:not(.woocommerce-page) .entry-content p {
    color: var(--soft-ivory);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.privacy-policy .entry-content ul,
.privacy-policy .entry-content ol,
.refund-policy .entry-content ul,
.refund-policy .entry-content ol,
body.page-template-default:not(.woocommerce-page) .entry-content ul,
body.page-template-default:not(.woocommerce-page) .entry-content ol {
    color: var(--soft-ivory);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.privacy-policy .entry-content li,
.refund-policy .entry-content li,
body.page-template-default:not(.woocommerce-page) .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.privacy-policy .entry-content a,
.refund-policy .entry-content a,
body.page-template-default:not(.woocommerce-page) .entry-content a {
    color: var(--ethereal-teal);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-policy .entry-content a:hover,
.refund-policy .entry-content a:hover,
body.page-template-default:not(.woocommerce-page) .entry-content a:hover {
    color: var(--golden-amber);
}

/* Effective date styling */
.privacy-policy .entry-content p:first-of-type,
.refund-policy .entry-content p:first-of-type {
    font-style: italic;
    color: var(--muted-gold);
    text-align: center;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Ensure WooCommerce pages use proper layout and readability */
.woocommerce-page {
    background: var(--charcoal-black);
    color: var(--soft-ivory);
}

.woocommerce-page .site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: none;
}

.woocommerce-page table.cart th,
.woocommerce-page table.cart td {
    border-color: var(--steel-gray);
}

.woocommerce-page a.button,
.woocommerce-page button.button {
    background-color: var(--ethereal-teal);
    color: var(--soft-ivory);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover {
    background-color: var(--deep-emerald);
}

/* ===================================================== */
/*                  Footer Styling                       */
/* ===================================================== */

.site-footer {
    background-color: var(--slate-gray);
    color: var(--soft-ivory);
    padding: 3rem 2rem 2rem 2rem;
    border-top: 1px solid var(--steel-gray);
    margin-top: 4rem;
}

.site-footer .col-full {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--soft-ivory);
}

.site-footer a {
    color: var(--ethereal-teal);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.site-footer a:hover {
    color: var(--golden-amber);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a:not(:last-child)::after {
    content: " | ";
    color: var(--slate-gray);
    margin-left: 0.5rem;
    text-decoration: none;
}

/* ===================================================== */
/*                  Mobile Footer                        */
/* ===================================================== */

.storefront-handheld-footer-bar.columns-3,
.storefront-handheld-footer-bar .columns-3 {
    display: flex !important;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
}

.storefront-handheld-footer-bar li {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
}

.storefront-handheld-footer-bar a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.storefront-handheld-footer-bar a svg {
    width: 48px;
    height: 48px;
    display: block;
    margin: auto;
}

/* ===================================================== */
/*                  Commerce Pages                       */
/* ===================================================== */

/* Apply soft-ivory text color to all WooCommerce pages */
.woocommerce-page,
.woocommerce-page .cart_totals,
.woocommerce-page table.shop_table,
.woocommerce-page table.shop_table td,
.woocommerce-page table.shop_table th,
.woocommerce-page .woocommerce-cart-form,
.woocommerce-page .woocommerce-cart-form a,
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-info,
.woocommerce-page .woocommerce-error {
    color: var(--soft-ivory);
}

/* Ensure all WooCommerce links use soft-ivory */
.woocommerce-page a {
    color: var(--soft-ivory);
}

/* Headings on WooCommerce pages */
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3,
.woocommerce-page h4 {
    color: var(--soft-ivory);
}

/* Prices across WooCommerce */
.woocommerce-page .amount,
.woocommerce-page .woocommerce-Price-amount {
    color: var(--soft-ivory);
}

.woocommerce-page .button,
.woocommerce-page .button.alt,
.woocommerce-page button.button {
    color: var(--soft-ivory);
    background: var(--ethereal-teal);
    border: none;
}

.woocommerce-page .button:hover,
.woocommerce-page .button.alt:hover,
.woocommerce-page button.button:hover {
    background: var(--deep-emerald);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    color: var(--soft-ivory);
    border-color: var(--ethereal-teal);
}




/* ===================================================== */
/*                  Mobile Responsive                    */
/* ===================================================== */

@media screen and (max-width: 768px) {

    /* Header adjustments */
    .site-header .main-navigation {
        display: none;
    }

    .site-header {
        flex-direction: column;
        padding: 1rem 0;
    }

    .site-header .site-branding {
        order: 1;
        padding-left: 0;
        margin-bottom: 1rem;
        text-align: center;
        margin: 0 auto;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .site-header .custom-logo-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        padding: 0;
        margin: 0 auto;
    }

    .site-header .custom-logo-link svg {
        display: block;
        height: auto;
        max-height: 80px;
        margin: 0;
    }

    .header-social {
        order: 2;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .site-header .main-navigation {
        order: 3;
        margin: 0;
        display: none;
    }

    .custom-cart {
        position: absolute;
        top: 1rem;
        right: 1rem;
        display: none;
    }

    /* Section adjustments */
    .full-section {
        padding: 2rem 1.5rem;
    }

    .behind-dice {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 2rem 1.5rem;
    }

    .behind-dice h2 {
        text-align: center;
    }

    .behind-dice iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .behind-dice .behind-text,
    .behind-dice {
        width: 100%;
    }

    /* Product page adjustments */
    .clean-product-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .clean-product-info {
        padding-left: 0;
    }

    .clean-product-title {
        font-size: 2rem;
    }

    /* Contact form adjustments */
    .contact-page-container {
        padding: 3rem 1rem;
        min-height: 70vh;
    }

    .wpcf7-form {
        padding: 2rem;
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wpcf7-form input[type="submit"] {
        width: 100%;
    }

    /* Policy pages adjustments */
    .privacy-policy .site-main,
    .refund-policy .site-main,
    body.page-template-default .site-main {
        padding: 2rem 1rem;
    }

    .privacy-policy .entry-content,
    .refund-policy .entry-content,
    body.page-template-default .entry-content {
        padding: 2rem;
    }

    .privacy-policy .entry-content h1,
    .refund-policy .entry-content h1,
    body.page-template-default .entry-content h1 {
        font-size: 2rem;
    }

    .privacy-policy .entry-content h2,
    .refund-policy .entry-content h2,
    body.page-template-default .entry-content h2 {
        font-size: 1.5rem;
    }

    .privacy-policy .entry-content p,
    .refund-policy .entry-content p,
    body.page-template-default .entry-content p {
        text-align: left;
        font-size: 1rem;
    }

    /* Footer adjustments */
    .site-footer {
        padding: 2rem 1rem;
        text-align: center;
    }

    .site-footer .col-full {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-links a:not(:last-child)::after {
        margin-left: 0.3rem;
        margin-right: 0.3rem;
    }
}

@media (max-width: 768px) {

    /* Shop grid mobile adjustments */
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-block;
    }

    .shop-grid-overlay {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        background: none !important;
        padding: 1rem;
        gap: 0.5rem;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: none;
    }

    .shop-grid-overlay>* {
        pointer-events: auto;
    }

    .shop-grid-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-grow: 1;
        gap: 0.5rem;
    }

    .shop-grid-title {
        font-size: 2rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 1);
    }

    .shop-grid-price {
        font-size: 1.2rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 1);
    }

    .shop-grid-cart-button {
        margin-top: 1rem;
        align-self: center;
        position: relative;
        z-index: 2;
    }

    /* Hamburger icon */
    .menu-toggle-label {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        margin-left: auto;
    }

    .menu-toggle-label span {
        display: block;
        height: 3px;
        width: 100%;
        background: var(--soft-ivory);
        border-radius: 2px;
    }

    /* Mobile header adjustments */
    .site-header {
        flex-direction: column;
        align-items: center;
        padding-top: .5rem;
        padding-bottom: 0rem;
        position: relative;
    }

    /* Hamburger top-left */
    .menu-toggle-label {
        position: absolute;
        top: 1rem;
        left: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
    }

    /* Logo centered at top */
    .site-branding {
        order: 1;
        margin-bottom: 0.5rem;
        display: flex;
        justify-content: center;
    }

    /* Social icons and cart centered under logo */
    .header-right-section {
        order: 2;
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 1rem;
        margin-bottom: 0rem;
    }

    /* Hide nav by default, show when toggled */
    .main-navigation {
        order: 3;
        display: none;
        flex-direction: column;
        background: var(--dark-amethyst);
        text-align: center;
        gap: 1rem;
        padding: 1rem 0;
    }

    /* Show nav when checkbox is checked */
    .menu-toggle-checkbox:checked~.main-navigation {
        display: flex;
    }

    /* Ensure social icons and cart look good in row */
    .header-social {
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        width: auto;
    }

    .custom-cart {
        display: flex;
        align-items: center;
    }

}