/* Inspired by Finch & Co's refined gallery aesthetic */

:root {
    /* Finch & Co Inspired - Refined Gallery Palette */
    --primary-bg: #faf9f6;
    --secondary-bg: #f5f4f0;
    --accent-color: #2c2520;
    --accent-light: #4a433d;
    --accent-dark: #1a1613;
    --text-dark: #2c2520;
    --text-medium: #6b6560;
    --text-light: #9d9892;
    --border-color: #e8e6e1;
    --white: #ffffff;
    --overlay-dark: rgba(44, 37, 32, 0.7);
    --overlay-light: rgba(250, 249, 246, 0.98);

    /* Refined Shadows */
    --shadow-sm: 0 1px 3px rgba(44, 37, 32, 0.06);
    --shadow-md: 0 2px 8px rgba(44, 37, 32, 0.08);
    --shadow-lg: 0 4px 16px rgba(44, 37, 32, 0.1);
    --shadow-xl: 0 8px 24px rgba(44, 37, 32, 0.12);

    /* Smooth Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    background: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
    margin: 0;
    padding: 0;
    letter-spacing: 0.01em;
    position: relative;
}

/* Refined Gallery Header - Finch & Co Style */
header {
    background: var(--white);
    padding: 25px 50px;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    box-shadow: none;
    transition: var(--transition-smooth);
}

header:hover {
    box-shadow: var(--shadow-sm);
}

/* Copyright in Sidebar */
.sidebar-nav .copyright {
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-medium);
    font-weight: 400;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Header Icons */
.header-icons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 50px;
    display: flex;
    gap: 20px;
    align-items:baseline;
}

.social-icon {
    color: var(--text-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 1px;
    cursor: pointer;
    width: 26px;
    height: 26px;
}

.social-icon:hover {
    color: var(--accent-color);
    background: transparent;
    transform: translateY(-2px) scale(1.05);
}

.social-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    color: var(--text-medium);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    outline: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 101;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active,
.mobile-menu-btn:focus {
    color: var(--accent-color);
    background: transparent;
    border: none;
    outline: none;
}

.mobile-menu-btn svg {
    width: 26px;
    height: 26px;
    display: block;
    pointer-events: none;
}

/* Modern Search Bar */
.search-bar {
    position: absolute;
    top: 90px;
    right: 60px;
    left: auto;
    width: min(400px, calc(100vw / 3));
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(193, 120, 84, 0.2);
    padding: 12px 18px;
    align-items: center;
    gap: 12px;
    z-index: 200;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px;
}

.search-bar.active {
    display: flex;
}

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

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #2c2c2c;
    padding: 5px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: transparent;
}

#searchInput::placeholder {
    color: #999;
}

.search-close {
    background: none;
    border: none;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
}

.search-close:hover {
    color: #2c2c2c;
}

h1 {
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-weight: 300;
    font-style: italic;
    text-shadow: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition-smooth);
    text-transform: none;
}

h1:hover {
    letter-spacing: 0.18em;
    color: var(--text-medium);
    transform: translateX(-50%) scale(1.02);
}

/* Hide navigation in header */
header nav {
    display: none;
}

/* Vertical navigation in body */
body {
    margin-top: 70px;
    display: flex;
}

.sidebar-nav {
    position: fixed;
    left: -280px;
    top: 140px;
    bottom: 0;
    width: 280px;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    padding: 10px 0;
    overflow-y: auto;
    z-index: 50;
    box-shadow: none;
    transition: left 0.3s ease;
}

.sidebar-nav:hover {
    left: 0;
    box-shadow: var(--shadow-md);
}

/* Trigger area for sidebar - minimal */
.sidebar-nav::before {
    content: '';
    position: fixed;
    left: 0;
    top: 140px;
    bottom: 0;
    width: 40px;
    z-index: -1;
    background: transparent;
    transition: var(--transition-smooth);
}

