/* ========================================
   RESET & BASE STYLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 48px;
    color: #1a1a1a;
    letter-spacing: 0.05em;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #ffffff;
    color: #1a1a1a;
}

.btn-primary:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.btn-secondary {
    background-color: #1a1a1a;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #404040;
}

/* ========================================
   HEADER
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0f0f0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-decoration: none;
    color: #1a1a1a;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: #1a1a1a;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #666666;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/photos/brand/temple-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    padding: 0 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* ========================================
   COLLECTION SECTION
======================================== */
.collection {
    background-color: #ffffff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ========================================
   PRODUCT GALLERY
======================================== */
.product-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f5f5f5;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 10;
}

.gallery-main:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background-color: #ffffff;
}

.gallery-arrow svg {
    color: #1a1a1a;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
    justify-content: center;
    background-color: #fafafa;
}

.thumbnail {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    background: none;
}

.thumbnail:hover {
    opacity: 0.9;
}

.thumbnail.active {
    opacity: 1;
    border-color: #1a1a1a;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   PRODUCT INFO
======================================== */
.product-info {
    padding: 24px;
    text-align: center;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.product-availability {
    font-size: 0.8rem;
    color: #888888;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

/* ========================================
   MEANING SECTION
======================================== */
.meaning {
    background-color: #f9f9f9;
}

.meaning-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.meaning-image {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 8px;
}

.meaning-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meaning-content {
    padding: 32px 0;
}

.meaning-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.meaning-text {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #444444;
    max-width: 480px;
}

/* ========================================
   SIZING SECTION
======================================== */
.sizing {
    background-color: #ffffff;
    text-align: center;
}

.sizing-text {
    font-size: 1.1rem;
    font-weight: 300;
    color: #444444;
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact {
    background-color: #f9f9f9;
    text-align: center;
}

.contact-text {
    font-size: 1.1rem;
    font-weight: 300;
    color: #444444;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background-color: #1a1a1a;
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    font-size: 0.8rem;
    color: #888888;
    letter-spacing: 0.1em;
}

/* ========================================
   ORDER PAGE
======================================== */
.order-section {
    padding: 140px 0 80px;
    min-height: 100vh;
    background-color: #ffffff;
}

.order-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.order-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.order-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #444444;
    line-height: 1.7;
    margin-bottom: 16px;
}

.order-note {
    font-size: 0.9rem;
    color: #666666;
    font-style: italic;
}

.order-form-wrapper {
    max-width: 700px;
    margin: 0 auto 48px;
    background-color: #fafafa;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    font-size: 1rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #1a1a1a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-submit {
    margin-top: 8px;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.back-link {
    text-align: center;
}

.back-link .btn {
    display: inline-block;
}

/* ========================================
   THANK YOU PAGE
======================================== */
.thank-you-section {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.thank-you-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    color: #1a1a1a;
    text-transform: uppercase;
}

.thank-you-message {
    font-size: 1.1rem;
    font-weight: 300;
    color: #444444;
    line-height: 1.7;
    margin-bottom: 16px;
}

.thank-you-note {
    font-size: 0.95rem;
    color: #666666;
    font-style: italic;
    margin-bottom: 40px;
}

/* ========================================
   RESPONSIVE STYLES
======================================== */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .meaning-inner {
        gap: 40px;
    }
    
    .order-form-wrapper {
        padding: 32px;
    }
}

/* Mobile: 480px - 767px */
@media (max-width: 767px) {
    /* Base adjustments */
    .section {
        padding: 48px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 28px;
    }
    
    /* Header */
    .header-inner {
        height: auto;
        min-height: 60px;
        padding: 12px 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .logo {
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.7rem;
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
        height: auto;
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        letter-spacing: 0.1em;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }
    
    .hero .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
    }
    
    /* Collection - 2 columns on tablet */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-card {
        border-radius: 6px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-title {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .product-availability {
        font-size: 0.7rem;
        margin-bottom: 12px;
    }
    
    .product-info .btn {
        padding: 10px 16px;
        font-size: 0.7rem;
        width: 100%;
    }
    
    /* Gallery */
    .gallery-main {
        aspect-ratio: 1;
    }
    
    .gallery-arrow {
        opacity: 1;
        width: 32px;
        height: 32px;
    }
    
    .gallery-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .gallery-prev {
        left: 8px;
    }
    
    .gallery-next {
        right: 8px;
    }
    
    .gallery-thumbnails {
        padding: 8px;
        gap: 6px;
    }
    
    .thumbnail {
        width: 44px;
        height: 44px;
    }
    
    /* Meaning section */
    .meaning-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .meaning-image {
        aspect-ratio: 4/3;
    }
    
    .meaning-content {
        padding: 0;
    }
    
    .meaning-content .section-title {
        text-align: center;
    }
    
    .meaning-text {
        font-size: 1rem;
        text-align: center;
    }
    
    /* Sizing */
    .sizing-text {
        font-size: 1rem;
    }
    
    /* Contact */
    .contact-text {
        font-size: 1rem;
    }
    
    /* Order page */
    .order-section {
        padding: 100px 0 48px;
    }
    
    .order-title {
        font-size: 1.75rem;
    }
    
    .order-subtitle {
        font-size: 0.95rem;
    }
    
    .order-note {
        font-size: 0.85rem;
    }
    
    .order-form-wrapper {
        padding: 20px;
        margin: 0 12px 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group label {
        font-size: 0.75rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .form-submit {
        margin-top: 4px;
    }
    
    /* Thank you page */
    .thank-you-section {
        padding: 100px 20px 48px;
    }
    
    .thank-you-title {
        font-size: 2rem;
    }
    
    .thank-you-message {
        font-size: 1rem;
    }
    
    .thank-you-note {
        font-size: 0.85rem;
        margin-bottom: 32px;
    }
    
    /* Footer */
    .footer {
        padding: 32px 0;
    }
    
    .footer-text {
        font-size: 0.7rem;
    }
}

/* Small mobile: below 480px */
@media (max-width: 479px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    /* Collection - 1 column on small mobile */
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
    
    /* Header */
    .nav {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 0.65rem;
    }
    
    /* Gallery thumbnails */
    .gallery-thumbnails {
        gap: 4px;
        padding: 6px;
    }
    
    .thumbnail {
        width: 40px;
        height: 40px;
    }
    
    /* Order form */
    .order-form-wrapper {
        padding: 16px;
        margin: 0 8px 32px;
        border-radius: 6px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.75rem;
    }
}