/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden; /* Prevent scrollbar from full-width banners */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #e60000; /* Caran d'Ache Red approximation */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
header {
    border-bottom: 1px solid #ddd;
    padding-top: 20px;
    background-color: #fff;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Align bottom of logo with bottom of user actions area */
    margin-bottom: 20px;
}

/* Logo Styling */
.cam-logo {
    display: flex;
    flex-direction: column;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 0.9;
    color: #333;
    position: relative;
    padding-bottom: 5px;
}

.cam-logo .line-one, 
.cam-logo .line-two {
    display: block;
    font-size: 56px; /* Increased size based on screenshot */
    font-weight: 600;
    letter-spacing: -2px;
}

.cam-logo .red-letter {
    color: #ff3333; /* Bright red for C, A, M */
    font-weight: bold;
}

.cam-logo .color-bar {
    display: block;
    height: 6px;
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(to right, 
        #00aaff 0%, #00aaff 33%, 
        #ff3333 33%, #ff3333 66%, 
        #00cc44 66%, #00cc44 100%);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px; /* Slight offset from bottom alignment */
}

.user-actions .register-link {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.user-actions .signin-btn {
    background-color: #1a3b8e; /* Dark blue from screenshot */
    color: white;
    padding: 10px 25px;
    border-radius: 25px; /* Pill shape */
    font-size: 14px;
    font-weight: bold;
    text-transform: capitalize;
}

.user-actions .signin-btn:hover {
    background-color: #122a66;
    color: white;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f0f0f0; /* Light gray background */
    border-radius: 25px; /* Pill shape */
    padding: 8px 15px;
    width: 300px;
}

.search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding-right: 10px;
    font-size: 16px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #555;
    width: 100%;
}

/* Navigation */
.main-nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.main-nav a {
    text-transform: capitalize;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.main-nav .cart-icon {
    font-size: 18px;
    color: #333;
}

/* Hero Section */
.hero {
    margin-bottom: 0; /* Removed bottom margin to connect with banner */
    padding: 0;
    max-width: 100%; /* Override section max-width */
}

.hero img {
    width: 100%;
    max-height: 80vh;
    object-fit: cover;
}

/* Info Banner Section */
.info-banner {
    width: 100%;
    margin-bottom: 60px;
    background: transparent;
    display: flex;
    justify-content: center;
}

.info-banner-inner {
    display: flex;
    width: 100%;
    /* max-width: 1200px; Removed to span full screen */
    margin: 0;
    padding: 0;
}

.info-left {
    background-color: #007cc2; /* Blue */
    padding: 15px 40px;
    flex: 1; /* Equal width */
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align text to the right (center seam) */
}

.info-right {
    background-color: #2e9e48; /* Green */
    padding: 15px 40px;
    flex: 1; /* Equal width */
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align text to the left (center seam) */
}

/* Pseudo-element removed */

.info-left h2 {
    font-size: 28px;
    margin: 0;
    font-weight: normal;
}

.info-right p {
    font-size: 20px;
    font-style: italic;
    margin: 0;
}

/* Common Section Styles */
section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 40px;
}

section h2 {
    text-align: center;
    text-transform: lowercase; /* Matches screenshot "shop by brand" */
    font-size: 20px; /* Slightly smaller to match screenshot */
    margin-bottom: 30px;
    color: #555;
    font-weight: bold;
    letter-spacing: normal;
}

/* Categories Section - Full Width */
section.categories {
    max-width: 100%;
    padding: 0;
    margin-bottom: 60px;
}

section.categories h2 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    margin-bottom: 30px;
}

/* Categories Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 100%; /* Full width */
    margin: 0;
    padding: 0 40px; /* Side padding only */
}

.category-item {
    text-align: center;
    border: none;
    padding: 10px;
    transition: transform 0.2s;
}

.category-item:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
}

.category-item img {
    height: 150px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}

.category-item h3 {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

/* Brands Section - Full Width */
section.brands {
    max-width: 100%;
    padding: 0;
    margin-bottom: 60px;
}

section.brands h2 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    margin-bottom: 30px;
}

/* Brand Grid */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columns */
    gap: 0; /* Remove gap to make borders touch if needed, or keep small gap */
    text-align: center;
    align-items: center; /* Vertically center */
    border-top: none;
    border-bottom: none;
    max-width: 100%; /* Full width */
}