.sidebar-nav:hover::before {
    background: transparent;
    width: 40px;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.sidebar-nav ul li {
    position: relative;
    display: block;
}

.sidebar-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
    display: block;
    padding: 10px 30px;
    border-left: 2px solid transparent;
    position: relative;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.sidebar-nav ul li a::before {
    content: none;
}

.sidebar-nav ul li a:hover {
    color: var(--text-medium);
    background-color: var(--secondary-bg);
    border-left-color: var(--accent-color);
    padding-left: 30px;
    letter-spacing: 0;
}

.sidebar-nav ul li a.active {
    color: var(--accent-color);
    background-color: transparent;
    border-left-color: var(--accent-color);
    font-weight: 500;
}

/* Dropdown Menu in Sidebar */
.sidebar-nav .dropdown {
    position: relative;
}

.sidebar-nav .dropbtn {
    cursor: pointer;
}

.sidebar-nav .dropdown-content {
    display: none;
    position: static;
    background-color: transparent;
    min-width: auto;
    box-shadow: none;
    z-index: 1;
    margin-top: 0px;
    margin-left: 15px;
    border-left: 2px solid #e0e0e0;
    padding: 2px 0;
}

.sidebar-nav .dropdown-content a {
    color: var(--text-dark);
    padding: 8px 15px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background-color: transparent;
    color: var(--accent-color);
    padding-left: 20px;
    border-left-color: var(--accent-light);
}

.dropdown-content a.active {
    color: var(--accent-color);
    background-color: transparent;
    border-left-color: var(--accent-color);
    font-weight: 500;
}

.sidebar-nav .dropdown:hover .dropdown-content {
    display: block;
}

/* Keep dropdown open when hovering over content */
.sidebar-nav .dropdown:hover > .dropdown-content,
.sidebar-nav .dropdown-content:hover {
    display: block;
}

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

.cart-link {
    position: relative;
}

.cart-count {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 5px;
    box-shadow: 0 2px 8px rgba(193, 120, 84, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Main Content */
main {
    margin-left: 0;
    margin-right: 0;
    padding: 20px 0;
    min-height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Gallery Section */
#gallery {
    margin-bottom: 100px;
}

#gallery h2,
.content-section h2 {
    font-size: 2rem;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0.03em;
    text-align: left;
    margin-bottom: 50px;
    color: var(--text-dark);
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    position: relative;
    padding-bottom: 0;
    padding-left: 40px;
}

#gallery h2::after,
.content-section h2::after {
    content: none;
}

/* Carousel Styles - Horizontal */
.carousel-container {
    position: relative;
    width: 375px;
    height: 450px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: transparent;
}

/* Picture Frame - Removed */
.picture-frame {
    display: none;
}

.carousel-track {
    display: flex;
    flex-direction: row;
    gap: 50px;
    animation: horizontalScroll 154s linear infinite;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding-left: 0px;
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.art-piece {
    width: 375px;
    height: 450px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.art-piece a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.art-piece img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 0;
    box-shadow: none;
    border: none;
}

/* Horizontal Carousel Animation - Seamless loop with 10s pauses */
/* 14 images, each stops for 10s in center, then moves to next */
/* Total: 14 images × 11s (10s pause + 1s transition) = 154s */
/* Image width: 375px + 50px gap = 425px per image */
@keyframes horizontalScroll {
    /* Image 1 - pause 10s at start */
    0% { transform: translateY(-50%); }
    6.49% { transform: translateY(-50%); }
    /* Move to Image 2 (1s transition) */
    7.14% { transform: translate(-425px, -50%); }
    /* Image 2 - pause 10s */
    13.64% { transform: translate(-425px, -50%); }
    /* Move to Image 3 */
    14.29% { transform: translate(-850px, -50%); }
    /* Image 3 - pause 10s */
    20.78% { transform: translate(-850px, -50%); }
    /* Move to Image 4 */
    21.43% { transform: translate(-1275px, -50%); }
    /* Image 4 - pause 10s */
    27.92% { transform: translate(-1275px, -50%); }
    /* Move to Image 5 */
    28.57% { transform: translate(-1700px, -50%); }
    /* Image 5 - pause 10s */
    35.06% { transform: translate(-1700px, -50%); }
    /* Move to Image 6 */
    35.71% { transform: translate(-2125px, -50%); }
    /* Image 6 - pause 10s */
    42.21% { transform: translate(-2125px, -50%); }
    /* Move to Image 7 */
    42.86% { transform: translate(-2550px, -50%); }
    /* Image 7 - pause 10s */
    49.35% { transform: translate(-2550px, -50%); }
    /* Move to Image 8 */
    50% { transform: translate(-2975px, -50%); }
    /* Image 8 - pause 10s */
    56.49% { transform: translate(-2975px, -50%); }
    /* Move to Image 9 */
    57.14% { transform: translate(-3400px, -50%); }
    /* Image 9 - pause 10s */
    63.64% { transform: translate(-3400px, -50%); }
    /* Move to Image 10 */
    64.29% { transform: translate(-3825px, -50%); }
    /* Image 10 - pause 10s */
    70.78% { transform: translate(-3825px, -50%); }
    /* Move to Image 11 */
    71.43% { transform: translate(-4250px, -50%); }
    /* Image 11 - pause 10s */
    77.92% { transform: translate(-4250px, -50%); }
    /* Move to Image 12 */
    78.57% { transform: translate(-4675px, -50%); }
    /* Image 12 - pause 10s */
    85.06% { transform: translate(-4675px, -50%); }
    /* Move to Image 13 */
    85.71% { transform: translate(-5100px, -50%); }
    /* Image 13 - pause 10s */
    92.21% { transform: translate(-5100px, -50%); }
    /* Move to Image 14 */
    92.86% { transform: translate(-5525px, -50%); }
    /* Image 14 - pause 10s */
    99.35% { transform: translate(-5525px, -50%); }
    /* Quick move back to Image 1 */
    100% { transform: translate(-5950px, -50%); }
}

/* Contact Section */
#contact {
    text-align: center;
    padding: 80px 0;
    background-color: #fafafa;
    margin: 0 -50px;
}

#contact h2 {
    font-size: 1.8rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: #2c2c2c;
}

#contact p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 300;
}

/* Individual Art Page Styles */
.large-art {
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

#art-view {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
}

#art-view h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #2c2c2c;
}

