:root {
    --primary: #1D1D1F;
    /* Almost black, Apple text color */
    --secondary: #FFFFFF;
    /* Clean white for background */
    --background-alt: #F5F5F7;
    /* Very light gray for alternate backgrounds */
    --accent: #0071E3;
    /* Apple blue for primary accent and CTAs */
    --accent-secondary: #30B34A;
    /* Apple green for success states */
    --text: #1D1D1F;
    /* Primary text color */
    --text-secondary: #86868B;
    /* Secondary text color */
    --subtle: #E8E8ED;
    /* Very light gray for subtle elements */
    --border: #D2D2D7;
    /* Light gray for borders */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Subtle shadow */
    --transition: all 0.3s ease;
    --spacing: 24px;
    --header-height: 60px;
    /* Cleaner, minimal header height */
    --radius: 12px;
    /* Rounded corners, Apple-style */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--secondary);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 130px;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    position: relative;
    letter-spacing: -0.5px;
}

.dimension-item {
    background: var(--background-alt);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
}

.dimension-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.dimension-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.price {
    font-size: 36px;
    font-weight: 600;
    color: var(--accent);
    text-align: right;
    margin: 24px 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideUpFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

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

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

@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.product-description {
    padding: 80px var(--spacing);
    background: var(--background-alt);
}

.description-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.description-item {
    background: var(--secondary);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.description-item h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.description-item ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--text);
}

.description-item li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.description-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 17px;
}

/* Header styles moved to css/layout/header.css */
/* Footer styles moved to css/layout/footer.css */

h2 {
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 22px;
    color: var(--primary);
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 24px;
    color: var(--primary);
    text-align: center;
}

h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
}

p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.content-item {
    margin-bottom: 20px;
    padding: 16px;
    background-color: var(--secondary);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
}

.scroll-item {
    margin-bottom: 16px;
    padding: 16px;
    transition: all 0.2s ease;
    width: 100%;
}

.scroll-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.product-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.card-selected {
    border: 2px solid var(--accent);
}

.section-container {
    width: 100%;
    max-height: 1000px;
    margin-bottom: 24px;
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.color-box {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid #E0E0E5;
    transition: border 0.2s ease;

}

.color-box.selected {
    border: 2px solid var(--accent);
}

.dropdown-container {
    width: 100%;
    max-width: 300px;
    margin: 15px auto;
    position: relative;
}

.dropdown-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
    font-size: 15px;
}

.dropdown {
    position: relative;
    width: 100%;
}

.dropdown select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--secondary);
    font-size: 15px;
    color: var(--primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dropdown::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
    font-size: 12px;
}

.dropdown select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(0, 113, 227, 0.3);
}

.dimensions-container {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
}