.brand-item {
    padding: 20px 10px;
    border: none;
    border-right: 1px solid #ff3333; /* Red separator */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 120px; /* Fixed height for consistency */
}

.brand-item:last-child {
    border-right: none;
}

.brand-item img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

/* Brand-specific styling */
.brand-item h3 {
    font-size: 16px;
    margin-bottom: 2px;
    color: #333;
}

.brand-item p {
    font-size: 11px;
    color: #666;
    margin: 0;
}

/* Caran d'Ache - Serif font, dark gray */
.brand-item.caran h3 {
    font-family: 'Times New Roman', serif;
    font-weight: normal;
    letter-spacing: 1px;
    font-size: 18px;
    color: #333;
    text-transform: uppercase;
}

.brand-item.caran p {
    font-family: 'Times New Roman', serif;
    font-size: 12px;
    color: #333;
}

/* Pepin - Logo image */
.brand-item.pepin img {
    max-height: 70px;
}

/* Stifflex - Red circular icon with S, lowercase text */
.brand-item.stifflex {
    gap: 5px;
}

.stifflex-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ff3333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 5px;
}

.brand-item.stifflex h3 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #333;
    text-transform: lowercase;
    font-weight: normal;
}

.brand-item.stifflex p {
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
}

/* e+m - Brown color, rounded font */
.brand-item.em h3 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 20px;
    color: #8B4513; /* Brown */
    font-weight: normal;
    letter-spacing: 0;
}

.brand-item.em p {
    font-size: 10px;
    color: #8B4513;
    font-style: italic;
}

/* Giuliano Mazzuoli - Emblem above text */
.brand-item.mazzuoli {
    gap: 5px;
}

