/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; font-size: 1.6rem; color: #393939; background: #fff; line-height: 1.6; }

/* Typography */
h1, h2, h3, h4, h5, h6 { letter-spacing: 0.1em; font-weight: 500; margin-bottom: 10px; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Announcement Bar */
.announcement-bar { background: #393939; color: #fff; text-align: center; padding: 10px; font-size: 1.2rem; letter-spacing: 0.15em; text-transform: uppercase; }

/* Header */
.header { border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 100; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 15px 40px; max-width: 1400px; margin: 0 auto; }
.logo img { height: 50px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-transform: uppercase; font-size: 1.3rem; letter-spacing: 0.1em; font-weight: 500; }
.nav-links a:hover { opacity: 0.7; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #eee; min-width: 150px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 10px 15px; }
.dropdown-menu li a:hover { background: #f5f5f5; }

.header-icons { display: flex; gap: 20px; align-items: center; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.1em; }
.header-icons a:hover { opacity: 0.7; }
.cart-toggle { display: flex; align-items: center; gap: 5px; }
.cart-count { background: #393939; color: #fff; border-radius: 50%; padding: 2px 6px; font-size: 1rem; }
.hamburger { display: none; background: none; border: none; font-size: 2.4rem; cursor: pointer; }
.mobile-menu { display: none; background: #fff; position: absolute; width: 100%; left: 0; top: 100%; border-bottom: 1px solid #eee; padding: 20px 40px; }
.mobile-nav-links li { margin-bottom: 15px; }

/* Hero Section */
.hero { height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; background: #1a1a1a; color: #fff; position: relative; }
.hero-content { z-index: 2; }
.hero h1 { font-size: 5rem; letter-spacing: 0.3em; font-weight: 700; }
.hero p { font-size: 1.6rem; letter-spacing: 0.15em; margin: 20px 0 40px; }

/* Buttons */
.btn { display: inline-block; padding: 14px 40px; text-transform: uppercase; letter-spacing: 0.15em; font-size: 1.3rem; font-weight: 500; border: none; cursor: pointer; transition: all 0.3s; text-align: center; }
.btn-primary { background: #393939; color: #fff; }
.btn-primary:hover { opacity: 0.85; }
.btn-outline { background: transparent; border: 1px solid #393939; color: #393939; }
.btn-outline:hover, .btn-outline.active { background: #393939; color: #fff; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Product Card */
.product-card { text-align: center; position: relative; display: block; color: inherit; }
.product-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #f5f5f5; transition: opacity 0.3s; }
.product-card:hover img { opacity: 0.9; }
.product-card h3 { font-size: 1.3rem; margin-top: 12px; font-weight: 500; letter-spacing: 0.05em; }
.product-card .price { font-size: 1.4rem; margin-top: 5px; color: #666; }
.hover-action { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,0.9); padding: 10px 20px; font-size: 1.2rem; letter-spacing: 0.1em; opacity: 0; transition: opacity 0.3s; pointer-events: none; font-weight: 500; }
.product-card:hover .hover-action { opacity: 1; }

/* Category Cards */
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { position: relative; overflow: hidden; aspect-ratio: 1; display: block; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; background: #eee; }
.category-card:hover img { transform: scale(1.05); }
.category-card .overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; text-align: center; }
.category-card h3 { font-size: 2rem; margin: 0; letter-spacing: 0.15em; }

/* Section spacing */
.section { padding: 80px 40px; max-width: 1400px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.4rem; letter-spacing: 0.2em; margin-bottom: 50px; text-transform: uppercase; }

/* Product Detail Page */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 20px; }
.product-image-container img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #f5f5f5; }
.product-info h1 { font-size: 3rem; letter-spacing: 0.1em; margin-bottom: 10px; }
.product-info .price { font-size: 2.4rem; margin-bottom: 20px; }
.description { margin-bottom: 30px; color: #666; font-size: 1.5rem; line-height: 1.8; }
.selector { margin-bottom: 25px; }
.selector h4 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; color: #999; }
.color-swatches { display: flex; gap: 10px; }
.color-swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ddd; cursor: pointer; }
.color-swatch.active { border: 2px solid #393939; transform: scale(1.1); }
.size-buttons { display: flex; gap: 10px; }
.size-btn { width: 45px; height: 45px; border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 1.3rem; }
.size-btn.active, .size-btn:hover { border-color: #393939; background: #393939; color: #fff; }
.qty-controls { display: flex; border: 1px solid #ddd; width: 120px; height: 45px; }
.qty-controls button { flex: 1; background: none; border: none; cursor: pointer; font-size: 1.8rem; }
.qty-controls input { flex: 1; width: 100%; border: none; text-align: center; font-size: 1.4rem; -moz-appearance: textfield; }
.qty-controls input::-webkit-outer-spin-button, .qty-controls input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-to-cart-btn { width: 100%; padding: 20px; font-size: 1.4rem; margin-bottom: 40px; }
.accordion-item { border-top: 1px solid #eee; }
.accordion-header { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; display: flex; justify-content: space-between; font-weight: 500; color: #393939; }
.accordion-header::after { content: '+'; font-size: 1.8rem; font-weight: 300; }
.accordion-item.active .accordion-header::after { content: '-'; }
.accordion-content { display: none; padding-bottom: 20px; color: #666; font-size: 1.4rem; line-height: 1.6; }

/* Brand Story */
.brand-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.brand-text h2 { font-size: 3rem; letter-spacing: 0.1em; margin-bottom: 20px; }
.brand-text p { font-size: 1.8rem; line-height: 1.8; color: #555; margin-bottom: 30px; }
.brand-image img { width: 100%; height: auto; object-fit: cover; background: #eee; }

/* Shop page */
.category-filters { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }

/* Cart Page */
.cart-container { max-width: 1000px; margin: 0 auto; }
.cart-items { border-top: 1px solid #eee; }
.cart-item { display: grid; grid-template-columns: 100px 2fr 1fr 1fr auto; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid #eee; }
.cart-item-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #eee; }
.cart-item-info h3 { font-size: 1.5rem; margin-bottom: 5px; }
.cart-item-info p { font-size: 1.3rem; color: #666; }
.cart-item-price { font-size: 1.6rem; font-weight: 500; }
.remove-btn { background: none; border: none; font-size: 2.4rem; color: #999; cursor: pointer; }
.cart-summary { background: #f9f9f9; padding: 30px; margin-top: 40px; }
.cart-summary h3 { font-size: 1.4rem; letter-spacing: 0.1em; margin-bottom: 20px; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 1.5rem; }
.summary-line.total { font-weight: 700; font-size: 1.8rem; }

/* Footer */
.footer { background: #1a1a1a; color: #fff; padding: 60px 40px 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1400px; margin: 0 auto; }
.footer h4 { text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 20px; font-size: 1.2rem; color: #999; }
.footer ul li { margin-bottom: 12px; }
.footer a { color: #ccc; transition: color 0.3s; font-size: 1.4rem; }
.footer a:hover { color: #fff; }
.footer-col p { color: #ccc; font-size: 1.4rem; line-height: 1.8; }
.footer-bottom { border-top: 1px solid #333; margin-top: 60px; padding-top: 20px; display: flex; justify-content: space-between; color: #666; font-size: 1.3rem; max-width: 1400px; margin: 0 auto; }
.newsletter { display: flex; margin-top: 15px; }
.newsletter input { flex: 1; padding: 12px; border: 1px solid #444; background: transparent; color: #fff; outline: none; }
.newsletter button { padding: 12px 20px; background: #fff; color: #1a1a1a; border: none; cursor: pointer; font-weight: 500; letter-spacing: 0.1em; }
.inline-newsletter { max-width: 500px; margin: 20px auto 0; }
.inline-newsletter input { border: 1px solid #ccc; color: #393939; }
.inline-newsletter button { background: #393939; color: #fff; }

/* Size Guide */
.tabs { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.tab-btn { background: none; border: none; padding: 10px 20px; font-size: 1.6rem; cursor: pointer; text-transform: uppercase; letter-spacing: 0.05em; color: #999; position: relative; }
.tab-btn::after { content: ''; position: absolute; bottom: -11px; left: 0; width: 100%; height: 2px; background: #393939; opacity: 0; transition: opacity 0.3s; }
.tab-btn.active { color: #393939; }
.tab-btn.active::after { opacity: 1; }
.size-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.size-table th, .size-table td { padding: 15px; text-align: center; border-bottom: 1px solid #eee; }
.size-table th { background: #f9f9f9; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.3rem; }
.size-table tbody tr:hover { background: #fafafa; }

/* Utilities */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-main { padding: 15px 20px; }
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    .hero h1 { font-size: 3.5rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .categories-grid { grid-template-columns: 1fr; }
    .product-detail, .brand-story-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .cart-item { grid-template-columns: 80px 1fr; gap: 10px; }
    .cart-item-img { grid-row: span 2; }
    .cart-item .qty-controls { grid-column: 2; }
    .cart-item-price { grid-column: 2; text-align: right; }
    .remove-btn { grid-column: 2; text-align: right; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
    .section, .container { padding: 50px 20px; }
    
    .checkout-grid { grid-template-columns: 1fr; gap: 30px; }
    .placement-buttons { gap: 5px; }
    .placement-btn { padding: 8px 12px; font-size: 1.1rem; }
    .emboss-color-buttons { gap: 5px; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2.8rem; }
    .product-grid { gap: 10px; }
    .btn { padding: 12px 20px; font-size: 1.1rem; }
}

/* Embossing Customization */
.embossing-section { background: #f9f9f9; padding: 25px; margin-bottom: 25px; border: 1px solid #eee; }
.emboss-toggle { margin-bottom: 15px; }
.toggle-label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 1.4rem; font-weight: 500; }
.toggle-label input[type="checkbox"] { display: none; }
.toggle-switch { width: 48px; height: 26px; background: #ccc; border-radius: 13px; position: relative; transition: background 0.3s; flex-shrink: 0; }
.toggle-switch::after { content: ''; position: absolute; width: 22px; height: 22px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: transform 0.3s; }
.toggle-label input:checked + .toggle-switch { background: #393939; }
.toggle-label input:checked + .toggle-switch::after { transform: translateX(22px); }
.emboss-options { padding-top: 20px; border-top: 1px solid #ddd; margin-top: 15px; }
.emboss-field { margin-bottom: 20px; }
.emboss-field h4 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; color: #999; }
.emboss-field select, .emboss-field input[type="text"] { width: 100%; padding: 12px 15px; border: 1px solid #ddd; font-size: 1.4rem; font-family: 'Roboto', sans-serif; outline: none; background: #fff; }
.emboss-field select:focus, .emboss-field input[type="text"]:focus { border-color: #393939; }
.char-count { font-size: 1.1rem; color: #999; margin-top: 5px; display: block; }
.placement-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.placement-btn { padding: 10px 16px; border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.2s; }
.placement-btn.active, .placement-btn:hover { background: #393939; color: #fff; border-color: #393939; }
.emboss-color-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.emboss-color-btn { padding: 10px 18px; border: 2px solid transparent; cursor: pointer; font-size: 1.2rem; font-weight: 500; transition: all 0.2s; }
.emboss-color-btn.active { border-color: #393939; transform: scale(1.05); }

/* Cart Emboss Details */
.cart-emboss-details { margin-top: 8px; padding: 8px 12px; background: #f5f5f5; border-left: 3px solid #393939; font-size: 1.2rem; }
.cart-emboss-details p { margin: 3px 0; color: #666; }
.emboss-badge { display: inline-block; background: #393939; color: #fff; padding: 2px 8px; font-size: 1rem; letter-spacing: 0.1em; margin-bottom: 5px; }
.emboss-fee { color: #393939; font-weight: 500; }

/* Checkout Page */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.checkout-form h2, .checkout-summary h2 { font-size: 2rem; letter-spacing: 0.1em; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; color: #666; }
.form-group input, .form-group select { width: 100%; padding: 14px 15px; border: 1px solid #ddd; font-size: 1.4rem; font-family: 'Roboto', sans-serif; outline: none; }
.form-group input:focus { border-color: #393939; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.checkout-items { max-height: 400px; overflow-y: auto; border: 1px solid #eee; }
.checkout-item { display: flex; gap: 15px; padding: 15px; border-bottom: 1px solid #eee; }
.checkout-item img { width: 60px; height: 80px; object-fit: cover; background: #f5f5f5; }
.checkout-item-info { flex: 1; }
.checkout-item-info h4 { font-size: 1.3rem; margin-bottom: 3px; }
.checkout-item-info p { font-size: 1.2rem; color: #666; margin: 2px 0; }
.checkout-totals { padding: 20px; background: #f9f9f9; margin-top: 20px; }
.checkout-totals .summary-line { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1.4rem; }
.checkout-totals .summary-line.total { font-weight: 700; font-size: 1.8rem; border-top: 1px solid #ddd; padding-top: 12px; margin-top: 12px; }
.place-order-btn { width: 100%; padding: 20px; font-size: 1.6rem; margin-top: 20px; }
.error-message { background: #f8d7da; color: #842029; padding: 15px; margin-bottom: 20px; font-size: 1.4rem; border: 1px solid #f5c2c7; }

/* Order Confirmation */
.confirmation-container { max-width: 800px; margin: 0 auto; }
.success-message { background: #d1e7dd; color: #0f5132; padding: 25px; text-align: center; margin-bottom: 40px; border: 1px solid #badbcc; }
.success-message h2 { font-size: 2.4rem; margin-bottom: 10px; }
.success-message p { font-size: 1.6rem; }
.order-details { border: 1px solid #eee; padding: 25px; margin-bottom: 30px; }
.order-details h3 { font-size: 1.6rem; letter-spacing: 0.1em; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.order-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.order-item:last-child { border-bottom: none; }