.dimensions-container>div>div {
    padding: 12px;
    text-align: center;
    background-color: var(--background-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.product-details-container {
    width: 100%;
    padding: 16px;
}

.product-details {
    padding: 16px;
}

.product-preview {
    width: 90%;
    height: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: var(--background-alt);
    border-radius: var(--radius);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transform-origin: center center;
}

.product-preview img {
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    object-fit: contain;
    display: block;
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: var(--radius);
}

.order-cta-button {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 12px 0;
    width: 100%;
    max-width: 220px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.3s;
}

.order-cta-button svg {
    margin-right: 8px;
}

.order-cta-button:hover {
    transform: translateY(-2px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
    background-color: #0077ED;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/*
 * Desktop Styles
 * Styles for screens larger than 900px
 */
@media (min-width: 901px) {
    .search-container {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 72px;
        /* Match site-top-bar height */
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 500px;
        z-index: 20;
        padding: 0;
        border-bottom: none;
        background: transparent;
    }
}

/*
 * Tablet & General Mobile Styles
 * - Merged from 900px and 768px breakpoints.
 */
@media (max-width: 900px) {

    /* General Layout */
    .section-title {
        font-size: 28px;
    }

    /* Header & Footer styles moved to css/layout/header.css and css/layout/footer.css */

    /* Hero Section & Slider */
    .hero {
        padding: 80px 15px;
        min-height: 50vh;
    }

    .hero h1,
    .slide h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }

    .hero p,
    .slide p {
        font-size: 18px !important;
        line-height: 1.4 !important;
        margin-bottom: 18px !important;
    }


    /* Product & Category Sections */
    .product-description {
        padding: 40px 15px;
    }

    .description-container {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        padding: 60px 15px;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .card-image-wrapper {
        /* This applies to multiple card types */
        height: 250px;
        /* Fixed height instead of padding-top for mobile visibility */
        padding-top: 0;
    }


    /* Cart */
    .cart-panel {
        width: 100%;
        right: -100%;
        transition: all 0.3s ease;
    }

    .cart-panel.active {
        right: 0;
    }

    /* Customizer-specific */
    .dimensions-container>div {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}


/*
 * Small Mobile Styles
 * - Merged from all 480px breakpoints.
 */
@media (max-width: 480px) {

    /* General Typography */
    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
        margin: 15px 0;
    }

    /* Hero Section & Slider */
    .hero {
        padding: 60px 15px;
        min-height: 40vh;
    }

    .hero h1,
    .slide h1 {
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
    }

    .hero p,
    .slide p {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin-bottom: 16px !important;
    }

    .hero .hero-cta {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Product & Category Sections */
    .product-gallery {
        padding: 40px 15px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card h3 {
        font-size: 18px;
    }

    .product-card p {
        font-size: 14px;
    }

    /* Mobilde card-cta stilini card-content içindeki için ayarla */
    .product-card .card-content .card-cta {
        padding: 8px 16px;
        font-size: 14px;
        width: auto;
        box-sizing: border-box;
        flex-shrink: 0;
    }


    /* Customizer & Details */
    .dimension-item {
        padding: 8px;
    }

    #detail-width-title,
    #detail-depth-title,
    #detail-height-title,
    #detail-planter-depth-title {
        font-size: 12px;
    }

    #detail-width,
    #detail-depth,
    #detail-height,
    #detail-planter-depth {
        font-size: 15px;
    }

    .dropdown-container {
        max-width: 100%;
    }

    #designCanvas,
    #preview-image {
        max-width: 90%;
        max-height: 90%;
    }
}

#designCanvas,
#preview-image {
    transition: all 0.5s ease;
}

.cart-item-details .customizations {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-item-details .customizations div {
    margin-bottom: 5px;
}

.product-customizations {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.product-customizations h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.product-customizations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-customizations li {
    font-size: 15px;
    color: #666;
    margin-bottom: 5px;
}

@keyframes slideOutRightFade {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(20px);
        opacity: 0;
    }
}

@keyframes slideInLeftFade {
    0% {
        transform: translateX(20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeftFade {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-20px);
        opacity: 0;
    }
}

@keyframes slideInRightFade {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hero Section Styles */
.hero {
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
    /* Arka plan görseli ekleyin */
    background-color: var(--background-alt);
    /* Görsel yüklenmezse */
    color: var(--secondary);
    /* Koyu arka plan üzerinde açık renk metin */
    text-align: center;
    padding: 100px var(--spacing);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    /* Ekran yüksekliğinin bir kısmını kaplasın */
}

.hero::before {
    /* Arka planı biraz karartmak için overlay */
    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;
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.hero .hero-cta {
    background-color: var(--secondary);
    color: var(--accent);
    padding: 14px 32px;
    font-size: 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.hero .hero-cta:hover {
    background-color: var(--accent);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

/* Product Gallery Styles */
.product-gallery {
    padding: 80px var(--spacing);
    background-color: var(--secondary);
    /* Veya --background-alt */
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Hero Slider styles moved to css/layout/hero-slider.css */

/* Product overlay styles */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

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

.image-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.image-button:hover {
    background-color: #0077ED;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 113, 227, 0.2);
}

/* Header and Footer styles moved to css/layout/header.css and css/layout/footer.css */


/* Full Width Feature Section */
.full-width-feature {
    position: relative;
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align content to the left */
    color: white;
    text-align: left;
    padding: 0 5%;
}

.feature-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.feature-content {
    position: relative;
    z-index: 3;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.feature-title {
    font-size: 42px;
    font-weight: 500;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    margin-bottom: 15px;
    line-height: 1.2;
}

.feature-description {
    font-size: 18px;
    margin-bottom: 25px;
    max-width: 90%;
}

.feature-price {
    margin-bottom: 30px;
}

.feature-price .current-price {
    font-size: 28px;
    font-weight: 700;
    color: #CBB484;
}

.feature-price .original-price {
    font-size: 20px;
    text-decoration: line-through;
    color: #666666;
    opacity: 0.95;
    margin-left: 15px;
    font-weight: 500;
}

.feature-content .cta-button {
    background-color: #393939;
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-content .cta-button:hover {
    background-color: #1a1a1a;
    transform: translateY(-3px);
}

/* --- New Arrivals Carousel --- */
.new-arrivals-section {
    background-color: #2C2C2E;
    /* Softer dark background */
    padding: 60px 0;
    overflow: hidden;
}

.new-arrivals-section .section-title {
    color: #ffffff;
    margin-bottom: 40px;
}

.new-arrivals-carousel {
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    cursor: grab;
}

.carousel-wrapper:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 0 40px;
    /* Add horizontal padding to prevent card cutoff */
}

.new-arrival-card {
    flex: 0 0 clamp(220px, 18vw, 280px);
    text-align: left;
    user-select: none;
    /* Prevent text selection during drag */
}

.new-arrival-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.new-arrival-card a:hover {
    transform: translateY(-5px);
}

.new-arrival-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 125%;
    /* Taller aspect ratio */
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 15px;
    background-color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.new-arrival-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    pointer-events: none;
    user-select: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.new-arrival-card a:hover .new-arrival-image-wrapper img {
    transform: scale(1.05);
}

.new-arrival-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #f5f5f7;
    height: 44.8px;
    /* for 2 lines */
    overflow: hidden;
}

.new-arrival-price {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.new-arrival-price .old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    margin-left: 8px;
    font-weight: 400;
}

/* Arrow styles removed as they are no longer in the HTML */
/* --- End of New Arrivals Carousel --- */

/* Discount FAB and Popup Styles */
.discount-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--accent, #0071E3), #005bb5);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discount-fab i {
    font-size: 20px;
    line-height: 1;
}

.discount-fab span {
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
}

/* Responsive scaling for larger screens removed for simplicity */

.discount-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.5);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.popup-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #333;
}

.popup-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
}

.popup-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.popup-content p {
    color: #666;
    margin-bottom: 25px;
}

#newsletterForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#newsletterEmail {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    text-align: center;
}

#newsletterForm .cta-button {
    padding: 12px;
    font-size: 16px;
    width: 100%;
}

.popup-footer {
    margin-top: 15px;
    color: #999;
}

/* Responsive adjustments might be needed */

/* Header and Footer styles moved to css/layout/header.css and css/layout/footer.css */

/* Scroll Reveal Animation - Tüm Cihazlar İçin */
/* Scroll reveal için başlangıç durumu */
.scroll-reveal-section {
    opacity: 0;
    transform: translateY(120px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Animasyon tetiklendiğinde */
.scroll-reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero slider scroll reveal protection moved to respective module CSS files:
   - Standard slider: css/layout/hero-slider.css
   - Typing slider: css/layout/hero-slider-typing.css
*/