.mazzuoli-emblem {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mazzuoli-emblem::before {
    content: '✱';
    font-size: 20px;
    color: #000;
    line-height: 1;
}

.brand-item.mazzuoli h3 {
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    color: #333;
    font-weight: normal;
    letter-spacing: 1px;
}

.brand-item.mazzuoli p {
    font-family: 'Times New Roman', serif;
    font-size: 10px;
    color: #333;
}

/* M+R - Red box with white text */
.brand-item.mr {
    gap: 5px;
}

.mr-box {
    background-color: #ff3333;
    color: white;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-family: Helvetica, Arial, sans-serif;
}

.brand-item.mr p {
    font-size: 11px;
    color: #333;
    font-weight: normal;
}

/* Raphael Sennelier - Logo image */
.brand-item.raphael img {
    max-height: 70px;
}

/* Stifflex - Rounded sans-serif look */
.brand-item.stifflex h3 {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    text-transform: lowercase;
    font-size: 24px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.brand-item.stifflex h3::before {
    content: "S"; /* Placeholder for circle logo if needed, or simple circle */
    display: inline-block;
    background: #ff3333;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}
.brand-item.stifflex p {
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 1px;
}

/* e+m - Large lowercase */
.brand-item.em h3 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 42px;
    font-weight: normal;
    text-transform: lowercase;
    line-height: 1;
    color: #5b4a3c; /* Brownish tone */
}
.brand-item.em p {
    font-size: 10px;
    color: #5b4a3c;
}

/* Giuliano Mazzuoli - Serif */
.brand-item.mazzuoli h3 {
    font-family: 'Times New Roman', serif;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: bold;
}
.brand-item.mazzuoli p {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* M+R - Red Box */
.brand-item.mr h3 {
    background-color: #ff3333;
    color: white;
    padding: 2px 8px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
    border-radius: 2px;
    line-height: 1;
}
.brand-item.mr p {
    color: #ff3333;
    font-size: 10px;
    margin-top: 2px;
}

/* Caran d'Ache specific */
.brand-item.caran h3 {
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    font-size: 18px;
}
.brand-item.caran p {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
}

/* What's New & Videos Combined Section */
section.whats-new-videos {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 40px;
    background-color: #fff;
}

.whats-new-videos-container {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 3 product images + 1 video panel */
    gap: 0;
    max-width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.product-item {
    position: relative;
    overflow: hidden;
}

.product-item img {
    width: 100%;
    height: 300px; /* Reduced height to better match screenshot proportions */
    object-fit: cover;
    display: block;
}

.product-label {
    position: absolute; /* Kept absolute for overlay if needed, or relative below */
    bottom: -60px; /* Push below image if we want it outside, or keep inside */
    left: 0;
    right: 0;
    background: transparent;
    padding: 10px 0; /* Padding around text */
    text-align: left;
}

/* Adjust layout to place text below images */
.product-item {
    margin-bottom: 60px; /* Space for text below */
    position: relative;
}

.product-label {
    position: absolute;
    bottom: -50px;
    left: 0;
    background: transparent;
    padding: 0;
}

.product-label p {
    margin: 0;
    font-size: 11px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    line-height: 1.2;
}

.product-label .red-text {
    color: #ff3333;
}

.product-label .product-subtitle {
    font-size: 11px;
    font-weight: normal;
    text-transform: none;
    margin-top: 2px;
    color: #666;
}

/* Video Panel */
.video-panel {
    background-color: #e6f2ff; /* Light blue background */
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 300px; /* Match image height */
}

.video-panel h3 {
    font-size: 12px;
    font-weight: bold;
    color: #333; /* Dark gray title */
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: left;
    color: #445; /* Slightly blue-gray */
}

.video-list-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.video-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-column li {
    margin-bottom: 8px;
}

.video-column a {
    font-size: 11px;
    color: #333;
    text-decoration: underline; /* Always underlined in screenshot style */
    display: block;
    transition: color 0.2s;
    font-weight: 500;
}

.video-column a:hover {
    color: #0066cc;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: -40px; /* Move up to sit between content */
    padding: 0;
    position: relative; /* Ensure z-index */
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dot.active {
    background-color: #b22222; /* Darker red */
}

/* Video Links Section - Full Width */
section.video-links {
    max-width: 100%;
    padding: 0;
    margin-bottom: 60px;
    background-color: #f9f9f9;
}

.video-links h3 {
    text-align: center;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 40px 0 40px;
}

.video-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px 40px;
}

.video-player {
    background: #000;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-player {
    color: white;
    text-align: center;
}

.placeholder-player i {
    font-size: 48px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.placeholder-player i:hover {
    transform: scale(1.1);
}

.video-list ul {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 15px;
    height: 100%;
}

.video-list a {
    font-size: 14px;
    color: #444;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    display: block;
    transition: all 0.2s;
}

.video-list a:hover {
    background-color: #e60000;
    color: white;
    border-color: #e60000;
}

/* Footer */
footer {
    /* No padding here, handled by inner containers */
    width: 100%;
}

.footer-main {
    background-color: #666; /* Dark gray */
    color: #fff;
    padding: 60px 0 60px;
    border-radius: 0; /* Full width typically removes corners */
    max-width: 100%;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr; /* Right column wider for email/newsletter */
    max-width: 1200px; /* Keep content centered */
    margin: 0 auto;
    gap: 40px;
    padding: 0 60px; /* Inner padding for alignment */
}

.footer-col h4 {
    text-transform: capitalize; /* "Departments", "Learn more" */
    margin-bottom: 20px;
    color: #fff;
    font-size: 24px; /* Larger title size */
    font-weight: bold;
    border-bottom: none; /* Removed border */
    padding-bottom: 0;
    display: block;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 14px;
    text-transform: lowercase; /* all lowercase links */
    color: #fff;
    font-weight: bold;
}

.footer-col a:hover {
    color: #ccc;
    text-decoration: underline;
}

/* Contact Info Column */
.footer-col.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.email-link {
    font-size: 24px !important; /* Larger email text */
    font-weight: bold;
    margin-bottom: 40px;
    text-transform: none !important; /* Keep email casing */
}

.newsletter p {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: none; /* Mixed case "SIGN UP for Our Email Newsletter" */
}

.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 400px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 14px;
}

.newsletter-form button {
    background-color: #222; /* Black/Dark button */
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #fff;
    padding: 20px 0;
    border-top: none; /* Clean separation */
    max-width: 100%;
    margin: 0 auto;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px; /* Match footer-columns padding */
    max-width: 1200px;
    margin: 0 auto;
}

.copyright-text, .powered-by {
    font-size: 12px;
    color: #333;
}

.social-icons img {
    height: 40px; /* Adjust icon size */
    width: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top, .header-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .main-nav ul {
        justify-content: center;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .whats-new {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .video-container {
        grid-template-columns: 1fr;
    }

    .info-banner {
        flex-direction: column;
    }

    .info-left, .info-right {
        min-width: 100%;
        text-align: center;
        justify-content: center;
    }
}