#art-view p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

#art-view h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 50px 0 30px;
    color: #2c2c2c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    gap: 20px;
}

form label {
    font-size: 1rem;
    color: #666;
    text-align: left;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

form input {
    padding: 15px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    font-size: 1rem;
    color: #2c2c2c;
    transition: border-color 0.3s ease;
}

form input:focus {
    outline: none;
    border-color: #2c2c2c;
}

/* Phone input group with country code */
.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-input-group select {
    padding: 15px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    font-size: 1rem;
    color: #2c2c2c;
    cursor: pointer;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
    min-width: 180px;
}

.phone-input-group select:focus {
    outline: none;
    border-color: #2c2c2c;
}

.phone-input-group input {
    flex: 1;
}

form button {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    box-shadow: 0 4px 15px rgba(193, 120, 84, 0.3);
    position: relative;
    overflow: hidden;
}

form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

form button:hover::before {
    left: 100%;
}

form button:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 120, 84, 0.4);
}

form button:active {
    transform: translateY(0);
}

/* Header Button */
header button {
    background-color: transparent;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 10px 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

header button:hover {
    background-color: #2c2c2c;
    color: #ffffff;
    border-color: #2c2c2c;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 44, 44, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 251, 247, 0.98));
    backdrop-filter: blur(20px);
    padding: 0;
    border-radius: 20px;
    max-width: 1100px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 40px;
    font-weight: 300;
    color: var(--text-medium);
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--accent-color);
    background-color: rgba(193, 120, 84, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: row;
    gap: 50px;
    padding: 60px;
}

.modal-image-container {
    flex: 1;
    min-width: 400px;
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 25px;
    color: #2c2c2c;
    letter-spacing: 1px;
}

.modal-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-details {
    font-size: 1rem;
    color: #999;
    margin-bottom: 15px;
    font-style: italic;
}

.modal-price {
    font-size: 1.5rem;
    color: #2c2c2c;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.modal-info h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: #2c2c2c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-info form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Note: Responsive Design moved to bottom of file */

/* Add to Cart Button */
.add-to-cart-btn {
    padding: 16px 32px;
    background: var(--accent-color);
    color: var(--white);
    border: 1px solid var(--accent-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 400;
    margin-top: 20px;
    width: 100%;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.add-to-cart-btn::before {
    content: none;
}

.add-to-cart-btn:hover {
    background: var(--white);
    color: var(--accent-color);
    transform: none;
    box-shadow: none;
    letter-spacing: 0.1em;
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

/* Cart Modal */
.cart-modal-content {
    max-width: 800px;
    padding: 40px;
}

.cart-title {
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: #2c2c2c;
    text-align: center;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 1.2rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 1.1rem;
    color: #666;
}

.cart-item-remove {
    background-color: transparent;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 8px 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background-color: #ff4444;
    color: #ffffff;
    border-color: #ff4444;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2rem;
    font-weight: 300;
}

.cart-summary {
    border-top: 2px solid #2c2c2c;
    padding-top: 30px;
    margin-top: 30px;
}

.cart-total {
    font-size: 1.5rem;
    text-align: right;
    margin-bottom: 40px;
    color: #2c2c2c;
}

.cart-summary h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: #2c2c2c;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.cart-summary form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-summary textarea {
    padding: 15px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    font-size: 1rem;
    color: #2c2c2c;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.cart-summary textarea:focus {
    outline: none;
    border-color: #2c2c2c;
}

.checkout-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(193, 120, 84, 0.3);
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(193, 120, 84, 0.4);
}

/* Note: Responsive Cart styles moved to bottom of file */

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
    width: 100%;
    padding: 0 50px;
    margin-left: 60px;
}

.content-section.active {
    display: block;
}

/* Home section with carousel centered */
#home.content-section.active {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 0;
    margin-left: 0;
}

/* Refined Gallery Grid - Finch & Co Style */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 50px;
}

