/*
Theme Name: Glenys Art Gallery
Description: Modern artist portfolio and shop WordPress theme
Version: 1.0
*/

/* Fonts loaded via functions.php */

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    font-weight: 400;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #f5576c;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: -0.5px;
}

/* Header */
header {
    background: rgba(255,255,255,0.95);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-row {
    padding-top: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    position: relative;
}

.logo img {
    height: 30px;
    width: auto;
    transition: opacity 0.3s ease;
    margin-top: -7px;
}

.logo span {
    font-family: 'Allura', cursive;
    font-size: 36px;
    color: #333;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.logo:hover img {
    opacity: 0.8;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 55px;
    width: calc(100% - 55px);
    height: 1px;
    background: linear-gradient(90deg, transparent, #f5576c, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}









/* Main Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    justify-content: center;
}

.main-nav a {
    color: #333 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #f5576c;
}

/* User Navigation */
.user-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.user-nav a {
    color: #333 !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.user-nav a:hover {
    color: #f5576c;
}



/* Dropdown Styles */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 1001;
    display: none;
    flex-direction: column;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    display: block;
}

.dropdown li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    color: #333 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    transition: background 0.3s;
}

.dropdown a:hover {
    background: #f5576c;
    color: white !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Hide mobile user items on desktop */
@media (min-width: 991px) {
    .mobile-user-item {
        display: none;
    }
}

/* Hero Section */
.hero {
    height: 65vh;
    background: url('hero.jpg') center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 185px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.3);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}



.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: white;
    color: #333;
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 60px;
    color: #333;
    font-weight: 300;
    letter-spacing: -1px;
    font-style: italic;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid white;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.gallery-overlay a:hover {
    background: white;
    color: #333;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    text-align: center;
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #f5576c;
}

.product-price {
    font-size: 1.1rem;
    color: #f5576c;
    font-weight: 700;
    margin-bottom: 15px;
}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    pointer-events: none !important;
}
/* Button Styles */
.add-to-cart,
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wp-block-button__link,
.wpcf7-form input[type="submit"] {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #f5576c, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.add-to-cart:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wp-block-button__link:hover,
.wpcf7-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #e04458, #5a3a7a);
    transform: translateY(-2px);
}

/* Single Product */
.single-product {
    padding: 40px 0;
    width: 100%;
    max-width: none;
}

.product-image-large img {
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.product-details h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-meta {
    margin-bottom: 30px;
}

.meta-item {
    margin-bottom: 15px;
    font-size: 1rem;
}

.meta-label {
    font-weight: 700;
    color: #666;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Footer */
footer {
    background: #f8f8f8;
    padding: 60px 0 40px;
    text-align: center;
    clear: both;
    width: 100%;
    float: none;
    display: block;
}

.footer-content {
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    display: inline-block;
    width: 24px;
    height: 24px;
    transition: all 0.3s;
    position: relative;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.social-instagram:hover::before,
.social-instagram:hover::after {
    border-color: #764ba2;
}

.social-facebook:hover::before {
    border-color: #764ba2;
}

.social-facebook:hover::after {
    color: #764ba2;
}

.social-email:hover::before,
.social-email:hover::after {
    border-color: #764ba2;
}

.social-email:hover::after {
    border-top-color: #764ba2;
}

/* Instagram Icon */
.social-instagram::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #f5576c;
    border-radius: 6px;
    top: 2px;
    left: 2px;
}

.social-instagram::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #f5576c;
    border-radius: 50%;
    top: 8px;
    left: 8px;
}

/* Facebook Icon */
.social-facebook::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #f5576c;
    border-radius: 4px;
    top: 2px;
    left: 2px;
}

.social-facebook::after {
    content: 'f';
    position: absolute;
    font-family: serif;
    font-size: 16px;
    font-weight: bold;
    color: #f5576c;
    top: 2px;
    left: 11px;
}

/* Email Icon */
.social-email::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 12px;
    border: 2px solid #f5576c;
    border-radius: 2px;
    top: 6px;
    left: 3px;
}

.social-email::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 5px solid #f5576c;
    top: 8px;
    left: 5px;
}

.copyright {
    color: #999;
    font-size: 0.9rem;
}

/* Form Styling */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: #fff;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: #f5576c;
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.1);
}

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

.wpcf7-form input[type="submit"] {
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    width: auto;
    margin: 20px 0;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #e74c3c;
}

.wpcf7-form .wpcf7-validation-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.wpcf7-response-output {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-validation-errors {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}



/* WooCommerce Styling */


.woocommerce .price,
.woocommerce .amount {
    color: #f5576c;
    font-weight: 700;
}

.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
    border-color: #f5576c;
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.1);
    outline: none;
}

.wc-block-grid__products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
}

.wc-block-grid__product {
    text-align: center;
    transition: transform 0.3s;
}

.wc-block-grid__product:hover {
    transform: translateY(-5px);
}

.wc-block-grid__product-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wc-block-grid__product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.wc-block-grid__product:hover .wc-block-grid__product-image img {
    transform: scale(1.05);
}

.wc-block-grid__product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.wc-block-grid__product-title:hover {
    color: #f5576c;
}

.wc-block-grid__product-price {
    color: #f5576c;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.wc-block-grid__product-onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f5576c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.wc-block-grid.has-4-columns:not(.alignwide):not(.alignfull) .wc-block-grid__product,
.wc-block-grid.has-5-columns.alignfull .wc-block-grid__product {
    font-size: 1rem !important;
}

.wc-block-grid.has-4-columns:not(.alignwide):not(.alignfull) .wc-block-grid__product-title,
.wc-block-grid.has-5-columns.alignfull .wc-block-grid__product-title {
    font-size: 1.2rem !important;
}

.wp-block-heading,
.woocommerce h1,
.woocommerce h2 {
    font-family: 'Playfair Display', serif;
    color: #333;
    font-weight: 300;
    letter-spacing: -1px;
    font-style: italic;
    text-align: center;
    margin-bottom: 40px;
}

h1,
h2 {
    position: relative;
}

h1::after,
h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f5576c, #764ba2, #667eea);
    border-radius: 2px;
}

.woocommerce h3,
.woocommerce h4,
.woocommerce h5,
.woocommerce h6 {
    font-family: 'Playfair Display', serif;
    color: #333;
    font-weight: 400;
    letter-spacing: -0.5px;
}

/* Contact Page Specific */
.contact-intro {
    text-align: center;
    margin-bottom: 50px;
}

.contact-intro h1 {
    margin-bottom: 20px;
}

.contact-intro p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Short height screens */
@media (max-height: 600px) {

    
    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
}

/* Responsive */

@media (max-width: 990px) {
    header {
        border-bottom: 0px solid transparent;
    }

    .hero {
        margin-top: 105px;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .user-nav {
        display: none;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #eee;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding-bottom: 100px;
    }
    
    .main-nav.mobile-open {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        justify-content: flex-start;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f8f8;
        margin-top: 10px;
        display: block !important;
    }
    
    .has-dropdown:hover .dropdown {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo {
        order: 1;
    }
    
    .mobile-menu-toggle {
        order: 2;
    }
    
    .main-nav, .user-nav {
        order: 3;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .single-product {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .wpcf7-form input[type="submit"] {
        width: 100%;
    }
    
    .contact-intro p {
        font-size: 1rem;
    }
}