:root {
    --agp-bg: #0e0e0e;
    --agp-fg: #f5f5f0;
    --agp-accent: #c9a227;
    --agp-font-heading: 'Playfair Display', Georgia, serif;
    --agp-font-body: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--agp-bg);
    color: var(--agp-fg);
    font-family: var(--agp-font-body);
}

a { color: inherit; }

.agp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Section background system (shared by hero, about, cta, page header) ---- */

.agp-hero,
.agp-about-section,
.agp-cta-banner,
.agp-page-header {
    position: relative;
    overflow: hidden;
}

.agp-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.agp-bg-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agp-bg-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.agp-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.agp-bg-slide.is-active {
    opacity: 1;
}

.agp-bg-overlay {
    position: absolute;
    inset: 0;
}

.agp-animated-gradient {
    animation: agp-gradient-shift 12s ease infinite;
}

@keyframes agp-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Header / nav ---- */

.agp-site-header .agp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    padding-bottom: 24px;
}

.agp-primary-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.agp-primary-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.agp-header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.agp-currency-switcher-mini select,
.agp-currency-switcher select {
    background: rgba(255, 255, 255, 0.06);
    color: var(--agp-fg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 8px;
    font-size: 0.85rem;
}

.agp-cart-link {
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---- Cart page ---- */

.agp-cart-page,
.agp-checkout-page,
.agp-order-received {
    padding: 48px 24px 96px;
}

.agp-currency-switcher {
    margin-bottom: 24px;
}

.agp-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.agp-cart-table th,
.agp-cart-table td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.agp-cart-photo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agp-cart-photo img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 2px;
}

.agp-cart-photo a {
    text-decoration: none;
}

.agp-cart-qty-form input,
.agp-cart-table input[type="number"] {
    width: 60px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--agp-fg);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.agp-cart-remove {
    background: none;
    border: none;
    color: #dc5050;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.85rem;
}

.agp-cart-summary {
    max-width: 360px;
    margin-left: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.agp-cart-summary p {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

.agp-cart-summary .agp-btn {
    display: block;
    text-align: center;
    margin-top: 16px;
}

/* ---- Checkout page ---- */

.agp-checkout-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
}

.agp-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agp-checkout-form h2 {
    font-family: var(--agp-font-heading);
    margin-top: 24px;
    margin-bottom: 4px;
}

.agp-checkout-form label:not(.agp-gateway-option) {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
    margin-top: 6px;
}

.agp-checkout-form input[type="text"],
.agp-checkout-form input[type="email"],
.agp-checkout-form textarea {
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--agp-fg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: inherit;
}

.agp-gateway-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
}

.agp-checkout-summary {
    background: rgba(255, 255, 255, 0.04);
    padding: 24px;
    border-radius: 4px;
}

.agp-checkout-lines {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.agp-checkout-lines li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.agp-checkout-lines li span:last-child {
    color: var(--agp-accent);
}

@media (max-width: 900px) {
    .agp-checkout-grid { grid-template-columns: 1fr; }
}

/* ---- Hero ---- */

.agp-hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
}

.agp-hero-content {
    position: relative;
    z-index: 1;
    padding: 64px 24px;
    max-width: 900px;
}

.agp-hero-content h1 {
    font-family: var(--agp-font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin: 0 0 16px;
}

.agp-hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.agp-btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.agp-btn-primary {
    background: var(--agp-accent);
    color: #1a1a1a;
}

.agp-btn-secondary {
    border-color: var(--agp-fg);
    color: var(--agp-fg);
    background: transparent;
}

/* ---- Section heading ---- */

.agp-section-heading,
.agp-section-heading-center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.agp-section-heading h2,
.agp-section-heading-center {
    font-family: var(--agp-font-heading);
    font-size: 2.25rem;
    margin-bottom: 12px;
}

/* ---- Featured gallery / masonry ---- */

.agp-featured-gallery {
    padding: 96px 0;
}

.agp-masonry {
    columns: 3 280px;
    column-gap: 16px;
}

.agp-photo-card {
    break-inside: avoid;
    margin-bottom: 16px;
    position: relative;
}

.agp-photo-card a {
    text-decoration: none;
    display: block;
}

.agp-photo-card img {
    width: 100%;
    height: auto;
    display: block;
}

.agp-photo-meta {
    display: flex;
    justify-content: space-between;
    padding: 10px 4px;
    font-size: 0.9rem;
}

.agp-photo-price {
    color: var(--agp-accent);
}

.agp-empty-notice {
    text-align: center;
    padding: 48px 0;
    opacity: 0.7;
}

/* ---- About / Story section ---- */

.agp-about-section {
    padding: 96px 0;
}

.agp-about-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.agp-about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}

.agp-about-content h2 {
    font-family: var(--agp-font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
}

.agp-about-content p {
    line-height: 1.7;
    opacity: 0.9;
}

/* ---- Testimonials ---- */

.agp-testimonials {
    padding: 96px 0;
}

.agp-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.agp-testimonial {
    margin: 0;
    padding: 28px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.agp-testimonial p {
    font-family: var(--agp-font-heading);
    font-size: 1.15rem;
    line-height: 1.5;
}

.agp-testimonial footer {
    margin-top: 16px;
    font-size: 0.85rem;
    opacity: 0.75;
}

/* ---- CTA banner ---- */

.agp-cta-banner {
    padding: 110px 0;
    text-align: center;
    color: #fff;
}

.agp-cta-content {
    position: relative;
    z-index: 1;
}

.agp-cta-content h2 {
    font-family: var(--agp-font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.agp-cta-content p {
    margin-bottom: 28px;
    opacity: 0.9;
}

/* ---- Page header (static pages, archives, category pages) ---- */

.agp-page-header {
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.agp-page-header .agp-container {
    position: relative;
    z-index: 1;
}

.agp-page-header h1 {
    font-family: var(--agp-font-heading);
    font-size: 2.75rem;
    margin: 0 0 8px;
}

.agp-page-content {
    padding: 64px 24px;
    line-height: 1.7;
}

.agp-category-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.agp-category-filter a {
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.agp-category-filter a.is-active,
.agp-category-filter a:hover {
    opacity: 1;
    border-bottom-color: var(--agp-accent);
}

/* ---- Product page ---- */

.agp-product-page {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    padding: 64px 24px;
}

.agp-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.agp-product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.agp-product-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
}

.agp-order-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
}

.agp-order-form label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
    margin-top: 8px;
}

.agp-order-form select,
.agp-order-form input[type="text"],
.agp-order-form input[type="email"],
.agp-order-form textarea {
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--agp-fg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: inherit;
    font-size: 0.95rem;
}

.agp-order-disclaimer {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 8px;
}

.agp-tax-disclosure {
    font-size: 0.75rem;
    opacity: 0.65;
    margin: 8px 0;
}

.agp-postage-note {
    display: block;
    font-size: 0.7rem;
    opacity: 0.6;
    text-align: right;
}

.agp-price-breakdown {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.agp-price-breakdown p {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

.agp-total-line {
    font-weight: 700;
    color: var(--agp-accent);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 8px;
}

.agp-notice {
    padding: 16px;
    background: rgba(255, 180, 60, 0.12);
    border-left: 3px solid var(--agp-accent);
    margin-bottom: 16px;
}

.agp-notice-success {
    background: rgba(90, 200, 120, 0.12);
    border-left-color: #5ac878;
}

.agp-notice-error {
    background: rgba(220, 80, 80, 0.12);
    border-left-color: #dc5050;
}

/* ---- Footer ---- */

.agp-site-footer {
    padding: 64px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 48px;
}

.agp-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.agp-social-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.agp-social-links a {
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.75;
}

.agp-footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agp-footer-nav a {
    text-decoration: none;
    opacity: 0.8;
    font-size: 0.9rem;
}

.agp-newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.agp-newsletter-form input {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--agp-fg);
}

.agp-copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
    padding-top: 24px;
}

@media (max-width: 900px) {
    .agp-product-page { grid-template-columns: 1fr; }
    .agp-masonry { columns: 1 100%; }
    .agp-about-grid { grid-template-columns: 1fr; }
    .agp-footer-grid { grid-template-columns: 1fr; }
}