.portfolio-item {
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    background: var(--white);
    padding: 0;
    border-radius: 0;
    border: 1px solid transparent;
}

.portfolio-item::before {
    content: none;
}

.portfolio-item:hover {
    transform: none;
    border-color: var(--border-color);
}

.portfolio-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    box-shadow: none;
    transition: var(--transition-smooth);
    border-radius: 0;
    display: block;
}

.portfolio-item:hover img {
    box-shadow: none;
    transform: none;
    opacity: 0.95;
}

.portfolio-item h3 {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 400;
    color: #2c2c2c;
    text-align: center;
}

/* Premium Collection Description */
.collection-description {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.25rem;
    margin-top: -40px;
    margin-bottom: 50px;
    font-style: italic;
    font-family: 'Cormorant Garamond', Georgia, serif;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
}

/* Refined Store Grid - Finch & Co Style */
.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 50px;
}

.store-item {
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid transparent;
}

.store-item::before {
    content: none;
}

.store-item:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

.store-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    box-shadow: none;
    transition: var(--transition-smooth);
    border-radius: 0;
    flex-shrink: 0;
    display: block;
}

.store-item:hover img {
    box-shadow: none;
    transform: none;
    opacity: 0.95;
}

.store-item h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    letter-spacing: 0.01em;
    padding: 0 15px;
}

.store-price {
    font-size: 1rem;
    color: var(--text-medium);
    font-weight: 400;
    margin-top: 5px;
    margin-bottom: 20px;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    padding: 0 15px;
}

/* Search Highlight */
.search-highlight {
    animation: pulseHighlight 1.5s ease-in-out 3;
}

@keyframes pulseHighlight {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(44, 44, 44, 0);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(44, 44, 44, 0.2);
    }
}

/* Art Commissions Section */
.commissions-content {
    max-width: 900px;
    margin: 0 auto;
}

.commissions-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.commissions-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.commissions-text {
    line-height: 1.8;
    color: #666;
    align-items:baseline;
}

.commissions-text h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #2c2c2c;
    margin: 30px 0 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.commissions-text ul {
    list-style: none;
    padding-left: 0;
}

.commissions-text li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.commissions-text li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c2c2c;
    font-size: 1.5rem;
}

.commission-cta {
    margin-top: 30px;
    padding: 25px;
    background-color: #fafafa;
    border-left: 4px solid #2c2c2c;
}

.commission-cta a {
    color: #2c2c2c;
}

.email-me-link {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    transition: var(--transition-smooth);
    display: inline-block;
    padding: 2px 8px;
}

.email-me-link:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
    transform: scale(1.05);
}

.commission-form {
    margin-top: 50px;
    text-align: center;
}

.commission-form h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.commission-form form {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.commission-form input {
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    width: 300px;
}

.commission-form button {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(193, 120, 84, 0.3);
    position: relative;
    overflow: hidden;
}

.commission-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.commission-form button:hover::before {
    left: 100%;
}

.commission-form button:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 120, 84, 0.4);
}

/* Support Section */
.support-content {
    max-width: 800px;
    margin: 0 auto;
}

.support-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin-bottom: 40px;
}

.donation-box {
    background-color: #fafafa;
    padding: 40px;
    border-radius: 0;
    text-align: center;
}

.donation-box h3 {
    font-size: 2rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 20px;
}

.donation-box > p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.coffee-amounts {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.coffee-btn {
    padding: 15px 30px;
    background-color: var(--white);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(193, 120, 84, 0.1);
}

.coffee-btn:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(193, 120, 84, 0.3);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    color: #2c2c2c;
    transition: border-color 0.3s ease;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c2c2c;
}

.donation-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(193, 120, 84, 0.3);
    position: relative;
    overflow: hidden;
}

.donation-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.donation-btn:hover::before {
    left: 100%;
}

.donation-btn:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(193, 120, 84, 0.4);
}

/* Contact Modal */
.contact-modal-content {
    max-width: 700px;
    padding: 50px;
}

.contact-title {
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #2c2c2c;
    text-align: center;
}

.contact-intro {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: center;
}

.contact-intro a {
    color: #2c2c2c;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(193, 120, 84, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.contact-submit-btn:hover::before {
    left: 100%;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(193, 120, 84, 0.4);
}

/* About Modal */
.about-modal-content {
    max-width: 700px;
    padding: 50px;
    text-align: center;
}

/* 3D Image Modal */
.image-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Hover Wall Image Modal */
.hover-wall-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    pointer-events: none;
    max-width: 90vw;
    max-height: 90vh;
}

.hover-wall-modal img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-radius: 0;
}

/* Indicate hoverable items in carousel */
.art-piece[data-wall-image] {
    position: relative;
}

.art-piece[data-wall-image]::after {
    content: '🖼️';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.art-piece[data-wall-image]:hover::after {
    opacity: 1;
}

/* 3DArt Object Section - Clickable Images */
#3dart-object1 .portfolio-item {
    cursor: pointer;
}

#3dart-object1 .portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-photo {
    margin-bottom: 30px;
}

.about-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.about-title {
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: #2c2c2c;
}

.about-text {
    text-align: left;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-text p {
    margin-bottom: 20px;
}

.contact-me-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    box-shadow: 0 4px 15px rgba(193, 120, 84, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-me-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.contact-me-btn:hover::before {
    left: 100%;
}

.contact-me-btn:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(193, 120, 84, 0.4);
}

/* Responsive Design - Адаптивный дизайн */

/* Tablets and small laptops (768px - 1024px) */
@media (max-width: 1024px) {
    /* Header icons repositioning */
    .header-icons {
        left: 30px;
    }

    header {
        padding: 30px 30px;
    }

    .search-bar {
        left: 30px;
        right: 30px;
    }

    .portfolio-grid,
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile devices (up to 768px) */
@media (max-width: 768px) {
    header {
        padding: 20px 15px;
        padding-bottom: 15px;
        justify-content: flex-start;
    }

    header h1 {
        font-size: 1.8rem;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 60px;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: inline-flex;
    }

    /* Hide desktop header icons on mobile */
    .header-icons {
        display: none;
    }

    /* Sidebar navigation for mobile */
    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar-nav.mobile-open {
        transform: translateX(0);
    }

    .search-bar {
        position: static;
        left: auto;
        right: auto;
        margin-top: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        padding: 10px 0;
    }

    .dropdown:hover .dropdown-content,
    .dropdown-content.show {
        display: block;
    }

    main {
        padding: 40px 25px;
    }

    .art-piece {
        min-width: 280px;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .prev-btn {
        left: -25px;
    }

    .next-btn {
        right: -25px;
    }

    .portfolio-grid,
    .store-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
        padding: 30px 20px;
    }

    .modal-body {
        flex-direction: column;
        gap: 30px;
        padding: 40px 30px;
    }

    .modal-image-container {
        min-width: auto;
    }

    .close-btn {
        right: 15px;
        top: 15px;
        font-size: 35px;
    }

    .modal-info h2 {
        font-size: 1.8rem;
    }

    /* Cart modal */
    .cart-modal-content {
        padding: 30px 20px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-image {
        width: 100%;
        height: 200px;
    }

    .phone-input-group {
        flex-direction: column;
        gap: 15px;
    }

    .phone-input-group select {
        min-width: 100%;
    }

    /* Contact modal */
    .contact-modal-content {
        padding: 30px 20px;
    }

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

    /* About modal */
    .about-modal-content {
        padding: 30px 20px;
    }

    /* Commissions */
    .commissions-content {
        flex-direction: column;
    }

    .commissions-images {
        grid-template-columns: 1fr;
    }

    /* Support */
    .support-content {
        flex-direction: column;
    }

    .support-image {
        max-width: 100%;
    }

    .donation-box {
        max-width: 100%;
    }
}

/* Small mobile (up to 480px) */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .header-icons {
        gap: 20px;
    }

    nav ul li a {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .prev-btn {
        left: -20px;
    }

    .next-btn {
        right: -20px;
    }

    .modal-content {
        padding: 20px 15px;
    }

    .modal-body {
        padding: 20px 15px;
    }

    .coffee-amounts {
        flex-direction: column;
        gap: 10px;
    }

    .coffee-btn {
        width: 100%;
    }
}